auto-svg-component-generator
Version:
AutoSvgComponentGenerator is a generator that automatically converts .svg files into React components. SvgComponentGenerator automatically generates index.tsx or index.jsx in React component format when .svg files are added, moved, modified or deleted.
1 lines • 1.15 MB
JavaScript
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/regenerator";import*as o from"path";import s from"path";import l from"constants";import c from"stream";import d from"assert";import u,{unwatchFile as p,watchFile as m,watch as h,stat as g}from"fs";import f from"util";import y,{type as b}from"os";import S from"url";import{realpath as v,lstat as x,stat as k,open as w,readdir as C}from"fs/promises";import{EventEmitter as T}from"events";import{readdir as E,realpath as A,lstat as O,stat as z}from"node:fs/promises";import{Readable as _}from"node:stream";import{resolve as W,join as P,relative as L,sep as q}from"node:path";function B(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var R,I,G,j,F,U,V,H,K,$,Y={},X={};function Z(){return R||(R=1,X.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},X.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),X}function Q(){if(G)return I;G=1;var e=l,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return I=function(t){e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(n,r,i){t.open(n,e.O_WRONLY|e.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(n,r){var i,a=t.openSync(n,e.O_WRONLY|e.O_SYMLINK,r),o=!0;try{i=t.fchmodSync(a,r),o=!1}finally{if(o)try{t.closeSync(a)}catch(e){}else t.closeSync(a)}return i}}(t);t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,a){t.open(n,e.O_SYMLINK,(function(e,n){e?a&&a(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){a&&a(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var a,o=t.openSync(n,e.O_SYMLINK),s=!0;try{a=t.futimesSync(o,r,i),s=!1}finally{if(s)try{t.closeSync(o)}catch(e){}else t.closeSync(o)}return a}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=a(t.chown),t.fchown=a(t.fchown),t.lchown=a(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=s(t.stat),t.fstat=s(t.fstat),t.lstat=s(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var a=Date.now(),o=0;e(n,r,(function s(l){if(l&&("EACCES"===l.code||"EPERM"===l.code||"EBUSY"===l.code)&&Date.now()-a<6e4)return setTimeout((function(){t.stat(r,(function(t,a){t&&"ENOENT"===t.code?e(n,r,s):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(e){if(!c(e))throw e}}:e}function a(e){return e?function(n,r,i,a){return e.call(t,n,r,i,(function(e){c(e)&&(e=null),a&&a.apply(this,arguments)}))}:e}function o(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(e){if(!c(e))throw e}}:e}function s(e){return e?function(n,r,i){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,a):e.call(t,n,a)}:e}function l(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,a,o,s){var l;if(s&&"function"==typeof s){var c=0;l=function(d,u,p){if(d&&"EAGAIN"===d.code&&c<10)return c++,e.call(t,n,r,i,a,o,l);s.apply(this,arguments)}}return e.call(t,n,r,i,a,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(d=t.readSync,function(e,n,r,i,a){for(var o=0;;)try{return d.call(t,e,n,r,i,a)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var d},I}function J(){if(F)return j;F=1;var e=c.Stream;return j=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var a=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),s=0,l=o.length;s<l;s++){var c=o[s];this[c]=i[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){a._read()}));t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return a.emit("error",e),void(a.readable=!1);a.fd=t,a.emit("open",t),a._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var l=a[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},j}function ee(){if(V)return U;V=1,U=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return U}function te(){if(K)return H;K=1;var e,t,n=u,r=Q(),i=J(),a=ee(),o=f;function s(t,n){Object.defineProperty(t,e,{get:function(){return n}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(e=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(e="___graceful-fs.queue",t="___graceful-fs.previous");var l,c=function(){};if(o.debuglog?c=o.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!n[e]){var p=D[e]||[];s(n,p),n.close=function(e){function r(t,r){return e.call(n,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(r,t,{value:e}),r}(n.close),n.closeSync=function(e){function r(t){e.apply(n,arguments),g()}return Object.defineProperty(r,t,{value:e}),r}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){c(n[e]),d.equal(n[e].length,0)}))}function m(e){r(e),e.gracefulify=m,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,i,a){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):h([e,[n,r,i],t,a||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,a,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,r,i,a],n,o||Date.now(),Date.now()])}))}(e,t,r,i)};var a=e.appendFile;a&&(e.appendFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);return function e(t,n,r,i,o){return a(t,n,r,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,r,i],a,o||Date.now(),Date.now()])}))}(e,t,n,r)});var o=e.copyFile;o&&(e.copyFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=0);return function e(t,n,r,i,a){return o(t,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,r,i],o,a||Date.now(),Date.now()])}))}(e,t,n,r)});var s=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=l.test(process.version)?function(e,t,n,r){return s(e,i(e,t,n,r))}:function(e,t,n,r){return s(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(o&&o.sort&&o.sort(),"function"==typeof n&&n.call(this,a,o)):h([r,[e,t,n],a,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var c=i(e);f=c.ReadStream,y=c.WriteStream}var d=e.ReadStream;d&&(f.prototype=Object.create(d.prototype),f.prototype.open=function(){var e=this;S(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var u=e.WriteStream;u&&(y.prototype=Object.create(u.prototype),y.prototype.open=function(){var e=this;S(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var p=f;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var g=y;function f(e,t){return this instanceof f?(d.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function y(e,t){return this instanceof y?(u.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var b=e.open;function S(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,a){return b(t,n,r,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,r,i],o,a||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=S,e}function h(t){c("ENQUEUE",t[0].name,t[1]),n[e].push(t),y()}function g(){for(var t=Date.now(),r=0;r<n[e].length;++r)n[e][r].length>2&&(n[e][r][3]=t,n[e][r][4]=t);y()}function y(){if(clearTimeout(l),l=void 0,0!==n[e].length){var t=n[e].shift(),r=t[0],i=t[1],a=t[2],o=t[3],s=t[4];if(void 0===o)c("RETRY",r.name,i),r.apply(null,i);else if(Date.now()-o>=6e4){c("TIMEOUT",r.name,i);var d=i.pop();"function"==typeof d&&d.call(null,a)}else{var u=Date.now()-s,p=Math.max(s-o,1);u>=Math.min(1.2*p,100)?(c("RETRY",r.name,i),r.apply(null,i.concat([o]))):n[e].push(t)}void 0===l&&(l=setTimeout(y,0))}}return D[e]||s(D,n[e]),H=m(a(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(H=m(n),n.__patched=!0),H}function ne(){return $||($=1,function(e){const t=Z().fromCallback,n=te(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,i,a,o){return"function"==typeof o?n.read(e,t,r,i,a,o):new Promise(((o,s)=>{n.read(e,t,r,i,a,((e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((i,a)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((i,a)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return a(e);i({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((i,a)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Y)),Y}var re,ie,ae,oe,se,le,ce,de,ue,pe,me,he,ge,fe,ye,be,Se,ve,xe,ke,we,Ce,Te,Ee,Ae,Oe,ze,_e,We,Pe,Le,qe,Be,De,Me,Ne,Re,Ie,Ge,je,Fe,Ue,Ve,He,Ke,$e,Ye,Xe,Ze,Qe,Je,et,tt,nt,rt={},it={};function at(){if(re)return it;re=1;const e=s;return it.checkPath=function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}},it}function ot(){if(ie)return rt;ie=1;const e=ne(),{checkPath:t}=at(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return rt.makeDir=async(r,i)=>(t(r),e.mkdir(r,{mode:n(i),recursive:!0})),rt.makeDirSync=(r,i)=>(t(r),e.mkdirSync(r,{mode:n(i),recursive:!0})),rt}function st(){if(oe)return ae;oe=1;const e=Z().fromPromise,{makeDir:t,makeDirSync:n}=ot(),r=e(t);return ae={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function lt(){if(le)return se;le=1;const e=Z().fromPromise,t=ne();return se={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync},se}function ct(){if(de)return ce;de=1;const e=ne(),t=Z().fromPromise;return ce={utimesMillis:t((async function(t,n,r){const i=await e.open(t,"r+");let a=null;try{await e.futimes(i,n,r)}finally{try{await e.close(i)}catch(e){a=e}}if(a)throw a})),utimesMillisSync:function(t,n,r){const i=e.openSync(t,"r+");return e.futimesSync(i,n,r),e.closeSync(i)}},ce}function dt(){if(pe)return ue;pe=1;const e=ne(),t=s,n=Z().fromPromise;function r(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function i(e,n){const r=t.resolve(e).split(t.sep).filter((e=>e)),i=t.resolve(n).split(t.sep).filter((e=>e));return r.every(((e,t)=>i[t]===e))}function a(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}return ue={checkPaths:n((async function(n,o,s,l){const{srcStat:c,destStat:d}=await function(t,n,r){const i=r.dereference?t=>e.stat(t,{bigint:!0}):t=>e.lstat(t,{bigint:!0});return Promise.all([i(t),i(n).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(n,o,l);if(d){if(r(c,d)){const e=t.basename(n),r=t.basename(o);if("move"===s&&e!==r&&e.toLowerCase()===r.toLowerCase())return{srcStat:c,destStat:d,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!d.isDirectory())throw new Error(`Cannot overwrite non-directory '${o}' with directory '${n}'.`);if(!c.isDirectory()&&d.isDirectory())throw new Error(`Cannot overwrite directory '${o}' with non-directory '${n}'.`)}if(c.isDirectory()&&i(n,o))throw new Error(a(n,o,s));return{srcStat:c,destStat:d}})),checkPathsSync:function(n,o,s,l){const{srcStat:c,destStat:d}=function(t,n,r){let i;const a=r.dereference?t=>e.statSync(t,{bigint:!0}):t=>e.lstatSync(t,{bigint:!0}),o=a(t);try{i=a(n)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}(n,o,l);if(d){if(r(c,d)){const e=t.basename(n),r=t.basename(o);if("move"===s&&e!==r&&e.toLowerCase()===r.toLowerCase())return{srcStat:c,destStat:d,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!d.isDirectory())throw new Error(`Cannot overwrite non-directory '${o}' with directory '${n}'.`);if(!c.isDirectory()&&d.isDirectory())throw new Error(`Cannot overwrite directory '${o}' with non-directory '${n}'.`)}if(c.isDirectory()&&i(n,o))throw new Error(a(n,o,s));return{srcStat:c,destStat:d}},checkParentPaths:n((async function n(i,o,s,l){const c=t.resolve(t.dirname(i)),d=t.resolve(t.dirname(s));if(d===c||d===t.parse(d).root)return;let u;try{u=await e.stat(d,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(o,u))throw new Error(a(i,s,l));return n(i,o,d,l)})),checkParentPathsSync:function n(i,o,s,l){const c=t.resolve(t.dirname(i)),d=t.resolve(t.dirname(s));if(d===c||d===t.parse(d).root)return;let u;try{u=e.statSync(d,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(r(o,u))throw new Error(a(i,s,l));return n(i,o,d,l)},isSrcSubdir:i,areIdentical:r},ue}function ut(){if(he)return me;he=1;const e=ne(),t=s,{mkdirs:n}=st(),{pathExists:r}=lt(),{utimesMillis:i}=ct(),a=dt();async function o(e,t,n){return!n.filter||n.filter(e,t)}async function l(n,r,i,s){const d=s.dereference?e.stat:e.lstat,u=await d(r);if(u.isDirectory())return async function(n,r,i,s,c){r||await e.mkdir(s);const d=[];for await(const n of await e.opendir(i)){const e=t.join(i,n.name),r=t.join(s,n.name);d.push(o(e,r,c).then((t=>{if(t)return a.checkPaths(e,r,"copy",c).then((({destStat:t})=>l(t,e,r,c)))})))}await Promise.all(d),r||await e.chmod(s,n.mode)}(u,n,r,i,s);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return async function(t,n,r,i,a){if(!n)return c(t,r,i,a);if(a.overwrite)return await e.unlink(i),c(t,r,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}(u,n,r,i,s);if(u.isSymbolicLink())return async function(n,r,i,o){let s=await e.readlink(r);o.dereference&&(s=t.resolve(process.cwd(),s));if(!n)return e.symlink(s,i);let l=null;try{l=await e.readlink(i)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return e.symlink(s,i);throw t}o.dereference&&(l=t.resolve(process.cwd(),l));if(a.isSrcSubdir(s,l))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`);if(a.isSrcSubdir(l,s))throw new Error(`Cannot overwrite '${l}' with '${s}'.`);return await e.unlink(i),e.symlink(s,i)}(n,r,i,s);if(u.isSocket())throw new Error(`Cannot copy a socket file: ${r}`);if(u.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${r}`);throw new Error(`Unknown file: ${r}`)}async function c(t,n,r,a){if(await e.copyFile(n,r),a.preserveTimestamps){128&t.mode||await function(t,n){return e.chmod(t,128|n)}(r,t.mode);const a=await e.stat(n);await i(r,a.atime,a.mtime)}return e.chmod(r,t.mode)}return me=async function(e,i,s={}){"function"==typeof s&&(s={filter:s}),s.clobber=!("clobber"in s)||!!s.clobber,s.overwrite="overwrite"in s?!!s.overwrite:s.clobber,s.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:c,destStat:d}=await a.checkPaths(e,i,"copy",s);if(await a.checkParentPaths(e,c,i,"copy"),!await o(e,i,s))return;const u=t.dirname(i);await r(u)||await n(u),await l(d,e,i,s)}}function pt(){if(fe)return ge;fe=1;const e=te(),t=s,n=st().mkdirsSync,r=ct().utimesMillisSync,i=dt();function a(n,r,a,s){const d=(s.dereference?e.statSync:e.lstatSync)(r);if(d.isDirectory())return function(t,n,r,i,a){return n?c(r,i,a):function(t,n,r,i){return e.mkdirSync(r),c(n,r,i),l(r,t)}(t.mode,r,i,a)}(d,n,r,a,s);if(d.isFile()||d.isCharacterDevice()||d.isBlockDevice())return function(t,n,r,i,a){return n?function(t,n,r,i){if(i.overwrite)return e.unlinkSync(r),o(t,n,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(t,r,i,a):o(t,r,i,a)}(d,n,r,a,s);if(d.isSymbolicLink())return function(n,r,a,o){let s=e.readlinkSync(r);o.dereference&&(s=t.resolve(process.cwd(),s));if(n){let n;try{n=e.readlinkSync(a)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return e.symlinkSync(s,a);throw t}if(o.dereference&&(n=t.resolve(process.cwd(),n)),i.isSrcSubdir(s,n))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${n}'.`);if(i.isSrcSubdir(n,s))throw new Error(`Cannot overwrite '${n}' with '${s}'.`);return function(t,n){return e.unlinkSync(n),e.symlinkSync(t,n)}(s,a)}return e.symlinkSync(s,a)}(n,r,a,s);if(d.isSocket())throw new Error(`Cannot copy a socket file: ${r}`);if(d.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${r}`);throw new Error(`Unknown file: ${r}`)}function o(t,n,i,a){return e.copyFileSync(n,i),a.preserveTimestamps&&function(t,n,i){(function(e){return!(128&e)})(t)&&function(e,t){l(e,128|t)}(i,t);(function(t,n){const i=e.statSync(t);r(n,i.atime,i.mtime)})(n,i)}(t.mode,n,i),l(i,t.mode)}function l(t,n){return e.chmodSync(t,n)}function c(t,n,r){const i=e.opendirSync(t);try{let e;for(;null!==(e=i.readSync());)d(e.name,t,n,r)}finally{i.closeSync()}}function d(e,n,r,o){const s=t.join(n,e),l=t.join(r,e);if(o.filter&&!o.filter(s,l))return;const{destStat:c}=i.checkPathsSync(s,l,"copy",o);return a(c,s,l,o)}return ge=function(r,o,s){"function"==typeof s&&(s={filter:s}),(s=s||{}).clobber=!("clobber"in s)||!!s.clobber,s.overwrite="overwrite"in s?!!s.overwrite:s.clobber,s.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:l,destStat:c}=i.checkPathsSync(r,o,"copy",s);if(i.checkParentPathsSync(r,l,o,"copy"),s.filter&&!s.filter(r,o))return;const d=t.dirname(o);return e.existsSync(d)||n(d),a(c,r,o,s)}}function mt(){if(be)return ye;be=1;const e=Z().fromPromise;return ye={copy:e(ut()),copySync:pt()}}function ht(){if(ve)return Se;ve=1;const e=te(),t=Z().fromCallback;return Se={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}},Se}function gt(){if(ke)return xe;ke=1;const e=Z().fromPromise,t=ne(),n=s,r=st(),i=ht(),a=e((async function(e){let a;try{a=await t.readdir(e)}catch{return r.mkdirs(e)}return Promise.all(a.map((t=>i.remove(n.join(e,t)))))}));function o(e){let a;try{a=t.readdirSync(e)}catch{return r.mkdirsSync(e)}a.forEach((t=>{t=n.join(e,t),i.removeSync(t)}))}return xe={emptyDirSync:o,emptydirSync:o,emptyDir:a,emptydir:a}}function ft(){if(Ce)return we;Ce=1;const e=Z().fromPromise,t=s,n=ne(),r=st();return we={createFile:e((async function(e){let i;try{i=await n.stat(e)}catch{}if(i&&i.isFile())return;const a=t.dirname(e);let o=null;try{o=await n.stat(a)}catch(t){if("ENOENT"===t.code)return await r.mkdirs(a),void await n.writeFile(e,"");throw t}o.isDirectory()?await n.writeFile(e,""):await n.readdir(a)})),createFileSync:function(e){let i;try{i=n.statSync(e)}catch{}if(i&&i.isFile())return;const a=t.dirname(e);try{n.statSync(a).isDirectory()||n.readdirSync(a)}catch(e){if(!e||"ENOENT"!==e.code)throw e;r.mkdirsSync(a)}n.writeFileSync(e,"")}}}function yt(){if(Ee)return Te;Ee=1;const e=Z().fromPromise,t=s,n=ne(),r=st(),{pathExists:i}=lt(),{areIdentical:a}=dt();return Te={createLink:e((async function(e,o){let s,l;try{s=await n.lstat(o)}catch{}try{l=await n.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(s&&a(l,s))return;const c=t.dirname(o);await i(c)||await r.mkdirs(c),await n.link(e,o)})),createLinkSync:function(e,i){let o;try{o=n.lstatSync(i)}catch{}try{const t=n.lstatSync(e);if(o&&a(t,o))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const s=t.dirname(i);return n.existsSync(s)||r.mkdirsSync(s),n.linkSync(e,i)}}}function bt(){if(Oe)return Ae;Oe=1;const e=s,t=ne(),{pathExists:n}=lt(),r=Z().fromPromise;return Ae={symlinkPaths:r((async function(r,i){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:r,toDst:r}}const a=e.dirname(i),o=e.join(a,r);if(await n(o))return{toCwd:o,toDst:r};try{await t.lstat(r)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:r,toDst:e.relative(a,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const i=e.dirname(r),a=e.join(i,n);if(t.existsSync(a))return{toCwd:a,toDst:n};if(!t.existsSync(n))throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(i,n)}}}}function St(){if(_e)return ze;_e=1;const e=ne(),t=Z().fromPromise;return ze={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}},ze}function vt(){if(Pe)return We;Pe=1;const e=Z().fromPromise,t=s,n=ne(),{mkdirs:r,mkdirsSync:i}=st(),{symlinkPaths:a,symlinkPathsSync:o}=bt(),{symlinkType:l,symlinkTypeSync:c}=St(),{pathExists:d}=lt(),{areIdentical:u}=dt();return We={createSymlink:e((async function(e,i,o){let s;try{s=await n.lstat(i)}catch{}if(s&&s.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(i)]);if(u(t,r))return}const c=await a(e,i);e=c.toDst;const p=await l(c.toCwd,o),m=t.dirname(i);return await d(m)||await r(m),n.symlink(e,i,p)})),createSymlinkSync:function(e,r,a){let s;try{s=n.lstatSync(r)}catch{}if(s&&s.isSymbolicLink()){const t=n.statSync(e),i=n.statSync(r);if(u(t,i))return}const l=o(e,r);e=l.toDst,a=c(l.toCwd,a);const d=t.dirname(r);return n.existsSync(d)||i(d),n.symlinkSync(e,r,a)}},We}function xt(){if(qe)return Le;qe=1;const{createFile:e,createFileSync:t}=ft(),{createLink:n,createLinkSync:r}=yt(),{createSymlink:i,createSymlinkSync:a}=vt();return Le={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:i,createSymlinkSync:a,ensureSymlink:i,ensureSymlinkSync:a}}function kt(){if(De)return Be;return De=1,Be={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const a=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+a},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}},Be}function wt(){if(Ne)return Me;let e;Ne=1;try{e=te()}catch(t){e=u}const t=Z(),{stringify:n,stripBom:r}=kt();const i=t.fromPromise((async function(n,i={}){"string"==typeof i&&(i={encoding:i});const a=i.fs||e,o=!("throws"in i)||i.throws;let s,l=await t.fromCallback(a.readFile)(n,i);l=r(l);try{s=JSON.parse(l,i?i.reviver:null)}catch(e){if(o)throw e.message=`${n}: ${e.message}`,e;return null}return s}));const a=t.fromPromise((async function(r,i,a={}){const o=a.fs||e,s=n(i,a);await t.fromCallback(o.writeFile)(r,s,a)}));const o={readFile:i,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const i=n.fs||e,a=!("throws"in n)||n.throws;try{let e=i.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(e){if(a)throw e.message=`${t}: ${e.message}`,e;return null}},writeFile:a,writeFileSync:function(t,r,i={}){const a=i.fs||e,o=n(r,i);return a.writeFileSync(t,o,i)}};return Me=o}function Ct(){if(Ie)return Re;Ie=1;const e=wt();return Re={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function Tt(){if(je)return Ge;je=1;const e=Z().fromPromise,t=ne(),n=s,r=st(),i=lt().pathExists;return Ge={outputFile:e((async function(e,a,o="utf-8"){const s=n.dirname(e);return await i(s)||await r.mkdirs(s),t.writeFile(e,a,o)})),outputFileSync:function(e,...i){const a=n.dirname(e);t.existsSync(a)||r.mkdirsSync(a),t.writeFileSync(e,...i)}},Ge}function Et(){if(Ue)return Fe;Ue=1;const{stringify:e}=kt(),{outputFile:t}=Tt();return Fe=async function(n,r,i={}){const a=e(r,i);await t(n,a,i)},Fe}function At(){if(He)return Ve;He=1;const{stringify:e}=kt(),{outputFileSync:t}=Tt();return Ve=function(n,r,i){const a=e(r,i);t(n,a,i)},Ve}function Ot(){if($e)return Ke;$e=1;const e=Z().fromPromise,t=Ct();return t.outputJson=e(Et()),t.outputJsonSync=At(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,Ke=t}function zt(){if(Xe)return Ye;Xe=1;const e=ne(),t=s,{copy:n}=mt(),{remove:r}=ht(),{mkdirp:i}=st(),{pathExists:a}=lt(),o=dt();return Ye=async function(s,l,c={}){const d=c.overwrite||c.clobber||!1,{srcStat:u,isChangingCase:p=!1}=await o.checkPaths(s,l,"move",c);await o.checkParentPaths(s,u,l,"move");const m=t.dirname(l);return t.parse(m).root!==m&&await i(m),async function(t,i,o,s){if(!s)if(o)await r(i);else if(await a(i))throw new Error("dest already exists.");try{await e.rename(t,i)}catch(e){if("EXDEV"!==e.code)throw e;await async function(e,t,i){const a={overwrite:i,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,a),r(e)}(t,i,o)}}(s,l,d,p)}}function _t(){if(Qe)return Ze;Qe=1;const e=te(),t=s,n=mt().copySync,r=ht().removeSync,i=st().mkdirpSync,a=dt();function o(t,i,a){try{e.renameSync(t,i)}catch(e){if("EXDEV"!==e.code)throw e;return function(e,t,i){const a={overwrite:i,errorOnExist:!0,preserveTimestamps:!0};return n(e,t,a),r(e)}(t,i,a)}}return Ze=function(n,s,l){const c=(l=l||{}).overwrite||l.clobber||!1,{srcStat:d,isChangingCase:u=!1}=a.checkPathsSync(n,s,"move",l);return a.checkParentPathsSync(n,d,s,"move"),function(e){const n=t.dirname(e);return t.parse(n).root===n}(s)||i(t.dirname(s)),function(t,n,i,a){if(a)return o(t,n,i);if(i)return r(n),o(t,n,i);if(e.existsSync(n))throw new Error("dest already exists.");return o(t,n,i)}(n,s,c,u)}}function Wt(){if(et)return Je;et=1;const e=Z().fromPromise;return Je={move:e(zt()),moveSync:_t()}}function Pt(){return nt?tt:(nt=1,tt={...ne(),...mt(),...gt(),...xt(),...Ot(),...st(),...Wt(),...Tt(),...lt(),...ht()})}var Lt,qt,Bt,Dt,Mt,Nt,Rt,It,Gt,jt,Ft,Ut,Vt,Ht,Kt,$t,Yt,Xt,Zt,Qt,Jt,en,tn,nn,rn,an,on,sn,ln=Pt();function cn(){if(qt)return Lt;return qt=1,Lt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Lt}function dn(){if(Dt)return Bt;Dt=1;var e="object"==typeof D&&D&&D.Object===Object&&D;return Bt=e}function un(){if(Nt)return Mt;Nt=1;var e=dn(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Mt=n}function pn(){if(It)return Rt;It=1;var e=un();return Rt=function(){return e.Date.now()}}function mn(){if(jt)return Gt;jt=1;var e=/\s/;return Gt=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},Gt}function hn(){if(Ut)return Ft;Ut=1;var e=mn(),t=/^\s+/;return Ft=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n},Ft}function gn(){if(Ht)return Vt;Ht=1;var e=un().Symbol;return Vt=e}function fn(){if($t)return Kt;$t=1;var e=gn(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Kt=function(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch(e){}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}}function yn(){if(Xt)return Yt;Xt=1;var e=Object.prototype.toString;return Yt=function(t){return e.call(t)}}function bn(){if(Qt)return Zt;Qt=1;var e=gn(),t=fn(),n=yn(),r=e?e.toStringTag:void 0;return Zt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Sn(){if(en)return Jt;return en=1,Jt=function(e){return null!=e&&"object"==typeof e}}function vn(){if(nn)return tn;nn=1;var e=bn(),t=Sn();return tn=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function xn(){if(an)return rn;an=1;var e=hn(),t=cn(),n=vn(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;return rn=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=t(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var c=i.test(s);return c||a.test(s)?o(s.slice(2),c?2:8):r.test(s)?NaN:+s}}function kn(){if(sn)return on;sn=1;var e=cn(),t=pn(),n=xn(),r=Math.max,i=Math.min;return on=function(a,o,s){var l,c,d,u,p,m,h=0,g=!1,f=!1,y=!0;if("function"!=typeof a)throw new TypeError("Expected a function");function b(e){var t=l,n=c;return l=c=void 0,h=e,u=a.apply(n,t)}function S(e){var t=e-m;return void 0===m||t>=o||t<0||f&&e-h>=d}function v(){var e=t();if(S(e))return x(e);p=setTimeout(v,function(e){var t=o-(e-m);return f?i(t,d-(e-h)):t}(e))}function x(e){return p=void 0,y&&l?b(e):(l=c=void 0,u)}function k(){var e=t(),n=S(e);if(l=arguments,c=this,m=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(v,o),g?b(e):u}(m);if(f)return clearTimeout(p),p=setTimeout(v,o),b(m)}return void 0===p&&(p=setTimeout(v,o)),u}return o=n(o)||0,e(s)&&(g=!!s.leading,d=(f="maxWait"in s)?r(n(s.maxWait)||0,o):d,y="trailing"in s?!!s.trailing:y),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=m=c=p=void 0},k.flush=function(){return void 0===p?u:x(t())},k},on}var wn,Cn,Tn,En,An,On,zn,_n,Wn,Pn,Ln,qn,Bn,Dn,Mn,Nn,Rn,In,Gn,jn,Fn,Un,Vn,Hn,Kn,$n,Yn,Xn,Zn,Qn,Jn,er,tr,nr,rr,ir,ar,or,sr,lr,cr,dr,ur,pr,mr=M(kn());function hr(){if(Cn)return wn;return Cn=1,wn=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}}function gr(){if(En)return Tn;return En=1,Tn=function(e){return function(t){return null==e?void 0:e[t]}}}function fr(){if(On)return An;On=1;var e=gr()({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});return An=e}function yr(){if(_n)return zn;return _n=1,zn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}}function br(){if(Pn)return Wn;Pn=1;var e=Array.isArray;return Wn=e}function Sr(){if(qn)return Ln;qn=1;var e=gn(),t=yr(),n=br(),r=vn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;return Ln=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return a?a.call(i):"";var o=i+"";return"0"==o&&1/i==-1/0?"-0":o},Ln}function vr(){if(Dn)return Bn;Dn=1;var e=Sr();return Bn=function(t){return null==t?"":e(t)}}function xr(){if(Nn)return Mn;Nn=1;var e=fr(),t=vr(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");return Mn=function(i){return(i=t(i))&&i.replace(n,e).replace(r,"")},Mn}function kr(){if(In)return Rn;In=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;return Rn=function(t){return t.match(e)||[]},Rn}function wr(){if(jn)return Gn;jn=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;return Gn=function(t){return e.test(t)},Gn}function Cr(){if(Un)return Fn;Un=1;var e="\\ud800-\\udfff",t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",o="\\d+",s="["+t+"]",l="["+n+"]",c="[^"+e+i+o+t+n+r+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+r+"]",m="(?:"+l+"|"+c+")",h="(?:"+p+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",S=b+y+("(?:\\u200d(?:"+["[^"+e+"]",d,u].join("|")+")"+b+y+")*"),v="(?:"+[s,d,u].join("|")+")"+S,x=RegExp([p+"?"+l+"+"+g+"(?="+[a,p,"$"].join("|")+")",h+"+"+f+"(?="+[a,p+m,"$"].join("|")+")",p+"?"+m+"+"+g,p+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,v].join("|"),"g");return Fn=function(e){return e.match(x)||[]},Fn}function Tr(){if(Hn)return Vn;Hn=1;var e=kr(),t=wr(),n=vr(),r=Cr();return Vn=function(i,a,o){return i=n(i),void 0===(a=o?void 0:a)?t(i)?r(i):e(i):i.match(a)||[]},Vn}function Er(){if($n)return Kn;$n=1;var e=hr(),t=xr(),n=Tr(),r=RegExp("['’]","g");return Kn=function(i){return function(a){return e(n(t(a).replace(r,"")),i,"")}},Kn}function Ar(){if(Xn)return Yn;return Xn=1,Yn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}}function Or(){if(Qn)return Zn;Qn=1;var e=Ar();return Zn=function(t,n,r){var i=t.length;return r=void 0===r?i:r,!n&&r>=i?t:e(t,n,r)}}function zr(){if(er)return Jn;er=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Jn=function(t){return e.test(t)},Jn}function _r(){if(nr)return tr;return nr=1,tr=function(e){return e.split("")},tr}function Wr(){if(ir)return rr;ir=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*"),d="(?:"+[i+n+"?",n,a,o,t].join("|")+")",u=RegExp(r+"(?="+r+")|"+d+c,"g");return rr=function(e){return e.match(u)||[]},rr}function Pr(){if(or)return ar;or=1;var e=_r(),t=zr(),n=Wr();return ar=function(r){return t(r)?n(r):e(r)},ar}function Lr(){if(lr)return sr;lr=1;var e=Or(),t=zr(),n=Pr(),r=vr();return sr=function(i){return function(a){a=r(a);var o=t(a)?n(a):void 0,s=o?o[0]:a.charAt(0),l=o?e(o,1).join(""):a.slice(1);return s[i]()+l}},sr}function qr(){if(dr)return cr;dr=1;var e=Lr()("toUpperCase");return cr=e}function Br(){if(pr)return ur;pr=1;var e=Er(),t=qr(),n=e((function(e,n,r){return e+(r?" ":"")+t(n)}));return ur=n}var Dr=M(Br()),Mr=["suppressHydrationWarning","className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","crossOrigin","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","fr","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewBox","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan"];var Nr,Rr={},Ir={},Gr={},jr={};function Fr(){return Nr||(Nr=1,function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.MAX_BUFFER_LENGTH=65536;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(r,i){if(!(this instanceof n))return new n(r,i);var a=this;!function(e){for(var n=0,r=t.length;n<r;n++)e[t[n]]=""}(a),a.q=a.c="",a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.opt=i||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase",a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!r,a.noscript=!(!r&&!a.opt.noscript),a.state=y.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(s)),a.trackPosition=!1!==a.opt.position,a.trackPosition&&(a.position=a.line=a.column=0),S(a,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),n.prototype={end:function(){C(this)},write:function(n){var a=this;if(this.error)throw this.error;if(a.closed)return w(a,"Cannot write after close. Assign an onready handler.");if(null===n)return C(a);"object"==typeof n&&(n=n.toString());for(var o=0,s="";s=L(n,o++),a.c=s,s;)switch(a.trackPosition&&(a.position++,"\n"===s?(a.line++,a.column=0):a.column++),a.state){case y.BEGIN:if(a.state=y.BEGIN_WHITESPACE,"\ufeff"===s)continue;P(a,s);continue;case y.BEGIN_WHITESPACE:P(a,s);continue;case y.TEXT:if(a.sawRoot&&!a.closedRoot){for(var b=o-1;s&&"<"!==s&&"&"!==s;)(s=L(n,o++))&&a.trackPosition&&(a.position++,"\n"===s?(a.line++,a.column=0):a.column++);a.textNode+=n.substring(b,o-1)}"<"!==s||a.sawRoot&&a.closedRoot&&!a.strict?(p(s)||a.sawRoot&&!a.closedRoot||T(a,"Text data outside of root node."),"&"===s?a.state=y.TEXT_ENTITY:a.textNode+=s):(a.state=y.OPEN_WAKA,a.startTagPosition=a.position);continue;case y.SCRIPT:"<"===s?a.state=y.SCRIPT_ENDING:a.script+=s;continue;case y.SCRIPT_ENDING:"/"===s?a.state=y.CLOSE_TAG:(a.script+="<"+s,a.state=y.SCRIPT);continue;case y.OPEN_WAKA:if("!"===s)a.state=y.SGML_DECL,a.sgmlDecl="";else if(p(s));else if(g(l,s))a.state=y.OPEN_TAG,a.tagName=s;else if("/"===s)a.state=y.CLOSE_TAG,a.tagName="";else if("?"===s)a.state=y.PROC_INST,a.procInstName=a.procInstBody="";else{if(T(a,"Unencoded <"),a.startTagPosition+1<a.position){var S=a.position-a.startTagPosition;s=new Array(S).join(" ")+s}a.textNode+="<"+s,a.state=y.TEXT}continue;case y.SGML_DECL:(a.sgmlDecl+s).toUpperCase()===r?(v(a,"onopencdata"),a.state=y.CDATA,a.sgmlDecl="",a.cdata=""):a.sgmlDecl+s==="--"?(a.state=y.COMMENT,a.comment="",a.sgmlDecl=""):(a.sgmlDecl+s).toUpperCase()===i?(a.state=y.DOCTYPE,(a.doctype||a.sawRoot)&&T(a,"Inappropriately located doctype declaration"),a.doctype="",a.sgmlDecl=""):">"===s?(v(a,"onsgmldeclaration",a.sgmlDecl),a.sgmlDecl="",a.state=y.TEXT):m(s)?(a.state=y.SGML_DECL_QUOTED,a.sgmlDecl+=s):a.sgmlDecl+=s;continue;case y.SGML_DECL_QUOTED:s===a.q&&(a.state=y.SGML_DECL,a.q=""),a.sgmlDecl+=s;continue;case y.DOCTYPE:">"===s?(a.state=y.TEXT,v(a,"ondoctype",a.doctype),a.doctype=!0):(a.doctype+=s,"["===s?a.state=y.DOCTYPE_DTD:m(s)&&(a.state=y.DOCTYPE_QUOTED,a.q=s));continue;case y.DOCTYPE_QUOTED:a.doctype+=s,s===a.q&&(a.q="",a.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:a.doctype+=s,"]"===s?a.state=y.DOCTYPE:m(s)&&(a.state=y.DOCTYPE_DTD_QUOTED,a.q=s);continue;case y.DOCTYPE_DTD_QUOTED:a.doctype+=s,s===a.q&&(a.state=y.DOCTYPE_DTD,a.q="");continue;case y.COMMENT:"-"===s?a.state=y.COMMENT_ENDING:a.comment+=s;continue;case y.COMMENT_ENDING:"-"===s?(a.state=y.COMMENT_ENDED,a.comment=k(a.opt,a.comment),a.comment&&v(a,"oncomment",a.comment),a.comment=""):(a.comment+="-"+s,a.state=y.COMMENT);continue;case y.COMMENT_ENDED:">"!==s?(T(a,"Malformed comment"),a.comment+="--"+s,a.state=y.COMMENT):a.state=y.TEXT;continue;case y.CDATA:"]"===s?a.state=y.CDATA_ENDING:a.cdata+=s;continue;case y.CDATA_ENDING:"]"===s?a.state=y.CDATA_ENDING_2:(a.cdata+="]"+s,a.state=y.CDATA);continue;case y.CDATA_ENDING_2:">"===s?(a.cdata&&v(a,"oncdata",a.cdata),v(a,"onclosecdata"),a.cdata="",a.state=y.TEXT):"]"===s?a.cdata+="]":(a.cdata+="]]"+s,a.state=y.CDATA);continue;case y.PROC_INST:"?"===s?a.state=y.PROC_INST_ENDING:p(s)?a.state=y.PROC_INST_BODY:a.procInstName+=s;continue;case y.PROC_INST_BODY:if(!a.procInstBody&&p(s))continue;"?"===s?a.state=y.PROC_INST_ENDING:a.procInstBody+=s;continue;case y.PROC_INST_ENDING:">"===s?(v(a,"onprocessinginstruction",{name:a.procInstName,body:a.procInstBody}),a.procInstName=a.procInstBody="",a.state=y.TEXT):(a.procInstBody+="?"+s,a.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:g(c,s)?a.tagName+=s:(E(a),">"===s?z(a):"/"===s?a.state=y.OPEN_TAG_SLASH:(p(s)||T(a,"Invalid character in tag name"),a.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:">"===s?(z(a,!0),_(a)):(T(a,"Forward-slash in opening tag not followed by >"),a.state=y.ATTRIB);continue;case y.ATTRIB:if(p(s))continue;">"===s?z(a):"/"===s?a.state=y.OPEN_TAG_SLASH:g(l,s)?(a.attribName=s,a.attribValue="",a.state=y.ATTRIB_NAME):T(a,"Invalid attribute name");continue;case y.ATTRIB_NAME:"="===s?a.state=y.ATTRIB_VALUE:">"===s?(T(a,"Attribute without value"),a.attribValue=a.attribName,O(a),z(a)):p(s)?a.state=y.ATTRIB_NAME_SAW_WHITE:g(c,s)?a.attribName+=s:T(a,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if("="===s)a.state=y.ATTRIB_VALUE;else{if(p(s))continue;T(a,"Attribute without value"),a.tag.attributes[a.attribName]="",a.attribValue="",v(a,"onattribute",{name:a.attribName,value:""}),a.attribName="",">"===s?z(a):g(l,s)?(a.attribName=s,a.state=y.ATTRIB_NAME):(T(a,"Invalid attribute name"),a.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(p(s))continue;m(s)?(a.q=s,a.state=y.ATTRIB_VALUE_QUOTED):(T(a,"Unquoted attribute value"),a.state=y.ATTRIB_VALUE_UNQUOTED,a.attribValue=s);continue;case y.ATTRIB_VALUE_QUOTED:if(s!==a.q){"&"===s?a.stat