jaidbot
Version:
Personal chat bot for my Twitch stream.
7 lines • 565 kB
JavaScript
#!/usr/bin/env node
/*!
*** jaidbot 4.2.0
*** Copyright © 2019, Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid)
*** @license MIT
*** See https://twitch.tv/jaidchen
!*/!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=187)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"e",(function(){return c})),r.d(e,"b",(function(){return l})),r.d(e,"d",(function(){return h}));var n=r(161),i=r.n(n),o=r(162),s=r.n(o);const a=new i.a({name:"Jaidbot",version:"4.2.0",insecurePort:17441,database:!0,useGot:!0,configSetup:{defaults:s(),secretKeys:["serverPassword","twitchClientId","twitchClientSecret","travisToken","youtubeClientId","youtubeClientSecret","youtubeClientAccessToken","youtubeClientRefreshToken","twitterConsumerKey","twitterConsumerSecret","twitterAccessToken","twitterAccessSecret","githubToken","databasePassword","githubAppPemFilePath","githubAppWebhookSecret"]}}),u=a.config,c=a.logger,l=a.database,h=a.got;a.insecureServer,e.c=a},function(t,e){t.exports=require("sequelize")},function(t,e,r){"use strict";var n=r(9),i=r.n(n),o=r(18),s=r.n(o),a=r(163),u=r.n(a),c=r(0),l=r(6),h=r(19),p=r(58),f=r.n(p),d=r(166),m=r.n(d),y=r(167),D=r.n(y),g=r(10);const v=/^(?<prefix>!)(?<commandName>[\da-z]+)(?<afterCommandName>\s*(?<commandArguments>.*))?/i,E=r(191),b=E.keys();let x={};for(let t=0;t<=b.length-1;t++)(w=x)[(A=b[t]).match(/\.\/(?<key>[\da-z]+)\//i).groups.key]=E(A).default,x=w;var w,A;const C=x;class S extends s.a{handleMessage(t){var e;const r=v.exec(t.text);if(null===r)return;const n=r.groups.commandName.toLowerCase();let i,o;var s,a;r.groups.commandArguments&&(a=r.groups.commandArguments,s=m()(a),o=(i=D()(s))._);const u=C[n];if(u){if(!t.sender.isBroadcaster){if("sub-or-vip"===u.permission&&!t.sender.isVip&&!t.sender.isSub&&!t.sender.isMod)return void F.say(`${t.sender.displayName}, für diesen Befehl musst du Moderator, Subscriber oder VIP sein!`);if("mod"===u.permission&&!t.sender.hasElevatedPermission)return void F.say(`${t.sender.displayName}, für diesen Befehl musst du Moderator sein!`)}if(!u.needsDesktopClient||g.default.hasClient()){if(u.requiredArguments){if(!i)return void F.say(`${t.sender.displayName}, dieser Befehl kann nicht ohne Arguments verwendet werden!`);const e=o.length;if(u.requiredArguments>e)return void F.say(`${t.sender.displayName}, dieser Befehl benötigt ${u.requiredArguments} Arguments!`)}u.handle({...t,commandArguments:i,positionalArguments:o||[],combinedArguments:null==r?void 0:null===(e=r.groups)||void 0===e?void 0:e.commandArguments}).then(t=>{var e;e=t,f()(e)&&F.say(t)}).catch(e=>{c.e.error('Error at execution of "%s": %s',t.text,e),F.say(`Oh, ${t.sender.displayName}, da hat irgendetwas nicht geklappt. Muss sich ${F.streamerUser.getDisplayName()} drum kümmern.`)})}else F.say(`Es besteht gerade keine Verbindung zum Computer von ${F.streamerUser.getDisplayName()}. ResidentSleeper`)}else F.say(`Verstehe ich jetzt nicht, ${t.sender.displayName}! Alle Befehle sind in den Panels unter dem Stream beschrieben.`)}}var F=e.a=new class extends s.a{constructor(...t){super(...t),i()(this,"ready",!1)}async init(){const[t,e]=await Promise.all([h.default.getByTwitchLogin(c.a.twitchStreamerLogin),h.default.getByTwitchLogin(c.a.twitchBotLogin)]);if(this.streamerUser=t,this.botUser=e,!(null==t?void 0:t.accessToken))return c.e.warn("No user auth found for requested streamer user %s",c.a.twitchStreamerLogin),!1;if(!(null==e?void 0:e.accessToken))return c.e.warn("No user auth found for requested bot user %s",c.a.twitchBotLogin),!1;const[r,n]=await Promise.all([t.toTwitchClient(),e.toTwitchClient()]);this.streamerClient=r,this.botClient=n;const i=await u.a.forTwitchClient(n);this.chatClient=i,await i.connect(),await i.waitForRegistration(),await i.join(this.streamerUser.getDisplayName()),c.e.info("Connected bot"),this.chatBot=new S,i.onPrivmsg((t,e,r,n)=>{const i={text:r.trim(),bits:n.totalBits||0,sender:{id:n.userInfo.userId,name:n.userInfo.userName,isBroadcaster:"1"===n.userInfo.badges.get("broadcaster"),isVip:"1"===n.userInfo.badges.get("vip"),isMod:n.userInfo.isMod,isSub:n.userInfo.isSubscriber,color:n.userInfo.color}};i.sender.displayName=n.userInfo.displayName||i.sender.name,i.sender.hasElevatedPermission=Boolean(n.userInfo.userType)||i.sender.isBroadcaster,n.userInfo._userData.has("tmi-sent-ts")&&(i.sentDate=new Date(Number(n.userInfo._userData.get("tmi-sent-ts")))),c.e.debug(`${i.sender.displayName}: ${i.text}`),this.emit("chat",i),this.chatBot.handleMessage(i)}),this.ready=!0}async userNameToDisplayName(t){const e=await this.streamerClient.helix.users.getUserByName(t);return(null==e?void 0:e.displayName)||(null==e?void 0:e.name)||t}async getFollowMoment(t){const e=await this.streamerClient.helix.users.getUserByName(t),r=await e.getFollowTo(this.streamerUser.twitchId);return null!==r&&Object(l.a)(r.followDate)}async getMyStream(){return this.streamerClient.kraken.streams.getStreamByChannel(this.streamerUser.twitchId)}async setCategory(t){await this.streamerClient.kraken.channels.updateChannel(this.streamerUser.twitchId,{game:t})}async getChannelInfo(t){return await this.streamerClient.helix.users.getUserById(t)}async setTitle(t){await this.streamerClient.kraken.channels.updateChannel(this.streamerUser.twitchId,{status:t.trim()})}say(t){this.chatClient?this.chatClient.say(this.streamerUser.loginName,t):c.e.warn('Tried to say "%s", but chatClient was %s',t,this.chatClient)}}},function(t,e,r){"use strict";r.r(e),r.d(e,"schema",(function(){return b})),r.d(e,"indexes",(function(){return x}));var n=r(9),i=r.n(n),o=r(168),s=r.n(o),a=r(58),u=r.n(a),c=r(1),l=r.n(c),h=r(0),p=r(10),f=r(169),d=r.n(f),m=r(6),y=r(19),D=r(41),g=r.n(D),v=r(2);class E extends l.a.Model{static associate(t){E.belongsTo(t.TwitchUser,{as:"Requester",foreignKey:"RequesterId"})}static start(){p.default.on("gotClient",t=>{h.e.debug("Received gotClient in Video model handler"),t.on("videoDownloaded",E.handleVideoDownloaded),t.on("vlcState",E.handleVlcState),t.on("setInfoFile",E.handleSetInfoFile),t.on("getDownloadJobs",t=>E.handleGetDownloadJobs(t))})}static setCurrentVideo(t){E.currentVideoHeartbeatTimestamp=Date.now(),E.currentVideo=t}static async handleVideoDownloaded({videoId:t,bytes:e,videoFile:r,infoFile:n}){try{await E.update({bytes:e,videoFile:r,infoFile:n,downloadedAt:new Date},{where:{id:t}})}catch(t){h.e.error("Error at videoDownloaded handler: %s",t)}}static async handleVlcState(t){try{var e;E.currentVideoHeartbeatTimestamp=Date.now();const r=(null===(e=E.currentVideo)||void 0===e?void 0:e.videoFile)!==t.file;if(!r&&E.currentVideo.hasBeenWatched())return;await h.b.transaction(async e=>{if(r){const r=await E.findOne({transaction:e,where:{videoFile:t.file}});if(!r)return h.e.info("Current video unset"),void(E.currentVideo=null);if(h.e.info(`Current video set to #${r.id}`),E.currentVideo=r,r.hasBeenWatched())return void h.e.debug("Not applying any changes on video, because it has already been watched")}const n=E.currentVideo,i=["timestamp"];n.vlcDuration||(n.vlcDuration=t.durationMs,i.push("vlcDuration")),n.timestamp=t.timestampMs;const o=t.durationMs-t.timestampMs;1e4>o&&(n.watchedAt=Object(m.a)().add(o,"ms").toDate(),i.push("watchedAt"),h.e.debug("Video #%s will be marked as watched",n.id)),await n.save({transaction:e,fields:i})})}catch(t){h.e.error("Error at vlcState handler: %s",t)}}static async handleSetInfoFile({videoId:t,infoFile:e}){try{await E.update({infoFile:e},{where:{id:t}}),h.e.debug("Got info file path for video #%s",t)}catch(t){h.e.error("Error at setInfoFile handler: %s",t)}}static async handleGetDownloadJobs(t){try{return void t(await E.findAll({where:{videoFile:{[c.Op.eq]:null}},raw:!0,attributes:["id","downloadFormat","info"]}))}catch(e){return h.e.error("Error at getDownloadJobs handler: %s",e),void t(!1)}}static async queueByUrl(t,e){let r,n;try{var i;i=(r=await d()(h.a.youtubeDlPath,["--no-color","--ignore-config","--abort-on-error","--netrc","--format",h.a.youtubeDlFormat,"--cookies",h.a.youtubeDlCookieFile,"--dump-single-json",t])).stdout,n=JSON.parse(i)}catch(e){var o,s;h.e.error("Could not use youtube-dl to fetch media information of url %s: %s\ncommand: %s\nstd: %s",t,e,(null===(o=r)||void 0===o?void 0:o.command)||(null==e?void 0:e.command),(null===(s=r)||void 0===s?void 0:s.all)||(null==e?void 0:e.all))}if(!n&&p.default.hasClient()&&(h.e.warn("Could not fetch info for %s, trying on Desktop instead",t),n=await g.a.withDefaultTimeout(p.default.client,"fetchVideoInfo",t)),n)return E.queueByInfo(n,{requestUrl:t,...e});throw new Error(`Could not fetch info for video URL ${t}`)}static async queueByInfo(t,e){var r;const n=t.release_date||t.upload_date;let i;r=n,u()(r)&&(i=Object(m.a)(n,"YYYYMMDD").toDate());const o={title:t.title||t.webpage_url,duration:1e3*t.duration,views:t.view_count,likes:t.like_count,dislikes:t.dislike_count,publishedAt:i,format:t.format,extractor:t.extractor||t.extractor_key,width:t.width,height:t.height,webUrl:t.webpage_url||t.channel_url||t.uploader_url,audioCodec:t.acodec,videoCodec:t.vcodec,formatId:t.format_id,fileExtension:t.ext,description:t.description,thumbnailUrl:t.thumbnail,channelUrl:t.channel_url||t.uploader_url,audioBitrate:t.abr,videoBitrate:t.vbr,mediaId:t.id,ageLimit:t.age_limit,publisher:t.uploader||t.uploader_id,publisherId:t.uploader_id,info:t,downloadFormat:h.a.youtubeDlFormat};if(void 0!==e.priority&&(o.priority=e.priority),e.requesterTwitchId){const t=await y.default.getByTwitchId(e.requesterTwitchId);o.RequesterId=t.id}e.requestUrl&&(o.requestUrl=e.requestUrl);const[s,a]=await E.findOrCreate({where:{extractor:o.extractor,mediaId:o.mediaId},defaults:o});return a?(h.e.info('Requested video #%s "%s" with priority %s',s.id,s.title,s.priority),p.default.hasClient()&&p.default.client.emit("queueInfo",{videoInfo:t,videoId:s.id,downloadFormat:s.downloadFormat})):(await s.update({...o,priority:s.priority+10}),h.e.info('Video #%s "%s" got requested again, increased priority from %s to %s',s.id,s.title,s.priority-10,s.priority)),s}static getCurrentVideo(t=1e4){return E.currentVideo?Date.now()-E.currentVideoHeartbeatTimestamp>t?null:E.currentVideo:null}static getCurrentYoutubeVideo(t){const e=this.getCurrentVideo(t);return e?"youtube"===e.extractor?e:void v.a.say("Beim abgespielten Video scheint es sich nicht um ein YouTube-Video zu handeln."):null}static async getVlcState(){if(!p.default.hasClient())return void v.a.say("Ich habe keine Verbindung zum Computer von Jaidchen und kann somit auch das Kino nicht kontaktieren!");const t=await g.a.withDefaultTimeout(p.default.client,"getVlcState");if("noVlc"!==t)return t;v.a.say("Kein Lebenszeichen aus dem Kino, sorry!")}static async sendVlcCommand(t,e){if(!p.default.hasClient())return void v.a.say("Ich habe keine Verbindung zum Computer von Jaidchen und kann somit auch das Kino nicht kontaktieren!");const r={command:t,...e},n=await g.a.withDefaultTimeout(p.default.client,"sendVlcCommand",r);if("noVlc"!==n){if("commandFailed"!==n)return n;v.a.say("Die Anweisung ans Kino hat jetzt nicht so richtig geklappt.")}else v.a.say("Kein Lebenszeichen aus dem Kino, sorry!")}hasBeenWatched(){return null!==this.watchedAt}async play(){return p.default.hasClient()?this.videoFile?g.a.withDefaultTimeout(p.default.client,"playVideo",s()(this.get(),"videoFile","timestamp")):(h.e.warn("Tried to play video #%s on desktop, but videoFile is not defined",this.id),!1):(h.e.warn("Couldn't play video #%s, not connected to desktop",this.id),!1)}getDurationMs(){return this.vlcDuration||this.duration}getDurationSeconds(){return Math.floor(this.getDurationMs()/1e3)}}i()(E,"currentVideo",null),i()(E,"currentVideoHeartbeatTimestamp",null);const b={title:{allowNull:!1,type:l.a.STRING},duration:l.a.INTEGER,views:l.a.BIGINT,likes:l.a.INTEGER,dislikes:l.a.INTEGER,publishedAt:l.a.DATE,format:l.a.STRING,extractor:l.a.STRING,width:l.a.SMALLINT,height:l.a.SMALLINT,webUrl:l.a.TEXT,audioCodec:l.a.STRING,videoCodec:l.a.STRING,formatId:l.a.STRING,fileExtension:l.a.STRING,description:l.a.TEXT,thumbnailUrl:l.a.TEXT,channelUrl:l.a.TEXT,audioBitrate:l.a.SMALLINT,videoBitrate:l.a.INTEGER,mediaId:l.a.STRING,ageLimit:l.a.SMALLINT,publisher:l.a.STRING,publisherId:l.a.STRING,info:l.a.JSONB,priority:{allowNull:!1,type:l.a.SMALLINT,defaultValue:100},timestamp:l.a.INTEGER,watchedAt:l.a.DATE,skipped:{allowNull:!1,type:l.a.BOOLEAN,defaultValue:!1},liked:l.a.BOOLEAN,requestUrl:l.a.TEXT,infoFile:l.a.STRING,videoFile:l.a.STRING,bytes:l.a.BIGINT,downloadedAt:l.a.DATE,vlcDuration:l.a.INTEGER,downloadFormat:l.a.STRING},x=[{unique:!0,fields:["extractor","mediaId"]}];e.default=E},function(t,e){t.exports=require("path")},function(t,e,r){var n,i,o=r(13),s=r(301),a=r(303),u=r(304),c=r(16);"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var l=function(){};if(c.debuglog?l=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!global[n]){var h=[];Object.defineProperty(global,n,{get:function(){return h}}),o.close=function(t){function e(e,r){return t.call(o,e,(function(t){t||d(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,i,{value:t}),e}(o.close),o.closeSync=function(t){function e(e){t.apply(o,arguments),d()}return Object.defineProperty(e,i,{value:t}),e}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){l(global[n]),r(26).equal(global[n].length,0)}))}function p(t){s(t),t.gracefulify=p,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){return"function"==typeof r&&(n=r,r=null),function t(r,n,i){return e(r,n,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[r,n,i]])}))}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,i){return"function"==typeof n&&(i=n,n=null),function t(e,n,i,o){return r(e,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):f([t,[e,n,i,o]])}))}(t,e,n,i)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,i){return"function"==typeof r&&(i=r,r=null),function t(e,r,i,o){return n(e,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):f([t,[e,r,i,o]])}))}(t,e,r,i)});var i=t.readdir;function o(e){return i.apply(t,e)}if(t.readdir=function(t,e,r){var n=[t];return"function"!=typeof e?n.push(e):r=e,n.push((function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof r&&r.apply(this,arguments),d()):f([o,[n]])})),o(n)},"v0.8"===process.version.substr(0,4)){var u=a(t);h=u.ReadStream,m=u.WriteStream}var c=t.ReadStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var t=this;D(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var l=t.WriteStream;function h(t,e){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function m(t,e){return this instanceof m?(l.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}l&&(m.prototype=Object.create(l.prototype),m.prototype.open=function(){var t=this;D(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return h},set:function(t){h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"FileReadStream",{get:function(){return h},set:function(t){h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"FileWriteStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0});var y=t.open;function D(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,i){return y(e,r,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[e,r,n,i]])}))}(t,e,r,n)}return t.open=D,t}function f(t){l("ENQUEUE",t[0].name,t[1]),global[n].push(t)}function d(){var t=global[n].shift();t&&(l("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}t.exports=p(u(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(t.exports=p(o),o.__patched=!0)},function(t,e,r){"use strict";var n=r(64),i=r.n(n),o=r(164);r.n(o)()(i.a),i.a.locale("de"),e.a=i.a},function(t,e){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},function(t,e,r){"use strict";var n=r(37),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];t.exports=function(t,e){var r,s;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===i.indexOf(e))throw new n('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=(r=e.styleAliases||null,s={},null!==r&&Object.keys(r).forEach((function(t){r[t].forEach((function(e){s[String(e)]=t}))})),s),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";r.r(e);var n=r(18),i=r.n(n),o=r(0),s=r(2),a=r(175),u=new(r.n(a).a)({logger:o.e}),c=r(176),l=r.n(c);e.default=new class extends i.a{async init(){this.socketServer=l()(o.c.insecureServer),this.socketServer.on("connection",t=>t.handshake.query.password!==o.a.serverPassword?(o.e.warn("Received wrong password from client %s, disconnecting",t.handshake.address),void t.disconnect()):this.hasClient()?(o.e.warn("Client %s tried to connect, but another client is already here",t.handshake.address),void t.disconnect()):(this.client=t,t.on("disconnect",()=>{delete this.client,o.e.info("Client %s has disconnected",t.handshake.address),s.a.say("Uff, ich habe die Verbindung zum Computer von Jaidchen verloren.")}),this.emit("gotClient",t),void s.a.say("Ich bin jetzt mit dem Computer von Jaidchen verbunden!"))),u.enhanceServer(this.socketServer)}hasClient(){return Boolean(this.client)}}},function(t,e,r){"use strict";e.fromCallback=function(t){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,r)=>{arguments[arguments.length]=(t,n)=>{if(t)return r(t);e(n)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)}),"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty((function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)}),"name",{value:t.name})}},function(t,e){t.exports=require("has-content")},function(t,e){t.exports=require("fs")},function(t,e,r){"use strict";const n=(0,r(11).fromCallback)(r(306)),i=r(307);t.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}},function(t,e,r){(function(){var e,n,i,o,s,a,u,c,l,h,p,f,d,m,y,D,g,v={}.hasOwnProperty;g=r(21),D=g.isObject,y=g.isFunction,m=g.isEmpty,d=g.getValue,c=null,i=null,o=null,s=null,a=null,p=null,f=null,h=null,u=null,n=null,l=null,e=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=r(78),i=r(80),o=r(81),s=r(82),a=r(83),p=r(88),f=r(89),h=r(90),u=r(139),n=r(7),l=r(362),r(79),e=r(363))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var t,e,r,i,o;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(o="",e=0,r=(i=this.children).length;r>e;e++)(t=i[e]).textContent&&(o+=t.textContent);return o}return null},set:function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.setParent=function(t){var e,r,n,i,o;for(this.parent=t,t&&(this.options=t.options,this.stringify=t.stringify),o=[],r=0,n=(i=this.children).length;n>r;r++)e=i[r],o.push(e.setParent(this));return o},t.prototype.element=function(t,e,r){var n,i,o,s,a,u,c,l,h,p,f;if(u=null,null===e&&null==r&&(e=(h=[{},null])[0],r=h[1]),null==e&&(e={}),e=d(e),D(e)||(r=(p=[e,r])[0],e=p[1]),null!=t&&(t=d(t)),Array.isArray(t))for(o=0,c=t.length;c>o;o++)i=t[o],u=this.element(i);else if(y(t))u=this.element(t.apply());else if(D(t)){for(a in t)if(v.call(t,a))if(f=t[a],y(f)&&(f=f.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))u=this.attribute(a.substr(this.stringify.convertAttKey.length),f);else if(!this.options.separateArrayItems&&Array.isArray(f)&&m(f))u=this.dummy();else if(D(f)&&m(f))u=this.element(a);else if(this.options.keepNullNodes||null!=f)if(!this.options.separateArrayItems&&Array.isArray(f))for(s=0,l=f.length;l>s;s++)i=f[s],(n={})[a]=i,u=this.element(n);else D(f)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?u=this.element(f):(u=this.element(a)).element(f):u=this.element(a,f);else u=this.dummy()}else u=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===t.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===t.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===t.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===t.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===t.indexOf(this.stringify.convertPIKey)?this.instruction(t.substr(this.stringify.convertPIKey.length),r):this.node(t,e,r):this.dummy();if(null==u)throw new Error("Could not create any elements with: "+t+". "+this.debugInfo());return u},t.prototype.insertBefore=function(t,e,r){var n,i,o,s,a;if(null!=t?t.type:void 0)return s=e,(o=t).setParent(this),s?(i=children.indexOf(s),a=children.splice(i),children.push(o),Array.prototype.push.apply(children,a)):children.push(o),o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(t));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,a),n},t.prototype.insertAfter=function(t,e,r){var n,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(t));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,o),n},t.prototype.remove=function(){var t;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return t=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[t,t-t+1].concat([])),this.parent},t.prototype.node=function(t,e,r){var n,i;return null!=t&&(t=d(t)),e||(e={}),e=d(e),D(e)||(r=(i=[e,r])[0],e=i[1]),n=new c(this,t,e),null!=r&&n.text(r),this.children.push(n),n},t.prototype.text=function(t){var e;return D(t)&&this.element(t),e=new f(this,t),this.children.push(e),this},t.prototype.cdata=function(t){var e;return e=new i(this,t),this.children.push(e),this},t.prototype.comment=function(t){var e;return e=new o(this,t),this.children.push(e),this},t.prototype.commentBefore=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.commentAfter=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e+1),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.raw=function(t){var e;return e=new p(this,t),this.children.push(e),this},t.prototype.dummy=function(){return new u(this)},t.prototype.instruction=function(t,e){var r,n,i,o,s;if(null!=t&&(t=d(t)),null!=e&&(e=d(e)),Array.isArray(t))for(o=0,s=t.length;s>o;o++)r=t[o],this.instruction(r);else if(D(t))for(r in t)v.call(t,r)&&(n=t[r],this.instruction(r,n));else y(e)&&(e=e.apply()),i=new h(this,t,e),this.children.push(i);return this},t.prototype.instructionBefore=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.instructionAfter=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.declaration=function(t,e,r){var i,o;return i=this.document(),o=new s(i,t,e,r),0===i.children.length?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},t.prototype.dtd=function(t,e){var r,i,o,s,u,c,l,h,p;for(r=this.document(),i=new a(r,t,e),o=s=0,c=(h=r.children).length;c>s;o=++s)if(h[o].type===n.DocType)return r.children[o]=i,i;for(o=u=0,l=(p=r.children).length;l>u;o=++u)if(p[o].isRoot)return r.children.splice(o,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var t;for(t=this;t;){if(t.type===n.Document)return t.rootObject;if(t.isRoot)return t;t=t.parent}},t.prototype.document=function(){var t;for(t=this;t;){if(t.type===n.Document)return t;t=t.parent}},t.prototype.end=function(t){return this.document().end(t)},t.prototype.prev=function(){var t;if(1>(t=this.parent.children.indexOf(this)))throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[t-1]},t.prototype.next=function(){var t;if(-1===(t=this.parent.children.indexOf(this))||t===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[t+1]},t.prototype.importDocument=function(t){var e;return(e=t.root().clone()).parent=this,e.isRoot=!1,this.children.push(e),this},t.prototype.debugInfo=function(t){var e,r;return null!=(t=t||this.name)||(null!=(e=this.parent)?e.name:void 0)?null==t?"parent: <"+this.parent.name+">":(null!=(r=this.parent)?r.name:void 0)?"node: <"+t+">, parent: <"+this.parent.name+">":"node: <"+t+">":""},t.prototype.ele=function(t,e,r){return this.element(t,e,r)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(t){return this.importDocument(t)},t.prototype.replaceChild=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(t,e){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(t){var r;return this===t?0:this.document()!==t.document()?(r=e.Disconnected|e.ImplementationSpecific,.5>Math.random()?r|=e.Preceding:r|=e.Following,r):this.isAncestor(t)?e.Contains|e.Preceding:this.isDescendant(t)?e.Contains|e.Following:this.isPreceding(t)?e.Preceding:e.Following},t.prototype.isSameNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(t){var e,r,n;if(t.nodeType!==this.nodeType)return!1;if(t.children.length!==this.children.length)return!1;for(e=r=0,n=this.children.length-1;0>n?r>=n:n>=r;e=0>n?--r:++r)if(!this.children[e].isEqualNode(t.children[e]))return!1;return!0},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(t){return!!t&&(t===this||this.isDescendant(t))},t.prototype.isDescendant=function(t){var e,r,n,i;for(r=0,n=(i=this.children).length;n>r;r++){if(t===(e=i[r]))return!0;if(e.isDescendant(t))return!0}return!1},t.prototype.isAncestor=function(t){return t.isDescendant(this)},t.prototype.isPreceding=function(t){var e,r;return e=this.treePosition(t),r=this.treePosition(this),-1!==e&&-1!==r&&r>e},t.prototype.isFollowing=function(t){var e,r;return e=this.treePosition(t),r=this.treePosition(this),-1!==e&&-1!==r&&e>r},t.prototype.treePosition=function(t){var e,r;return r=0,e=!1,this.foreachTreeNode(this.document(),(function(n){if(r++,!e&&n===t)return e=!0})),e?r:-1},t.prototype.foreachTreeNode=function(t,e){var r,n,i,o,s;for(t||(t=this.document()),n=0,i=(o=t.children).length;i>n;n++){if(s=e(r=o[n]))return s;if(s=this.foreachTreeNode(r,e))return s}},t}()}).call(this)},function(t,e){t.exports=require("util")},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=require("events")},function(t,e,r){"use strict";r.r(e),r.d(e,"schema",(function(){return h}));var n=r(1),i=r.n(n),o=r(165),s=r.n(o),a=r(2),u=r(0),c=r(40);class l extends i.a.Model{static associate(t){l.hasMany(t.ChatMessage,{foreignKey:{allowNull:!1}}),l.hasMany(t.Video,{as:"RequestedVideos",foreignKey:"RequesterId"})}static async getByTwitchId(t){return await l.findOne({where:{twitchId:t}})}static async getByTwitchLogin(t){return await l.findOne({where:{loginName:t.toLowerCase()}})}static async prepareByTwitchId(t,{attributes:e,defaults:r}){const n=await l.findOne({where:{twitchId:t},attributes:e});if(n)return n;const i=await a.a.getChannelInfo(t),o=i.displayName||i.name;return u.e.info("New Twitch user %s",o),await l.create({twitchId:t,displayName:o,description:i.description,loginName:i.name,offlineImageUrl:i.offlinePlaceholderUrl,avatarUrl:i.profilePictureUrl,viewCount:i.views,broadcasterType:i.broadcasterType,...r})}async toTwitchClient(){const t=await s.a.withCredentials(u.a.twitchClientId,this.accessToken,c.a,{clientSecret:u.a.twitchClientSecret,refreshToken:this.refreshToken,onRefresh:t=>this.updateToken(t),expiry:this.tokenExpiryDate},{preAuth:!0,initialScopes:c.a});return this.tokenExpiryDate||(u.e.info("Initial expiry date not set for user %s. Forcing access token refresh.",this.loginName),await t.refreshAccessToken()),u.e.info("Created client for user %s",this.loginName),t}async updateToken(t){u.e.info("Refresh token of user %s",this.loginName),this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.tokenExpiryDate=t.expiryDate,await this.save({fields:["accessToken","refreshToken","tokenExpiryDate"]})}getDisplayName(){return this.displayName||this.loginName||this.twitchId}}const h={broadcasterType:i.a.STRING(16),description:i.a.STRING,twitchId:{type:i.a.STRING(16),unique:!0,allowNull:!1},nameColor:i.a.STRING,displayName:i.a.STRING(64),loginName:{allowNull:!1,type:i.a.STRING(64)},offlineImageUrl:i.a.TEXT,avatarUrl:i.a.TEXT,viewCount:{allowNull:!1,type:i.a.INTEGER},accessToken:i.a.STRING,refreshToken:i.a.STRING,followDate:i.a.DATE,tokenExpiryDate:i.a.DATE,offlineTimeMinutes:{type:i.a.INTEGER,defaultValue:0,allowNull:!1},liveWatchTimeMinutes:{type:i.a.INTEGER,defaultValue:0,allowNull:!1},vodcastWatchTimeMinutes:{type:i.a.INTEGER,defaultValue:0,allowNull:!1}};e.default=l},function(t,e,r){"use strict";const n=r(11).fromPromise,i=r(125);t.exports={pathExists:n((function(t){return i.access(t).then(()=>!0).catch(()=>!1)})),pathExistsSync:i.existsSync}},function(t,e){(function(){var e,r,n,i,o,s,a,u=[].slice,c={}.hasOwnProperty;e=function(){var t,e,r,n,i,s;if(s=arguments[0],i=2>arguments.length?[]:u.call(arguments,1),o(Object.assign))Object.assign.apply(null,arguments);else for(t=0,r=i.length;r>t;t++)if(null!=(n=i[t]))for(e in n)c.call(n,e)&&(s[e]=n[e]);return s},o=function(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)},s=function(t){var e;return!!t&&("function"==(e=typeof t)||"object"===e)},n=function(t){return o(Array.isArray)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},i=function(t){var e;if(n(t))return!t.length;for(e in t)if(c.call(t,e))return!1;return!0},a=function(t){var e,r;return s(t)&&(r=Object.getPrototypeOf(t))&&(e=r.constructor)&&"function"==typeof e&&e instanceof e&&Function.prototype.toString.call(e)===Function.prototype.toString.call(Object)},r=function(t){return o(t.valueOf)?t.valueOf():t},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=s,t.exports.isArray=n,t.exports.isEmpty=i,t.exports.isPlainObject=a,t.exports.getValue=r}).call(this)},function(t,e,r){"use strict";var n=r(9),i=r.n(n),o=r(18),s=r.n(o),a=r(6),u=r(36),c=r(2);const l=/(?<nontitle>(?<prefix>.*?)?\s*(?<emoji>💜)\s*)?(?<title>.*)/;e.a=new class extends s.a{constructor(){super(),i()(this,"afkMessage",null),i()(this,"afkStart",null),i()(this,"afkEnd",null),i()(this,"title",null),setInterval(()=>{this.isAfk()&&this.setTitle()},3e4),this.setTitle()}isAfk(){return null!==this.afkMessage}getRemainingTime(){return this.afkEnd-Date.now()}getTitlePrefix(){if(!this.isAfk())return"";const t=this.getRemainingTime();return t>6e4?`[Noch ${a.a.duration(t,"ms").format("h[h] m[m]")} weg] `:"[Im Verspätungsmodus] "}async setTitle(t){if(c.a){if(t&&(this.title=t),!this.title){const{channel:t}=await c.a.getMyStream();this.title=l.exec(t.status).groups.title}await c.a.setTitle(`${this.getTitlePrefix()}💜 ${this.title}`)}}async activate(t,e){var r;this.afkStart=Date.now(),this.afkEnd=this.afkStart+1e3*t,this.afkMessage=e,await this.setTitle(),c.a.say(`Jaidchen geht jetzt mal weg für etwa ${r=1e3*t,Object(u.a)(r)}. Als Nachricht hat er lediglich ein "${e}" hinterlassen.`)}async deactivate(){const t=this.getRemainingTime(),e=(()=>{var e,r,n;return t>12e4?`Oh, der ist ja schon wieder da, ${e=t,Object(u.a)(e)} früher als angekündigt! KomodoHype`:t>-12e4?"Da ist er ja wieder! TPFufun":`"${this.afkMessage}", ja ja. Du wolltest doch eigentlich schon seit ${n=t,r=Math.abs(n),Object(u.a)(r)} wieder da sein. Jaidchen, wo bist du gewesen? HotPokket`})();this.afkStart=null,this.afkEnd=null,this.afkMessage=null,await this.setTitle(),c.a.say(e)}}},function(t,e){t.exports=require("zahl")},function(t,e,r){var n=r(43),i=r(189),o=r(190),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=require("assert")},function(t,e,r){"use strict";var n,i=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,s=Object.getPrototypeOf||function(t){return t.__proto__},a=n,u="undefined"==typeof Uint8Array?n:s(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?s([][Symbol.iterator]()):n,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":n,"$ %AsyncFunction%":n,"$ %AsyncFunctionPrototype%":n,"$ %AsyncGenerator%":n,"$ %AsyncGeneratorFunction%":n,"$ %AsyncGeneratorPrototype%":n,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():n,"$ %Atomics%":"undefined"==typeof Atomics?n:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?n:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?n:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?n:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?n:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":n,"$ %GeneratorFunction%":n,"$ %GeneratorPrototype%":n,"$ %Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?n:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?n:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?n:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?s(s([][Symbol.iterator]())):n,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?n:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?s((new Map)[Symbol.iterator]()):n,"$ %MapPrototype%":"undefined"==typeof Map?n:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?n:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?n:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?n:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?n:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?n:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?n:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?n:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?n:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?n:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?s((new Set)[Symbol.iterator]()):n,"$ %SetPrototype%":"undefined"==typeof Set?n:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?s(""[Symbol.iterator]()):n,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:n,"$ %SymbolPrototype%":o?Symbol.prototype:n,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":i,"$ %TypedArray%":u,"$ %TypedArrayPrototype%":u?u.prototype:n,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?n:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?n:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?n:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?n:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?n:WeakSet.prototype};t.exports=function(t,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+t;if(!(r in c))throw new SyntaxError("intrinsic "+t+" does not exist!");if(n===c[r]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return c[r]}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(module,exports,__webpack_require__){module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(1)),o=r(8),s=r(2),a=r(17);e.validatorSymbol=Symbol("validators"),e.Predicate=class{constructor(t,e={}){this.type=t,this.options=e,this.context={validators:[]},this.context=Object.assign({},this.context,this.options);const r=this.type[0].toLowerCase()+this.type.slice(1);this.addValidator({message:(t,e)=>`Expected ${e&&e.substring(this.type.length+1)||"argument"} to be of type \`${this.type}\` but received type \`${i.default(t)}\``,validator:t=>i.default[r](t)})}[s.testSymbol](t,e,r){for(const{validator:n,message:i}of this.context.validators){if(!0===this.options.optional&&void 0===t)continue;const s=n(t);if(!0===s)continue;let a=r;throw"function"==typeof r&&(a=r()),a=a?`${this.type} \`${a}\``:this.type,new o.ArgumentError(i(t,a,s),e)}}get[e.validatorSymbol](){return this.context.validators}get not(){return a.not(this)}is(t){return this.addValidator({message:(t,e,r)=>r?`(${e}) ${r}`:`Expected ${e} \`${t}\` to pass custom validation function`,validator:t})}addValidator(t){return this.context.validators.push(t),this}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"==typeof URL?r(16).URL:URL,i=Object.prototype.toString,o=t=>e=>typeof e===t,s=t=>!c.nullOrUndefined(t)&&!c.nullOrUndefined(t.constructor)&&c.function_(t.constructor.isBuffer)&&t.constructor.isBuffer(t),a=t=>i.call(t).slice(8,-1)||null,u=t=>e=>a(e)===t;function c(t){switch(t){case null:return"null";case!0:case!1:return"boolean"}switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol"}if(c.function_(t))return"Function";if(c.observable(t))return"Observable";if(Array.isArray(t))return"Array";if(s(t))return"Buffer";const e=a(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}!function(t){const e=t=>"object"==typeof t;t.undefined=o("undefined"),t.string=o("string"),t.number=o("number"),t.function_=o("function"),t.null_=t=>null===t,t.class_=e=>t.function_(e)&&e.toString().startsWith("class "),t.boolean=t=>!0===t||!1===t,t.symbol=o("symbol"),t.numericString=e=>t.string(e)&&e.length>0&&!Number.isNaN(Number(e)),t.array=Array.isArray,t.buffer=s,t.nullOrUndefined=e=>t.null_(e)||t.undefined(e),t.object=r=>!t.nullOrUndefined(r)&&(t.function_(r)||e(r)),t.iterable=e=>!t.nullOrUndefined(e)&&t.function_(e[Symbol.iterator]),t.asyncIterable=e=>!t.nullOrUndefined(e)&&t.function_(e[Symbol.asyncIterator]),t.generator=e=>t.iterable(e)&&t.function_(e.next)&&t.function_(e.throw),t.nativePromise=t=>u("Promise")(t),t.promise=r=>t.nativePromise(r)||(r=>!t.null_(r)&&e(r)&&t.function_(r.then)&&t.function_(r.catch))(r),t.generatorFunction=u("GeneratorFunction"),t.asyncFunction=u("AsyncFunction"),t.boundFunction=e=>t.function_(e)&&!e.hasOwnProperty("prototype"),t.regExp=u("RegExp"),t.date=u("Date"),t.error=u("Error"),t.map=t=>u("Map")(t),t.set=t=>u("Set")(t),t.weakMap=t=>u("WeakMap")(t),t.weakSet=t=>u("WeakSet")(t),t.int8Array=u("Int8Array"),t.uint8Array=u("Uint8Array"),t.uint8ClampedArray=u("Uint8ClampedArray"),t.int16Array=u("Int16Array"),t.uint16Array=u("Uint16Array"),t.int32Array=u("Int32Array"),t.uint32Array=u("Uint32Array"),t.float32Array=u("Float32Array"),t.float64Array=u("Float64Array"),t.arrayBuffer=u("ArrayBuffer"),t.sharedArrayBuffer=u("SharedArrayBuffer"),t.dataView=u("DataView"),t.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype,t.urlInstance=t=>u("URL")(t),t.urlString=e=>{if(!t.string(e))return!1;try{return new n(e),!0}catch(t){return!1}},t.truthy=t=>Boolean(t),t.falsy=t=>!t,t.nan=t=>Number.isNaN(t);const r=new Set(["undefined","string","number","boolean","symbol"]);t.primitive=e=>t.null_(e)||r.has(typeof e),t.integer=t=>Number.isInteger(t),t.safeInteger=t=>Number.isSafeInteger(t),t.plainObject=t=>{let e;return"Object"===a(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))};const i=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);t.typedArray=t=>{const e=a(t);return null!==e&&i.has(e)},t.arrayLike=e=>!t.nullOrUndefined(e)&&!t.function_(e)&&(e=>t.safeInteger(e)&&e>-1)(e.length),t.inRange=(e,r)=>{if(t.number(r))return e>=Math.min(0,r)&&e<=Math.max(r,0);if(t.array(r)&&2===r.length)return e>=Math.min(...r)&&e<=Math.max(...r);throw new TypeError(`Invalid range: ${JSON.stringify(r)}`)};const c=["innerHTML","ownerDocument","style","attributes","nodeValue"];t.domElement=e=>t.object(e)&&1===e.nodeType&&t.string(e.nodeName)&&!t.plainObject(e)&&c.every(t=>t in e),t.observable=t=>!(!t||!(t[Symbol.observable]&&t===t[Symbol.observable]()||t["@@observable"]&&t===t["@@observable"]())),t.nodeStream=r=>!t.nullOrUndefined(r)&&e(r)&&t.function_(r.pipe)&&!t.observable(r),t.infinite=t=>t===1/0||t===-1/0;const l=e=>r=>t.integer(r)&&Math.abs(r%2)===e;t.even=l(0),t.odd=l(1),t.emptyArray=e=>t.array(e)&&0===e.length,t.nonEmptyArray=e=>t.array(e)&&e.length>0,t.emptyString=e=>t.string(e)&&0===e.length,t.nonEmptyString=e=>t.string(e)&&e.length>0,t.emptyStringOrWhitespace=e=>t.emptyString(e)||(e=>t.string(e)&&!1===/\S/.test(e))(e),t.emptyObject=e=>t.object(e)&&!t.map(e)&&!t.set(e)&&0===Object.keys(e).length,t.nonEmptyObject=e=>t.object(e)&&!t.map(e)&&!t.set(e)&&Object.keys(e).length>0,t.emptySet=e=>t.set(e)&&0===e.size,t.nonEmptySet=e=>t.set(e)&&e.size>0,t.emptyMap=e=>t.map(e)&&0===e.size,t.nonEmptyMap=e=>t.map(e)&&e.size>0;const h=(e,r,n)=>{if(!1===t.function_(r))throw new TypeError(`Invalid predicate: ${JSON.stringify(r)}`);if(0===n.length)throw new TypeError("Invalid number of values");return e.call(n,r)};t.any=(t,...e)=>h(Array.prototype.some,t,e),t.all=(t,...e)=>h(Array.prototype.every,t,e)}(c||(c={})),Object.defineProperties(c,{class:{value:c.class_},function:{value:c.function_},null:{value:c.null_}}),e.default=c,t.exports=c,t.exports.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.testSymbol=Symbol("test"),e.isPredicate=t=>Boolean(t&&t[e.testSymbol])},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e,r=5)=>{const n=[];for(const i of e)if(!t.has(i)&&(n.push(i),n.length===r))return n;return 0===n.length||n}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(10)),o=r(11),s=r(0);e.Predicate=s.Predicate;const a=r(2),u=n(r(18)),c=n(r(6)),l=n(r(9)),h=(t,e,r)=>{if(!a.isPredicate(e)&&"string"!=typeof e)throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof e}\``);if(a.isPredicate(e)){const r=i.default();l.default(t,()=>o.inferLabel(r),e)}else l.default(t,e,r)};Object.defineProperties(h,{isValid:{value:(t,e)=>{try{return h(t,e),!0}catch(t){return!1}}},create:{value:(t,e)=>r=>{if(a.isPredicate(t)){const e=i.default();l.default(r,()=>o.inferLabel(e),t)}else l.default(r,t,e)}}}),e.default=c.default(u.default(h));var p=r(6);e.StringPredicate=p.StringPredicate,e.NumberPredicate=p.NumberPredicate,e.BooleanPredicate=p.BooleanPredicate,e.ArrayPredicate=p.ArrayPredicate,e.ObjectPredicate=p.ObjectPredicate,e.DatePredicate=p.DatePredicate,e.ErrorPredicate=p.ErrorPredicate,e.MapPredicate=p.MapPredicate,e.WeakMapPredicate=p.WeakMapPredicate,e.SetPredicate=p.SetPredicate,e.WeakSetPredicate=p.WeakSetPredicate,e.AnyPredicate=p.AnyPredicate},function(t,e,r){(function(t){var r="__lodash_hash_undefined__",n=1,i=2,o=9007199254740991,s="[object Arguments]",a="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",d="[object Map]",m="[object Number]",y="[object Null]",D="[object Object]",g="[object Proxy]",v="[object RegExp]",E="[object Set]",b="[object String]",x="[object Symbol]",w="[object Undefined]",A="[object ArrayBuffer]",C="[object DataView]",S=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[a]=T[A]=T[c]=T[C]=T[l]=T[h]=T[p]=T[d]=T[m]=T[D]=T[v]=T[E]=T[b]=T["[object WeakMap]"]=!1;var O="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,I=O||k||Function("return this")(),N=e&&!e.nodeType&&e,B=N&&"object"==typeof t&&t&&!t.nodeType&&t,P=B&&B.exports===N,_=P&&O.process,j=function(){try{return _&&_.binding&&_.binding("util")}catch(t){}}(),M=j&&j.isTypedArray;function L(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function $(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var U,V,z,J=Array.prototype,G=Function.prototype,q=Object.prototype,X=I["__core-js_shared__"],W=G.toString,K=q.hasOwnProperty,Y=(U=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",H=q.toString,Q=RegExp("^"+W.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=P?I.Buffer:void 0,tt=I.Symbol,et=I.Uint8Array,rt=q.propertyIsEnumerable,nt=J.splice,it=tt?tt.toStringTag:void 0,ot=Object.getOwnPropertySymbols,st=Z?Z.isBuffer:void 0,at=(V=Object.keys,z=Object,function(t){return V(z(t))}),ut=Bt(I,"DataView"),ct=Bt(I,"Map"),lt=Bt(I,"Promise"),ht=Bt(I,"Set"),pt=Bt(I,"WeakMap"),ft=Bt(Object,"create"),dt=Mt(ut),mt=Mt(ct),yt=Mt(lt),Dt=Mt(ht),gt=Mt(pt),vt=tt?tt.prototype:void 0,Et=vt?vt.valueOf:void 0;function bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new wt;++e<r;)this.add(t[e])}function Ct(t){var e=this.__data__=new xt(t);this.size=e.size}function St(t,e){for(var r=t.length;r--;)if(Lt(t[r][0],e))return r;return-1}function Ft(t){return null==t?void 0===t?w:y:it&&it in Object(t)?function(t){var e=K.call(t,it),r=t[it];try{t[it]=void 0;var n=!0}catch(t){}var i=H.call(t);return n&&(e?t[it]=r:delete t[it]),i}(t):function(t){return H.call(t)}(t)}function Tt(t){return Gt(t)&&Ft(t)==s}function Ot(t,e,r,o,u){return t===e||(null==t||null==e||!Gt(t)&&!Gt(e)?t!=t&&e!=e:function(t,e,r,o,u,p){var f=Rt(t),y=Rt(e),g=f?a:_t(t),w=y?a:_t(e),S=(g=g==s?D:g)==D,F=(w=w==s?D:w)==D,T=g==w;if(T&&Ut(t)){if(!Ut(e))return!1;f=!0,S=!1}if(T&&!S)return p||(p=new Ct),f||qt(t)?kt(t,e,r,o,u,p):function(t,e,r,o,s,a,u){switch(r){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case A:return!(t.byteLength!=e.byteLength||!a(new et(t),new et(e)));case c:case l:case m:return Lt(+t,+e);case h:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case d:var p=$;case E:var f=o&n;if(p||(p=R),t.size!=e.size&&!f)return!1;var y=u.get(t);if(y)return y==e;o|=i,u.set(t,e);var D=kt(p(t),p(e),o,s,a,u);return u.delete(t),D;case x:if(Et)return Et.call(t)==Et.call(e)}return!1}(t,e,g,r,o,u,p);if(!(r&n)){var O=S&&K.call(t,"__wrapped__"),k=F&&K.call(e,"__wrapped__");if(O||k){var I=O?t.value():t,N=k?e.value():e;return p||(p=new Ct),u(I,N,r,o,p)}}return!!T&&(p||(p=new Ct),function(t,e,r,i,o,s){var a=r&n,u=It(t),c=u.length;if(c!=It(e).length&&!a)return!1;for(var l=c;l--;){var h=u[l];if(!(a?h in e:K.call(e,h)))return!1}var p=s.get(t);if(p&&s.get(e))return p==e;var f=!0;s.set(t,e),s.set(e,t);for(var d=a;++l<c;){var m=t[h=u[l]],y=e[h];if(i)var D=a?i(y,m,h,e,t,s):i(m,y,h,t,e,s);if(!(void 0===D?m===y||o(m,y,r,i,s):D)){f=!1;break}d||(d="constructor"==h)}if(f&&!d){var g=t.constructor,v=e.constructor;g!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v)&&(f=!1)}return s.delete(t),s.delete(e),f}(t,e,r,o,u,p))}(t,e,r,o,Ot,u))}function kt(t,e,r,o,s,a){var u=r&n,c=t.length,l=e.length;if(!(c==l||u&&l>c))return!1;var h=a.get(t);if(h&&a.get(e))return h==e;var p=-1,f=!0,d=r&i?new At:void 0;for(a.set(t,e),a.set(e,t);++p<c;){var m=t[p],y=e[p];if(o)var D=u?o(y,m,p,e,t,a):o(m,y,p,t,e,a);if(void 0!==D){if(D)continue;f=!1;break}if(d){if(!L(e,(function(t,e){if(n=e,!d.has(n)&&(m===t||s(m,t,r,o,a)))return d.push(e);var n}))){f=!1;break}}else if(m!==y&&!s(m,y,r,o,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function It(t){return function(t,e,r){var n=e(t);return Rt(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,Xt,Pt)}function Nt(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Jt(t)||(e=t,Y&&Y in e))&&(Vt(t)?Q:S).test(Mt(t));var e}(r)?r:void 0}bt.prototype.clear=function(){this.__data__=ft?ft(null):{},this.size=0},bt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt.prototype.get=function(t){var e=this.__data__;if(ft){var n=e[t];return n===r?void 0:n}return K.call(e,t)?e[t]:void 0},bt.prototype.has=function(t){var e=this.__data__;return ft?void 0!==e[t]:K.call(e,t)},bt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ft&&void 0===e?r:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,r=St(e,t);return!(0>r||(r==e.length-1?e.pop():nt.call(e,r,1),--this.size,0))},xt.prototype.get=function(t){var e=this.__data__,r=St(e,t);return 0>r?void 0:e[r][1]},xt.prototype.has=function(t){return St(this.__data__,t)>-1},xt.prototype.set=function(t,e){var r=this.__data__,n=St(r,t);return 0>n?(++this.size,r.push([t,e])):r[n][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new bt,map:new(ct||xt),string:new bt}},wt.prototype.delete=function(t){var e=Nt(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Nt(this,t).get(t)},wt.prototype.has=function(t){return Nt(this,t).has(t)},wt.prototype.set=function(t,e){var r=Nt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},At.prototype.add=At.prototype.push=function(t){return this.__data__.set(t,r),this},At.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.clear=function(){this.__data__=new xt,this.size=0},Ct.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!ct||199>n.length)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(n)}return r.set(t,e),this.size=r.size,this};var Pt=ot?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s)&&(o[i++]=s)}return o}(ot(t),(function(e){return rt.call(t,e)})))}:function(){return[]},_t=Ft;function jt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&e>t}function Mt(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Lt(t,e){return t===e||t!=t&&e!=e}(ut&&_t(new ut(new ArrayBuffer(1)))!=C||ct&&_t(new ct)!=d||lt&&"[object Promise]"!=_t(lt.resolve())||ht&&_t(new ht)!=E||pt&&"[object WeakMap]"!=_t(new pt))&&(_t=function(t){var e=Ft(t),r=e==D?t.constructor:void 0,n=r?Mt(r):"";if(n)switch(n){case dt:return C;case mt:return d;case yt:return"[object Promise]";case Dt:return E;case gt:return"[object WeakMap]"}return e});var $t=Tt(function(){return arguments}())?Tt:function(t){return Gt(t)&&K.call(t,"callee")&&!rt.call(t,"callee")},Rt=Array.isArray,Ut=st||function(){return!1};function Vt(t){if(!Jt(t))return!1;var e=Ft(t);return e==p||e==f||e==u||e==g}function zt(t){return"number"==typeof t&&t>-1&&t%1==0&&o>=t}function Jt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Gt(t){return null!=t&&"object"==typeof t}var qt=M?function(t){return function(e){return t(e)}}(M):function(t){return Gt(t)&&zt(t.length)&&!!T[Ft(t)]};function Xt(t){return null!=(e=t)&&zt(e.length)&&!Vt(e)?function(t,e){var r=Rt(t),n=!r&&$t(t),i=!r&&!n&&Ut(t),o=!r&&!n&&!i&&qt(t),s=r||n||i||o,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=a.length;for(var c in t)!K.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||jt(c,u))||a.push(c);return a}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||q))return at(t);var e,r,n=[];for(var i in Object(t))K.call(t,i)&&"constructor"!=i&&n.push(i);return n}(t);var e}t.exports=function(t,e){return Ot(t,e)}}).call(this,r(24)(t))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(19);e.StringPredicate=n.StringPredicate;const i=r(21);e.NumberPredicate=i.NumberPredicate;const o=r(22);e.BooleanPredicate=o.BooleanPredicate;const s=r(0),a=r(23);e.ArrayPredicate=a.ArrayPredicate;const u=r(25);e.ObjectPredicate=u.ObjectPredicate;const c=r(30);e.DatePredicate=c.DatePredicate;const l=r(31);e.ErrorPredicate=l.ErrorPredicate;const h=r(32);e.MapPredicate=h.MapPredicate;const p=r(33);e.WeakMapPredicate=p.WeakMapPredicate;const f=r(34);e.SetPredicate=f.SetPredicate;const d=r(35);e.WeakSetPredicate=d.WeakSetPredicate;const m=r(36);e.AnyPredicate=m.AnyPredicate,e.default=(t,e)=>(Object.defineProperties(t,{string:{get:()=>new n.StringPredicate(e)},number:{get:()=>new i.NumberPredicate(e)},boolean:{get:()=>new o.BooleanPredicate(e)},undefined:{get:()=>new s.Predicate("undefined",e)},null:{get:()=>new s.Predicate("null",e)},nullOrUndefined:{get:()=>new s.Predicate("nullOrUndefined",e)},nan:{get:()=>new s.Predicate("nan",e)},symbol:{get:()=>new s.Predicate("symbol",e)},array:{get:()=>new a.ArrayPredicate(e)},object:{get:()=>new u.ObjectPredicate(e)},date:{get:()=>new c.DatePredicate(e)},error:{get:()=>new l.ErrorPredicate(e)},map:{get:()=>new h.MapPredicate(e)},weakMap:{get:()=>new p.WeakMapPredicate(e)},set:{get:()=>new f.SetPredicate(e)},weakSet:{get:()=>new d.WeakSetPredicate(e)},function:{get:()=>new s.Predicate("Function",e)},buffer:{get:()=>new s.Predicate("Buffer",e)},regExp:{get:()=>new s.Predicate("RegExp",e)},promise:{get:()=>new s.Predicate("Promise",e)},typedArray:{get:()=>new s.Predicate("TypedArray",e)},int8Array:{get:()=>new s.Predicate("Int8Array",e)},uint8Array:{get:()=>new s.Predicate("Uint8Array",e)},uint8ClampedArray:{get:()=>new s.Predicate("Uint8ClampedArray",e)},int16Array:{get:()=>new s.Predicate("Int16Array",e)},uint16Array:{get:()=>new s.Predicate("Uint16Array",e)},int32Array:{get:()=>new s.Predicate("Int32Array",e)},uint32Array:{get:()=>new s.Predicate("Uint32Array",e)},float32Array:{get:()=>new s.Predicate("Float32Array",e)},float64Array:{get:()=>new s.Predicate("Float64Array",e)},arrayBuffer:{get:()=>new s.Predicate("ArrayBuffer",e)},dataView:{get:()=>new s.Predicate("DataView",e)},iterable:{get:()=>new s.Predicate("Iterable",e)},any:{value:(...t)=>new m.AnyPredicate(t,e)}}),t)},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(4));e.default=(t,e)=>{try{for(const r of t)i.default(r,e);return!0}catch(t){return t.message}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentError=class extends Error{constructor(t,e){super(t),Error.captureStackTrace(this,e),this.name="ArgumentError"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(2);e.default=function t(e,r,i){i[n.testSymbol](e,t,r)}},function(t,e,r){"use strict";const n=()=>{const t=Error.prepareStackTrace;Error.prepareStackTrace=(t,e)=>e;const e=(new Error).stack.slice(1);return Error.prepareStackTrace=t,e};t.exports=n,t.exports.default=n},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(12)),o=n(r(14)),s=n(r(15)),a=/^.*?\((.*?)[,)]/;e.inferLabel=t=>{if(!s.default)return;const e=i.default(),r=t[1],n=r.getFileName(),u=r.getLineNumber(),c=r.getColumnNumber();if(!n||null===u||null===c)return;let l=[];try{l=e.readFileSync(n,"utf8").split("\n")}catch(t){return}let h=l[u-1];if(!h)return;h=h.slice(c-1);const p=a.exec(h);if(!p||!p[1])return;const f=p[1];return o.default(f)||o.default(f.split(".").pop())?f:void 0}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(13));e.default=()=>i.default("fs")},function(module,exports,__webpack_require__){"use strict";let customRequire;Object.defineProperty(exports,"__esModule",{value:!0});try{customRequire="function"===global.__non_webpack_require__?global.__non_webpack_require__:eval("require")}catch(t){customRequire=()=>{}}exports.default=customRequire},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=/^[a-z$_][a-z$_0-9]*$/i,i=new Set(["undefined","null","true","false","super","this","Infinity","NaN"]);e.default=t=>t&&!i.has(t)&&n.test(t)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=Boolean("undefined"!=typeof process&&process.versions&&process.versions.node)},function(t,e){t.exports=__webpack_require__(325)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(0);e.not=t=>{const e=t.addValidator;return t.addValidator=r=>{const i=r.validator,o=r.message;return r.message=(t,e)=>`[NOT] ${o(t,e)}`,r.validator=t=>!i(t),t[n.validatorSymbol].push(r),t.addValidator=e,t},t}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(6));e.default=t=>(Object.defineProperties(t,{optional:{get:()=>i.default({},{optional:!0})}}),t)},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(20)),o=r(0);e.StringPredicate=class extends o.Predicate{constructor(t){super("string",t)}length(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have length \`${t}\`, got \`${e}\``,validator:e=>e.length===t})}minLength(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a minimum length of \`${t}\`, got \`${e}\``,validator:e=>e.length>=t})}maxLength(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a maximum length of \`${t}\`, got \`${e}\``,validator:e=>e.length<=t})}matches(t){return this.addValidator({message:(e,r)=>`Expected ${r} to match \`${t}\`, got \`${e}\``,validator:e=>t.test(e)})}startsWith(t){return this.addValidator({message:(e,r)=>`Expected ${r} to start with \`${t}\`, got \`${e}\``,validator:e=>e.startsWith(t)})}endsWith(t){return this.addValidator({message:(e,r)=>`Expected ${r} to end with \`${t}\`, got \`${e}\``,validator:e=>e.endsWith(t)})}includes(t){return this.addValidator({message:(e,r)=>`Expected ${r} to include \`${t}\`, got \`${e}\``,validator:e=>e.includes(t)})}oneOf(t){return this.addValidator({message:(e,r)=>{let n=JSON.stringify(t);if(t.length>10){const e=t.length-10;n=JSON.stringify(t.slice(0,10)).replace(/]$/,`,…+${e} more]`)}return`Expected ${r} to be one of \`${n}\`, got \`${e}\``},validator:e=>t.includes(e)})}get empty(){return this.addValidator({message:(t,e)=>`Expected ${e} to be empty, got \`${t}\``,validator:t=>""===t})}get nonEmpty(){return this.addValidator({message:(t,e)=>`Expected ${e} to not be empty`,validator:t=>""!==t})}equals(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be equal to \`${t}\`, got \`${e}\``,validator:e=>e===t})}get alphanumeric(){return this.addValidator({message:(t,e)=>`Expected ${e} to be alphanumeric, got \`${t}\``,validator:t=>/^[a-z\d]+$/i.test(t)})}get alphabetical(){return this.addValidator({message:(t,e)=>`Expected ${e} to be alphabetical, got \`${t}\``,validator:t=>/^[a-z]+$/gi.test(t)})}get numeric(){return this.addValidator({message:(t,e)=>`Expected ${e} to be numeric, got \`${t}\``,validator:t=>/^(\+|-)?\d+$/i.test(t)})}get date(){return this.addValidator({message:(t,e)=>`Expected ${e} to be a date, got \`${t}\``,validator:i.default})}get lowercase(){return this.addValidator({message:(t,e)=>`Expected ${e} to be lowercase, got \`${t}\``,validator:t=>""!==t.trim()&&t===t.toLowerCase()})}get uppercase(){return this.addValidator({message:(t,e)=>`Expected ${e} to be uppercase, got \`${t}\``,validator:t=>""!==t.trim()&&t===t.toUpperCase()})}}},function(t,e,r){"use strict";t.exports=function(t){return!isNaN(Date.parse(t))}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(1)),o=r(0);e.NumberPredicate=class extends o.Predicate{constructor(t){super("number",t)}inRange(t,e){return this.addValidator({message:(r,n)=>`Expected ${n} to be in range [${t}..${e}], got ${r}`,validator:r=>i.default.inRange(r,[t,e])})}greaterThan(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be greater than ${t}, got ${e}`,validator:e=>e>t})}greaterThanOrEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be greater than or equal to ${t}, got ${e}`,validator:e=>e>=t})}lessThan(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be less than ${t}, got ${e}`,validator:e=>t>e})}lessThanOrEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be less than or equal to ${t}, got ${e}`,validator:e=>t>=e})}equal(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be equal to ${t}, got ${e}`,validator:e=>e===t})}get integer(){return this.addValidator({message:(t,e)=>`Expected ${e} to be an integer, got ${t}`,validator:t=>i.default.integer(t)})}get finite(){return this.addValidator({message:(t,e)=>`Expected ${e} to be finite, got ${t}`,validator:t=>!i.default.infinite(t)})}get infinite(){return this.addValidator({message:(t,e)=>`Expected ${e} to be infinite, got ${t}`,validator:t=>i.default.infinite(t)})}get positive(){return this.addValidator({message:(t,e)=>`Expected ${e} to be positive, got ${t}`,validator:t=>t>0})}get negative(){return this.addValidator({message:(t,e)=>`Expected ${e} to be negative, got ${t}`,validator:t=>0>t})}get integerOrInfinite(){return this.addValidator({message:(t,e)=>`Expected ${e} to be an integer or infinite, got ${t}`,validator:t=>i.default.integer(t)||i.default.infinite(t)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(0);e.BooleanPredicate=class extends n.Predicate{constructor(t){super("boolean",t)}get true(){return this.addValidator({message:(t,e)=>`Expected ${e} to be true, got ${t}`,validator:t=>!0===t})}get false(){return this.addValidator({message:(t,e)=>`Expected ${e} to be false, got ${t}`,validator:t=>!1===t})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(5)),o=n(r(4)),s=r(0);e.ArrayPredicate=class extends s.Predicate{constructor(t){super("array",t)}length(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have length \`${t}\`, got \`${e.length}\``,validator:e=>e.length===t})}minLength(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a minimum length of \`${t}\`, got \`${e.length}\``,validator:e=>e.length>=t})}maxLength(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a maximum length of \`${t}\`, got \`${e.length}\``,validator:e=>e.length<=t})}startsWith(t){return this.addValidator({message:(e,r)=>`Expected ${r} to start with \`${t}\`, got \`${e[0]}\``,validator:e=>e[0]===t})}endsWith(t){return this.addValidator({message:(e,r)=>`Expected ${r} to end with \`${t}\`, got \`${e[e.length-1]}\``,validator:e=>e[e.length-1]===t})}includes(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to include all elements of \`${JSON.stringify(t)}\`, got \`${JSON.stringify(e)}\``,validator:e=>t.every(t=>-1!==e.indexOf(t))})}includesAny(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to include any element of \`${JSON.stringify(t)}\`, got \`${JSON.stringify(e)}\``,validator:e=>t.some(t=>-1!==e.indexOf(t))})}get empty(){return this.addValidator({message:(t,e)=>`Expected ${e} to be empty, got \`${JSON.stringify(t)}\``,validator:t=>0===t.length})}get nonEmpty(){return this.addValidator({message:(t,e)=>`Expected ${e} to not be empty`,validator:t=>t.length>0})}deepEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(t)}\`, got \`${JSON.stringify(e)}\``,validator:e=>i.default(e,t)})}ofType(t){let e;return this.addValidator({message:(t,r)=>`(${r}) ${e}`,validator:r=>{try{for(const e of r)o.default(e,t);return!0}catch(t){return e=t.message,!1}}})}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(1)),o=n(r(26)),s=n(r(5)),a=r(0),u=n(r(3)),c=n(r(7)),l=n(r(28)),h=r(29);e.ObjectPredicate=class extends a.Predicate{constructor(t){super("object",t)}get plain(){return this.addValidator({message:(t,e)=>`Expected ${e} to be a plain object`,validator:t=>i.default.plainObject(t)})}get empty(){return this.addValidator({message:(t,e)=>`Expected ${e} to be empty, got \`${JSON.stringify(t)}\``,validator:t=>0===Object.keys(t).length})}get nonEmpty(){return this.addValidator({message:(t,e)=>`Expected ${e} to not be empty`,validator:t=>Object.keys(t).length>0})}valuesOfType(t){return this.addValidator({message:(t,e,r)=>`(${e}) ${r}`,validator:e=>{const r=Object.keys(e).map(t=>e[t]);return c.default(r,t)}})}deepValuesOfType(t){return this.addValidator({message:(t,e,r)=>`(${e}) ${r}`,validator:e=>l.default(e,t)})}deepEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(t)}\`, got \`${JSON.stringify(e)}\``,validator:e=>s.default(e,t)})}instanceOf(t){return this.addValidator({message:(e,r)=>{let n=e.constructor.name;return n&&"Object"!==n||(n=JSON.stringify(e)),`Expected ${r} \`${n}\` to be of type \`${t.name}\``},validator:e=>e instanceof t})}hasKeys(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have keys \`${JSON.stringify(r)}\``,validator:e=>u.default({has:t=>o.default.has(e,t)},t)})}hasAnyKeys(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any key of \`${JSON.stringify(t)}\``,validator:e=>t.some(t=>o.default.has(e,t))})}partialShape(t){return this.addValidator({message:(t,e,r)=>`${r.replace("Expected","Expected property")} in ${e}`,validator:e=>h.partial(e,t)})}exactShape(t){return this.addValidator({message:(t,e,r)=>`${r.replace("Expected","Expected property")} in ${e}`,validator:e=>h.exact(e,t)})}}},function(t,e,r){"use strict";const n=r(27);function i(t){const e=t.split("."),r=[];for(let t=0;t<e.length;t++){let n=e[t];for(;"\\"===n[n.length-1]&&void 0!==e[t+1];)n=n.slice(0,-1)+".",n+=e[++t];r.push(n)}return r}t.exports={get(t,e,r){if(!n(t)||"string"!=typeof e)return void 0===r?t:r;const o=i(e);for(let e=0;e<o.length;e++){if(!Object.prototype.propertyIsEnumerable.call(t,o[e]))return r;if(null==(t=t[o[e]])){if(e!==o.length-1)return r;break}}return t},set(t,e,r){if(!n(t)||"string"!=typeof e)return t;const o=t,s=i(e);for(let e=0;e<s.length;e++){const i=s[e];n(t[i])||(t[i]={}),e===s.length-1&&(t[i]=r),t=t[i]}return o},delete(t,e){if(!n(t)||"string"!=typeof e)return;const r=i(e);for(let e=0;e<r.length;e++){const i=r[e];if(e===r.length-1)return void delete t[i];if(t=t[i],!n(t))return}},has(t,e){if(!n(t)||"string"!=typeof e)return!1;const r=i(e);for(let e=0;e<r.length;e++){if(!n(t))return!1;if(!(r[e]in t))return!1;t=t[r[e]]}return!0}}},function(t,e,r){"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(1)),o=n(r(4)),s=(t,e)=>i.default.plainObject(t)?Object.keys(t).every(r=>s(t[r],e)):(o.default(t,e),!0);e.default=(t,e)=>{try{return s(t,e)}catch(t){return t.message}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(1)),o=n(r(9)),s=r(2);e.partial=function t(e,r,n){try{for(const a of Object.keys(r)){const u=n?`${n}.${a}`:a;if(s.isPredicate(r[a]))o.default(e[a],u,r[a]);else if(i.default.plainObject(r[a])){const n=t(e[a],r[a],u);if(!0!==n)return n}}return!0}catch(t){return t.message}},e.exact=function t(e,r,n){try{const a=new Set(Object.keys(e));for(const u of Object.keys(r)){a.delete(u);const c=n?`${n}.${u}`:u;if(s.isPredicate(r[u]))o.default(e[u],c,r[u]);else if(i.default.plainObject(r[u])){const n=t(e[u],r[u],c);if(!0!==n)return n}}if(a.size>0){const t=Array.from(a.keys())[0];return`Did not expect property \`${n?`${n}.${t}`:t}\` to exist, got \`${e[t]}\``}return!0}catch(t){return t.message}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(0);e.DatePredicate=class extends n.Predicate{constructor(t){super("date",t)}before(t){return this.addValidator({message:(e,r)=>`Expected ${r} ${e.toISOString()} to be before ${t.toISOString()}`,validator:e=>e.getTime()<t.getTime()})}after(t){return this.addValidator({message:(e,r)=>`Expected ${r} ${e.toISOString()} to be after ${t.toISOString()}`,validator:e=>e.getTime()>t.getTime()})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(0);e.ErrorPredicate=class extends n.Predicate{constructor(t){super("error",t)}name(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have name \`${t}\`, got \`${e.name}\``,validator:e=>e.name===t})}message(t){return this.addValidator({message:(e,r)=>`Expected ${r} message to be \`${t}\`, got \`${e.message}\``,validator:e=>e.message===t})}messageIncludes(t){return this.addValidator({message:(e,r)=>`Expected ${r} message to include \`${t}\`, got \`${e.message}\``,validator:e=>e.message.includes(t)})}hasKeys(...t){return this.addValidator({message:(e,r)=>`Expected ${r} message to have keys \`${t.join("`, `")}\``,validator:e=>t.every(t=>e.hasOwnProperty(t))})}instanceOf(t){return this.addValidator({message:(e,r)=>`Expected ${r} \`${e.name}\` to be of type \`${t.name}\``,validator:e=>e instanceof t})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(5)),o=r(0),s=n(r(3)),a=n(r(7));e.MapPredicate=class extends o.Predicate{constructor(t){super("Map",t)}size(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have size \`${t}\`, got \`${e.size}\``,validator:e=>e.size===t})}minSize(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a minimum size of \`${t}\`, got \`${e.size}\``,validator:e=>e.size>=t})}maxSize(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a maximum size of \`${t}\`, got \`${e.size}\``,validator:e=>e.size<=t})}hasKeys(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have keys \`${JSON.stringify(r)}\``,validator:e=>s.default(e,t)})}hasAnyKeys(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any key of \`${JSON.stringify(t)}\``,validator:e=>t.some(t=>e.has(t))})}hasValues(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have values \`${JSON.stringify(r)}\``,validator:e=>s.default(new Set(e.values()),t)})}hasAnyValues(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any value of \`${JSON.stringify(t)}\``,validator:e=>{const r=new Set(e.values());return t.some(t=>r.has(t))}})}keysOfType(t){return this.addValidator({message:(t,e,r)=>`(${e}) ${r}`,validator:e=>a.default(e.keys(),t)})}valuesOfType(t){return this.addValidator({message:(t,e,r)=>`(${e}) ${r}`,validator:e=>a.default(e.values(),t)})}get empty(){return this.addValidator({message:(t,e)=>`Expected ${e} to be empty, got \`${JSON.stringify(Array.from(t))}\``,validator:t=>0===t.size})}get nonEmpty(){return this.addValidator({message:(t,e)=>`Expected ${e} to not be empty`,validator:t=>t.size>0})}deepEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(Array.from(t))}\`, got \`${JSON.stringify(Array.from(e))}\``,validator:e=>i.default(e,t)})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(0),o=n(r(3));e.WeakMapPredicate=class extends i.Predicate{constructor(t){super("WeakMap",t)}hasKeys(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have keys \`${JSON.stringify(r)}\``,validator:e=>o.default(e,t)})}hasAnyKeys(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any key of \`${JSON.stringify(t)}\``,validator:e=>t.some(t=>e.has(t))})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(5)),o=r(0),s=n(r(3)),a=n(r(7));e.SetPredicate=class extends o.Predicate{constructor(t){super("Set",t)}size(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have size \`${t}\`, got \`${e.size}\``,validator:e=>e.size===t})}minSize(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a minimum size of \`${t}\`, got \`${e.size}\``,validator:e=>e.size>=t})}maxSize(t){return this.addValidator({message:(e,r)=>`Expected ${r} to have a maximum size of \`${t}\`, got \`${e.size}\``,validator:e=>e.size<=t})}has(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have items \`${JSON.stringify(r)}\``,validator:e=>s.default(e,t)})}hasAny(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any item of \`${JSON.stringify(t)}\``,validator:e=>t.some(t=>e.has(t))})}ofType(t){return this.addValidator({message:(t,e,r)=>`(${e}) ${r}`,validator:e=>a.default(e,t)})}get empty(){return this.addValidator({message:(t,e)=>`Expected ${e} to be empty, got \`${JSON.stringify(Array.from(t))}\``,validator:t=>0===t.size})}get nonEmpty(){return this.addValidator({message:(t,e)=>`Expected ${e} to not be empty`,validator:t=>t.size>0})}deepEqual(t){return this.addValidator({message:(e,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(Array.from(t))}\`, got \`${JSON.stringify(Array.from(e))}\``,validator:e=>i.default(e,t)})}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(0),o=n(r(3));e.WeakSetPredicate=class extends i.Predicate{constructor(t){super("WeakSet",t)}has(...t){return this.addValidator({message:(t,e,r)=>`Expected ${e} to have items \`${JSON.stringify(r)}\``,validator:e=>o.default(e,t)})}hasAny(...t){return this.addValidator({message:(e,r)=>`Expected ${r} to have any item of \`${JSON.stringify(t)}\``,validator:e=>t.some(t=>e.has(t))})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(8),i=r(2);e.AnyPredicate=class{constructor(t,e={}){this.predicates=t,this.options=e}[i.testSymbol](t,e,r){const i=["Any predicate failed with the following errors:"];for(const n of this.predicates)try{return void e(t,r,n)}catch(e){if(void 0===t&&!0===this.options.optional)return;i.push(`- ${e.message}`)}throw new n.ArgumentError(i.join("\n"),e)}}}]);const __export__=module.exports.default;module.exports=__export__,module.exports.default=__export__},function(t,e,r){"use strict";const n=r(72),i=r(5),o=r(4),s=r(75);t.exports=new class{get defaultCompressionLevel(){return s.constants.Z_BEST_COMPRESSION}ensureContainingFolder(t){return new Promise((e,r)=>{const i=o.dirname(t);n.pathExists(i,(t,o)=>{t?r(t):o?e():n.mkdirs(i,t=>{t?r(t):e()})})})}readMaybeCompressedFile(t,{compressed:e=!1}={}){return new Promise((r,n)=>{i.readFile(t,(i,o)=>{i&&n(i),t.endsWith(".gz")||e?s.gunzip(o,(t,e)=>{t&&n(t),r(e.toString("utf8"))}):r(o.toString("utf8"))})})}writeMaybeCompressedFile(t,e,r,n,{compress:o=!1,compressionLevel:a=this.defaultCompressionLevel}={}){t.endsWith(".gz")||o?s.gzip(e,{level:a},(e,o)=>{e&&n(e),i.writeFile(t,o,t=>{t?n(t):r()})}):i.writeFile(t,e,t=>{t?n(t):r()})}}},function(t,e,r){"use strict";var n=r(147);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";function n(t){return null==t}t.exports.isNothing=n,t.exports.isObject=function(t){return"object"==typeof t&&null!==t},t.exports.toArray=function(t){return Array.isArray(t)?t:n(t)?[]:[t]},t.exports.repeat=function(t,e){var r,n="";for(r=0;e>r;r+=1)n+=t;return n},t.exports.isNegativeZero=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},t.exports.extend=function(t,e){var r,n,i,o;if(e)for(r=0,n=(o=Object.keys(e)).length;n>r;r+=1)t[i=o[r]]=e[i];return t}},function(t,e,r){"use strict";var n=r(32),i=r(37),o=r(8);function s(t,e,r){var n=[];return t.include.forEach((function(t){r=s(t,e,r)})),t[e].forEach((function(t){r.forEach((function(e,r){e.tag===t.tag&&e.kind===t.kind&&n.push(r)})),r.push(t)})),r.filter((function(t,e){return-1===n.indexOf(e)}))}function a(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach((function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(t){r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;e>t;t+=1)arguments[t].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}a.DEFAULT=null,a.create=function(){var t,e;switch(arguments.length){case 1:t=a.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(t=n.toArray(t),e=n.toArray(e),!t.every((function(t){return t instanceof a})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every((function(t){return t instanceof o})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new a({include:t,explicit:e})},t.exports=a},function(t,e,r){"use strict";var n=r(100),i=r(0);const o=new n.google.auth.OAuth2(i.a.youtubeClientId,i.a.youtubeClientSecret,i.a.youtubeClientRedirectUrl);o.setCredentials({refresh_token:i.a.youtubeClientRefreshToken});const s=n.google.youtube({auth:o,version:"v3"});e.a=s},function(t,e,r){var n=r(115),i=r(248),o=r(17);t.exports=function(t){return(o(t)?n:i)(t)}},function(t,e,r){"use strict";r.d(e,"b",(function(){return o}));var n=r(98),i=r.n(n);const o=i.a.humanizer({language:"de",conjunction:" und ",serialComma:!1,maxDecimalPoints:0,units:["h","m"]});e.a=i.a.humanizer({language:"de",conjunction:" und dann noch mal ",serialComma:!1,maxDecimalPoints:0})},function(t,e,r){"use strict";function n(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=n},function(t,e,r){"use strict";var n=r(33);t.exports=new n({include:[r(159)],implicit:[r(405),r(406)],explicit:[r(407),r(409),r(410),r(411)]})},function(t,e){t.exports=require("polling-emitter")},function(t,e,r){"use strict";e.a=["user:read:broadcast","user:edit:broadcast","user:edit","channel:read:subscriptions","channel_editor","channel_read","chat:read","chat:edit"]},function(t,e){t.exports=require("emit-promise")},function(t,e){t.exports=require("koa-passport")},function(t,e,r){var n=r(44).Symbol;t.exports=n},function(t,e,r){var n=r(105),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){var n=r(17),i=r(196),o=r(197),s=r(66);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,r){var n=r(24),i=r(25);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(65)(Object,"create");t.exports=n},function(t,e,r){var n=r(49);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(221);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&e>t}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(310);t.exports={remove:n(i),removeSync:i.sync}},function(t,e,r){t.exports=v;var n=r(13),i=r(132),o=r(54),s=(o.Minimatch,r(348)),a=r(18).EventEmitter,u=r(4),c=r(26),l=r(76),h=r(350),p=r(133),f=(p.alphasort,p.alphasorti,p.setopts),d=p.ownProp,m=r(351),y=(r(16),p.childrenIgnored),D=p.isIgnored,g=r(135);function v(t,e,r){if("function"==typeof e&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return h(t,e)}return new b(t,e,r)}v.sync=h;var E=v.GlobSync=h.GlobSync;function b(t,e,r){if("function"==typeof e&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(t,e)}if(!(this instanceof b))return new b(t,e,r);f(this,t,e),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=g(r),this.on("error",r),this.on("end",(function(t){r(null,t)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var o=!0,s=0;n>s;s++)this._process(this.minimatch.set[s],s,!1,a);function a(){--i._processing,i._processing>0||(o?process.nextTick((function(){i._finish()})):i._finish())}o=!1}v.glob=v,v.hasMagic=function(t,e){var r=function(t,e){if(null===e||"object"!=typeof e)return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}({},e);r.noprocess=!0;var n=new b(t,r).minimatch.set;if(!t)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},v.Glob=b,s(b,a),b.prototype._finish=function(){if(c(this instanceof b),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},b.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--t&&e._finish()}},b.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r),o=this,s=n.length;if(0===s)return e();var a=this.matches[t]=Object.create(null);n.forEach((function(r,n){r=o._makeAbs(r),i.realpath(r,o.realpathCache,(function(n,i){n?"stat"===n.syscall?a[r]=!0:o.emit("error",n):a[i]=!0,0==--s&&(o.matches[t]=a,e())}))}))},b.prototype._mark=function(t){return p.mark(this,t)},b.prototype._makeAbs=function(t){return p.makeAbs(this,t)},b.prototype.abort=function(){this.aborted=!0,this.emit("abort")},b.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},b.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);for(this._processQueue.length=0,e=0;e<n.length;e++){var i=n[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},b.prototype._process=function(t,e,r,n){if(c(this instanceof b),c("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,e,r,n]);else{for(var i,s=0;"string"==typeof t[s];)s++;switch(s){case t.length:return void this._processSimple(t.join("/"),e,n);case 0:i=null;break;default:i=t.slice(0,s).join("/")}var a,u=t.slice(s);null===i?a=".":l(i)||l(t.join("/"))?(i&&l(i)||(i="/"+i),a=i):a=i;var h=this._makeAbs(a);if(y(this,a))return n();u[0]===o.GLOBSTAR?this._processGlobStar(i,a,h,u,e,r,n):this._processReaddir(i,a,h,u,e,r,n)}},b.prototype._processReaddir=function(t,e,r,n,i,o,s){var a=this;this._readdir(r,o,(function(u,c){return a._processReaddir2(t,e,r,n,i,o,c,s)}))},b.prototype._processReaddir2=function(t,e,r,n,i,o,s,a){if(!s)return a();for(var c=n[0],l=!!this.minimatch.negate,h=c._glob,p=this.dot||"."===h.charAt(0),f=[],d=0;d<s.length;d++)("."!==(y=s[d]).charAt(0)||p)&&(l&&!t?!y.match(c):y.match(c))&&f.push(y);var m=f.length;if(0===m)return a();if(1===n.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),d=0;m>d;d++){var y=f[d];t&&(y="/"!==t?t+"/"+y:t+y),"/"!==y.charAt(0)||this.nomount||(y=u.join(this.root,y)),this._emitMatch(i,y)}return a()}for(n.shift(),d=0;m>d;d++)y=f[d],t&&(y="/"!==t?t+"/"+y:t+y),this._process([y].concat(n),i,o,a);a()},b.prototype._emitMatch=function(t,e){if(!this.aborted&&!D(this,e))if(this.paused)this._emitQueue.push([t,e]);else{var r=l(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}}},b.prototype._readdirInGlobStar=function(t,e){if(!this.aborted){if(this.follow)return this._readdir(t,!1,e);var r=this,i=m("lstat\0"+t,(function(n,i){if(n&&"ENOENT"===n.code)return e();var o=i&&i.isSymbolicLink();r.symlinks[t]=o,o||!i||i.isDirectory()?r._readdir(t,!1,e):(r.cache[t]="FILE",e())}));i&&n.lstat(t,i)}},b.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=m("readdir\0"+t+"\0"+e,r))){if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||"FILE"===i)return r();if(Array.isArray(i))return r(null,i)}n.readdir(t,function(t,e,r){return function(n,i){n?t._readdirError(e,n,r):t._readdirEntries(e,i,r)}}(this,t,r))}},b.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];i="/"===t?t+i:t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}},b.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=e.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e)}return r()}},b.prototype._processGlobStar=function(t,e,r,n,i,o,s){var a=this;this._readdir(r,o,(function(u,c){a._processGlobStar2(t,e,r,n,i,o,c,s)}))},b.prototype._processGlobStar2=function(t,e,r,n,i,o,s,a){if(!s)return a();var u=n.slice(1),c=t?[t]:[],l=c.concat(u);this._process(l,i,!1,a);var h=this.symlinks[r],p=s.length;if(h&&o)return a();for(var f=0;p>f;f++)if("."!==s[f].charAt(0)||this.dot){var d=c.concat(s[f],u);this._process(d,i,!0,a);var m=c.concat(s[f],n);this._process(m,i,!0,a)}a()},b.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,(function(i,o){n._processSimple2(t,e,i,o,r)}))},b.prototype._processSimple2=function(t,e,r,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(t&&l(t)&&!this.nomount){var o=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=u.join(this.root,t):(t=u.resolve(this.root,t),o&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()},b.prototype._stat=function(t,e){var r=this._makeAbs(t),i="/"===t.slice(-1);if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return e(null,o);if(i&&"FILE"===o)return e()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&"FILE"===a?e():e(null,a,s)}var u=this,c=m("stat\0"+r,(function(i,o){if(o&&o.isSymbolicLink())return n.stat(r,(function(n,i){n?u._stat2(t,r,null,o,e):u._stat2(t,r,n,i,e)}));u._stat2(t,r,i,o,e)}));c&&n.lstat(r,c)},b.prototype._stat2=function(t,e,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[e]=!1,i();var o="/"===t.slice(-1);if(this.statCache[e]=n,"/"===e.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&"FILE"===s?i():i(null,s,n)}},function(t,e,r){t.exports=h,h.Minimatch=p;var n={sep:"/"};try{n=r(4)}catch(t){}var i=h.GLOBSTAR=p.GLOBSTAR={},o=r(345),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="().*{}+?[]^$\\!".split("").reduce((function(t,e){return t[e]=!0,t}),{});function l(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach((function(t){r[t]=e[t]})),Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function h(t,e,r){if("string"!=typeof e)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new p(e,r).match(t))}function p(t,e){if(!(this instanceof p))return new p(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==n.sep&&(t=t.split(n.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function f(t,e){if(e||(e=this instanceof p?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}h.filter=function(t,e){return e=e||{},function(r,n,i){return h(r,t,e)}},h.defaults=function(t){if(!t||!Object.keys(t).length)return h;var e=h,r=function(r,n,i){return e.minimatch(r,n,l(t,i))};return r.Minimatch=function(r,n){return new e.Minimatch(r,l(t,n))},r},p.defaults=function(t){return t&&Object.keys(t).length?h.defaults(t).Minimatch:p},p.prototype.debug=function(){},p.prototype.make=function(){if(!this._made){var t=this.pattern,e=this.options;if(e.nocomment||"#"!==t.charAt(0))if(t){this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map((function(t){return t.split(/\/+/)})),this.debug(this.pattern,r),r=r.map((function(t,e,r){return t.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(t){return-1===t.indexOf(!1)})),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0}},p.prototype.parseNegate=function(){var t=this.pattern,e=!1,r=0;if(!this.options.nonegate){for(var n=0,i=t.length;i>n&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.substr(r)),this.negate=e}},h.braceExpand=function(t,e){return f(t,e)},p.prototype.braceExpand=f,p.prototype.parse=function(t,e){if(t.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===t)return i;if(""===t)return"";var n,o="",l=!!r.nocase,h=!1,p=[],f=[],m=!1,y=-1,D=-1,g="."===t.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function E(){if(n){switch(n){case"*":o+=u,l=!0;break;case"?":o+=a,l=!0;break;default:o+="\\"+n}v.debug("clearStateChar %j %j",n,o),n=!1}}for(var b,x=0,w=t.length;w>x&&(b=t.charAt(x));x++)if(this.debug("%s\t%s %s %j",t,x,o,b),h&&c[b])o+="\\"+b,h=!1;else switch(b){case"/":return!1;case"\\":E(),h=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,x,o,b),m){this.debug(" in class"),"!"===b&&x===D+1&&(b="^"),o+=b;continue}v.debug("call clearStateChar %j",n),E(),n=b,r.noext&&E();continue;case"(":if(m){o+="(";continue}if(!n){o+="\\(";continue}p.push({type:n,start:x-1,reStart:o.length,open:s[n].open,close:s[n].close}),o+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,o),n=!1;continue;case")":if(m||!p.length){o+="\\)";continue}E(),l=!0;var A=p.pop();o+=A.close,"!"===A.type&&f.push(A),A.reEnd=o.length;continue;case"|":if(m||!p.length||h){o+="\\|",h=!1;continue}E(),o+="|";continue;case"[":if(E(),m){o+="\\"+b;continue}m=!0,D=x,y=o.length,o+=b;continue;case"]":if(x===D+1||!m){o+="\\"+b,h=!1;continue}if(m){var C=t.substring(D+1,x);try{RegExp("["+C+"]")}catch(t){var S=this.parse(C,d);o=o.substr(0,y)+"\\["+S[0]+"\\]",l=l||S[1],m=!1;continue}}l=!0,m=!1,o+=b;continue;default:E(),h?h=!1:!c[b]||"^"===b&&m||(o+="\\"),o+=b}for(m&&(C=t.substr(D+1),S=this.parse(C,d),o=o.substr(0,y)+"\\["+S[0],l=l||S[1]),A=p.pop();A;A=p.pop()){var F=o.slice(A.reStart+A.open.length);this.debug("setting tail",o,A),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,r){return r||(r="\\"),e+e+r+"|"})),this.debug("tail=%j\n %s",F,F,A,o);var T="*"===A.type?u:"?"===A.type?a:"\\"+A.type;l=!0,o=o.slice(0,A.reStart)+T+"\\("+F}E(),h&&(o+="\\\\");var O=!1;switch(o.charAt(0)){case".":case"[":case"(":O=!0}for(var k=f.length-1;k>-1;k--){var I=f[k],N=o.slice(0,I.reStart),B=o.slice(I.reStart,I.reEnd-8),P=o.slice(I.reEnd-8,I.reEnd),_=o.slice(I.reEnd);P+=_;var j=N.split("(").length-1,M=_;for(x=0;j>x;x++)M=M.replace(/\)[+*?]?/,"");var L="";""===(_=M)&&e!==d&&(L="$"),o=N+B+_+L+P}if(""!==o&&l&&(o="(?=.)"+o),O&&(o=g+o),e===d)return[o,l];if(!l)return function(t){return t.replace(/\\(.)/g,"$1")}(t);var $=r.nocase?"i":"";try{var R=new RegExp("^"+o+"$",$)}catch(t){return new RegExp("$.")}return R._glob=t,R._src=o,R};var d={};h.makeRe=function(t,e){return new p(t,e||{}).makeRe()},p.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?u:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=e.nocase?"i":"",o=t.map((function(t){return t.map((function(t){return t===i?r:"string"==typeof t?function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(t):t._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch(t){this.regexp=!1}return this.regexp},h.match=function(t,e,r){var n=new p(e,r=r||{});return t=t.filter((function(t){return n.match(t)})),n.options.nonull&&!t.length&&t.push(e),t},p.prototype.match=function(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var r=this.options;"/"!==n.sep&&(t=t.split(n.sep).join("/")),t=t.split(/\/+/),this.debug(this.pattern,"split",t);var i,o,s=this.set;for(this.debug(this.pattern,"set",s),o=t.length-1;o>=0&&!(i=t[o]);o--);for(o=0;o<s.length;o++){var a=s[o],u=t;if(r.matchBase&&1===a.length&&(u=[i]),this.matchOne(u,a,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},p.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,u=e.length;a>o&&u>s;o++,s++){this.debug("matchOne loop");var c,l=e[s],h=t[o];if(this.debug(e,l,h),!1===l)return!1;if(l===i){this.debug("GLOBSTAR",[e,l,h]);var p=o,f=s+1;if(f===u){for(this.debug("** at the end");a>o;o++)if("."===t[o]||".."===t[o]||!n.dot&&"."===t[o].charAt(0))return!1;return!0}for(;a>p;){var d=t[p];if(this.debug("\nglobstar while",t,p,e,f,d),this.matchOne(t.slice(p),e.slice(f),r))return this.debug("globstar found match!",p,a,d),!0;if("."===d||".."===d||!n.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,p,e,f);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!r||(this.debug("\n>>> no match, partial?",t,p,e,f),p!==a))}if("string"==typeof l?(c=n.nocase?h.toLowerCase()===l.toLowerCase():h===l,this.debug("string match",l,h,c)):(c=h.match(l),this.debug("pattern match",l,h,c)),!c)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?")}},function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(15),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t),this.value=""}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.substringData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(t){return!!e.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.data===this.data},e}(e)}).call(this)},function(t,e){(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},function(t,e,r){"use strict";var n=r(33);t.exports=n.DEFAULT=new n({include:[r(38)],explicit:[r(412),r(413),r(414)]})},function(t,e,r){var n=r(24),i=r(17),o=r(25);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},function(t,e,r){"use strict";e.a=t=>t.replace(/\W/g,"").toLowerCase()},function(t,e,r){"use strict";r.r(e),r.d(e,"schema",(function(){return f}));var n=r(9),i=r.n(n),o=r(61),s=r.n(o),a=r(1),u=r.n(a),c=r(171),l=r.n(c),h=r(2);class p extends u.a.Model{static start(){h.a.ready&&setInterval(p.tick,6e4)}static async tick(){const t=l()(),e={},r=s.a.freemem(),n=s.a.totalmem(),i=n-r,o=await h.a.getMyStream();o&&(e.averageFps=o.averageFPS,e.delay=o.delay,e.viewers=o.viewers,e.game=o.game,e.videoHeight=o.videoHeight,e.streamType=o.type,e.streamStartedAt=o.startDate,e.language=o.channel.broadcasterLanguage,e.isMature=o.channel.isMature,e.followers=o.channel.followers,e.streamTitle=o.channel.status),e.ramUsage=Math.floor(i/n*100),e.executionTime=t().milliseconds,await p.create(e),p.currentStatus=e}}i()(p,"currentStatus",void 0);const f={averageFps:u.a.SMALLINT,delay:u.a.SMALLINT,game:u.a.STRING,videoHeight:u.a.SMALLINT,streamType:u.a.STRING(16),streamStartedAt:u.a.DATE,isMature:u.a.BOOLEAN,followers:u.a.INTEGER,streamTitle:u.a.STRING,language:u.a.STRING,viewers:u.a.INTEGER,ramUsage:{allowNull:!1,type:u.a.SMALLINT},executionTime:{allowNull:!1,type:u.a.INTEGER}};e.default=p},function(t,e){t.exports=require("os")},function(t,e){t.exports=require("p-map")},function(t,e){t.exports=require("magina")},function(t,e){t.exports=require("moment")},function(t,e,r){var n=r(204),i=r(208);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(225);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(46);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){var n=r(230),i=r(25),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(106),i=r(69);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},function(t,e,r){"use strict";t.exports=Object.assign({},r(125),r(126),r(130),r(309),r(311),r(317),r(14),r(321),r(322),r(323),r(20),r(52));const n=r(13);Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(t.exports,"promises",{get:()=>n.promises})},function(t,e){t.exports=require("stream")},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(318);t.exports={readJson:n(i.readFile),readJsonSync:i.readFileSync,writeJson:n(i.writeFile),writeJsonSync:i.writeFileSync}},function(t,e){t.exports=require("zlib")},function(t,e,r){"use strict";function n(t){return"/"===t.charAt(0)}function i(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),r=e[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(e[2]||n)}t.exports="win32"===process.platform?i:n,t.exports.posix=n,t.exports.win32=i},function(t,e){(function(){e.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},function(t,e,r){(function(){var e,n,i,o,s,a,u,c,l={}.hasOwnProperty;c=r(21),u=c.isObject,a=c.isFunction,s=c.getValue,o=r(15),e=r(7),n=r(138),i=r(79),t.exports=function(t){function r(t,n,i){var o,s,a,u;if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children))for(s=0,a=(u=t.children).length;a>s;s++)if((o=u[s]).type===e.DocType){o.name=this.name;break}}return function(t,e){for(var r in e)l.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new i(this.attribs)),this.attributeMap}}),r.prototype.clone=function(){var t,e,r,n;for(e in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attribs={},n=this.attribs)l.call(n,e)&&(t=n[e],r.attribs[e]=t.clone());return r.children=[],this.children.forEach((function(t){var e;return(e=t.clone()).parent=r,r.children.push(e)})),r},r.prototype.attribute=function(t,e){var r,i;if(null!=t&&(t=s(t)),u(t))for(r in t)l.call(t,r)&&(i=t[r],this.attribute(r,i));else a(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.attribs[t]=new n(this,t,""):null!=e&&(this.attribs[t]=new n(this,t,e));return this},r.prototype.removeAttribute=function(t){var e,r,n;if(null==t)throw new Error("Missing attribute name. "+this.debugInfo());if(t=s(t),Array.isArray(t))for(r=0,n=t.length;n>r;r++)e=t[r],delete this.attribs[e];else delete this.attribs[t];return this},r.prototype.toString=function(t){return this.options.writer.element(this,this.options.writer.filterOptions(t))},r.prototype.att=function(t,e){return this.attribute(t,e)},r.prototype.a=function(t,e){return this.attribute(t,e)},r.prototype.getAttribute=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t].value:null},r.prototype.setAttribute=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNode=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t]:null},r.prototype.setAttributeNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNS=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNodeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNodeNS=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.hasAttribute=function(t){return this.attribs.hasOwnProperty(t)},r.prototype.hasAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttribute=function(t,e){return this.attribs.hasOwnProperty(t)?this.attribs[t].isId:e},r.prototype.setIdAttributeNS=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttributeNode=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(t){var e,n,i;if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t))return!1;if(t.namespaceURI!==this.namespaceURI)return!1;if(t.prefix!==this.prefix)return!1;if(t.localName!==this.localName)return!1;if(t.attribs.length!==this.attribs.length)return!1;for(e=n=0,i=this.attribs.length-1;0>i?n>=i:i>=n;e=0>i?--n:++n)if(!this.attribs[e].isEqualNode(t.attribs[e]))return!1;return!0},r}(o)}).call(this)},function(t,e){(function(){t.exports=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(t){return this.nodes[t]},t.prototype.setNamedItem=function(t){var e;return e=this.nodes[t.nodeName],this.nodes[t.nodeName]=t,e||null},t.prototype.removeNamedItem=function(t){var e;return e=this.nodes[t],delete this.nodes[t],e||null},t.prototype.item=function(t){return this.nodes[Object.keys(this.nodes)[t]]||null},t.prototype.getNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(7),n=r(55),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(7),n=r(55),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(21).isObject,n=r(15),e=r(7),t.exports=function(t){function r(t,n,o,s){var a;r.__super__.constructor.call(this,t),i(n)&&(n=(a=n).version,o=a.encoding,s=a.standalone),n||(n="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.declaration(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i,o,s,a,u,c,l={}.hasOwnProperty;c=r(21).isObject,u=r(15),e=r(7),n=r(84),o=r(85),i=r(86),s=r(87),a=r(79),t.exports=function(t){function r(t,n,i){var o,s,a,u,l,h;if(r.__super__.constructor.call(this,t),this.type=e.DocType,t.children)for(s=0,a=(u=t.children).length;a>s;s++)if((o=u[s]).type===e.Element){this.name=o.name;break}this.documentObject=t,c(n)&&(n=(l=n).pubID,i=l.sysID),null==i&&(i=(h=[n,i])[0],n=h[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return function(t,e){for(var r in e)l.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"entities",{get:function(){var t,r,n,i,o;for(i={},r=0,n=(o=this.children).length;n>r;r++)(t=o[r]).type!==e.EntityDeclaration||t.pe||(i[t.name]=t);return new a(i)}}),Object.defineProperty(r.prototype,"notations",{get:function(){var t,r,n,i,o;for(i={},r=0,n=(o=this.children).length;n>r;r++)(t=o[r]).type===e.NotationDeclaration&&(i[t.name]=t);return new a(i)}}),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),r.prototype.element=function(t,e){var r;return r=new i(this,t,e),this.children.push(r),this},r.prototype.attList=function(t,e,r,i,o){var s;return s=new n(this,t,e,r,i,o),this.children.push(s),this},r.prototype.entity=function(t,e){var r;return r=new o(this,!1,t,e),this.children.push(r),this},r.prototype.pEntity=function(t,e){var r;return r=new o(this,!0,t,e),this.children.push(r),this},r.prototype.notation=function(t,e){var r;return r=new s(this,t,e),this.children.push(r),this},r.prototype.toString=function(t){return this.options.writer.docType(this,this.options.writer.filterOptions(t))},r.prototype.ele=function(t,e){return this.element(t,e)},r.prototype.att=function(t,e,r,n,i){return this.attList(t,e,r,n,i)},r.prototype.ent=function(t,e){return this.entity(t,e)},r.prototype.pent=function(t,e){return this.pEntity(t,e)},r.prototype.not=function(t,e){return this.notation(t,e)},r.prototype.up=function(){return this.root()||this.documentObject},r.prototype.isEqualNode=function(t){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.name===this.name&&t.publicId===this.publicId&&t.systemId===this.systemId},r}(u)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(15),e=r(7),t.exports=function(t){function r(t,n,i,o,s,a){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(21).isObject,n=r(15),e=r(7),t.exports=function(t){function r(t,n,o,s){if(r.__super__.constructor.call(this,t),null==o)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=e.EntityDeclaration,i(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(t){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(15),e=r(7),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(15),e=r(7),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=e.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),r.prototype.toString=function(t){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(7),n=r(15),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(7),n=r(55),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var t,e,r;for(r="",e=this.previousSibling;e;)r=e.data+r,e=e.previousSibling;for(r+=this.data,t=this.nextSibling;t;)r+=t.data,t=t.nextSibling;return r}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},r.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(n)}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(7),n=r(55),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},r.prototype.isEqualNode=function(t){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.target===this.target},r}(n)}).call(this)},function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(141),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.document=function(t,e){var r,n,i,o,s;for(e=this.filterOptions(e),o="",n=0,i=(s=t.children).length;i>n;n++)r=s[n],o+=this.writeChildNode(r,e,0);return e.pretty&&o.slice(-e.newline.length)===e.newline&&(o=o.slice(0,-e.newline.length)),o},e}(e)}).call(this)},function(t,e,r){"use strict";var n=r(143),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,u=a&&function(){var t={};try{for(var e in a(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,r,n){var i;e in t&&("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())||(u?a(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],r[o[a]])};l.supportsDescriptors=!!u,t.exports=l},function(t,e,r){"use strict";var n=global.Symbol,i=r(376);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(t,e,r){"use strict";var n=Function.prototype.toString,i=/^\s*class\b/,o=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(a)return function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}}(t);if(o(t))return!1;var e=s.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},function(t,e,r){"use strict";var n=r(147),i=r(27)("%Function%"),o=i.apply,s=i.call;t.exports=function(){return n.apply(s,arguments)},t.exports.apply=function(){return n.apply(o,arguments)}},function(t,e,r){"use strict";var n=r(33);t.exports=new n({explicit:[r(398),r(399),r(400)]})},function(t,e,r){var n=r(232);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},function(t,e){t.exports=require("humanize-duration")},function(t,e){t.exports=require("parse-duration")},function(t,e){t.exports=require("googleapis")},function(t,e,r){var n=r(24),i=r(25);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},function(t,e){t.exports=require("millify")},function(t,e){t.exports=require("@octokit/rest")},function(t,e){t.exports=require("regex-parser")},function(t,e){var r="object"==typeof global&&global&&global.Object===Object&&global;t.exports=r},function(t,e,r){var n=r(24),i=r(28);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(109),i=r(49),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];o.call(t,e)&&i(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(110);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(65),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,r){var n=r(112),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=r(u),n(t,this,c)}}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(235),i=r(237)(n);t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(247);t.exports=function(t){var e=t.length;return e?t[n(0,e-1)]:void 0}},function(t,e,r){var n=r(107);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},function(t,e,r){var n=r(118),i=r(257),o=r(71);t.exports=function(t){return o(t)?n(t):i(t)}},function(t,e,r){var n=r(250),i=r(68),o=r(17),s=r(251),a=r(51),u=r(253),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),h=!r&&!l&&s(t),p=!r&&!l&&!h&&u(t),f=r||l||h||p,d=f?n(t.length,String):[],m=d.length;for(var y in t)!e&&!c.call(t,y)||f&&("length"==y||h&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||d.push(y);return d}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(114),i=r(111),o=r(113);t.exports=function(t,e){return o(i(t,e,n),t+"")}},function(t,e,r){var n=r(49),i=r(71),o=r(51),s=r(28);t.exports=function(t,e,r){if(!s(r))return!1;var a=typeof e;return!!("number"==a?i(r)&&o(e,r.length):"string"==a&&e in r)&&n(r[e],t)}},function(t,e,r){var n=r(24),i=r(25),o=r(269);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!o(t)}},function(t,e){t.exports=/<%=([\s\S]+?)%>/g},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(5),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=n(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,r,n,o,s){return"function"==typeof s?i.read(t,e,r,n,o,s):new Promise((s,a)=>{i.read(t,e,r,n,o,(t,e,r)=>{if(t)return a(t);s({bytesRead:e,buffer:r})})})},e.write=function(t,e,...r){return"function"==typeof r[r.length-1]?i.write(t,e,...r):new Promise((n,o)=>{i.write(t,e,...r,(t,e,r)=>{if(t)return o(t);n({bytesWritten:e,buffer:r})})})}},function(t,e,r){"use strict";t.exports={copySync:r(305)}},function(t,e,r){"use strict";const n=r(4);function i(t){return(t=n.normalize(n.resolve(t)).split(n.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,r){"use strict";const n=r(5),i=r(61),o=r(4);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const r=new Date(1435410243862);n.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);n.open(e,"r+",(i,o)=>{if(i)return t(i);n.futimes(o,r,r,r=>{if(r)return t(r);n.close(o,r=>{if(r)return t(r);n.stat(e,(e,r)=>{if(e)return t(e);t(null,r.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);n.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const r=n.openSync(t,"r+");return n.futimesSync(r,e,e),n.closeSync(r),n.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,r,i){n.open(t,"r+",(t,o)=>{if(t)return i(t);n.futimes(o,e,r,t=>{n.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,r){const i=n.openSync(t,"r+");return n.futimesSync(i,e,r),n.closeSync(i)}}},function(t,e,r){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,r){"use strict";const n=r(11).fromCallback;t.exports={copy:n(r(308))}},function(t,e,r){const n=r(330);t.exports={isSpaceSeparator:t=>n.Space_Separator.test(t),isIdStartChar:t=>t>="a"&&"z">=t||t>="A"&&"Z">=t||"$"===t||"_"===t||n.ID_Start.test(t),isIdContinueChar:t=>t>="a"&&"z">=t||t>="A"&&"Z">=t||t>="0"&&"9">=t||"$"===t||"_"===t||""===t||""===t||n.ID_Continue.test(t),isDigit:t=>/[0-9]/.test(t),isHexDigit:t=>/[0-9A-Fa-f]/.test(t)}},function(t,e,r){t.exports=l,l.realpath=l,l.sync=h,l.realpathSync=h,l.monkeypatch=function(){n.realpath=l,n.realpathSync=h},l.unmonkeypatch=function(){n.realpath=i,n.realpathSync=o};var n=r(13),i=n.realpath,o=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),u=r(344);function c(t){return t&&"realpath"===t.syscall&&("ELOOP"===t.code||"ENOMEM"===t.code||"ENAMETOOLONG"===t.code)}function l(t,e,r){if(a)return i(t,e,r);"function"==typeof e&&(r=e,e=null),i(t,e,(function(n,i){c(n)?u.realpath(t,e,r):r(n,i)}))}function h(t,e){if(a)return o(t,e);try{return o(t,e)}catch(r){if(c(r))return u.realpathSync(t,e);throw r}}},function(t,e,r){function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.alphasort=c,e.alphasorti=u,e.setopts=function(t,e,r){if(r||(r={}),r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=!1!==r.strict,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),function(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(l))}(t,r),t.changedCwd=!1;var o=process.cwd();n(r,"cwd")?(t.cwd=i.resolve(r.cwd),t.changedCwd=t.cwd!==o):t.cwd=o,t.root=r.root||i.resolve(t.cwd,"/"),t.root=i.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=s(t.cwd)?t.cwd:h(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,t.minimatch=new a(e,r),t.options=t.minimatch.options},e.ownProp=n,e.makeAbs=h,e.finish=function(t){for(var e=t.nounique,r=e?[]:Object.create(null),n=0,i=t.matches.length;i>n;n++){var o=t.matches[n];if(o&&0!==Object.keys(o).length){var s=Object.keys(o);e?r.push.apply(r,s):s.forEach((function(t){r[t]=!0}))}else if(t.nonull){var a=t.minimatch.globSet[n];e?r.push(a):r[a]=!0}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(t.nocase?u:c)),t.mark){for(n=0;n<r.length;n++)r[n]=t._mark(r[n]);t.nodir&&(r=r.filter((function(e){var r=!/\/$/.test(e),n=t.cache[e]||t.cache[h(t,e)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}t.ignore.length&&(r=r.filter((function(e){return!p(t,e)}))),t.found=r},e.mark=function(t,e){var r=h(t,e),n=t.cache[r],i=e;if(n){var o="DIR"===n||Array.isArray(n),s="/"===e.slice(-1);if(o&&!s?i+="/":!o&&s&&(i=i.slice(0,-1)),i!==e){var a=h(t,i);t.statCache[a]=t.statCache[r],t.cache[a]=t.cache[r]}}return i},e.isIgnored=p,e.childrenIgnored=function(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return!(!t.gmatcher||!t.gmatcher.match(e))}))};var i=r(4),o=r(54),s=r(76),a=o.Minimatch;function u(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function c(t,e){return t.localeCompare(e)}function l(t){var e=null;if("/**"===t.slice(-3)){var r=t.replace(/(\/\*\*)+$/,"");e=new a(r,{dot:!0})}return{matcher:new a(t,{dot:!0}),gmatcher:e}}function h(t,e){var r=e;return r="/"===e.charAt(0)?i.join(t.root,e):s(e)||""===e?e:t.changedCwd?i.resolve(t.cwd,e):i.resolve(e),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function p(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return t.matcher.match(e)||!(!t.gmatcher||!t.gmatcher.match(e))}))}},function(t,e){t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){n[t]=e[t]})),n;function n(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(t){n[t]=i[t]})),n}}},function(t,e,r){var n=r(134);function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},function(t,e){(function(){t.exports=function(){function t(){}return t.prototype.hasFeature=function(t,e){return!0},t.prototype.createDocumentType=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},function(t,e,r){(function(){var e,n,i,o,s,a,u,c={}.hasOwnProperty;u=r(21).isPlainObject,i=r(136),n=r(359),o=r(15),e=r(7),a=r(140),s=r(91),t.exports=function(t){function r(t){r.__super__.constructor.call(this,null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new n,t||(t={}),t.writer||(t.writer=new s),this.options=t,this.stringify=new a(t)}return function(t,e){for(var r in e)c.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"implementation",{value:new i}),Object.defineProperty(r.prototype,"doctype",{get:function(){var t,r,n,i;for(r=0,n=(i=this.children).length;n>r;r++)if((t=i[r]).type===e.DocType)return t;return null}}),Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(r.prototype,"origin",{get:function(){return null}}),Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(r.prototype,"contentType",{get:function(){return null}}),r.prototype.end=function(t){var e;return e={},t?u(t)&&(e=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(e))},r.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},r.prototype.createElement=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTextNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createComment=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createCDATASection=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createProcessingInstruction=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttribute=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEntityReference=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.importNode=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createElementNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementById=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.adoptNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.renameNode=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEvent=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createNodeIterator=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTreeWalker=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(o)}).call(this)},function(t,e,r){(function(){var e;e=r(7),r(15),t.exports=function(){function t(t,r,n){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==r)throw new Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(n),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"specified",{get:function(){return!0}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.attribute(this,this.options.writer.filterOptions(t))},t.prototype.debugInfo=function(t){return null==(t=t||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},t.prototype.isEqualNode=function(t){return t.namespaceURI===this.namespaceURI&&t.prefix===this.prefix&&t.localName===this.localName&&t.value===this.value},t}()}).call(this)},function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(15),e=r(7),t.exports=function(t){function r(t){r.__super__.constructor.call(this,t),this.type=e.Dummy}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return""},r}(n)}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},r={}.hasOwnProperty;t.exports=function(){function t(t){var n,i,o;for(n in this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.options=t,this.options.version||(this.options.version="1.0"),i=t.stringify||{})r.call(i,n)&&(o=i[n],this[n]=o)}return t.prototype.name=function(t){return this.options.noValidation?t:this.assertLegalName(""+t||"")},t.prototype.text=function(t){return this.options.noValidation?t:this.assertLegalChar(this.textEscape(""+t||""))},t.prototype.cdata=function(t){return this.options.noValidation?t:(t=(t=""+t||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(t))},t.prototype.comment=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return this.options.noValidation?t:""+t||""},t.prototype.attValue=function(t){return this.options.noValidation?t:this.assertLegalChar(this.attEscape(t=""+t||""))},t.prototype.insTarget=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.insValue=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return this.assertLegalChar(t)},t.prototype.xmlVersion=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return this.assertLegalChar(t)},t.prototype.xmlStandalone=function(t){return this.options.noValidation?t:t?"yes":"no"},t.prototype.dtdPubID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdSysID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdElementValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttType=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttDefault=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdEntityValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdNData=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,r;if(this.options.noValidation)return t;if(e="","1.0"===this.options.version){if(e=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e))throw new Error("Invalid character in string: "+t+" at index "+r.index)}else if("1.1"===this.options.version&&(e=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e)))throw new Error("Invalid character in string: "+t+" at index "+r.index);return t},t.prototype.assertLegalName=function(t){if(this.options.noValidation)return t;if(this.assertLegalChar(t),!t.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return t},t.prototype.textEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},t.prototype.attEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},t}()}).call(this)},function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(21).assign,e=r(7),r(82),r(83),r(80),r(81),r(78),r(88),r(89),r(90),r(139),r(84),r(86),r(85),r(87),n=r(56),t.exports=function(){function t(t){var e,r,n;for(e in t||(t={}),this.options=t,r=t.writer||{})o.call(r,e)&&(n=r[e],this["_"+e]=this[e],this[e]=n)}return t.prototype.filterOptions=function(t){var e,r,o,s,a,u,c,l;return t||(t={}),t=i({},this.options,t),(e={writer:this}).pretty=t.pretty||!1,e.allowEmpty=t.allowEmpty||!1,e.indent=null!=(r=t.indent)?r:" ",e.newline=null!=(o=t.newline)?o:"\n",e.offset=null!=(s=t.offset)?s:0,e.dontPrettyTextNodes=null!=(a=null!=(u=t.dontPrettyTextNodes)?u:t.dontprettytextnodes)?a:0,e.spaceBeforeSlash=null!=(c=null!=(l=t.spaceBeforeSlash)?l:t.spacebeforeslash)?c:"",!0===e.spaceBeforeSlash&&(e.spaceBeforeSlash=" "),e.suppressPrettyCount=0,e.user={},e.state=n.None,e},t.prototype.indent=function(t,e,r){var n;return!e.pretty||e.suppressPrettyCount?"":e.pretty&&(n=(r||0)+e.offset+1)>0?new Array(n).join(e.indent):""},t.prototype.endline=function(t,e,r){return!e.pretty||e.suppressPrettyCount?"":e.newline},t.prototype.attribute=function(t,e,r){var n;return this.openAttribute(t,e,r),n=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,e,r),n},t.prototype.cdata=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<![CDATA[",e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+="]]>"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.comment=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"\x3c!-- ",e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=" --\x3e"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.declaration=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<?xml",e.state=n.InsideTag,i+=' version="'+t.version+'"',null!=t.encoding&&(i+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(i+=' standalone="'+t.standalone+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+"?>",i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.docType=function(t,e,r){var i,o,s,a,u;if(r||(r=0),this.openNode(t,e,r),e.state=n.OpenTag,a=this.indent(t,e,r),a+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?a+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(a+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(a+=" [",a+=this.endline(t,e,r),e.state=n.InsideTag,o=0,s=(u=t.children).length;s>o;o++)i=u[o],a+=this.writeChildNode(i,e,r+1);e.state=n.CloseTag,a+="]"}return e.state=n.CloseTag,a+=e.spaceBeforeSlash+">",a+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),a},t.prototype.element=function(t,r,i){var s,a,u,c,l,h,p,f,d,m,y,D,g,v;for(d in i||(i=0),m=!1,y="",this.openNode(t,r,i),r.state=n.OpenTag,y+=this.indent(t,r,i)+"<"+t.name,D=t.attribs)o.call(D,d)&&(s=D[d],y+=this.attribute(s,r,i));if(c=0===(u=t.children.length)?null:t.children[0],0===u||t.children.every((function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value})))r.allowEmpty?(y+=">",r.state=n.CloseTag,y+="</"+t.name+">"+this.endline(t,r,i)):(r.state=n.CloseTag,y+=r.spaceBeforeSlash+"/>"+this.endline(t,r,i));else if(!r.pretty||1!==u||c.type!==e.Text&&c.type!==e.Raw||null==c.value){if(r.dontPrettyTextNodes)for(l=0,p=(g=t.children).length;p>l;l++)if(((a=g[l]).type===e.Text||a.type===e.Raw)&&null!=a.value){r.suppressPrettyCount++,m=!0;break}for(y+=">"+this.endline(t,r,i),r.state=n.InsideTag,h=0,f=(v=t.children).length;f>h;h++)a=v[h],y+=this.writeChildNode(a,r,i+1);r.state=n.CloseTag,y+=this.indent(t,r,i)+"</"+t.name+">",m&&r.suppressPrettyCount--,y+=this.endline(t,r,i),r.state=n.None}else y+=">",r.state=n.InsideTag,r.suppressPrettyCount++,m=!0,y+=this.writeChildNode(c,r,i+1),r.suppressPrettyCount--,m=!1,r.state=n.CloseTag,y+="</"+t.name+">"+this.endline(t,r,i);return this.closeNode(t,r,i),y},t.prototype.writeChildNode=function(t,r,n){switch(t.type){case e.CData:return this.cdata(t,r,n);case e.Comment:return this.comment(t,r,n);case e.Element:return this.element(t,r,n);case e.Raw:return this.raw(t,r,n);case e.Text:return this.text(t,r,n);case e.ProcessingInstruction:return this.processingInstruction(t,r,n);case e.Dummy:return"";case e.Declaration:return this.declaration(t,r,n);case e.DocType:return this.docType(t,r,n);case e.AttributeDeclaration:return this.dtdAttList(t,r,n);case e.ElementDeclaration:return this.dtdElement(t,r,n);case e.EntityDeclaration:return this.dtdEntity(t,r,n);case e.NotationDeclaration:return this.dtdNotation(t,r,n);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},t.prototype.processingInstruction=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<?",e.state=n.InsideTag,i+=t.target,t.value&&(i+=" "+t.value),e.state=n.CloseTag,i+=e.spaceBeforeSlash+"?>",i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.raw=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.text=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdAttList=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ATTLIST",e.state=n.InsideTag,i+=" "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(i+=" "+t.defaultValueType),t.defaultValue&&(i+=' "'+t.defaultValue+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdElement=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ELEMENT",e.state=n.InsideTag,i+=" "+t.name+" "+t.value,e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdEntity=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ENTITY",e.state=n.InsideTag,t.pe&&(i+=" %"),i+=" "+t.name,t.value?i+=' "'+t.value+'"':(t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),t.nData&&(i+=" NDATA "+t.nData)),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdNotation=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!NOTATION",e.state=n.InsideTag,i+=" "+t.name,t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?i+=' PUBLIC "'+t.pubID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.openNode=function(t,e,r){},t.prototype.closeNode=function(t,e,r){},t.prototype.openAttribute=function(t,e,r){},t.prototype.closeAttribute=function(t,e,r){},t}()}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,r){"use strict";var n=Array.prototype.slice,i=r(144),o=Object.keys,s=o?function(t){return o(t)}:r(372),a=Object.keys;s.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)}):Object.keys=s,Object.keys||s},t.exports=s},function(t,e,r){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),r}},function(t,e,r){"use strict";if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||"function"!=typeof Object.getPrototypeOf||"function"!=typeof Object.setPrototypeOf)throw new TypeError("util.promisify requires a true ES5 environment");var n=r(373);if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var i=Function.call.bind(Array.prototype.slice),o=Function.call.bind(Array.prototype.concat),s=Function.call.bind(Array.prototype.forEach),a="function"==typeof Symbol&&"symbol"==typeof Symbol(""),u=a?Symbol("util.promisify.custom"):null,c=a?Symbol("customPromisifyArgs"):null;t.exports=function(t){if("function"!=typeof t){var e=new TypeError('The "original" argument must be of type function');throw e.name="TypeError [ERR_INVALID_ARG_TYPE]",e.code="ERR_INVALID_ARG_TYPE",e}if(a&&t[u]){var r=t[u];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,u,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var l=t[c],h=function(){var e=i(arguments),r=this;return new Promise((function(n,a){t.apply(r,o(e,(function(t){var e=arguments.length>1?i(arguments,1):[];if(t)a(t);else if(void 0!==l&&e.length>1){var r={};s(l,(function(t,n){r[t]=e[n]})),n(r)}else n(e[0])})))}))};return Object.setPrototypeOf(h,Object.getPrototypeOf(t)),Object.defineProperty(h,u,{configurable:!0,enumerable:!1,value:h,writable:!1}),Object.defineProperties(h,n(t))},t.exports.custom=u,t.exports.customPromisifyArgs=c},function(t,e,r){"use strict";var n=r(374),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,u=Function.call.bind(Array.prototype.concat),c=Function.call.bind(Array.prototype.reduce),l=a?function(t){return u(s(t),a(t))}:s,h=n.IsCallable(o)&&n.IsCallable(s);t.exports=function(t){if(n.RequireObjectCoercible(t),!h)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var e=n.ToObject(t);return c(l(e),(function(t,r){var n,s,a,u=o(e,r);return void 0!==u&&(n=t,s=r,a=u,i&&s in n?i(n,s,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[s]=a),t}),{})}},function(t,e,r){"use strict";var n=r(378);t.exports=Function.prototype.bind||n},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";var n=r(27),i=n("%TypeError%"),o=n("%SyntaxError%"),s=r(31),a={"Property Descriptor":function(t,e){if("Object"!==t.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(s(e,n)&&!r[n])return!1;var o=s(e,"[[Value]]"),a=s(e,"[[Get]]")||s(e,"[[Set]]");if(o&&a)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(t,e,r,n){var s=a[e];if("function"!=typeof s)throw new o("unknown record type: "+e);if(!s(t,n))throw new i(r+" must be a "+e)}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,r){"use strict";var n=Number.isNaN||function(t){return t!=t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!n(t)&&t!==1/0&&t!==-1/0}},function(t,e,r){"use strict";var n=r(27),i=r(31),o=n("%Object%").assign;t.exports=function(t,e){if(o)return o(t,e);for(var r in e)i(e,r)&&(t[r]=e[r]);return t}},function(t,e,r){"use strict";t.exports=function(t){return 0>t?-1:1}},function(t,e,r){"use strict";t.exports=function(t,e){var r=t%e;return Math.floor(0>r?r+e:r)}},function(t,e,r){"use strict";t.exports=function(t,e){for(var r=0;r<t.length;r+=1)if(!e(t[r],r,t))return!1;return!0}},function(t,e,r){"use strict";var n=r(27),i=r(31),o=n("%TypeError%");t.exports=function(t,e){if("Object"!==t.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(i(e,n)&&!r[n])return!1;if(t.IsDataDescriptor(e)&&t.IsAccessorDescriptor(e))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},function(t,e,r){"use strict";var n=r(146);t.exports=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:n}},function(t,e,r){"use strict";var n=r(16),i=r(145);t.exports=function(){return"function"==typeof n.promisify?n.promisify:i}},function(t,e,r){"use strict";var n=r(33);t.exports=new n({include:[r(160)]})},function(t,e,r){"use strict";var n=r(33);t.exports=new n({include:[r(96)],implicit:[r(401),r(402),r(403),r(404)]})},function(t,e){t.exports=require("jaid-core")},function(t,e){t.exports={youtubeClientRedirectUrl:"http://localhost",hiMessages:{neydora:"Seid gegrüßt, gnädige Quallenkönigin!","35xy9om_uranus":["Na ihr Swiffer, was cruncht?","Na ihr Sniffer, was schnanscht?","Naan ayya fof wif fif fif flolf föf wääw cruaurc saas"]},youtubeDlPath:"youtube-dl",youtubeDlCookieFile:"/home/jaid/youtubeDlCookies.txt",youtubeDlFormat:"bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo+bestaudio/best",dotaSteamId32:"90387906",dotaPollIntervalSeconds:60,travisPollIntervalSeconds:30,youtubeSubscriptionsPollIntervalSeconds:300,observedYoutubeChannels:[{name:"Daily Dose",id:"UCdC0An4ZPNr_YiFiYoVbwaw"}],twitterFollowedIds:[{name:"Jaidchen",id:"1910506442"},{name:"Twitch",id:"437210567"}],categoryShortcuts:{dbd:"Dead by Daylight",chat:"Just Chatting"},starredReleasesPollIntervalSeconds:3600,starredReleasesUser:"Jaid",watchedSteamDepotIds:[{name:"Dota 2 (Windows x64)",id:"373303"},{name:"Dead by Daylight",id:"381211"}],watchSteamGamesIntervalSeconds:300,twitchClientCallbackUrl:"http://localhost:17441/auth/twitch/callback",twitchStreamerLogin:"jaidchen",twitchBotLogin:"jaidbot",videoRequestPriorityBase:100,videoRequestPrioritySubs:20,videoRequestPriorityVips:20,videoRequestPriorityMods:50,videoRequestPriorityBroadcaster:100,videoSubscriptionPriority:50,videoSubscriptionAddDelaySeconds:900,secondsBetweenYoutubeChecks:5,neutralTitles:["Moin, servus, moin!","Hi"],githubAppId:31980,githubWebhookPort:31980}},function(t,e){t.exports=require("twitch-chat-client")},function(t,e){t.exports=require("moment-duration-format")},function(t,e){t.exports=require("twitch")},function(t,e){t.exports=require("string-argv")},function(t,e){t.exports=require("minimist")},function(t,e,r){var n=r(193),i=r(231)((function(t,e){return null==t?{}:n(t,e)}));t.exports=i},function(t,e){t.exports=require("execa")},function(t,e,r){var n=r(239);t.exports=function(t){return"number"==typeof t&&t==n(t)}},function(t,e){t.exports=require("measure-time")},function(t,e,r){var n=r(262),i=r(268),o=r(116),s=r(271),a=r(272),u=r(123),c=r(122),l=r(117),h=r(124),p=r(273),f=r(66),d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var m=p.imports._.templateSettings||p;r&&c(t,e,r)&&(e=void 0),t=f(t),e=n({},e,m,s);var y,D,g=n({},e.imports,m.imports,s),v=l(g),E=o(g,v),b=0,x=e.interpolate||/($^)/,w="__p += '",A=RegExp((e.escape||/($^)/).source+"|"+x.source+"|"+(x===h?/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g:/($^)/).source+"|"+(e.evaluate||/($^)/).source+"|$","g"),C=d.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";t.replace(A,(function(e,r,n,i,o,s){return n||(n=i),w+=t.slice(b,s).replace(/['\n\r\u2028\u2029\\]/g,a),r&&(y=!0,w+="' +\n__e("+r+") +\n'"),o&&(D=!0,w+="';\n"+o+";\n__p += '"),n&&(w+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),b=s+e.length,e})),w+="';\n";var S=d.call(e,"variable")&&e.variable;S||(w="with (obj) {\n"+w+"\n}\n"),w=(D?w.replace(/\b__p \+= '';/g,""):w).replace(/\b(__p \+=) '' \+/g,"$1").replace(/(__e\(.*?\)|\b__t\)) \+\n'';/g,"$1;"),w="function("+(S||"obj")+") {\n"+(S?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(y?", __e = _.escape":"")+(D?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+w+"return __p\n}";var F=i((function(){return Function(v,C+"return "+w).apply(void 0,E)}));if(F.source=w,u(F))throw F;return F}},function(t,e){t.exports=require("filesize")},function(t,e){t.exports=require("ensure-array")},function(t,e){t.exports=require("socket-enhance")},function(t,e){t.exports=require("socket.io")},function(t,e){t.exports=require("probot")},function(t,e,r){"use strict";const n=r(72),i=r(5),o=r(324),s=r(326),a=r(327),u=r(332),c=r(355),l=r(393);t.exports=new class{get access(){return i.promises.access}get appendFile(){return i.promises.appendFile}get chmod(){return i.promises.chmod}get chown(){return i.promises.chown}get copyFile(){return i.promises.copyFile}get lchmod(){return i.promises.lchmod}get lchown(){return i.promises.lchown}get link(){return i.promises.link}get lstat(){return i.promises.lstat}get mkdir(){return i.promises.mkdir}get mkdtemp(){return i.promises.mkdtemp}get open(){return i.promises.open}get readdir(){return i.promises.readdir}get readFile(){return i.promises.readFile}get readlink(){return i.promises.readlink}get realpath(){return i.promises.realpath}get rename(){return i.promises.rename}get rmdir(){return i.promises.rmdir}get stat(){return i.promises.stat}get symlink(){return i.promises.symlink}get truncate(){return i.promises.truncate}get unlink(){return i.promises.unlink}get utimes(){return i.promises.utimes}get writeFile(){return i.promises.writeFile}get copy(){return n.copy}get emptyDir(){return n.emptyDir}get ensureFile(){return n.ensureFile}get ensureDir(){return n.ensureDir}get ensureLink(){return n.ensureLink}get ensureSymlink(){return n.ensureSymlink}get mkdirp(){return n.mkdirp}get mkdirs(){return n.mkdirs}get move(){return n.move}get outputFile(){return n.outputFile}get pathExists(){return n.pathExists}get remove(){return n.remove}get readCompressed(){return o.read}get writeCompressed(){return o.write}get outputCompressed(){return o.output}get compressFile(){return o.compress}get decompressFile(){return o.decompress}get readJson(){return s.read}get writeJson(){return s.write}get outputJson(){return s.output}get readJson5(){return a.read}get writeJson5(){return a.write}get outputJson5(){return a.output}get readXml(){return c.read}get writeXml(){return c.write}get outputXml(){return c.output}get readYaml(){return l.read}get writeYaml(){return l.write}get outputYaml(){return l.output}get scandir(){return u.scandir}get removeEmptyDir(){return u.removeEmptyDir}get removePattern(){return u.removePattern}get mergeFiles(){return u.mergeFiles}get chmodPattern(){return u.chmodPattern}}},function(t,e){t.exports=require("steam-game-update-watcher")},function(t,e){t.exports=require("passport-twitch-new")},function(t,e){t.exports=require("@koa/router")},function(t,e){t.exports=require("twit")},function(t,e){t.exports=require("fetch-youtube-uploads")},function(t,e){t.exports=require("ensure-object")},function(t,e){t.exports=require("p-min-delay")},function(t,e){t.exports=require("delay")},function(t,e,r){"use strict";r.r(e);var n=r(0);(async()=>{const t={},e=r(188);for(const r of e.keys()){const{pluginName:n}=r.match(/[\/\\](?<pluginName>.+?)[\/\\]index\.js$/).groups;t[n]=e(r).default}await n.c.init(t)})()},function(t,e,r){var n={"./apiServer/index.js":10,"./dota/index.js":294,"./github/index.js":295,"./main/index.js":296,"./ownReleaseNotifier/index.js":299,"./steam/index.js":417,"./twitchAuth/index.js":420,"./twitter/index.js":418,"./youtube/index.js":419};function i(t){var e=o(t);return r(e)}function o(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=o,t.exports=i,i.id=188},function(t,e,r){var n=r(43),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n={"./add/index.js":192,"./afk/index.js":238,"./comment/index.js":242,"./discord/index.js":243,"./dislike/index.js":244,"./follow/index.js":245,"./game/index.js":246,"./health/index.js":260,"./hi/index.js":261,"./info/index.js":279,"./like/index.js":280,"./link/index.js":281,"./next/index.js":282,"./pause/index.js":283,"./queuesize/index.js":284,"./re/index.js":285,"./setvolume/index.js":286,"./skip/index.js":287,"./sometitle/index.js":288,"./sub/index.js":289,"./title/index.js":290,"./upcoming/index.js":291,"./uptime/index.js":292,"./volume/index.js":293};function i(t){var e=o(t);return r(e)}function o(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=o,t.exports=i,i.id=191},function(t,e,r){"use strict";r.r(e);var n=r(2),i=r(0),o=r(3);e.default={permission:"sub-or-vip",requiredArguments:1,async handle({commandArguments:t,sender:e}){const r=t._[0];let s=i.a.videoRequestPriorityBase;e.isSub&&(s+=i.a.videoRequestPrioritySubs),e.isVip&&(s+=i.a.videoRequestPriorityVips),e.isMod&&(s+=i.a.videoRequestPriorityMods),e.isBroadcaster&&(s+=i.a.videoRequestPriorityBroadcaster);const a=await o.default.queueByUrl(r,{priority:s,requesterTwitchId:e.id});n.a.say(`PopCorn ${e.displayName} hat "${a.title}" hinzugefügt! (Priorität: ${s})`)}}},function(t,e,r){var n=r(194),i=r(227);t.exports=function(t,e){return n(t,e,(function(e,r){return i(t,r)}))}},function(t,e,r){var n=r(195),i=r(226),o=r(45);t.exports=function(t,e,r){for(var s=-1,a=e.length,u={};++s<a;){var c=e[s],l=n(t,c);r(l,c)&&i(u,o(c,t),l)}return u}},function(t,e,r){var n=r(45),i=r(67);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&o>r;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(17),i=r(46),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(198)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,(function(t,r,n,i){e.push(n?i.replace(/\\(\\)?/g,"$1"):r||t)})),e}));t.exports=n},function(t,e,r){var n=r(199);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(200),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(201),i=r(220),o=r(222),s=r(223),a=r(224);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e,r){var n=r(202),i=r(213),o=r(219);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(t,e,r){var n=r(203),i=r(209),o=r(210),s=r(211),a=r(212);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e,r){var n=r(47);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(106),i=r(205),o=r(28),s=r(207),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,h=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?h:/^\[object .+?Constructor\]$/).test(s(t))}},function(t,e,r){var n,i=r(206),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(44)["__core-js_shared__"];t.exports=n},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(47),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(47),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},function(t,e,r){var n=r(47);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(214),i=r(215),o=r(216),s=r(217),a=r(218);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(48),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return r>=0&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(48);t.exports=function(t){var e=this.__data__,r=n(e,t);return 0>r?void 0:e[r][1]}},function(t,e,r){var n=r(48);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(48);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return 0>i?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(65)(r(44),"Map");t.exports=n},function(t,e,r){var n=r(50);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(50);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(50);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(50);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},function(t,e,r){var n=r(43),i=r(107),o=r(17),s=r(46),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e,r){var n=r(108),i=r(45),o=r(51),s=r(28),a=r(67);t.exports=function(t,e,r,u){if(!s(t))return t;for(var c=-1,l=(e=i(e,t)).length,h=l-1,p=t;null!=p&&++c<l;){var f=a(e[c]),d=r;if(c!=h){var m=p[f];void 0===(d=u?u(m,f,p):void 0)&&(d=s(m)?m:o(e[c+1])?[]:{})}n(p,f,d),p=p[f]}return t}},function(t,e,r){var n=r(228),i=r(229);t.exports=function(t,e){return null!=t&&i(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(45),i=r(68),o=r(17),s=r(51),a=r(69),u=r(67);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,h=!1;++c<l;){var p=u(e[c]);if(!(h=null!=t&&r(t,p)))break;t=t[p]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(p,l)&&(o(t)||i(t))}},function(t,e,r){var n=r(24),i=r(25);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},function(t,e,r){var n=r(97),i=r(111),o=r(113);t.exports=function(t){return o(i(t,void 0,n),t+"")}},function(t,e,r){var n=r(233),i=r(234);t.exports=function t(e,r,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];r>0&&o(l)?r>1?t(l,r-1,o,s,a):n(a,l):s||(a[a.length]=l)}return a}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},function(t,e,r){var n=r(43),i=r(68),o=r(17),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},function(t,e,r){var n=r(236),i=r(110),o=r(114),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){"use strict";r.r(e);var n=r(170),i=r.n(n),o=r(22),s=r(99),a=r.n(s);const u=/^\S+\s*(?<rest>.*)/;e.default={permission:"mod",requiredArguments:1,async handle({positionalArguments:t,combinedArguments:e}){var r;let n,s;r=t[0],n=i()(r)?Math.floor(a()(`${t[0]}m`)/1e3):Math.floor(a()(t[0])/1e3);const c=u.exec(e);s=c.groups.rest.length?c.groups.rest:"Kurz weg",await o.a.activate(n,s)}}},function(t,e,r){var n=r(240);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(241);t.exports=function(t){return t?(t=n(t))===1/0||t===-1/0?17976931348623157e292*(0>t?-1:1):t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(28),i=r(46),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(/^\s+|\s+$/g,"");var r=s.test(t);return r||a.test(t)?u(t.slice(2),r?2:8):o.test(t)?NaN:+t}},function(t,e,r){"use strict";r.r(e);var n=r(34),i=r(3);e.default={permission:"mod",minimumArguments:1,needsDesktopClient:!0,async handle({combinedArguments:t}){const e=await i.default.getCurrentYoutubeVideo(9e5);return e?(await n.a.commentThreads.insert({part:"snippet",resource:{snippet:{videoId:e.mediaId,topLevelComment:{snippet:{textOriginal:t}}}}}),`Comment unter dem Video "${e.title}" ist raus!`):"Das dazugehörige YouTube-Video konnte nicht ermittelt werden."}}},function(t,e,r){"use strict";r.r(e),e.default={handle:async()=>"Discord Server: discordapp.com/invite/Mnk8QuG"}},function(t,e,r){"use strict";r.r(e);var n=r(34),i=r(3);e.default={permission:"mod",needsDesktopClient:!0,async handle(){const t=await i.default.getCurrentYoutubeVideo(9e5);return t?(await n.a.videos.rate({id:t.mediaId,rating:"dislike"}),`Dislike für dieses Kackvideo "${t.title}" ist raus!`):"Das dazugehörige YouTube-Video konnte nicht ermittelt werden."}}},function(t,e,r){"use strict";r.r(e);var n=r(2),i=r(59);const o=t=>t.format("DD.MM.YYYY [um] HH:mm");e.default={async handle({sender:t,positionalArguments:e}){if(e[0]){var r,s,a;const y=(r=e[0],Object(i.a)(r)),[D,g,v]=await Promise.all([n.a.userNameToDisplayName(y),n.a.getFollowMoment(t.name),n.a.getFollowMoment(y)]);return g||v?!g&&v?`${D} hat sich am ${u=v,o(u)} Uhr zum Follower transformiert. Das ist ein Akt der Persönlichkeitsentwicklung, der dir noch bevorsteht, ${t.displayName}.`:g&&!v?`${t.displayName}, du hast dich am ${c=g,o(c)} Uhr zum Follower gemacht. Oh, und da hinten ist ${D}. Den kannst du ignorieren. Oder bekehren.`:g.isBefore(v.clone().subtract(7,"days"))?`Am ${l=v,o(l)} ist ${D} Follower geworden, du hingegen schon am ${h=g,o(h)}, ${t.displayName}. Knappes Höschen also!`:g.isBefore(v)?`Am ${p=v,o(p)} ist ${D} Follower geworden, du hingegen schon am ${f=g,o(f)}, ${t.displayName}, du frühes Vöglein!`:v.isBefore(g.clone().subtract(7,"days"))?`Am ${d=v,o(d)} ist ${D} Follower geworden, du hingegen erst am ${m=g,o(m)}, ${t.displayName}. Ist aber knapp, vielleicht holst du ja noch auf. Keepo`:`Am ${s=v,o(s)} ist ${D} Follower geworden, du hingegen erst am ${a=g,o(a)}, ${t.displayName}!`:"Ihr seid beide keine Follower! Heiratet doch! DansGame";var u,c,l,h,p,f,d,m}{var y;const e=await n.a.getFollowMoment(t.name);return e?`Für den Follow hast du dich ${e.fromNow()} entschieden, ${t.displayName}, am ${y=e,o(y)} Uhr.`:`${t.displayName}... NotLikeThis`}}}},function(t,e,r){"use strict";r.r(e);var n=r(35),i=r.n(n),o=r(2),s=r(0);const a=r(259).default.split("\n");e.default={permission:"mod",requiredArguments:1,async handle({combinedArguments:t}){const{game:e}=await o.a.getMyStream();return s.a.categoryShortcuts[t]&&(t=s.a.categoryShortcuts[t]),t===e?"Uff, da ändert sich nicht viel.":(await o.a.setCategory(t),e?`Die ${r=a,i()(r)}, die nur für ${e} hier waren, sind jetzt herzlich ausgeladen, denn es geht weiter mit ${t}!`:`Es geht weiter mit ${t}!`);var r}}},function(t,e){var r=Math.floor,n=Math.random;t.exports=function(t,e){return t+r(n()*(e-t+1))}},function(t,e,r){var n=r(115),i=r(249);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(116),i=r(117);t.exports=function(t){return null==t?[]:n(t,i(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){(function(t){var n=r(44),i=r(252),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u}).call(this,r(70)(t))},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(254),i=r(255),o=r(256),s=o&&o.isTypedArray,a=s?i(s):n;t.exports=a},function(t,e,r){var n=r(24),i=r(69),o=r(25),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(105),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,r(70)(t))},function(t,e,r){var n=r(119),i=r(258),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){var n=r(120)(Object.keys,Object);t.exports=n},function(t,e,r){"use strict";r.r(e),e.default="Spatzen\nHasen\nNasen"},function(t,e,r){"use strict";r.r(e);var n=r(6),i=r(0),o=r(60);e.default={async handle(){const t=["v4.2.0"];return t.push(`gestartet ${Object(n.a)(i.c.startTime).fromNow()}`),o.default.currentStatus&&t.push(`${o.default.currentStatus.ramUsage}% RAM in Benutzung`),t.join(", ")}}},function(t,e,r){"use strict";r.r(e);var n=r(17),i=r.n(n),o=r(35),s=r.n(o),a=r(172),u=r.n(a),c=r(6),l=r(0),h=r(2),p=r(59);e.default={async handle({sender:t,positionalArguments:e}){const r=(()=>{const t=Object(c.a)().hour();return 21>t?18>t?13>t?11>t?9>t?"HeyGuys Guten Morgen":"HeyGuys Guten Vormittag":"HeyGuys Guten Mittag":"HeyGuys Guten Nachmittag":"HeyGuys Guten Abend":"HeyGuys Guten Tag"})();let n,o;if(e[0]){var a;a=e[0],n=Object(p.a)(a),o=await h.a.userNameToDisplayName(n)}else{if(t.isBroadcaster)return"Testest du mich schon wieder? cmonBruh";n=t.name,o=t.displayName,t.isVip&&(o=`höchstgeachteter Ehrenhase ${o}`)}const f=l.a.hiMessages[n];if(f){const t=i()(f)?s()(f):f;return u()(t)({greeting:r})}return`${r}, ${o}!`}}},function(t,e,r){var n=r(263),i=r(264),o=r(265),s=i((function(t,e,r,i){n(e,o(e),t,i)}));t.exports=s},function(t,e,r){var n=r(108),i=r(109);t.exports=function(t,e,r,o){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?i(r,c,l):n(r,c,l)}return r}},function(t,e,r){var n=r(121),i=r(122);t.exports=function(t){return n((function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=3>o?void 0:s,o=1),e=Object(e);++n<o;){var u=r[n];u&&t(e,u,n,s)}return e}))}},function(t,e,r){var n=r(118),i=r(266),o=r(71);t.exports=function(t){return o(t)?n(t,!0):i(t)}},function(t,e,r){var n=r(28),i=r(119),o=r(267),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(112),i=r(121),o=r(123),s=i((function(t,e){try{return n(t,void 0,e)}catch(t){return o(t)?t:new Error(t)}}));t.exports=s},function(t,e,r){var n=r(24),i=r(270),o=r(25),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},function(t,e,r){var n=r(120)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){var n=r(49),i=Object.prototype,o=i.hasOwnProperty;t.exports=function(t,e,r,s){return void 0===t||n(t,i[r])&&!o.call(s,r)?e:t}},function(t,e){var r={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=function(t){return"\\"+r[t]}},function(t,e,r){var n=r(274),i={escape:r(277),evaluate:r(278),interpolate:r(124),variable:"",imports:{_:{escape:n}}};t.exports=i},function(t,e,r){var n=r(275),i=r(66),o=RegExp(/[&<>"']/g.source);t.exports=function(t){return(t=i(t))&&o.test(t)?t.replace(/[&<>"']/g,n):t}},function(t,e,r){var n=r(276)({"&":"&","<":"<",">":">",'"':""","'":"'"});t.exports=n},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e){t.exports=/<%-([\s\S]+?)%>/g},function(t,e){t.exports=/<%([\s\S]+?)%>/g},function(t,e,r){"use strict";r.r(e);var n=r(101),i=r.n(n),o=r(6),s=r(102),a=r.n(s),u=r(173),c=r.n(u),l=r(3);e.default={needsDesktopClient:!0,async handle({sender:t}){const e=l.default.getCurrentVideo();if(!e)return`Gerade läuft doch gar kein Video, ${t.displayName}!`;const r=[],n=e.getDurationMs();var s;if(n&&r.push(`${o.a.duration(n,"milliseconds").format()} Laufzeit`),e.height&&((null===(s=e.info)||void 0===s?void 0:s.fps)?r.push(`${e.height}p${e.info.fps}`):r.push(`${e.height}p`)),e.ageLimit>0&&r.push(`freigegeben ab ${e.ageLimit} Jahren`),e.bytes>1e3&&r.push(c()(e.bytes,{round:0})),e.views&&r.push(`${a()(e.views,{precision:0})} Views`),i()(e.likes)&&i()(e.dislikes))if(e.likes+e.dislikes===0)r.push("keine Bewertungen");else{let t;t=0===e.dislikes?100:0===e.likes?0:Math.floor(e.likes/(e.likes+e.dislikes)*100),r.push(`${a()(e.likes,{precision:0})} Likes (${t}%)`)}e.publishedAt?r.push(`${Object(o.a)(e.publishedAt).fromNow()} erschienen`):r.push(`${Object(o.a)(e.createdAt).fromNow()} hinzugefügt`);const u=o.a.duration(e.timestamp,"milliseconds").format();return`PopCorn ${t.displayName}, gerade läuft Stelle ${u} des Videos "${e.title}" von ${e.publisher}. ${r.join(", ")}.`}}},function(t,e,r){"use strict";r.r(e);var n=r(34),i=r(3);e.default={permission:"mod",needsDesktopClient:!0,async handle(){const t=await i.default.getCurrentYoutubeVideo(9e5);return t?(await n.a.videos.rate({id:t.mediaId,rating:"like"}),`Like für dieses geile Video "${t.title}" ist raus!`):"Das dazugehörige YouTube-Video konnte nicht ermittelt werden."}}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default={needsDesktopClient:!0,async handle({sender:t}){const e=n.default.getCurrentVideo();if(!e)return`Es gibt gerade kein abgespieltes Video, ${t.displayName}.`;let r;if("youtube"===e.extractor){let t="";e.timestamp>0&&!e.hasBeenWatched()&&(t=`?t=${Math.floor(e.timestamp/1e3)}`),r=`https://youtu.be/${e.mediaId}${t}`}else r=e.webUrl;return`PopCorn ${r}`}}},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r(3);e.default={needsDesktopClient:!0,async handle(){const t=await i.default.findOne({where:{watchedAt:{[n.Op.eq]:null},videoFile:{[n.Op.ne]:null}},order:[["priority","desc"],["id","asc"]]});return t?(i.default.setCurrentVideo(t),await t.play()?`PopCorn Jetzt kommt "${t.title}" von ${t.publisher}`:"Oh, keine Ahnung."):"Anscheinend ist die komplette Playlist leergeguckt. D:"}}},function(t,e,r){"use strict";r.r(e);var n=r(6),i=r(2),o=r(3);e.default={permission:"mod",needsDesktopClient:!0,async handle(){const t=await o.default.getVlcState();if(!t)return;const e="playing"===t.state?"pl_forcepause":"pl_play";if(await o.default.sendVlcCommand(e)){const e=n.a.duration(t.time,"seconds").format(),r="playing"===t.state?`PopCorn Pausiert bei ${e}, Bruder! Jetzt hast du deine Ruhe.`:`PopCorn Geht heiter weiter an der Stelle ${e}!`;i.a.say(r)}else i.a.say("Da hat etwas nicht geklappt")}}},function(t,e,r){"use strict";r.r(e);var n=r(3),i=r(1),o=r(36);e.default={async handle(){var t;const e=await n.default.findAll({where:{watchedAt:{[i.Op.eq]:null}},raw:!0,attributes:["timestamp","duration","vlcDuration"]});let r=0;for(let t=0;t<=e.length-1;t++)r+=((s=e[t]).vlcDuration||s.duration)-(s.timestamp||0);var s;const a=r;return`Es sind ${e.length} ungesehene Videos in der Liste. Es dauert noch ${t=a,Object(o.b)(t)}, diesen Haufen durchzuschauen.`}}},function(t,e,r){"use strict";r.r(e);var n=r(22);e.default={permission:"mod",async handle(){if(!n.a.isAfk())return"Jaidchen ist doch gar nicht weg. PunOko";await n.a.deactivate()}}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default={permission:"mod",needsDesktopClient:!0,requiredArguments:1,async handle({positionalArguments:t}){const e=await n.default.getVlcState();if(!e)return;const r=e.volume,i=Number(t[0]);return i===r?`Die Lautstärke wurde von ${r}% auf ${r}... Moment. Am I a joke to you?`:(await n.default.sendVlcCommand("volume",{val:i}),`Die Lautstärke wurde von ${r} auf ${i} von maximal 320 ${i>r?"angehoben":"gesenkt"}.`)}}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default={permission:"mod",needsDesktopClient:!0,async handle(){const t=n.default.getCurrentVideo();return t?(await t.update({skipped:!0,watchedAt:new Date}),await n.default.sendVlcCommand("pl_stop")?`Skippie! Weg mit "${t.title}"!`:void 0):"Kein Video gefunden."}}},function(t,e,r){"use strict";r.r(e);var n=r(35),i=r.n(n),o=r(0),s=r(22),a=r(174),u=r.n(a);e.default={async handle(){var t;return await s.a.setTitle(i()((t=o.a.neutralTitles,u()(t)))),"Alles klärchen!"}}},function(t,e,r){"use strict";r.r(e),e.default={handle:async()=>"Subbi da: https://twitch.tv/products/jaidchen"}},function(t,e,r){"use strict";r.r(e);var n=r(22);e.default={permission:"mod",handle:async({combinedArguments:t})=>(await n.a.setTitle(t),`Dieser Stream wurde umgetauft zu "${t}". Amen.`)}},function(t,e,r){"use strict";r.r(e);var n=r(3),i=r(1);e.default={permission:"sub-or-vip",needsDesktopClient:!0,async handle({sender:t}){const e={where:{watchedAt:{[i.Op.eq]:null},videoFile:{[i.Op.ne]:null}},order:[["priority","desc"],["id","asc"]],attributes:["publisher","title"]};n.default.getCurrentVideo()&&(e.offset=1);const r=await n.default.findOne(e);return r?`PopCorn ${t.displayName}, demnächst läuft hier "${r.title}" von ${r.publisher}.`:"Es wurde kein weiteres Video gefunden."}}},function(t,e,r){"use strict";r.r(e);var n=r(6),i=r(2);e.default={async handle({sender:t}){const e=await i.a.getMyStream();if("live"!==(null==e?void 0:e.type))return"Jaidchen ist gerade nicht live!";const r=Object(n.a)(),o=Object(n.a)(e.startDate),s=n.a.duration(r.diff(o)),a=s.get("hours"),u=s.get("minutes");let c;if(1>a)c=1===u?"einer Minute":`${u} Minuten`;else{const t=u%60;let e,r="";1===t?r=" und einer Minute":t>1&&(r=` und ${t} Minuten`),c=(e=1===a?"einer Stunde":`${a} Stunden`)+r}let l="";return r.day()!==o.day()&&(l=" gestern"),`VoHiYo ${t.displayName}, der Stream ging vor ${c} live, das war${l} um ${o.format("HH:mm")} Uhr.`}}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default={needsDesktopClient:!0,async handle({sender:t}){const e=await n.default.getVlcState();if(e)return`${t.displayName}, die aktuelle Lautstärke ist ${e.volume} von 320.`}}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return u}));var n=r(39),i=r.n(n),o=r(0),s=r(2),a=r(12);class u extends i.a{constructor(){super({pollInterval:1e3*o.a.dotaPollIntervalSeconds,invalidateInitialEntries:!0})}preInit(){if(Object(a.isEmpty)(o.a.dotaSteamId32))return!1}init(){this.got=o.d.extend({json:!0,baseUrl:"https://api.opendota.com/api"})}postInit(){return s.a.ready}ready(){this.on("newEntry",t=>{const e=t.hasWon?"gewonnen":"verloren";s.a.say(`OSFrog ${t.hero.localized_name} hat mit ${t.kills}/${t.deaths}/${t.assists} ${e}: opendota.com/matches/${t.match_id}`)}),this.start()}async fetchEntries(){if(!this.heroes){const t=await this.got("heroes");this.heroes=t.body,o.e.info("Loaded %s heroes from OpenDota",this.heroes.length)}return(await this.got(`players/${o.a.dotaSteamId32}/recentMatches`)).body}getIdFromEntry(t){return t.match_id}async processEntry(t){t.finish_time=t.start_time+t.duration,t.hero=this.getHeroById(t.hero_id),t.team=128>t.player_slot?"radiant":"dire","radiant"===t.team?t.hasWon=t.radiant_win:t.hasWon=!t.radiant_win}getHeroById(t){return this.heroes.find(({id:e})=>Number(t)===Number(e))||{name:"unknown",localized_name:"Unknown Hero",legs:42}}handleError(t){o.e.error("Could not check OpenDota: %s",t)}}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return d}));var n=r(9),i=r.n(n),o=r(0),s=r(103),a=r.n(s),u=r(62),c=r.n(u),l=r(2),h=r(23),p=r.n(h),f=r(12);class d{constructor(){i()(this,"github",null)}init(){try{this.github=new a.a({log:o.e,userAgent:"Jaidbot v4.2.0",auth:o.a.githubToken})}catch(t){this.github=new a.a,o.e.warn("Could not create a GitHub API client with auth options"),o.e.error("GitHub API client creation failed: %s",t)}}preInit(){if(Object(f.isEmpty)(o.a.starredReleasesUser))return!1}postInit(){return l.a.ready}async ready(){const t=await this.github.paginate(`/users/${o.a.starredReleasesUser}/starred`),e=({archived:t,has_downloads:e,disabled:r})=>!t&&!r&&e,r=[];for(let n=0;n<=t.length-1;n++)e(t[n])&&r.push(t[n]);const n=await c()(r,async t=>{try{const e=await this.github.repos.getLatestRelease({owner:t.owner.login,repo:t.name});return{owner:t.owner.login,name:t.name,latestTag:e.data.tag_name}}catch(t){return!1}},{concurrency:20});this.repos=n.filter(t=>t),setInterval(()=>{this.check()},1e3*o.a.starredReleasesPollIntervalSeconds),await this.check(),o.e.info("Started StarredReleaseNotifier for %s",p()(this.repos,"repo"))}async check(){this.repos.map(async t=>{const e=await this.github.repos.getLatestRelease({owner:t.owner,repo:t.name});t.latestTag!==e.data.tag_name&&(t.latestTag=e.data.tag_name,l.a.say(`ChefFrank Neue Version von ${t.name}! github.com/${t.owner}/${t.name}/releases/${e.data.tag_name}`))})}}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return o}));var n=r(2),i=r(0);class o{async init(){await n.a.init(),n.a.ready||i.e.warn("Twitch has not been loaded")}ready(){n.a.ready&&n.a.say("TBAngel Da bin ich!")}collectModels(){const t={},e=r(297);for(const r of e.keys())t[r.match(/\.\/(?<key>[\da-z]+)\./i).groups.key]=e(r);return t}}},function(t,e,r){var n={"./ChatMessage.js":298,"./Heartbeat.js":60,"./TwitchUser.js":19,"./Video.js":3};function i(t){var e=o(t);return r(e)}function o(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=o,t.exports=i,i.id=297},function(t,e,r){"use strict";r.r(e),r.d(e,"schema",(function(){return u}));var n=r(1),i=r.n(n),o=r(2),s=r(19);class a extends i.a.Model{static start(){o.a.on("chat",async t=>{const e=await s.default.prepareByTwitchId(t.sender.id,{defaults:{nameColor:t.sender.color}});await a.create({TwitchUserId:e.id,senderDisplayName:t.sender.displayName,nameColor:t.sender.color,bits:t.bits,message:t.text,messageSentAt:t.sentDate,senderIsMod:t.sender.isMod,senderIsVip:t.sender.isVip,senderIsSubscriber:t.sender.isSub})})}static associate(t){a.belongsTo(t.TwitchUser,{foreignKey:{allowNull:!1}})}}const u={senderDisplayName:i.a.STRING(64),nameColor:i.a.STRING,bits:{allowNull:!1,type:i.a.INTEGER},message:{type:i.a.TEXT,allowNull:!1},messageSentAt:i.a.DATE,senderIsMod:i.a.BOOLEAN,senderIsVip:i.a.BOOLEAN,senderIsSubscriber:i.a.BOOLEAN};e.default=a},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return h}));var n=r(9),i=r.n(n),o=(r(39),r(2)),s=r(0),a=(r(300),r(12)),u=r(177),c=r(178),l=r.n(c);class h{constructor(){i()(this,"probotApp",t=>{t.on("check_run.completed",async t=>{var e,r,n,i;const a=null===(e=t.payload)||void 0===e?void 0:null===(r=e.check_run)||void 0===r?void 0:null===(n=r.app)||void 0===n?void 0:n.id;if(67!==a)return void s.e.debug("Got check_suite.completed event from GitHub, but check suite app is not Travis CI (App ID is %s)",a);if(t.payload.repository.private)return;const u=(await this.travisGot.get(`build/${t.payload.check_run.external_id}`)).body,c=null==u?void 0:null===(i=u.tag)||void 0===i?void 0:i.name;if(!c)return;const l=`${u.repository.name} ${c}`;if("passed"===u.state)return void o.a.say(`PartyHat ${l} ist da: github.com/${u.repository.slug}/releases/${c}`);const h=`travis-ci.com/${u.repository.slug}/builds/${u.id}`;"canceled"!==u.state?"failed"!==u.state?o.a.say(`ItsBoshyTime Build aus unbekannten Gründen beendet: ${h}`):o.a.say(`ItsBoshyTime Build fehlgeschlagen: ${h}`):o.a.say(`ItsBoshyTime Build abgebrochen: ${h}`)})}),this.travisGot=s.d.extend({json:!0,baseUrl:"https://api.travis-ci.com",headers:{"Travis-API-Version":3,Authorization:`token ${s.a.travisToken}`}})}preInit(){if(Object(a.isEmpty)(s.a.travisToken))return!1}async init(){const t=await l.a.readFile(s.a.githubAppPemFilePath,"utf8");this.probot=Object(u.createProbot)({cert:t,secret:s.a.githubAppWebhookSecret,id:s.a.githubAppId,port:s.a.githubWebhookPort}),s.e.info("GitHub app %s is listening to webhook port %s",s.a.githubAppId,s.a.githubWebhookPort),this.probot.load(this.probotApp),this.probot.start()}postInit(){return o.a.ready}}},function(t,e){t.exports=require("promise-timeout")},function(t,e,r){var n=r(302),i=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var a=process.chdir;process.chdir=function(t){o=null,a.call(process,t)},t.exports=function(t){var e,r;function i(e){return e?function(r,n,i){return e.call(t,r,n,(function(t){h(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function o(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!h(t))throw t}}:e}function a(e){return e?function(r,n,i,o){return e.call(t,r,n,i,(function(t){h(t)&&(t=null),o&&o.apply(this,arguments)}))}:e}function u(e){return e?function(r,n,i){try{return e.call(t,r,n,i)}catch(t){if(!h(t))throw t}}:e}function c(e){return e?function(r,n,i){function o(t,e){e&&(0>e.uid&&(e.uid+=4294967296),0>e.gid&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?e.call(t,r,n,o):e.call(t,r,o)}:e}function l(e){return e?function(r,n){var i=n?e.call(t,r,n):e.call(t,r);return 0>i.uid&&(i.uid+=4294967296),0>i.gid&&(i.gid+=4294967296),i}:e}function h(t){return!t||"ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code)}n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.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(e,r){var i,o=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{i=t.fchmodSync(o,r),s=!1}finally{if(s)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t),t.lutimes||function(t){n.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,r,i,o){t.open(e,n.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(e,r,i){var o,s=t.openSync(e,n.O_SYMLINK),a=!0;try{o=t.futimesSync(s,r,i),a=!1}finally{if(a)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return o}):(t.lutimes=function(t,e,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t),t.chown=a(t.chown),t.fchown=a(t.fchown),t.lchown=a(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){}),t.lchown||(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){}),"win32"===s&&(t.rename=(e=t.rename,function(r,n,i){var o=Date.now(),s=0;e(r,n,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code)&&6e4>Date.now()-o)return setTimeout((function(){t.stat(n,(function(t,o){t&&"ENOENT"===t.code?e(r,n,a):i(u)}))}),s),void(100>s&&(s+=10));i&&i(u)}))})),t.read=function(e){function r(r,n,i,o,s,a){var u;if(a&&"function"==typeof a){var c=0;u=function(l,h,p){if(l&&"EAGAIN"===l.code&&10>c)return c++,e.call(t,r,n,i,o,s,u);a.apply(this,arguments)}}return e.call(t,r,n,i,o,s,u)}return r.__proto__=e,r}(t.read),t.readSync=(r=t.readSync,function(e,n,i,o,s){for(var a=0;;)try{return r.call(t,e,n,i,o,s)}catch(t){if("EAGAIN"===t.code&&10>a){a++;continue}throw t}})}},function(t,e){t.exports=require("constants")},function(t,e,r){var n=r(73).Stream;t.exports=function(t){return{ReadStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this);var o=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 s=Object.keys(i),a=0,u=s.length;u>a;a++){var c=s[a];this[c]=i[c]}if(this.encoding&&this.setEncoding(this.encoding),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}null===this.fd?t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.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 o=Object.keys(i),s=0,a=o.length;a>s;s++){var u=o[s];this[u]=i[u]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)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())}}}},function(t,e,r){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else e=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(14).mkdirsSync,s=r(128).utimesMillisSync,a=Symbol("notExist");function u(t,e,r,o){if(!o.filter||o.filter(e,r))return function(t,e,r,o){const s=(o.dereference?n.statSync:n.lstatSync)(e);return s.isDirectory()?function(t,e,r,i,o){if(e===a)return function(t,e,r,i){return n.mkdirSync(r),l(e,r,i),n.chmodSync(r,t.mode)}(t,r,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${r}'.`);return l(r,i,o)}(s,t,e,r,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,r,i,o){return e===a?c(t,r,i,o):function(t,e,r,i){if(i.overwrite)return n.unlinkSync(r),c(t,e,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(t,r,i,o)}(s,t,e,r,o):s.isSymbolicLink()?function(t,e,r,o){let s=n.readlinkSync(e);if(o.dereference&&(s=i.resolve(process.cwd(),s)),t===a)return n.symlinkSync(s,r);{let t;try{t=n.readlinkSync(r)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return n.symlinkSync(s,r);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),h(s,t))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${t}'.`);if(n.statSync(r).isDirectory()&&h(t,s))throw new Error(`Cannot overwrite '${t}' with '${s}'.`);return function(t,e){return n.unlinkSync(e),n.symlinkSync(t,e)}(s,r)}}(t,e,r,o):void 0}(t,e,r,o)}function c(t,e,i,o){return"function"==typeof n.copyFileSync?(n.copyFileSync(e,i),n.chmodSync(i,t.mode),o.preserveTimestamps?s(i,t.atime,t.mtime):void 0):function(t,e,i,o){const s=r(129)(65536),a=n.openSync(e,"r"),u=n.openSync(i,"w",t.mode);let c=0;for(;c<t.size;){const t=n.readSync(a,s,0,65536,c);n.writeSync(u,s,0,t),c+=t}o.preserveTimestamps&&n.futimesSync(u,t.atime,t.mtime),n.closeSync(a),n.closeSync(u)}(t,e,i,o)}function l(t,e,r){n.readdirSync(t).forEach(n=>(function(t,e,r,n){const o=i.join(e,t),s=i.join(r,t);return u(p(o,s),o,s,n)})(n,t,e,r))}function h(t,e){const r=i.resolve(t).split(i.sep),n=i.resolve(e).split(i.sep);return r.reduce((t,e,r)=>t&&n[r]===e,!0)}function p(t,e){const{srcStat:r,destStat:i}=function(t,e){const r=n.statSync(t);let i;try{i=n.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:r,destStat:a};throw t}return{srcStat:r,destStat:i}}(t,e);if(i.ino&&i.ino===r.ino)throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&h(t,e))throw new Error(`Cannot copy '${t}' to a subdirectory of itself, '${e}'.`);return i}t.exports=function(t,e,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r&&!r.clobber),r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const s=p(t,e);if(r.filter&&!r.filter(t,e))return;const a=i.dirname(e);return n.existsSync(a)||o(a),u(s,t,e,r)}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(127).invalidWin32Path,s=parseInt("0777",8);t.exports=function t(e,r,a,u){if("function"==typeof r?(a=r,r={}):r&&"object"==typeof r||(r={mode:r}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",a(t)}let c=r.mode;const l=r.fs||n;void 0===c&&(c=s&~process.umask()),u||(u=null),a=a||function(){},e=i.resolve(e),l.mkdir(e,c,n=>{if(!n)return a(null,u=u||e);switch(n.code){case"ENOENT":if(i.dirname(e)===e)return a(n);t(i.dirname(e),r,(n,i)=>{n?a(n,i):t(e,r,a,i)});break;default:l.stat(e,(t,e)=>{t||!e.isDirectory()?a(n,u):a(null,u)})}})}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(127).invalidWin32Path,s=parseInt("0777",8);t.exports=function t(e,r,a){r&&"object"==typeof r||(r={mode:r});let u=r.mode;const c=r.fs||n;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===u&&(u=s&~process.umask()),a||(a=null),e=i.resolve(e);try{c.mkdirSync(e,u),a=a||e}catch(n){if("ENOENT"===n.code){if(i.dirname(e)===e)throw n;a=t(i.dirname(e),r,a),t(e,r,a)}else{let t;try{t=c.statSync(e)}catch(t){throw n}if(!t.isDirectory())throw n}}return a}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(14).mkdirs,s=r(20).pathExists,a=r(128).utimesMillis,u=Symbol("notExist");function c(t,e,r,n,a){const u=i.dirname(r);s(u,(i,s)=>i?a(i):s?h(t,e,r,n,a):void o(u,i=>i?a(i):h(t,e,r,n,a)))}function l(t,e,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e?t(e,r,n,i,o):t(r,n,i,o):o(),t=>o(t))}function h(t,e,r,n,i){return n.filter?l(p,t,e,r,n,i):p(t,e,r,n,i)}function p(t,e,r,o,s){(o.dereference?n.stat:n.lstat)(e,(a,c)=>a?s(a):c.isDirectory()?function(t,e,r,i,o,s){return e===u?function(t,e,r,i,o){n.mkdir(r,s=>{if(s)return o(s);m(e,r,i,e=>e?o(e):n.chmod(r,t.mode,o))})}(t,r,i,o,s):e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${i}' with directory '${r}'.`)):m(r,i,o,s)}(c,t,e,r,o,s):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?function(t,e,r,i,o,s){return e===u?f(t,r,i,o,s):function(t,e,r,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${r}' already exists`)):o();n.unlink(r,n=>n?o(n):f(t,e,r,i,o))}(t,r,i,o,s)}(c,t,e,r,o,s):c.isSymbolicLink()?function(t,e,r,o,s){n.readlink(e,(e,a)=>e?s(e):(o.dereference&&(a=i.resolve(process.cwd(),a)),t===u?n.symlink(a,r,s):void n.readlink(r,(e,u)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?n.symlink(a,r,s):s(e):(o.dereference&&(u=i.resolve(process.cwd(),u)),y(a,u)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&y(u,a)?s(new Error(`Cannot overwrite '${u}' with '${a}'.`)):function(t,e,r){n.unlink(e,i=>i?r(i):n.symlink(t,e,r))}(a,r,s)))))}(t,e,r,o,s):void 0)}function f(t,e,r,i,o){return"function"==typeof n.copyFile?n.copyFile(e,r,e=>e?o(e):d(t,r,i,o)):function(t,e,r,i,o){const s=n.createReadStream(e);s.on("error",t=>o(t)).once("open",()=>{const e=n.createWriteStream(r,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>s.pipe(e)).once("close",()=>d(t,r,i,o))})}(t,e,r,i,o)}function d(t,e,r,i){n.chmod(e,t.mode,n=>n?i(n):r.preserveTimestamps?a(e,t.atime,t.mtime,i):i())}function m(t,e,r,o){n.readdir(t,(n,s)=>n?o(n):function t(e,r,n,o,s){const a=e.pop();return a?function(e,r,n,o,s,a){const u=i.join(n,r),c=i.join(o,r);D(u,c,(r,i)=>{if(r)return a(r);h(i,u,c,s,r=>r?a(r):t(e,n,o,s,a))})}(e,a,r,n,o,s):s()}(s,t,e,r,o))}function y(t,e){const r=i.resolve(t).split(i.sep),n=i.resolve(e).split(i.sep);return r.reduce((t,e,r)=>t&&n[r]===e,!0)}function D(t,e,r){!function(t,e,r){n.stat(t,(t,i)=>{if(t)return r(t);n.stat(e,(t,e)=>t?"ENOENT"===t.code?r(null,{srcStat:i,destStat:u}):r(t):r(null,{srcStat:i,destStat:e}))})}(t,e,(n,i)=>{if(n)return r(n);const{srcStat:o,destStat:s}=i;return s.ino&&s.ino===o.ino?r(new Error("Source and destination must not be the same.")):o.isDirectory()&&y(t,e)?r(new Error(`Cannot copy '${t}' to a subdirectory of itself, '${e}'.`)):r(null,s)})}t.exports=function(t,e,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r&&!r.clobber),r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),D(t,e,(i,o)=>i?n(i):r.filter?l(c,o,t,e,r,n):c(o,t,e,r,n))}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(13),o=r(4),s=r(14),a=r(52),u=n((function(t,e){e=e||function(){},i.readdir(t,(r,n)=>{if(r)return s.mkdirs(t,e);n=n.map(e=>o.join(t,e)),function t(){const r=n.pop();if(!r)return e();a.remove(r,r=>{if(r)return e(r);t()})}()})}));function c(t){let e;try{e=i.readdirSync(t)}catch(e){return s.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),a.removeSync(e)})}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:u,emptydir:u}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(26),s="win32"===process.platform;function a(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||n[e],t[e+="Sync"]=t[e]||n[e]}),t.maxBusyTries=t.maxBusyTries||3}function u(t,e,r){let n=0;"function"==typeof e&&(r=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof r,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),a(e),c(t,e,(function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&n<e.maxBusyTries)return n++,setTimeout(()=>c(t,e,i),100*n);"ENOENT"===o.code&&(o=null)}r(o)}))}function c(t,e,r){o(t),o(e),o("function"==typeof r),e.lstat(t,(n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&s?l(t,e,n,r):i&&i.isDirectory()?p(t,e,n,r):void e.unlink(t,n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return s?l(t,e,n,r):p(t,e,n,r);if("EISDIR"===n.code)return p(t,e,n,r)}return r(n)}))}function l(t,e,r,n){o(t),o(e),o("function"==typeof n),r&&o(r instanceof Error),e.chmod(t,438,i=>{i?n("ENOENT"===i.code?null:r):e.stat(t,(i,o)=>{i?n("ENOENT"===i.code?null:r):o.isDirectory()?p(t,e,r,n):e.unlink(t,n)})})}function h(t,e,r){let n;o(t),o(e),r&&o(r instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw r}try{n=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw r}n.isDirectory()?d(t,e,r):e.unlinkSync(t)}function p(t,e,r,n){o(t),o(e),r&&o(r instanceof Error),o("function"==typeof n),e.rmdir(t,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?n(r):n(s):function(t,e,r){o(t),o(e),o("function"==typeof r),e.readdir(t,(n,o)=>{if(n)return r(n);let s,a=o.length;if(0===a)return e.rmdir(t,r);o.forEach(n=>{u(i.join(t,n),e,n=>{if(!s)return n?r(s=n):void(0==--a&&e.rmdir(t,r))})})})}(t,e,n)})}function f(t,e){let r;a(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&s&&h(t,e,r)}try{r&&r.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return s?h(t,e,r):d(t,e,r);if("EISDIR"!==r.code)throw r;d(t,e,r)}}function d(t,e,r){o(t),o(e),r&&o(r instanceof Error);try{e.rmdirSync(t)}catch(n){if("ENOTDIR"===n.code)throw r;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(r=>f(i.join(t,r),e)),!s)return e.rmdirSync(t,e);{const r=Date.now();do{try{return e.rmdirSync(t,e)}catch(t){}}while(500>Date.now()-r)}}(t,e);else if("ENOENT"!==n.code)throw n}}t.exports=u,u.sync=f},function(t,e,r){"use strict";const n=r(312),i=r(313),o=r(314);t.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(4),o=r(5),s=r(14),a=r(20).pathExists;t.exports={createFile:n((function(t,e){function r(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(n,o)=>{if(!n&&o.isFile())return e();const u=i.dirname(t);a(u,(t,n)=>t?e(t):n?r():void s.mkdirs(u,t=>{if(t)return e(t);r()}))})})),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const r=i.dirname(t);o.existsSync(r)||s.mkdirsSync(r),o.writeFileSync(t,"")}}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(4),o=r(5),s=r(14),a=r(20).pathExists;t.exports={createLink:n((function(t,e,r){function n(t,e){o.link(t,e,t=>{if(t)return r(t);r(null)})}a(e,(u,c)=>u?r(u):c?r(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);const u=i.dirname(e);a(u,(i,o)=>i?r(i):o?n(t,e):void s.mkdirs(u,i=>{if(i)return r(i);n(t,e)}))}))})),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const r=i.dirname(e);return o.existsSync(r)?o.linkSync(t,e):(s.mkdirsSync(r),o.linkSync(t,e))}}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(4),o=r(5),s=r(14),a=s.mkdirs,u=s.mkdirsSync,c=r(315),l=c.symlinkPaths,h=c.symlinkPathsSync,p=r(316),f=p.symlinkType,d=p.symlinkTypeSync,m=r(20).pathExists;t.exports={createSymlink:n((function(t,e,r,n){n="function"==typeof r?r:n,r="function"!=typeof r&&r,m(e,(s,u)=>s?n(s):u?n(null):void l(t,e,(s,u)=>{if(s)return n(s);t=u.toDst,f(u.toCwd,r,(r,s)=>{if(r)return n(r);const u=i.dirname(e);m(u,(r,i)=>r?n(r):i?o.symlink(t,e,s,n):void a(u,r=>{if(r)return n(r);o.symlink(t,e,s,n)}))})}))})),createSymlinkSync:function(t,e,r){if(o.existsSync(e))return;const n=h(t,e);t=n.toDst,r=d(n.toCwd,r);const s=i.dirname(e);return o.existsSync(s)?o.symlinkSync(t,e,r):(u(s),o.symlinkSync(t,e,r))}}},function(t,e,r){"use strict";const n=r(4),i=r(5),o=r(20).pathExists;t.exports={symlinkPaths:function(t,e,r){if(n.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:t}));{const s=n.dirname(e),a=n.join(s,t);return o(a,(e,o)=>e?r(e):o?r(null,{toCwd:a,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:n.relative(s,t)})))}},symlinkPathsSync:function(t,e){let r;if(n.isAbsolute(t)){if(!(r=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=n.dirname(e),s=n.join(o,t);if(r=i.existsSync(s))return{toCwd:s,toDst:t};if(!(r=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:n.relative(o,t)}}}}},function(t,e,r){"use strict";const n=r(5);t.exports={symlinkType:function(t,e,r){if(r="function"==typeof e?e:r,e="function"!=typeof e&&e)return r(null,e);n.lstat(t,(t,n)=>{if(t)return r(null,"file");e=n&&n.isDirectory()?"dir":"file",r(null,e)})},symlinkTypeSync:function(t,e){let r;if(e)return e;try{r=n.lstatSync(t)}catch(t){return"file"}return r&&r.isDirectory()?"dir":"file"}}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(74);i.outputJson=n(r(319)),i.outputJsonSync=r(320),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,r){var n;try{n=r(5)}catch(t){n=r(13)}function i(t,e){var r,n="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL)),JSON.stringify(t,e?e.replacer:null,r).replace(/\n/g,n)+n}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}var s={readFile:function(t,e,r){null==r&&(r=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||n,s=!0;"throws"in e&&(s=e.throws),i.readFile(t,e,(function(n,i){if(n)return r(n);var a;i=o(i);try{a=JSON.parse(i,e?e.reviver:null)}catch(e){return s?(e.message=t+": "+e.message,r(e)):r(null,null)}r(null,a)}))},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var r=e.fs||n,i=!0;"throws"in e&&(i=e.throws);try{var s=r.readFileSync(t,e);return s=o(s),JSON.parse(s,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,r,o){null==o&&(o=r,r={});var s=(r=r||{}).fs||n,a="";try{a=i(e,r)}catch(t){return void(o&&o(t,null))}s.writeFile(t,a,r,o)},writeFileSync:function(t,e,r){var o=(r=r||{}).fs||n,s=i(e,r);return o.writeFileSync(t,s,r)}};t.exports=s},function(t,e,r){"use strict";const n=r(4),i=r(14),o=r(20).pathExists,s=r(74);t.exports=function(t,e,r,a){"function"==typeof r&&(a=r,r={});const u=n.dirname(t);o(u,(n,o)=>n?a(n):o?s.writeJson(t,e,r,a):void i.mkdirs(u,n=>{if(n)return a(n);s.writeJson(t,e,r,a)}))}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(14),s=r(74);t.exports=function(t,e,r){const a=i.dirname(t);n.existsSync(a)||o.mkdirsSync(a),s.writeJsonSync(t,e,r)}},function(t,e,r){"use strict";const n=r(5),i=r(4),o=r(126).copySync,s=r(52).removeSync,a=r(14).mkdirsSync,u=r(129);function c(t,e,r){return n.statSync(t).isDirectory()?function(t,e,r){const n={overwrite:!1};function i(){return o(t,e,n),s(t)}r?(s(e),i()):i()}(t,e,r):function(t,e,r){const i=u(65536),o=r?"w":"wx",s=n.openSync(t,"r"),a=n.fstatSync(s),c=n.openSync(e,o,a.mode);let l=0;for(;l<a.size;){const t=n.readSync(s,i,0,65536,l);n.writeSync(c,i,0,t),l+=t}return n.closeSync(s),n.closeSync(c),n.unlinkSync(t)}(t,e,r)}t.exports={moveSync:function t(e,r,o){const u=(o=o||{}).overwrite||o.clobber||!1;if(e=i.resolve(e),r=i.resolve(r),e===r)return n.accessSync(e);if(function(t,e){try{return n.statSync(t).isDirectory()&&t!==e&&e.indexOf(t)>-1&&e.split(i.dirname(t)+i.sep)[1].split(i.sep)[0]===i.basename(t)}catch(t){return!1}}(e,r))throw new Error(`Cannot move '${e}' into itself '${r}'.`);a(i.dirname(r)),function(){if(u)try{n.renameSync(e,r)}catch(n){if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)return s(r),o.overwrite=!1,t(e,r,o);if("EXDEV"!==n.code)throw n;return c(e,r,u)}else try{n.linkSync(e,r),n.unlinkSync(e)}catch(t){if("EXDEV"===t.code||"EISDIR"===t.code||"EPERM"===t.code||"ENOTSUP"===t.code)return c(e,r,u);throw t}}()}}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(5),o=r(4),s=r(130).copy,a=r(52).remove,u=r(14).mkdirp,c=r(20).pathExists;function l(t,e,r,n){i.rename(t,e,i=>i?"EXDEV"!==i.code?n(i):function(t,e,r,n){s(t,e,{overwrite:r,errorOnExist:!0},e=>e?n(e):a(t,n))}(t,e,r,n):n())}t.exports={move:n((function(t,e,r,n){"function"==typeof r&&(n=r,r={});const s=r.overwrite||r.clobber||!1;if(t=o.resolve(t),e=o.resolve(e),t===e)return i.access(t,n);i.stat(t,(r,i)=>r?n(r):i.isDirectory()&&function(t,e){const r=t.split(o.sep),n=e.split(o.sep);return r.reduce((t,e,r)=>t&&n[r]===e,!0)}(t,e)?n(new Error(`Cannot move '${t}' to a subdirectory of itself, '${e}'.`)):void u(o.dirname(e),r=>r?n(r):function(t,e,r,n){if(r)return a(e,i=>i?n(i):l(t,e,r,n));c(e,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):l(t,e,r,n))}(t,e,s,n)))}))}},function(t,e,r){"use strict";const n=r(11).fromCallback,i=r(5),o=r(4),s=r(14),a=r(20).pathExists;t.exports={outputFile:n((function(t,e,r,n){"function"==typeof r&&(n=r,r="utf8");const u=o.dirname(t);a(u,(o,a)=>o?n(o):a?i.writeFile(t,e,r,n):void s.mkdirs(u,o=>{if(o)return n(o);i.writeFile(t,e,r,n)}))})),outputFileSync:function(t,...e){const r=o.dirname(t);if(i.existsSync(r))return i.writeFileSync(t,...e);s.mkdirsSync(r),i.writeFileSync(t,...e)}}},function(t,e,r){"use strict";const n=r(5),i=r(29),o=r(75),s=r(30),a=(t,e)=>new Promise((r,n)=>{s.writeMaybeCompressedFile(t,e,r,n,{compress:!0})});t.exports=new class{read(t){return i(t,i.string.nonEmpty),new Promise((e,r)=>{s.readMaybeCompressedFile(t,{compressed:!0}).then(t=>{e(t)},r)})}write(t,e){return i(t,i.string.nonEmpty),i(e,i.string.nonEmpty),a(t,e)}output(t,e){return i(t,i.string.nonEmpty),i(e,i.string.nonEmpty),new Promise((r,n)=>{s.ensureContainingFolder(t).then(()=>{a(t,e).then(r,n)},n)})}compress(t,e=`${t}.gz`){return i(t,i.string.nonEmpty),i(e,i.string.nonEmpty),new Promise(r=>{n.createReadStream(t).pipe(o.createGzip({level:s.defaultCompressionLevel})).pipe(n.createWriteStream(e)).on("close",()=>{r(e)})})}decompress(t,e=t.replace(/\.gz$/u,"")){return i(t,i.string.nonEmpty),i(e,i.string.nonEmpty),new Promise(r=>{n.createReadStream(t).pipe(o.createGunzip()).pipe(n.createWriteStream(e)).on("close",()=>{r(e)})})}}},function(t,e){t.exports=require("url")},function(t,e,r){"use strict";const n=r(29),i=r(30),o=(t,e,{replacer:r,space:n}={})=>new Promise((o,s)=>{i.writeMaybeCompressedFile(t,`${JSON.stringify(e,r,n)}\n`,o,s)});t.exports=new class{read(t,e){return n(t,n.string.nonEmpty),n(e,n.optional.function),new Promise((r,n)=>{i.readMaybeCompressedFile(t).then(t=>{try{r(JSON.parse(t.replace(/^\uFEFF/u,""),e))}catch(t){n(t)}},n)})}write(t,e,r){return n(t,n.string.nonEmpty),n(e,n.object),n(r,n.optional.object),o(t,e,r)}output(t,e,r){return n(t,n.string.nonEmpty),n(e,n.object),n(r,n.optional.object),new Promise((n,s)=>{i.ensureContainingFolder(t).then(()=>{o(t,e,r).then(n,s)},s)})}}},function(t,e,r){"use strict";const n=r(328),i=r(29),o=r(30),s=(t,e,{replacer:r,space:i}={})=>new Promise((s,a)=>{o.writeMaybeCompressedFile(t,`${n.stringify(e,r,i)}\n`,s,a)});t.exports=new class{read(t,e){return i(t,i.string.nonEmpty),i(e,i.optional.function),new Promise((r,i)=>{o.readMaybeCompressedFile(t).then(t=>{try{r(n.parse(t.replace(/^\uFEFF/u,""),e))}catch(t){i(t)}},i)})}write(t,e,r){return i(t,i.string.nonEmpty),i(e,i.object),i(r,i.optional.object),s(t,e,r)}output(t,e,r){return i(t,i.string.nonEmpty),i(e,i.object),i(r,i.optional.object),new Promise((n,i)=>{o.ensureContainingFolder(t).then(()=>{s(t,e,r).then(n,i)},i)})}}},function(t,e,r){const n={parse:r(329),stringify:r(331)};t.exports=n},function(t,e,r){const n=r(131);let i,o,s,a,u,c,l,h,p,f,d,m,y,D;function g(){for(f="default",d="",m=!1,y=1;;){D=v();const t=b[f]();if(t)return t}}function v(){if(i[a])return String.fromCodePoint(i.codePointAt(a))}function E(){const t=v();return"\n"===t?(u++,c=0):t?c+=t.length:c++,t&&(a+=t.length),t}t.exports=function(t,e){i=String(t),o="start",s=[],a=0,u=1,c=0,l=void 0,h=void 0,p=void 0;do{l=g(),C[o]()}while("eof"!==l.type);return"function"==typeof e?function t(e,r,n){const i=e[r];if(null!=i&&"object"==typeof i)for(const e in i){const r=t(i,e,n);void 0===r?delete i[e]:i[e]=r}return n.call(e,r,i)}({"":p},"",e):p};const b={default(){switch(D){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void E();case"/":return E(),void(f="comment");case void 0:return E(),x("eof")}if(!n.isSpaceSeparator(D))return b[o]();E()},comment(){switch(D){case"*":return E(),void(f="multiLineComment");case"/":return E(),void(f="singleLineComment")}throw T(E())},multiLineComment(){switch(D){case"*":return E(),void(f="multiLineCommentAsterisk");case void 0:throw T(E())}E()},multiLineCommentAsterisk(){switch(D){case"*":return void E();case"/":return E(),void(f="default");case void 0:throw T(E())}E(),f="multiLineComment"},singleLineComment(){switch(D){case"\n":case"\r":case"\u2028":case"\u2029":return E(),void(f="default");case void 0:return E(),x("eof")}E()},value(){switch(D){case"{":case"[":return x("punctuator",E());case"n":return E(),w("ull"),x("null",null);case"t":return E(),w("rue"),x("boolean",!0);case"f":return E(),w("alse"),x("boolean",!1);case"-":case"+":return"-"===E()&&(y=-1),void(f="sign");case".":return d=E(),void(f="decimalPointLeading");case"0":return d=E(),void(f="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return d=E(),void(f="decimalInteger");case"I":return E(),w("nfinity"),x("numeric",1/0);case"N":return E(),w("aN"),x("numeric",NaN);case'"':case"'":return m='"'===E(),d="",void(f="string")}throw T(E())},identifierNameStartEscape(){if("u"!==D)throw T(E());E();const t=A();switch(t){case"$":case"_":break;default:if(!n.isIdStartChar(t))throw k()}d+=t,f="identifierName"},identifierName(){switch(D){case"$":case"_":case"":case"":return void(d+=E());case"\\":return E(),void(f="identifierNameEscape")}if(!n.isIdContinueChar(D))return x("identifier",d);d+=E()},identifierNameEscape(){if("u"!==D)throw T(E());E();const t=A();switch(t){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(t))throw k()}d+=t,f="identifierName"},sign(){switch(D){case".":return d=E(),void(f="decimalPointLeading");case"0":return d=E(),void(f="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return d=E(),void(f="decimalInteger");case"I":return E(),w("nfinity"),x("numeric",y*(1/0));case"N":return E(),w("aN"),x("numeric",NaN)}throw T(E())},zero(){switch(D){case".":return d+=E(),void(f="decimalPoint");case"e":case"E":return d+=E(),void(f="decimalExponent");case"x":case"X":return d+=E(),void(f="hexadecimal")}return x("numeric",0*y)},decimalInteger(){switch(D){case".":return d+=E(),void(f="decimalPoint");case"e":case"E":return d+=E(),void(f="decimalExponent")}if(!n.isDigit(D))return x("numeric",y*Number(d));d+=E()},decimalPointLeading(){if(n.isDigit(D))return d+=E(),void(f="decimalFraction");throw T(E())},decimalPoint(){switch(D){case"e":case"E":return d+=E(),void(f="decimalExponent")}return n.isDigit(D)?(d+=E(),void(f="decimalFraction")):x("numeric",y*Number(d))},decimalFraction(){switch(D){case"e":case"E":return d+=E(),void(f="decimalExponent")}if(!n.isDigit(D))return x("numeric",y*Number(d));d+=E()},decimalExponent(){switch(D){case"+":case"-":return d+=E(),void(f="decimalExponentSign")}if(n.isDigit(D))return d+=E(),void(f="decimalExponentInteger");throw T(E())},decimalExponentSign(){if(n.isDigit(D))return d+=E(),void(f="decimalExponentInteger");throw T(E())},decimalExponentInteger(){if(!n.isDigit(D))return x("numeric",y*Number(d));d+=E()},hexadecimal(){if(n.isHexDigit(D))return d+=E(),void(f="hexadecimalInteger");throw T(E())},hexadecimalInteger(){if(!n.isHexDigit(D))return x("numeric",y*Number(d));d+=E()},string(){switch(D){case"\\":return E(),void(d+=function(){switch(v()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),"\n";case"r":return E(),"\r";case"t":return E(),"\t";case"v":return E(),"\v";case"0":if(E(),n.isDigit(v()))throw T(E());return"\0";case"x":return E(),function(){let t="",e=v();if(!n.isHexDigit(e))throw T(E());if(t+=E(),e=v(),!n.isHexDigit(e))throw T(E());return t+=E(),String.fromCodePoint(parseInt(t,16))}();case"u":return E(),A();case"\n":case"\u2028":case"\u2029":return E(),"";case"\r":return E(),"\n"===v()&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw T(E())}return E()}());case'"':return m?(E(),x("string",d)):void(d+=E());case"'":return m?void(d+=E()):(E(),x("string",d));case"\n":case"\r":throw T(E());case"\u2028":case"\u2029":!function(t){console.warn(`JSON5: '${I(t)}' in strings is not valid ECMAScript; consider escaping`)}(D);break;case void 0:throw T(E())}d+=E()},start(){switch(D){case"{":case"[":return x("punctuator",E())}f="value"},beforePropertyName(){switch(D){case"$":case"_":return d=E(),void(f="identifierName");case"\\":return E(),void(f="identifierNameStartEscape");case"}":return x("punctuator",E());case'"':case"'":return m='"'===E(),void(f="string")}if(n.isIdStartChar(D))return d+=E(),void(f="identifierName");throw T(E())},afterPropertyName(){if(":"===D)return x("punctuator",E());throw T(E())},beforePropertyValue(){f="value"},afterPropertyValue(){switch(D){case",":case"}":return x("punctuator",E())}throw T(E())},beforeArrayValue(){if("]"===D)return x("punctuator",E());f="value"},afterArrayValue(){switch(D){case",":case"]":return x("punctuator",E())}throw T(E())},end(){throw T(E())}};function x(t,e){return{type:t,value:e,line:u,column:c}}function w(t){for(const e of t){if(v()!==e)throw T(E());E()}}function A(){let t="",e=4;for(;e-- >0;){const e=v();if(!n.isHexDigit(e))throw T(E());t+=E()}return String.fromCodePoint(parseInt(t,16))}const C={start(){if("eof"===l.type)throw O();S()},beforePropertyName(){switch(l.type){case"identifier":case"string":return h=l.value,void(o="afterPropertyName");case"punctuator":return void F();case"eof":throw O()}},afterPropertyName(){if("eof"===l.type)throw O();o="beforePropertyValue"},beforePropertyValue(){if("eof"===l.type)throw O();S()},beforeArrayValue(){if("eof"===l.type)throw O();"punctuator"!==l.type||"]"!==l.value?S():F()},afterPropertyValue(){if("eof"===l.type)throw O();switch(l.value){case",":return void(o="beforePropertyName");case"}":F()}},afterArrayValue(){if("eof"===l.type)throw O();switch(l.value){case",":return void(o="beforeArrayValue");case"]":F()}},end(){}};function S(){let t;switch(l.type){case"punctuator":switch(l.value){case"{":t={};break;case"[":t=[]}break;case"null":case"boolean":case"numeric":case"string":t=l.value}if(void 0===p)p=t;else{const e=s[s.length-1];Array.isArray(e)?e.push(t):e[h]=t}if(null!==t&&"object"==typeof t)s.push(t),o=Array.isArray(t)?"beforeArrayValue":"beforePropertyName";else{const t=s[s.length-1];o=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}}function F(){s.pop();const t=s[s.length-1];o=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}function T(t){return N(void 0===t?`JSON5: invalid end of input at ${u}:${c}`:`JSON5: invalid character '${I(t)}' at ${u}:${c}`)}function O(){return N(`JSON5: invalid end of input at ${u}:${c}`)}function k(){return N(`JSON5: invalid identifier character at ${u}:${c-=5}`)}function I(t){const 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){const e=t.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return t}function N(t){const e=new SyntaxError(t);return e.lineNumber=u,e.columnNumber=c,e}},function(t,e){t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.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]/,t.exports.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]/},function(t,e,r){const n=r(131);t.exports=function(t,e,r){const i=[];let o,s,a,u="",c="";if(null==e||"object"!=typeof e||Array.isArray(e)||(r=e.space,a=e.quote,e=e.replacer),"function"==typeof e)s=e;else if(Array.isArray(e)){o=[];for(const t of e){let e;"string"==typeof t?e=t:("number"==typeof t||t instanceof String||t instanceof Number)&&(e=String(t)),void 0!==e&&0>o.indexOf(e)&&o.push(e)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),c=" ".substr(0,r)):"string"==typeof r&&(c=r.substr(0,10)),function t(e,r){let n=r[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),s&&(n=s.call(r,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?l(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(i.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");i.push(e);let r=u;u+=c;let n,o=[];for(let r=0;r<e.length;r++){const n=t(String(r),e);o.push(void 0!==n?n:"null")}if(0===o.length)n="[]";else if(""===c)n="["+o.join(",")+"]";else{let t=",\n"+u,e=o.join(t);n="[\n"+u+e+",\n"+r+"]"}return i.pop(),u=r,n}(n):function(e){if(i.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");i.push(e);let r=u;u+=c;let n,s=o||Object.keys(e),a=[];for(const r of s){const n=t(r,e);if(void 0!==n){let t=h(r)+":";""!==c&&(t+=" "),t+=n,a.push(t)}}if(0===a.length)n="{}";else{let t;if(""===c)n="{"+(t=a.join(","))+"}";else{let e=",\n"+u;t=a.join(e),n="{\n"+u+t+",\n"+r+"}"}}return i.pop(),u=r,n}(n):void 0}("",{"":t});function l(t){const e={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let n="";for(const i of t){switch(i){case"'":case'"':e[i]++,n+=i;continue}if(r[i])n+=r[i];else if(" ">i){let t=i.charCodeAt(0).toString(16);n+="\\x"+("00"+t).substring(t.length)}else n+=i}const i=a||Object.keys(e).reduce((t,r)=>e[t]<e[r]?t:r);return i+(n=n.replace(new RegExp(i,"g"),r[i]))+i}function h(t){if(0===t.length)return l(t);const e=String.fromCodePoint(t.codePointAt(0));if(!n.isIdStartChar(e))return l(t);for(let r=e.length;r<t.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(t.codePointAt(r))))return l(t);return t}}},function(t,e,r){"use strict";const n=r(333),{forEach:i}=r(334),o=r(335),s=r(72),a=r(53),u=r(5),c=r(352),l=r(353),h=r(54),p=r(29),f=r(4),d=r(354),m=r(75),y=r(30);t.exports=new class{scandir(t,e,{recursive:r=!1,fullPath:n=!1,pattern:i="**",keepJunk:o=!1}={}){return p(t,p.string.nonEmpty),p(e,p.string.nonEmpty.is(()=>["file","dir"].includes(e)||"Must be 'file' or 'dir'")),p(r,p.boolean),p(n,p.boolean),p(i,p.string.nonEmpty),p(o,p.boolean),new Promise(s=>{const a=t.replace(/\/$/u,""),u=[];l(a,{nodir:!1,nofile:"dir"===e,depthLimit:r?-1:0}).on("readable",(function(){let t;for(;t=this.read();){const{path:r,stats:s}=t,l=r.split(f.sep).pop(),p=r.substring(a.length+1);("dir"===e||"file"===e&&!s.isDirectory())&&(o||!o&&c.not(l)&&![".gitkeep"].includes(l))&&h(p,i,{dot:!0,matchBase:!0})&&u.push(n?t.path:t.path.substring(a.length+1))}})).on("end",()=>{s(u)})})}removeEmptyDir(t){return p(t,p.string.nonEmpty),o(t)}removePattern(t){return p(t,p.string.nonEmpty),new Promise((e,r)=>{d(t,t=>{t?r(t):e()})})}mergeFiles(t,e){return p(t,p.array.nonEmpty),p(e,p.string.nonEmpty),new Promise(r=>{s.remove(e).then(()=>{i(t,(function(t){const r=this.async(),n=u.createReadStream(t),i=u.createWriteStream(e,{flags:"a"});e.endsWith(".gz")?n.pipe(m.createGzip({level:y.defaultCompressionLevel})).pipe(i):n.pipe(i),n.on("close",r)}),r)})})}chmodPattern(t,e,r){return p(t,p.string.nonEmpty),p(e,p.number.integer.positive.finite),p(r,p.optional.object),new Promise((i,o)=>{a(t,r,(t,r)=>{t?o(t):n.every(r,(t,r)=>{u.chmod(t,e,r)},()=>{i()})})})}}},function(t,e,r){(function(t){!function(e){"use strict";function r(t,e){e|=0;for(var r=Math.max(t.length-e,0),n=Array(r),i=0;r>i;i++)n[i]=t[e+i];return n}var n=function(t){var e=r(arguments,1);return function(){var n=r(arguments);return t.apply(null,e.concat(n))}},i=function(t){return function(){var e=r(arguments),n=e.pop();t.call(this,e,n)}};function o(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var s="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function u(t){setTimeout(t,0)}function c(t){return function(e){var n=r(arguments,1);t((function(){e.apply(null,n)}))}}var l=c(s?setImmediate:a?process.nextTick:u);function h(t){return i((function(e,r){var n;try{n=t.apply(this,e)}catch(t){return r(t)}o(n)&&"function"==typeof n.then?n.then((function(t){p(r,null,t)}),(function(t){p(r,t.message?t:new Error(t))})):r(null,n)}))}function p(t,e,r){try{t(e,r)}catch(t){l(f,t)}}function f(t){throw t}var d="function"==typeof Symbol;function m(t){return d&&"AsyncFunction"===t[Symbol.toStringTag]}function y(t){return m(t)?h(t):t}function D(t){return function(e){var n=r(arguments,1),o=i((function(r,n){var i=this;return t(e,(function(t,e){y(t).apply(i,r.concat(e))}),n)}));return n.length?o.apply(this,n):o}}var g="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,E=g||v||Function("return this")(),b=E.Symbol,x=Object.prototype,w=x.hasOwnProperty,A=x.toString,C=b?b.toStringTag:void 0,S=Object.prototype.toString,F="[object Null]",T="[object Undefined]",O=b?b.toStringTag:void 0;function k(t){return null==t?void 0===t?T:F:O&&O in Object(t)?function(t){var e=w.call(t,C),r=t[C];try{t[C]=void 0;var n=!0}catch(t){}var i=A.call(t);return n&&(e?t[C]=r:delete t[C]),i}(t):function(t){return S.call(t)}(t)}var I="[object AsyncFunction]",N="[object Function]",B="[object GeneratorFunction]",P="[object Proxy]",_=9007199254740991;function j(t){return"number"==typeof t&&t>-1&&t%1==0&&_>=t}function M(t){return null!=t&&j(t.length)&&!function(t){if(!o(t))return!1;var e=k(t);return e==N||e==B||e==I||e==P}(t)}var L={};function $(){}function R(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,V=function(t){return U&&t[U]&&t[U]()};function z(t){return null!=t&&"object"==typeof t}var J="[object Arguments]";function G(t){return z(t)&&k(t)==J}var q=Object.prototype,X=q.hasOwnProperty,W=q.propertyIsEnumerable,K=G(function(){return arguments}())?G:function(t){return z(t)&&X.call(t,"callee")&&!W.call(t,"callee")},Y=Array.isArray,H="object"==typeof e&&e&&!e.nodeType&&e,Q=H&&"object"==typeof t&&t&&!t.nodeType&&t,Z=Q&&Q.exports===H?E.Buffer:void 0,tt=(Z?Z.isBuffer:void 0)||function(){return!1},et=9007199254740991,rt=/^(?:0|[1-9]\d*)$/;function nt(t,e){var r=typeof t;return!!(e=null==e?et:e)&&("number"==r||"symbol"!=r&&rt.test(t))&&t>-1&&t%1==0&&e>t}var it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var ot,st="object"==typeof e&&e&&!e.nodeType&&e,at=st&&"object"==typeof t&&t&&!t.nodeType&&t,ut=at&&at.exports===st&&g.process,ct=function(){try{return at&&at.require&&at.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(t){}}(),lt=ct&&ct.isTypedArray,ht=lt?(ot=lt,function(t){return ot(t)}):function(t){return z(t)&&j(t.length)&&!!it[k(t)]},pt=Object.prototype.hasOwnProperty,ft=Object.prototype,dt=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),mt=Object.prototype.hasOwnProperty;function yt(t){return M(t)?function(t,e){var r=Y(t),n=!r&&K(t),i=!r&&!n&&tt(t),o=!r&&!n&&!i&&ht(t),s=r||n||i||o,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=a.length;for(var c in t)!pt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||nt(c,u))||a.push(c);return a}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||ft))return dt(t);var e,r,n=[];for(var i in Object(t))mt.call(t,i)&&"constructor"!=i&&n.push(i);return n}(t)}function Dt(t){return function(){if(null===t)throw new Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}}function gt(t){return function(e,r,n){if(n=R(n||$),0>=t||!e)return n(null);var i=function(t){if(M(t))return function(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}(t);var e,r,n,i,o=V(t);return o?function(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}(o):(r=yt(e=t),n=-1,i=r.length,function(){var t=r[++n];return i>n?{value:e[t],key:t}:null})}(e),o=!1,s=0,a=!1;function u(t,e){if(s-=1,t)o=!0,n(t);else{if(e===L||o&&0>=s)return o=!0,n(null);a||c()}}function c(){for(a=!0;t>s&&!o;){var e=i();if(null===e)return o=!0,void(s>0||n(null));s+=1,r(e.value,e.key,Dt(u))}a=!1}c()}}function vt(t,e,r,n){gt(e)(t,y(r),n)}function Et(t,e){return function(r,n,i){return t(r,e,n,i)}}function bt(t,e,r){r=R(r||$);var n=0,i=0,o=t.length;function s(t,e){t?r(t):++i!==o&&e!==L||r(null)}for(0===o&&r(null);o>n;n++)e(t[n],n,Dt(s))}var xt=Et(vt,1/0),wt=function(t,e,r){(M(t)?bt:xt)(t,y(e),r)};function At(t){return function(e,r,n){return t(wt,e,y(r),n)}}function Ct(t,e,r,n){n=n||$,e=e||[];var i=[],o=0,s=y(r);t(e,(function(t,e,r){var n=o++;s(t,(function(t,e){i[n]=e,r(t)}))}),(function(t){n(t,i)}))}var St=At(Ct),Ft=D(St);function Tt(t){return function(e,r,n,i){return t(gt(r),e,y(n),i)}}var Ot=Tt(Ct),kt=Et(Ot,1),It=D(kt);function Nt(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var Bt=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var a=o[++n];if(!1===e(i[a],a,i))break}return t};function Pt(t,e){return t&&Bt(t,e,yt)}function _t(t){return t!=t}function jt(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var i=t.length,o=r+-1;++o<i;)if(e(t[o],o,t))return o;return-1}(t,_t,r)}var Mt=function(t,e,n){"function"==typeof e&&(n=e,e=null),n=R(n||$);var i=yt(t).length;if(!i)return n(null);e||(e=i);var o={},s=0,a=!1,u=Object.create(null),c=[],l=[],h={};function p(t,e){c.push((function(){!function(t,e){if(!a){var i=Dt((function(e,i){if(s--,arguments.length>2&&(i=r(arguments,1)),e){var c={};Pt(o,(function(t,e){c[e]=t})),c[t]=i,a=!0,u=Object.create(null),n(e,c)}else o[t]=i,d(t)}));s++;var c=y(e[e.length-1]);e.length>1?c(o,i):c(i)}}(t,e)}))}function f(){if(0===c.length&&0===s)return n(null,o);for(;c.length&&e>s;)c.shift()()}function d(t){Nt(u[t]||[],(function(t){t()})),f()}function m(e){var r=[];return Pt(t,(function(t,n){Y(t)&&jt(t,e,0)>=0&&r.push(n)})),r}Pt(t,(function(e,r){if(!Y(e))return p(r,[e]),void l.push(r);var n=e.slice(0,e.length-1),i=n.length;if(0===i)return p(r,e),void l.push(r);h[r]=i,Nt(n,(function(o){if(!t[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));var s,a,c;a=function(){0==--i&&p(r,e)},(c=u[s=o])||(c=u[s]=[]),c.push(a)}))})),function(){for(var t=0;l.length;)t++,Nt(m(l.pop()),(function(t){0==--h[t]&&l.push(t)}));if(t!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),f()};function Lt(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var $t="[object Symbol]",Rt=1/0,Ut=b?b.prototype:void 0,Vt=Ut?Ut.toString:void 0;function zt(t){if("string"==typeof t)return t;if(Y(t))return Lt(t,zt)+"";if(function(t){return"symbol"==typeof t||z(t)&&k(t)==$t}(t))return Vt?Vt.call(t):"";var e=t+"";return"0"==e&&1/t==-Rt?"-0":e}var Jt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Gt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",qt="\\ud83c[\\udffb-\\udfff]",Xt="[^\\ud800-\\udfff]",Wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Yt="(?:"+Gt+"|"+qt+")?",Ht="[\\ufe0e\\ufe0f]?"+Yt+"(?:\\u200d(?:"+[Xt,Wt,Kt].join("|")+")[\\ufe0e\\ufe0f]?"+Yt+")*",Qt="(?:"+[Xt+Gt+"?",Gt,Wt,Kt,"[\\ud800-\\udfff]"].join("|")+")",Zt=RegExp(qt+"(?="+qt+")|"+Qt+Ht,"g");function te(t){return function(t){return Jt.test(t)}(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}var ee=/^\s+|\s+$/g,re=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ne=/,/,ie=/(=.+)?(\s*)$/,oe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function se(t,e){var r={};Pt(t,(function(t,e){var n,i=m(t),o=!i&&1===t.length||i&&0===t.length;if(Y(t))n=t.slice(0,-1),t=t[t.length-1],r[e]=n.concat(n.length>0?s:t);else if(o)r[e]=t;else{if(n=function(t){return(t=(t=(t=t.toString().replace(oe,"")).match(re)[2].replace(" ",""))?t.split(ne):[]).map((function(t){return function(t,e,r){var n;if((t=null==(n=t)?"":zt(n))&&void 0===e)return t.replace(ee,"");if(!t||!(e=zt(e)))return t;var i=te(t),o=te(e);return function(t,e,r){var n=t.length;return r=void 0===r?n:r,e||n>r?function(t,e,r){var n=-1,i=t.length;0>e&&(e=-e>i?0:i+e),0>(r=r>i?i:r)&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(t,e,r):t}(i,function(t,e){for(var r=-1,n=t.length;++r<n&&jt(e,t[r],0)>-1;);return r}(i,o),function(t,e){for(var r=t.length;r--&&jt(e,t[r],0)>-1;);return r}(i,o)+1).join("")}(t.replace(ie,""))}))}(t),0===t.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[e]=n.concat(s)}function s(e,r){var i=Lt(n,(function(t){return e[t]}));i.push(r),y(t).apply(null,i)}})),Mt(r,e)}function ae(){this.head=this.tail=null,this.length=0}function ue(t,e){t.length=1,t.head=t.tail=e}function ce(t,e,r){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var n=y(t),i=0,o=[],s=!1;function a(t,e,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(h.started=!0,Y(t)||(t=[t]),0===t.length&&h.idle())return l((function(){h.drain()}));for(var n=0,i=t.length;i>n;n++){var o={data:t[n],callback:r||$};e?h._tasks.unshift(o):h._tasks.push(o)}s||(s=!0,l((function(){s=!1,h.process()})))}function u(t){return function(e){i-=1;for(var r=0,n=t.length;n>r;r++){var s=t[r],a=jt(o,s,0);0===a?o.shift():a>0&&o.splice(a,1),s.callback.apply(s,arguments),null!=e&&h.error(e,s.data)}i>h.concurrency-h.buffer||h.unsaturated(),h.idle()&&h.drain(),h.process()}}var c=!1,h={_tasks:new ae,concurrency:e,payload:r,saturated:$,unsaturated:$,buffer:e/4,empty:$,drain:$,error:$,started:!1,paused:!1,push:function(t,e){a(t,!1,e)},kill:function(){h.drain=$,h._tasks.empty()},unshift:function(t,e){a(t,!0,e)},remove:function(t){h._tasks.remove(t)},process:function(){if(!c){for(c=!0;!h.paused&&i<h.concurrency&&h._tasks.length;){var t=[],e=[],r=h._tasks.length;h.payload&&(r=Math.min(r,h.payload));for(var s=0;r>s;s++){var a=h._tasks.shift();t.push(a),o.push(a),e.push(a.data)}i+=1,0===h._tasks.length&&h.empty(),i===h.concurrency&&h.saturated();var l=Dt(u(t));n(e,l)}c=!1}},length:function(){return h._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return h._tasks.length+i===0},pause:function(){h.paused=!0},resume:function(){!1!==h.paused&&(h.paused=!1,l(h.process))}};return h}function le(t,e){return ce(t,1,e)}ae.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},ae.prototype.empty=function(){for(;this.head;)this.shift();return this},ae.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},ae.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},ae.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ue(this,t)},ae.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ue(this,t)},ae.prototype.shift=function(){return this.head&&this.removeLink(this.head)},ae.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},ae.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,r=0;r<this.length;r++)t[r]=e.data,e=e.next;return t},ae.prototype.remove=function(t){for(var e=this.head;e;){var r=e.next;t(e)&&this.removeLink(e),e=r}return this};var he=Et(vt,1);function pe(t,e,r,n){n=R(n||$);var i=y(r);he(t,(function(t,r,n){i(e,t,(function(t,r){e=r,n(t)}))}),(function(t){n(t,e)}))}function fe(){var t=Lt(arguments,y);return function(){var e=r(arguments),n=this,i=e[e.length-1];"function"==typeof i?e.pop():i=$,pe(t,e,(function(t,e,i){e.apply(n,t.concat((function(t){var e=r(arguments,1);i(t,e)})))}),(function(t,e){i.apply(n,[t].concat(e))}))}}var de=function(){return fe.apply(null,r(arguments).reverse())},me=Array.prototype.concat,ye=function(t,e,n,i){i=i||$;var o=y(n);Ot(t,e,(function(t,e){o(t,(function(t){return t?e(t):e(null,r(arguments,1))}))}),(function(t,e){for(var r=[],n=0;n<e.length;n++)e[n]&&(r=me.apply(r,e[n]));return i(t,r)}))},De=Et(ye,1/0),ge=Et(ye,1),ve=function(){var t=r(arguments),e=[null].concat(t);return function(){var t=arguments[arguments.length-1];return t.apply(this,e)}};function Ee(t){return t}function be(t,e){return function(r,n,i,o){o=o||$;var s,a=!1;r(n,(function(r,n,o){i(r,(function(n,i){n?o(n):t(i)&&!s?(a=!0,s=e(!0,r),o(null,L)):o()}))}),(function(t){t?o(t):o(null,a?s:e(!1))}))}}function xe(t,e){return e}var we=At(be(Ee,xe)),Ae=Tt(be(Ee,xe)),Ce=Et(Ae,1);function Se(t){return function(e){var n=r(arguments,1);n.push((function(e){var n=r(arguments,1);"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&Nt(n,(function(e){console[t](e)})))})),y(e).apply(null,n)}}var Fe=Se("dir");function Te(t,e,n){n=Dt(n||$);var i=y(t),o=y(e);function s(t){if(t)return n(t);var e=r(arguments,1);e.push(a),o.apply(this,e)}function a(t,e){return t?n(t):e?void i(s):n(null)}a(null,!0)}function Oe(t,e,n){n=Dt(n||$);var i=y(t),o=function(t){if(t)return n(t);var s=r(arguments,1);if(e.apply(this,s))return i(o);n.apply(null,[null].concat(s))};i(o)}function ke(t,e,r){Oe(t,(function(){return!e.apply(this,arguments)}),r)}function Ie(t,e,r){r=Dt(r||$);var n=y(e),i=y(t);function o(t){if(t)return r(t);i(s)}function s(t,e){return t?r(t):e?void n(o):r(null)}i(s)}function Ne(t){return function(e,r,n){return t(e,n)}}function Be(t,e,r){wt(t,Ne(y(e)),r)}function Pe(t,e,r,n){gt(e)(t,Ne(y(r)),n)}var _e=Et(Pe,1);function je(t){return m(t)?t:i((function(e,r){var n=!0;e.push((function(){var t=arguments;n?l((function(){r.apply(null,t)})):r.apply(null,t)})),t.apply(this,e),n=!1}))}function Me(t){return!t}var Le=At(be(Me,Me)),$e=Tt(be(Me,Me)),Re=Et($e,1);function Ue(t){return function(e){return null==e?void 0:e[t]}}function Ve(t,e,r,n){var i=new Array(e.length);t(e,(function(t,e,n){r(t,(function(t,r){i[e]=!!r,n(t)}))}),(function(t){if(t)return n(t);for(var r=[],o=0;o<e.length;o++)i[o]&&r.push(e[o]);n(null,r)}))}function ze(t,e,r,n){var i=[];t(e,(function(t,e,n){r(t,(function(r,o){r?n(r):(o&&i.push({index:e,value:t}),n())}))}),(function(t){t?n(t):n(null,Lt(i.sort((function(t,e){return t.index-e.index})),Ue("value")))}))}function Je(t,e,r,n){(M(e)?Ve:ze)(t,e,y(r),n||$)}var Ge=At(Je),qe=Tt(Je),Xe=Et(qe,1);function We(t,e){var r=Dt(e||$),n=y(je(t));!function t(e){if(e)return r(e);n(t)}()}var Ke=function(t,e,r,n){n=n||$;var i=y(r);Ot(t,e,(function(t,e){i(t,(function(r,n){return r?e(r):e(null,{key:n,val:t})}))}),(function(t,e){for(var r={},i=Object.prototype.hasOwnProperty,o=0;o<e.length;o++)if(e[o]){var s=e[o].key,a=e[o].val;i.call(r,s)?r[s].push(a):r[s]=[a]}return n(t,r)}))},Ye=Et(Ke,1/0),He=Et(Ke,1),Qe=Se("log");function Ze(t,e,r,n){n=R(n||$);var i={},o=y(r);vt(t,e,(function(t,e,r){o(t,e,(function(t,n){if(t)return r(t);i[e]=n,r()}))}),(function(t){n(t,i)}))}var tr=Et(Ze,1/0),er=Et(Ze,1);function rr(t,e){return e in t}function nr(t,e){var n=Object.create(null),o=Object.create(null);e=e||Ee;var s=y(t),a=i((function(t,i){var a=e.apply(null,t);rr(n,a)?l((function(){i.apply(null,n[a])})):rr(o,a)?o[a].push(i):(o[a]=[i],s.apply(null,t.concat((function(){var t=r(arguments);n[a]=t;var e=o[a];delete o[a];for(var i=0,s=e.length;s>i;i++)e[i].apply(null,t)}))))}));return a.memo=n,a.unmemoized=t,a}var ir=c(a?process.nextTick:s?setImmediate:u);function or(t,e,n){n=n||$;var i=M(e)?[]:{};t(e,(function(t,e,n){y(t)((function(t,o){arguments.length>2&&(o=r(arguments,1)),i[e]=o,n(t)}))}),(function(t){n(t,i)}))}function sr(t,e){or(wt,t,e)}function ar(t,e,r){or(gt(e),t,r)}var ur=function(t,e){var r=y(t);return ce((function(t,e){r(t[0],e)}),e,1)},cr=function(t,e){var r=ur(t,e);return r.push=function(t,e,n){if(null==n&&(n=$),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,Y(t)||(t=[t]),0===t.length)return l((function(){r.drain()}));e=e||0;for(var i=r._tasks.head;i&&e>=i.priority;)i=i.next;for(var o=0,s=t.length;s>o;o++){var a={data:t[o],priority:e,callback:n};i?r._tasks.insertBefore(i,a):r._tasks.push(a)}l(r.process)},delete r.unshift,r};function lr(t,e){if(e=R(e||$),!Y(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,n=t.length;n>r;r++)y(t[r])(e)}function hr(t,e,n,i){pe(r(t).reverse(),e,n,i)}function pr(t){var e=y(t);return i((function(t,n){return t.push((function(t,e){var i;t?n(null,{error:t}):(i=arguments.length>2?r(arguments,1):e,n(null,{value:i}))})),e.apply(this,t)}))}function fr(t){var e;return Y(t)?e=Lt(t,pr):(e={},Pt(t,(function(t,r){e[r]=pr.call(this,t)}))),e}function dr(t,e,r,n){Je(t,e,(function(t,e){r(t,(function(t,r){e(t,!r)}))}),n)}var mr=At(dr),yr=Tt(dr),Dr=Et(yr,1);function gr(t){return function(){return t}}function vr(t,e,r){var n={times:5,intervalFunc:gr(0)};if(3>arguments.length&&"function"==typeof t?(r=e||$,e=t):(function(t,e){if("object"==typeof e)t.times=+e.times||5,t.intervalFunc="function"==typeof e.interval?e.interval:gr(+e.interval||0),t.errorFilter=e.errorFilter;else{if("number"!=typeof e&&"string"!=typeof e)throw new Error("Invalid arguments for async.retry");t.times=+e||5}}(n,t),r=r||$),"function"!=typeof e)throw new Error("Invalid arguments for async.retry");var i=y(e),o=1;!function t(){i((function(e){e&&o++<n.times&&("function"!=typeof n.errorFilter||n.errorFilter(e))?setTimeout(t,n.intervalFunc(o)):r.apply(null,arguments)}))}()}var Er=function(t,e){e||(e=t,t=null);var r=y(e);return i((function(e,n){function i(t){r.apply(null,e.concat(t))}t?vr(t,i,n):vr(i,n)}))};function br(t,e){or(he,t,e)}var xr=At(be(Boolean,Ee)),wr=Tt(be(Boolean,Ee)),Ar=Et(wr,1);function Cr(t,e,r){var n=y(e);function i(t,e){var r=t.criteria,n=e.criteria;return n>r?-1:r>n?1:0}St(t,(function(t,e){n(t,(function(r,n){if(r)return e(r);e(null,{value:t,criteria:n})}))}),(function(t,e){if(t)return r(t);r(null,Lt(e.sort(i),Ue("value")))}))}function Sr(t,e,r){var n=y(t);return i((function(i,o){var s,a=!1;i.push((function(){a||(o.apply(null,arguments),clearTimeout(s))})),s=setTimeout((function(){var e=t.name||"anonymous",n=new Error('Callback function "'+e+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),a=!0,o(n)}),e),n.apply(null,i)}))}var Fr=Math.ceil,Tr=Math.max;function Or(t,e,r,n){var i=y(r);Ot(function(t,e,r,n){for(var i=-1,o=Tr(Fr((e-t)/1),0),s=Array(o);o--;)s[++i]=t,t+=1;return s}(0,t),e,i,n)}var kr=Et(Or,1/0),Ir=Et(Or,1);function Nr(t,e,r,n){arguments.length>3||(n=r,r=e,e=Y(t)?[]:{}),n=R(n||$);var i=y(r);wt(t,(function(t,r,n){i(e,t,r,n)}),(function(t){n(t,e)}))}function Br(t,e){var n,i=null;e=e||$,_e(t,(function(t,e){y(t)((function(t,o){n=arguments.length>2?r(arguments,1):o,i=t,e(!t)}))}),(function(){e(i,n)}))}function Pr(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function _r(t,e,n){n=Dt(n||$);var i=y(e);if(!t())return n(null);var o=function(e){if(e)return n(e);if(t())return i(o);var s=r(arguments,1);n.apply(null,[null].concat(s))};i(o)}function jr(t,e,r){_r((function(){return!t.apply(this,arguments)}),e,r)}var Mr=function(t,e){if(e=R(e||$),!Y(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var n=0;function i(e){var r=y(t[n++]);e.push(Dt(o)),r.apply(null,e)}function o(o){if(o||n===t.length)return e.apply(null,arguments);i(r(arguments,1))}i([])},Lr={apply:n,applyEach:Ft,applyEachSeries:It,asyncify:h,auto:Mt,autoInject:se,cargo:le,compose:de,concat:De,concatLimit:ye,concatSeries:ge,constant:ve,detect:we,detectLimit:Ae,detectSeries:Ce,dir:Fe,doDuring:Te,doUntil:ke,doWhilst:Oe,during:Ie,each:Be,eachLimit:Pe,eachOf:wt,eachOfLimit:vt,eachOfSeries:he,eachSeries:_e,ensureAsync:je,every:Le,everyLimit:$e,everySeries:Re,filter:Ge,filterLimit:qe,filterSeries:Xe,forever:We,groupBy:Ye,groupByLimit:Ke,groupBySeries:He,log:Qe,map:St,mapLimit:Ot,mapSeries:kt,mapValues:tr,mapValuesLimit:Ze,mapValuesSeries:er,memoize:nr,nextTick:ir,parallel:sr,parallelLimit:ar,priorityQueue:cr,queue:ur,race:lr,reduce:pe,reduceRight:hr,reflect:pr,reflectAll:fr,reject:mr,rejectLimit:yr,rejectSeries:Dr,retry:vr,retryable:Er,seq:fe,series:br,setImmediate:l,some:xr,someLimit:wr,someSeries:Ar,sortBy:Cr,timeout:Sr,times:kr,timesLimit:Or,timesSeries:Ir,transform:Nr,tryEach:Br,unmemoize:Pr,until:jr,waterfall:Mr,whilst:_r,all:Le,allLimit:$e,allSeries:Re,any:xr,anyLimit:wr,anySeries:Ar,find:we,findLimit:Ae,findSeries:Ce,forEach:Be,forEachSeries:_e,forEachLimit:Pe,forEachOf:wt,forEachOfSeries:he,forEachOfLimit:vt,inject:pe,foldl:pe,foldr:hr,select:Ge,selectLimit:qe,selectSeries:Xe,wrapSync:h};e.default=Lr,e.apply=n,e.applyEach=Ft,e.applyEachSeries=It,e.asyncify=h,e.auto=Mt,e.autoInject=se,e.cargo=le,e.compose=de,e.concat=De,e.concatLimit=ye,e.concatSeries=ge,e.constant=ve,e.detect=we,e.detectLimit=Ae,e.detectSeries=Ce,e.dir=Fe,e.doDuring=Te,e.doUntil=ke,e.doWhilst=Oe,e.during=Ie,e.each=Be,e.eachLimit=Pe,e.eachOf=wt,e.eachOfLimit=vt,e.eachOfSeries=he,e.eachSeries=_e,e.ensureAsync=je,e.every=Le,e.everyLimit=$e,e.everySeries=Re,e.filter=Ge,e.filterLimit=qe,e.filterSeries=Xe,e.forever=We,e.groupBy=Ye,e.groupByLimit=Ke,e.groupBySeries=He,e.log=Qe,e.map=St,e.mapLimit=Ot,e.mapSeries=kt,e.mapValues=tr,e.mapValuesLimit=Ze,e.mapValuesSeries=er,e.memoize=nr,e.nextTick=ir,e.parallel=sr,e.parallelLimit=ar,e.priorityQueue=cr,e.queue=ur,e.race=lr,e.reduce=pe,e.reduceRight=hr,e.reflect=pr,e.reflectAll=fr,e.reject=mr,e.rejectLimit=yr,e.rejectSeries=Dr,e.retry=vr,e.retryable=Er,e.seq=fe,e.series=br,e.setImmediate=l,e.some=xr,e.someLimit=wr,e.someSeries=Ar,e.sortBy=Cr,e.timeout=Sr,e.times=kr,e.timesLimit=Or,e.timesSeries=Ir,e.transform=Nr,e.tryEach=Br,e.unmemoize=Pr,e.until=jr,e.waterfall=Mr,e.whilst=_r,e.all=Le,e.allLimit=$e,e.allSeries=Re,e.any=xr,e.anyLimit=wr,e.anySeries=Ar,e.find=we,e.findLimit=Ae,e.findSeries=Ce,e.forEach=Be,e.forEachSeries=_e,e.forEachLimit=Pe,e.forEachOf=wt,e.forEachOfSeries=he,e.forEachOfLimit=vt,e.inject=pe,e.foldl=pe,e.foldr=hr,e.select=Ge,e.selectLimit=qe,e.selectSeries=Xe,e.wrapSync=h,Object.defineProperty(e,"__esModule",{value:!0})}(e)}).call(this,r(70)(t))},function(t,e,r){!function(t){t.forEach=function(t,e,r){var n=-1,i=t.length>>>0;!function o(s){var a,u=!1===s;do{++n}while(!(n in t)&&n!==i);u||n===i?r&&r(!u,t):(s=e.call({async:function(){return a=!0,o}},t[n],n,t),a||o(s))}()}}(e||this)},function(t,e,r){"use strict";const n=r(13),i=r(16),o=r(4),s=r(336),a=r(340),u=r(343),c=i.promisify(n.readdir),l=i.promisify(u);function h(t,e,r){"function"==typeof e&&(r=e,e={});const n=h.promise(t,e);if("function"!=typeof r)return n;n.then(t=>r(null,t)).catch(r)}function p(t,e,r,n){var i=n.filter||d;for(const s of t){const t=o.join(e,s);if((!n.dryRun||-1===r.indexOf(t))&&!1===i(t))return!1}return!0}function f(t){try{return n.statSync(t).isDirectory()}catch(t){return!1}}function d(t){return/(?:Thumbs\.db|\.DS_Store)$/i.test(t)}h.promise=function(t,e){const r=Object.assign({},e),n=o.resolve(t),i=[];return"string"!=typeof t?Promise.reject(new TypeError("expected the first argument to be a string")):async function t(e){const u=o.resolve(e);return 0===u.indexOf(n)&&-1===i.indexOf(u)&&f(u)?await c(u).then(async e=>{if(p(e,u,i,r))return i.push(u),!0===r.dryRun?t(o.dirname(u)):l(u).then(()=>(!0===r.verbose&&s("deleted:",a(u)),t(o.dirname(u))));for(const r of e)await t(o.join(u,r));return Promise.resolve(i)}):Promise.resolve(i)}(n).then(i)},h.sync=function(t,e){const r=Object.assign({},e),i=o.resolve(t),c=[];if("string"!=typeof t)throw new TypeError("expected the first argument to be a string");return function t(e){const l=o.resolve(e);if(0!==l.indexOf(i)||-1!==c.indexOf(l)||!f(l))return c;const h=n.readdirSync(l);if(p(h,l,c,r))return c.push(l),!0===r.dryRun?t(o.dirname(l)):(u.sync(l),!0===r.verbose&&s("deleted:",a(l)),t(o.dirname(l)));for(const e of h)t(o.join(l,e));return c}(i),c},t.exports=h},function(t,e,r){"use strict";var n=r(337),i=r(338);t.exports=function(){var t=[].slice.call(arguments),e=t[0],r=i(n);if("string"==typeof e){var o=/^(\s+)(.*)/.exec(e);o&&(r=o[1]+r,t[0]=o[2])}console.log.bind(console,r).apply(console,t)}},function(t,e){t.exports="win32"===process.platform?"√":"✔"},function(t,e,r){"use strict";var n=r(339);t.exports=function(t){return n(32,39,t)}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"["+t+"m"+r+"["+e+"m"}},function(t,e,r){"use strict";var n=r(341),i=r(4),o=r(13);function s(t,e,r){if("string"!=typeof t)throw new TypeError("relative expects a string.");if(""==t&&!e)return t;var o=arguments.length;1===o&&(e=t,t=process.cwd(),r=null),2===o&&"boolean"==typeof e&&(e=t,t=process.cwd(),r=!0),2===o&&"object"==typeof e&&(r=e,e=t,t=process.cwd());var s=e,l=u(t,"/"),h=u(e,"/");t=a(t),e=a(e),l&&(t+="/"),function(t,e){return!0===e&&(e=c(t)),!function(t,e){if(u(t,"/"))return!0;if(null===e&&(e=c(t)),n(e)&&"function"==typeof e.isDirectory)return e.isDirectory();var r=t.split("/"),i=r[r.length-1];return!i||-1===i.indexOf(".")}(t,e)}(t,r)&&(t=i.dirname(t));var p=i.relative(t,e);if(""===p)return".";var f,d=(f=s).slice(0,f.length-"/".length);return h&&(p===d||u(p,d))&&(p+="/"),p}function a(t){return t.replace(/[\\\/]+/g,"/")}function u(t,e){return t.slice(-e.length)[0]===e}function c(t){try{return o.statSync(t)}catch(t){}return null}t.exports=s,s.toBase=function(t,e){t=a(t);var r=(e=a(e)).slice(t.length);return"/"===r.charAt(0)&&(r=r.slice(1)),r}},function(t,e,r){"use strict";var n=r(342);t.exports=function(t){return null!=t&&"object"==typeof t&&!1===n(t)}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){t.exports=p,p.sync=D;var n=r(26),i=r(4),o=r(13),s=void 0;try{s=r(53)}catch(t){}var a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,l="win32"===process.platform;function h(t){if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((function(e){t[e]=t[e]||o[e],t[e+="Sync"]=t[e]||o[e]})),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,!1===t.glob&&(t.disableGlob=!0),!0!==t.disableGlob&&void 0===s)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||u}function p(t,e,r){"function"==typeof e&&(r=e,e={}),n(t,"rimraf: missing path"),n.equal(typeof t,"string","rimraf: path should be a string"),n.equal(typeof r,"function","rimraf: callback function required"),n(e,"rimraf: invalid options argument provided"),n.equal(typeof e,"object","rimraf: options should be object"),h(e);var i=0,o=null,a=0;if(e.disableGlob||!s.hasMagic(t))return u(null,[t]);function u(t,n){return t?r(t):0===(a=n.length)?r():void n.forEach((function(t){f(t,e,(function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&i<e.maxBusyTries)return i++,setTimeout((function(){f(t,e,n)}),100*i);if("EMFILE"===s.code&&c<e.emfileWait)return setTimeout((function(){f(t,e,n)}),c++);"ENOENT"===s.code&&(s=null)}c=0,function(t){o=o||t,0==--a&&r(o)}(s)}))}))}e.lstat(t,(function(r,n){if(!r)return u(null,[t]);s(t,e.glob,u)}))}function f(t,e,r){n(t),n(e),n("function"==typeof r),e.lstat(t,(function(n,i){return n&&"ENOENT"===n.code?r(null):(n&&"EPERM"===n.code&&l&&d(t,e,n,r),i&&i.isDirectory()?y(t,e,n,r):void e.unlink(t,(function(n){if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return l?d(t,e,n,r):y(t,e,n,r);if("EISDIR"===n.code)return y(t,e,n,r)}return r(n)})))}))}function d(t,e,r,i){n(t),n(e),n("function"==typeof i),r&&n(r instanceof Error),e.chmod(t,a,(function(n){n?i("ENOENT"===n.code?null:r):e.stat(t,(function(n,o){n?i("ENOENT"===n.code?null:r):o.isDirectory()?y(t,e,r,i):e.unlink(t,i)}))}))}function m(t,e,r){n(t),n(e),r&&n(r instanceof Error);try{e.chmodSync(t,a)}catch(t){if("ENOENT"===t.code)return;throw r}try{var i=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw r}i.isDirectory()?g(t,e,r):e.unlinkSync(t)}function y(t,e,r,o){n(t),n(e),r&&n(r instanceof Error),n("function"==typeof o),e.rmdir(t,(function(s){!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?o(r):o(s):function(t,e,r){n(t),n(e),n("function"==typeof r),e.readdir(t,(function(n,o){if(n)return r(n);var s,a=o.length;if(0===a)return e.rmdir(t,r);o.forEach((function(n){p(i.join(t,n),e,(function(n){if(!s)return n?r(s=n):void(0==--a&&e.rmdir(t,r))}))}))}))}(t,e,o)}))}function D(t,e){var r;if(h(e=e||{}),n(t,"rimraf: missing path"),n.equal(typeof t,"string","rimraf: path should be a string"),n(e,"rimraf: missing options"),n.equal(typeof e,"object","rimraf: options should be object"),e.disableGlob||!s.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch(n){r=s.sync(t,e.glob)}if(r.length)for(var i=0;i<r.length;i++){t=r[i];try{var o=e.lstatSync(t)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&l&&m(t,e,r)}try{o&&o.isDirectory()?g(t,e,null):e.unlinkSync(t)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return l?m(t,e,r):g(t,e,r);if("EISDIR"!==r.code)throw r;g(t,e,r)}}}function g(t,e,r){n(t),n(e),r&&n(r instanceof Error);try{e.rmdirSync(t)}catch(o){if("ENOENT"===o.code)return;if("ENOTDIR"===o.code)throw r;"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code||function(t,e){n(t),n(e),e.readdirSync(t).forEach((function(r){D(i.join(t,r),e)}));for(var r=l?100:1,o=0;;){var s=!0;try{var a=e.rmdirSync(t,e);return s=!1,a}finally{if(++o<r&&s)continue}}}(t,e)}}},function(t,e,r){var n=r(4),i="win32"===process.platform,o=r(13),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(n.normalize,i)var a=/(.*?)(?:[\/\\]+|$)/g;else a=/(.*?)(?:[\/]+|$)/g;if(i)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;e.realpathSync=function(t,e){if(t=n.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var r,s,c,l,h=t,p={},f={};function d(){var e=u.exec(t);r=e[0].length,s=e[0],c=e[0],l="",i&&!f[c]&&(o.lstatSync(c),f[c]=!0)}for(d();r<t.length;){a.lastIndex=r;var m=a.exec(t);if(l=s,s+=m[0],c=l+m[1],r=a.lastIndex,!(f[c]||e&&e[c]===c)){var y;if(e&&Object.prototype.hasOwnProperty.call(e,c))y=e[c];else{var D=o.lstatSync(c);if(!D.isSymbolicLink()){f[c]=!0,e&&(e[c]=c);continue}var g=null;if(!i){var v=D.dev.toString(32)+":"+D.ino.toString(32);p.hasOwnProperty(v)&&(g=p[v])}null===g&&(o.statSync(c),g=o.readlinkSync(c)),y=n.resolve(l,g),e&&(e[c]=y),i||(p[v]=g)}t=n.resolve(y,t.slice(r)),d()}}return e&&(e[h]=t),t},e.realpath=function(t,e,r){if("function"!=typeof r&&(r=function(t){return"function"==typeof t?t:function(){var t;if(s){var e=new Error;t=function(t){t&&(e.message=t.message,r(t=e))}}else t=r;return t;function r(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}(e),e=null),t=n.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return process.nextTick(r.bind(null,null,e[t]));var c,l,h,p,f=t,d={},m={};function y(){var e=u.exec(t);c=e[0].length,l=e[0],h=e[0],p="",i&&!m[h]?o.lstat(h,(function(t){if(t)return r(t);m[h]=!0,D()})):process.nextTick(D)}function D(){if(c>=t.length)return e&&(e[f]=t),r(null,t);a.lastIndex=c;var n=a.exec(t);return p=l,l+=n[0],h=p+n[1],c=a.lastIndex,m[h]||e&&e[h]===h?process.nextTick(D):e&&Object.prototype.hasOwnProperty.call(e,h)?E(e[h]):o.lstat(h,g)}function g(t,n){if(t)return r(t);if(!n.isSymbolicLink())return m[h]=!0,e&&(e[h]=h),process.nextTick(D);if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(s))return v(null,d[s],h)}o.stat(h,(function(t){if(t)return r(t);o.readlink(h,(function(t,e){i||(d[s]=e),v(t,e)}))}))}function v(t,i,o){if(t)return r(t);var s=n.resolve(p,i);e&&(e[o]=s),E(s)}function E(e){t=n.resolve(e,t.slice(c)),y()}y()}},function(t,e,r){var n=r(346),i=r(347);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),function t(e,r){var o=[],s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var u,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=c||h,D=s.body.indexOf(",")>=0;if(!y&&!D)return s.post.match(/,.*\}/)?(e=s.pre+"{"+s.body+a+s.post,t(e)):[e];if(y)u=s.body.split(/\.\./);else if(1===(u=function t(e){if(!e)return[""];var r=[],n=i("{","}",e);if(!n)return e.split(",");var o=n.pre,s=n.body,a=n.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var c=t(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),r.push.apply(r,u),r}(s.body)).length&&1===(u=t(u[0],!1).map(p)).length)return(E=s.post.length?t(s.post,!1):[""]).map((function(t){return s.pre+u[0]+t}));var g,v=s.pre,E=s.post.length?t(s.post,!1):[""];if(y){var b=l(u[0]),x=l(u[1]),w=Math.max(u[0].length,u[1].length),A=3==u.length?Math.abs(l(u[2])):1,C=d;b>x&&(A*=-1,C=m);var S=u.some(f);g=[];for(var F=b;C(F,x);F+=A){var T;if(h)"\\"===(T=String.fromCharCode(F))&&(T="");else if(T=String(F),S){var O=w-T.length;if(O>0){var k=new Array(O+1).join("0");T=0>F?"-"+k+T.slice(1):k+T}}g.push(T)}}else g=n(u,(function(e){return t(e,!1)}));for(var I=0;I<g.length;I++)for(var N=0;N<E.length;N++){var B=v+g[I]+E[N];(!r||y||B)&&o.push(B)}return o}(function(t){return t.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}(t),!0).map(h)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(o).join("\\").split(s).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function p(t){return"{"+t+"}"}function f(t){return/^-?0\d/.test(t)}function d(t,e){return e>=t}function m(t,e){return t>=e}},function(t,e){t.exports=function(t,e){for(var n=[],i=0;i<t.length;i++){var o=e(t[i],i);r(o)?n.push.apply(n,o):n.push(o)}return n};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";function n(t,e,r){t instanceof RegExp&&(t=i(t,r)),e instanceof RegExp&&(e=i(e,r));var n=o(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function i(t,e){var r=e.match(t);return r?r[0]:null}function o(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){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]:(o>(i=n.pop())&&(o=i,s=c),c=r.indexOf(e,l+1)),l=c>u&&u>=0?u:c;n.length&&(a=[o,s])}return a}t.exports=n,n.range=o},function(t,e,r){try{var n=r(16);if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(e){t.exports=r(349)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){t.exports=d,d.GlobSync=m;var n=r(13),i=r(132),o=r(54),s=(o.Minimatch,r(53).Glob,r(16),r(4)),a=r(26),u=r(76),c=r(133),l=(c.alphasort,c.alphasorti,c.setopts),h=c.ownProp,p=c.childrenIgnored,f=c.isIgnored;function d(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(t,e).found}function m(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(t,e);if(l(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;r>n;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}m.prototype._finish=function(){if(a(this instanceof m),this.realpath){var t=this;this.matches.forEach((function(e,r){var n=t.matches[r]=Object.create(null);for(var o in e)try{o=t._makeAbs(o),n[i.realpathSync(o,t.realpathCache)]=!0}catch(e){if("stat"!==e.syscall)throw e;n[t._makeAbs(o)]=!0}}))}c.finish(this)},m.prototype._process=function(t,e,r){a(this instanceof m);for(var n,i=0;"string"==typeof t[i];)i++;switch(i){case t.length:return void this._processSimple(t.join("/"),e);case 0:n=null;break;default:n=t.slice(0,i).join("/")}var s,c=t.slice(i);null===n?s=".":u(n)||u(t.join("/"))?(n&&u(n)||(n="/"+n),s=n):s=n;var l=this._makeAbs(s);p(this,s)||(c[0]===o.GLOBSTAR?this._processGlobStar(n,s,l,c,e,r):this._processReaddir(n,s,l,c,e,r))},m.prototype._processReaddir=function(t,e,r,n,i,o){var a=this._readdir(r,o);if(a){for(var u=n[0],c=!!this.minimatch.negate,l=u._glob,h=this.dot||"."===l.charAt(0),p=[],f=0;f<a.length;f++)("."!==(y=a[f]).charAt(0)||h)&&(c&&!t?!y.match(u):y.match(u))&&p.push(y);var d=p.length;if(0!==d)if(1!==n.length||this.mark||this.stat)for(n.shift(),f=0;d>f;f++){var m;y=p[f],m=t?[t,y]:[y],this._process(m.concat(n),i,o)}else for(this.matches[i]||(this.matches[i]=Object.create(null)),f=0;d>f;f++){var y=p[f];t&&(y="/"!==t.slice(-1)?t+"/"+y:t+y),"/"!==y.charAt(0)||this.nomount||(y=s.join(this.root,y)),this._emitMatch(i,y)}}},m.prototype._emitMatch=function(t,e){if(!f(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}},m.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r;try{r=n.lstatSync(t)}catch(t){if("ENOENT"===t.code)return null}var i=r&&r.isSymbolicLink();return this.symlinks[t]=i,i||!r||r.isDirectory()?e=this._readdir(t,!1):this.cache[t]="FILE",e},m.prototype._readdir=function(t,e){if(e&&!h(this.symlinks,t))return this._readdirInGlobStar(t);if(h(this.cache,t)){var r=this.cache[t];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(t,n.readdirSync(t))}catch(e){return this._readdirError(t,e),null}},m.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var n=e[r];n="/"===t?t+n:t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,e},m.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=e.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e)}},m.prototype._processGlobStar=function(t,e,r,n,i,o){var s=this._readdir(r,o);if(s){var a=n.slice(1),u=t?[t]:[],c=u.concat(a);this._process(c,i,!1);var l=s.length;if(!this.symlinks[r]||!o)for(var h=0;l>h;h++)if("."!==s[h].charAt(0)||this.dot){var p=u.concat(s[h],a);this._process(p,i,!0);var f=u.concat(s[h],n);this._process(f,i,!0)}}},m.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),r){if(t&&u(t)&&!this.nomount){var n=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=s.join(this.root,t):(t=s.resolve(this.root,t),n&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}},m.prototype._stat=function(t){var e=this._makeAbs(t),r="/"===t.slice(-1);if(t.length>this.maxLength)return!1;if(!this.stat&&h(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return i;if(r&&"FILE"===i)return!1}var o=this.statCache[e];if(!o){var s;try{s=n.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{o=n.statSync(e)}catch(t){o=s}else o=s}return this.statCache[e]=o,i=!0,o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!r||"FILE"!==i)&&i},m.prototype._mark=function(t){return c.mark(this,t)},m.prototype._makeAbs=function(t){return c.makeAbs(this,t)}},function(t,e,r){var n=r(134),i=Object.create(null),o=r(135);function s(t){for(var e=t.length,r=[],n=0;e>n;n++)r[n]=t[n];return r}t.exports=n((function(t,e){return i[t]?(i[t].push(e),null):(i[t]=[e],function(t){return o((function e(){var r=i[t],n=r.length,o=s(arguments);try{for(var a=0;n>a;a++)r[a].apply(null,o)}finally{r.length>n?(r.splice(0,n),process.nextTick((function(){e.apply(null,o)}))):delete i[t]}}))}(t))}))},function(t,e,r){"use strict";e.re=()=>{throw new Error("`junk.re` was renamed to `junk.regex`")},e.regex=new RegExp(["^npm-debug\\.log$","^\\..*\\.swp$","^\\.DS_Store$","^\\.AppleDouble$","^\\.LSOverride$","^Icon\\r$","^\\._.*","^\\.Spotlight-V100(?:$|\\/)","\\.Trashes","^__MACOSX$","~$","^Thumbs\\.db$","^ehthumbs\\.db$","^Desktop\\.ini$","@eaDir$"].join("|")),e.is=t=>e.regex.test(t),e.not=t=>!e.is(t),e.default=t.exports},function(t,e,r){var n=r(26),i=r(4),o=r(73).Readable;function s(t,e){n.strictEqual(typeof t,"string","`dir` parameter should be of type string. Got type: "+typeof t),e=Object.assign({queueMethod:"shift",pathSorter:void 0,filter:void 0,depthLimit:void 0,preserveSymlinks:!1},e,{objectMode:!0}),o.call(this,e),this.root=i.resolve(t),this.paths=[this.root],this.options=e,e.depthLimit>-1&&(this.rootDepth=this.root.split(i.sep).length+1),this.fs=e.fs||r(5)}r(16).inherits(s,o),s.prototype._read=function(){if(0===this.paths.length)return this.push(null);var t=this,e=this.paths[this.options.queueMethod]();(this.options.preserveSymlinks?t.fs.lstat:t.fs.stat)(e,(function(r,n){var o={path:e,stats:n};return r?t.emit("error",r,o):!n.isDirectory()||t.rootDepth&&e.split(i.sep).length-t.rootDepth>=t.options.depthLimit?t.push(o):void t.fs.readdir(e,(function(r,n){if(r)return t.push(o),t.emit("error",r,o);n=n.map((function(t){return i.join(e,t)})),t.options.filter&&(n=n.filter(t.options.filter)),t.options.pathSorter&&n.sort(t.options.pathSorter),t.paths.push.apply(t.paths,n),t.push(o)}))}))},t.exports=function(t,e){return new s(t,e)}},function(t,e,r){t.exports=p,p.sync=D;var n=r(26),i=r(4),o=r(13),s=void 0;try{s=r(53)}catch(t){}var a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,l="win32"===process.platform;function h(t){if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((function(e){t[e]=t[e]||o[e],t[e+="Sync"]=t[e]||o[e]})),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,!1===t.glob&&(t.disableGlob=!0),!0!==t.disableGlob&&void 0===s)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||u}function p(t,e,r){"function"==typeof e&&(r=e,e={}),n(t,"rimraf: missing path"),n.equal(typeof t,"string","rimraf: path should be a string"),n.equal(typeof r,"function","rimraf: callback function required"),n(e,"rimraf: invalid options argument provided"),n.equal(typeof e,"object","rimraf: options should be object"),h(e);var i=0,o=null,a=0;if(e.disableGlob||!s.hasMagic(t))return u(null,[t]);function u(t,n){return t?r(t):0===(a=n.length)?r():void n.forEach((function(t){f(t,e,(function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&i<e.maxBusyTries)return i++,setTimeout((function(){f(t,e,n)}),100*i);if("EMFILE"===s.code&&c<e.emfileWait)return setTimeout((function(){f(t,e,n)}),c++);"ENOENT"===s.code&&(s=null)}c=0,function(t){o=o||t,0==--a&&r(o)}(s)}))}))}e.lstat(t,(function(r,n){if(!r)return u(null,[t]);s(t,e.glob,u)}))}function f(t,e,r){n(t),n(e),n("function"==typeof r),e.lstat(t,(function(n,i){return n&&"ENOENT"===n.code?r(null):(n&&"EPERM"===n.code&&l&&d(t,e,n,r),i&&i.isDirectory()?y(t,e,n,r):void e.unlink(t,(function(n){if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return l?d(t,e,n,r):y(t,e,n,r);if("EISDIR"===n.code)return y(t,e,n,r)}return r(n)})))}))}function d(t,e,r,i){n(t),n(e),n("function"==typeof i),r&&n(r instanceof Error),e.chmod(t,a,(function(n){n?i("ENOENT"===n.code?null:r):e.stat(t,(function(n,o){n?i("ENOENT"===n.code?null:r):o.isDirectory()?y(t,e,r,i):e.unlink(t,i)}))}))}function m(t,e,r){n(t),n(e),r&&n(r instanceof Error);try{e.chmodSync(t,a)}catch(t){if("ENOENT"===t.code)return;throw r}try{var i=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw r}i.isDirectory()?g(t,e,r):e.unlinkSync(t)}function y(t,e,r,o){n(t),n(e),r&&n(r instanceof Error),n("function"==typeof o),e.rmdir(t,(function(s){!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?o(r):o(s):function(t,e,r){n(t),n(e),n("function"==typeof r),e.readdir(t,(function(n,o){if(n)return r(n);var s,a=o.length;if(0===a)return e.rmdir(t,r);o.forEach((function(n){p(i.join(t,n),e,(function(n){if(!s)return n?r(s=n):void(0==--a&&e.rmdir(t,r))}))}))}))}(t,e,o)}))}function D(t,e){var r;if(h(e=e||{}),n(t,"rimraf: missing path"),n.equal(typeof t,"string","rimraf: path should be a string"),n(e,"rimraf: missing options"),n.equal(typeof e,"object","rimraf: options should be object"),e.disableGlob||!s.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch(n){r=s.sync(t,e.glob)}if(r.length)for(var i=0;i<r.length;i++){t=r[i];try{var o=e.lstatSync(t)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&l&&m(t,e,r)}try{o&&o.isDirectory()?g(t,e,null):e.unlinkSync(t)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return l?m(t,e,r):g(t,e,r);if("EISDIR"!==r.code)throw r;g(t,e,r)}}}function g(t,e,r){n(t),n(e),r&&n(r instanceof Error);try{e.rmdirSync(t)}catch(o){if("ENOENT"===o.code)return;if("ENOTDIR"===o.code)throw r;"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code||function(t,e){n(t),n(e),e.readdirSync(t).forEach((function(r){D(i.join(t,r),e)}));for(var r=l?100:1,o=0;;){var s=!0;try{var a=e.rmdirSync(t,e);return s=!1,a}finally{if(++o<r&&s)continue}}}(t,e)}}},function(t,e,r){"use strict";const n=r(29),i=r(356),o=r(30),s=(t,e,r)=>new Promise((n,s)=>{o.writeMaybeCompressedFile(t,`${new i.Builder(r).buildObject(e)}\n`,n,s)});t.exports=new class{read(t,e){return n(t,n.string.nonEmpty),n(e,n.optional.object),new Promise((r,n)=>{o.readMaybeCompressedFile(t).then(t=>{i.parseString(t,e,(t,e)=>{t&&n(t),r(e)})},n)})}write(t,e,r){return n(t,n.string.nonEmpty),n(e,n.object),n(r,n.optional.object),s(t,e,r)}output(t,e,r){return n(t,n.string.nonEmpty),n(e,n.object),n(r,n.optional.object),new Promise((n,i)=>{o.ensureContainingFolder(t).then(()=>{s(t,e,r).then(n,i)},i)})}}},function(t,e,r){(function(){"use strict";var t,n,i,o,s={}.hasOwnProperty;n=r(77),t=r(357),i=r(366),o=r(142),e.defaults=n.defaults,e.processors=o,e.ValidationError=function(t){function e(t){this.message=t}return function(t,e){for(var r in e)s.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,Error),e}(),e.Builder=t.Builder,e.Parser=i.Parser,e.parseString=i.parseString,e.parseStringPromise=i.parseStringPromise}).call(this)},function(t,e,r){(function(){"use strict";var t,n,i,o,s,a={}.hasOwnProperty;t=r(358),n=r(77).defaults,o=function(t){return!("string"!=typeof t||0>t.indexOf("&")&&0>t.indexOf(">")&&0>t.indexOf("<"))},s=function(t){return"<![CDATA["+i(t)+"]]>"},i=function(t){return t.replace("]]>","]]]]><![CDATA[>")},e.Builder=function(){function e(t){var e,r,i;for(e in this.options={},r=n[.2])a.call(r,e)&&(i=r[e],this.options[e]=i);for(e in t)a.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var r,i,u,c,l,h;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n[.2].rootName?e=e[l=Object.keys(e)[0]]:l=this.options.rootName,h=this,u=function(t,e){var n,c,l,p,f,d;if("object"!=typeof e)h.options.cdata&&o(e)?t.raw(s(e)):t.txt(e);else if(Array.isArray(e)){for(p in e)if(a.call(e,p))for(f in c=e[p])l=c[f],t=u(t.ele(f),l).up()}else for(f in e)if(a.call(e,f))if(c=e[f],f===r){if("object"==typeof c)for(n in c)d=c[n],t=t.att(n,d)}else if(f===i)t=h.options.cdata&&o(c)?t.raw(s(c)):t.txt(c);else if(Array.isArray(c))for(p in c)a.call(c,p)&&(t="string"==typeof(l=c[p])?h.options.cdata&&o(l)?t.ele(f).raw(s(l)).up():t.ele(f,l).up():u(t.ele(f),l).up());else"object"==typeof c?t=u(t.ele(f),c).up():"string"==typeof c&&h.options.cdata&&o(c)?t=t.ele(f).raw(s(c)).up():(null==c&&(c=""),t=t.ele(f,c.toString()).up());return t},c=t.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(c,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,r){(function(){var e,n,i,o,s,a,u,c,l,h;h=r(21),c=h.assign,l=h.isFunction,i=r(136),o=r(137),s=r(364),u=r(91),a=r(365),e=r(7),n=r(56),t.exports.create=function(t,e,r,n){var i,s;if(null==t)throw new Error("Root element needs a name.");return n=c({},e,r,n),s=(i=new o(n)).element(t),n.headless||(i.declaration(n),null==n.pubID&&null==n.sysID||i.dtd(n)),s},t.exports.begin=function(t,e,r){var n;return l(t)&&(e=(n=[t,e])[0],r=n[1],t={}),e?new s(t,e,r):new o(t)},t.exports.stringWriter=function(t){return new u(t)},t.exports.streamWriter=function(t,e){return new a(t,e)},t.exports.implementation=new i,t.exports.nodeType=e,t.exports.writerState=n}).call(this)},function(t,e,r){(function(){var e,n;e=r(360),n=r(361),t.exports=function(){function t(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(t.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),t.prototype.getParameter=function(t){return this.params.hasOwnProperty(t)?this.params[t]:null},t.prototype.canSetParameter=function(t,e){return!0},t.prototype.setParameter=function(t,e){return null!=e?this.params[t]=e:delete this.params[t]},t}()}).call(this)},function(t,e){(function(){t.exports=function(){function t(){}return t.prototype.handleError=function(t){throw new Error(t)},t}()}).call(this)},function(t,e){(function(){t.exports=function(){function t(t){this.arr=t||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(t){return this.arr[t]||null},t.prototype.contains=function(t){return-1!==this.arr.indexOf(t)},t}()}).call(this)},function(t,e){(function(){t.exports=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(t){return this.nodes[t]||null},t}()}).call(this)},function(t,e){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},function(t,e,r){(function(){var e,n,i,o,s,a,u,c,l,h,p,f,d,m,y,D,g,v,E,b,x,w,A,C={}.hasOwnProperty;A=r(21),x=A.isObject,b=A.isFunction,w=A.isPlainObject,E=A.getValue,e=r(7),f=r(137),d=r(78),o=r(80),s=r(81),y=r(88),v=r(89),m=r(90),h=r(82),p=r(83),a=r(84),c=r(85),u=r(86),l=r(87),i=r(138),g=r(140),D=r(91),n=r(56),t.exports=function(){function t(t,r,n){var i;this.name="?xml",this.type=e.Document,t||(t={}),i={},t.writer?w(t.writer)&&(i=t.writer,t.writer=new D):t.writer=new D,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new g(t),this.onDataCallback=r||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.createChildNode=function(t){var r,n,i,o,s,a,u,c;switch(t.type){case e.CData:this.cdata(t.value);break;case e.Comment:this.comment(t.value);break;case e.Element:for(n in i={},u=t.attribs)C.call(u,n)&&(r=u[n],i[n]=r.value);this.node(t.name,i);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(t.value);break;case e.Text:this.text(t.value);break;case e.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+t.constructor.name)}for(s=0,a=(c=t.children).length;a>s;s++)o=c[s],this.createChildNode(o),o.type===e.Element&&this.up();return this},t.prototype.dummy=function(){return this},t.prototype.node=function(t,e,r){var n;if(null==t)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(t));return this.openCurrent(),t=E(t),null==e&&(e={}),e=E(e),x(e)||(r=(n=[e,r])[0],e=n[1]),this.currentNode=new d(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},t.prototype.element=function(t,r,n){var i,o,s,a,u,c;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(t)||x(t)||b(t))for(a=this.options.noValidation,this.options.noValidation=!0,(c=new f(this.options).element("TEMP_ROOT")).element(t),this.options.noValidation=a,o=0,s=(u=c.children).length;s>o;o++)i=u[o],this.createChildNode(i),i.type===e.Element&&this.up();else this.node(t,r,n);return this},t.prototype.attribute=function(t,e){var r,n;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(t));if(null!=t&&(t=E(t)),x(t))for(r in t)C.call(t,r)&&(n=t[r],this.attribute(r,n));else b(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.currentNode.attribs[t]=new i(this,t,""):null!=e&&(this.currentNode.attribs[t]=new i(this,t,e));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new v(this,t),this.onData(this.writer.text(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new o(this,t),this.onData(this.writer.cdata(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new s(this,t),this.onData(this.writer.comment(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new y(this,t),this.onData(this.writer.raw(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(t,e){var r,n,i,o,s;if(this.openCurrent(),null!=t&&(t=E(t)),null!=e&&(e=E(e)),Array.isArray(t))for(r=0,o=t.length;o>r;r++)n=t[r],this.instruction(n);else if(x(t))for(n in t)C.call(t,n)&&(i=t[n],this.instruction(n,i));else b(e)&&(e=e.apply()),s=new m(this,t,e),this.onData(this.writer.processingInstruction(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(t,e,r){var n;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return n=new h(this,t,e,r),this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(t,e,r){if(this.openCurrent(),null==t)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new p(this,e,r),this.currentNode.rootNodeName=t,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(t,e){var r;return this.openCurrent(),r=new u(this,t,e),this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(t,e,r,n,i){var o;return this.openCurrent(),o=new a(this,t,e,r,n,i),this.onData(this.writer.dtdAttList(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(t,e){var r;return this.openCurrent(),r=new c(this,!1,t,e),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(t,e){var r;return this.openCurrent(),r=new c(this,!0,t,e),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(t,e){var r;return this.openCurrent(),r=new l(this,t,e),this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(0>this.currentLevel)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){var r,i,o,s;if(!t.isOpen){if(this.root||0!==this.currentLevel||t.type!==e.Element||(this.root=t),i="",t.type===e.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<"+t.name,s=t.attribs)C.call(s,o)&&(r=s[o],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?">":"/>")+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+t.rootNodeName,t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),t.children?(i+=" [",this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=">"),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}},t.prototype.closeNode=function(t){var r;if(!t.isClosed)return this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+"</"+t.name+">"+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0},t.prototype.onData=function(t,e){return this.documentStarted=!0,this.onDataCallback(t,e+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(t){return null==t?"":"node: <"+t+">"},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.dtd=function(t,e,r){return this.doctype(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;e=r(7),i=r(141),n=r(56),t.exports=function(t){function r(t,e){this.stream=t,r.__super__.constructor.call(this,e)}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.endline=function(t,e,i){return t.isLastRootNode&&e.state===n.CloseTag?"":r.__super__.endline.call(this,t,e,i)},r.prototype.document=function(t,e){var r,n,i,o,s,a,u,c,l;for(n=i=0,s=(u=t.children).length;s>i;n=++i)(r=u[n]).isLastRootNode=n===t.children.length-1;for(e=this.filterOptions(e),l=[],o=0,a=(c=t.children).length;a>o;o++)r=c[o],l.push(this.writeChildNode(r,e,0));return l},r.prototype.attribute=function(t,e,n){return this.stream.write(r.__super__.attribute.call(this,t,e,n))},r.prototype.cdata=function(t,e,n){return this.stream.write(r.__super__.cdata.call(this,t,e,n))},r.prototype.comment=function(t,e,n){return this.stream.write(r.__super__.comment.call(this,t,e,n))},r.prototype.declaration=function(t,e,n){return this.stream.write(r.__super__.declaration.call(this,t,e,n))},r.prototype.docType=function(t,e,r){var i,o,s,a;if(r||(r=0),this.openNode(t,e,r),e.state=n.OpenTag,this.stream.write(this.indent(t,e,r)),this.stream.write("<!DOCTYPE "+t.root().name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(t,e,r)),e.state=n.InsideTag,o=0,s=(a=t.children).length;s>o;o++)i=a[o],this.writeChildNode(i,e,r+1);e.state=n.CloseTag,this.stream.write("]")}return e.state=n.CloseTag,this.stream.write(e.spaceBeforeSlash+">"),this.stream.write(this.endline(t,e,r)),e.state=n.None,this.closeNode(t,e,r)},r.prototype.element=function(t,r,i){var s,a,u,c,l,h,p,f,d;for(p in i||(i=0),this.openNode(t,r,i),r.state=n.OpenTag,this.stream.write(this.indent(t,r,i)+"<"+t.name),f=t.attribs)o.call(f,p)&&(s=f[p],this.attribute(s,r,i));if(c=0===(u=t.children.length)?null:t.children[0],0===u||t.children.every((function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value})))r.allowEmpty?(this.stream.write(">"),r.state=n.CloseTag,this.stream.write("</"+t.name+">")):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(!r.pretty||1!==u||c.type!==e.Text&&c.type!==e.Raw||null==c.value){for(this.stream.write(">"+this.endline(t,r,i)),r.state=n.InsideTag,l=0,h=(d=t.children).length;h>l;l++)a=d[l],this.writeChildNode(a,r,i+1);r.state=n.CloseTag,this.stream.write(this.indent(t,r,i)+"</"+t.name+">")}else this.stream.write(">"),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(c,r,i+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write("</"+t.name+">");return this.stream.write(this.endline(t,r,i)),r.state=n.None,this.closeNode(t,r,i)},r.prototype.processingInstruction=function(t,e,n){return this.stream.write(r.__super__.processingInstruction.call(this,t,e,n))},r.prototype.raw=function(t,e,n){return this.stream.write(r.__super__.raw.call(this,t,e,n))},r.prototype.text=function(t,e,n){return this.stream.write(r.__super__.text.call(this,t,e,n))},r.prototype.dtdAttList=function(t,e,n){return this.stream.write(r.__super__.dtdAttList.call(this,t,e,n))},r.prototype.dtdElement=function(t,e,n){return this.stream.write(r.__super__.dtdElement.call(this,t,e,n))},r.prototype.dtdEntity=function(t,e,n){return this.stream.write(r.__super__.dtdEntity.call(this,t,e,n))},r.prototype.dtdNotation=function(t,e,n){return this.stream.write(r.__super__.dtdNotation.call(this,t,e,n))},r}(i)}).call(this)},function(t,e,r){(function(){"use strict";var t,n,i,o,s,a,u,c,l,h=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=r(367),i=r(18),t=r(369),a=r(142),l=r(370).setImmediate,n=r(77).defaults,u=r(371),o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e,r){var n,i;for(n=0,i=t.length;i>n;n++)e=(0,t[n])(e,r);return e},e.Parser=function(r){function i(t){var r,i,o;if(this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this),!(this instanceof e.Parser))return new e.Parser(t);for(r in this.options={},i=n[.2])p.call(i,r)&&(o=i[r],this.options[r]=o);for(r in t)p.call(t,r)&&(o=t[r],this.options[r]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return function(t,e){for(var r in e)p.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(i,r),i.prototype.processAsync=function(){var t,e;try{return this.remaining.length>this.options.chunkSize?(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),l(this.processAsync)):(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close())}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},i.prototype.assignOrPush=function(t,e,r){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(r)):this.options.explicitArray?t[e]=[r]:t[e]=r},i.prototype.reset=function(){var t,e,r,n,i;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(i=this,function(t){if(i.saxParser.resume(),!i.saxParser.errThrown)return i.saxParser.errThrown=!0,i.emit("error",t)}),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(r){return function(i){var o,a,u,c,l;if((u={})[e]="",!r.options.ignoreAttrs)for(o in l=i.attributes)p.call(l,o)&&(t in u||r.options.mergeAttrs||(u[t]={}),a=r.options.attrValueProcessors?s(r.options.attrValueProcessors,i.attributes[o],o):i.attributes[o],c=r.options.attrNameProcessors?s(r.options.attrNameProcessors,o):o,r.options.mergeAttrs?r.assignOrPush(u,c,a):u[t][c]=a);return u["#name"]=r.options.tagNameProcessors?s(r.options.tagNameProcessors,i.name):i.name,r.options.xmlns&&(u[r.options.xmlnskey]={uri:i.uri,local:i.local}),n.push(u)}}(this),this.saxParser.onclosetag=function(t){return function(){var r,i,a,u,c,l,h,f,d,m;if(l=n.pop(),c=l["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete l["#name"],!0===l.cdata&&(r=l.cdata,delete l.cdata),d=n[n.length-1],l[e].match(/^\s*$/)&&!r?(i=l[e],delete l[e]):(t.options.trim&&(l[e]=l[e].trim()),t.options.normalize&&(l[e]=l[e].replace(/\s{2,}/g," ").trim()),l[e]=t.options.valueProcessors?s(t.options.valueProcessors,l[e],c):l[e],1===Object.keys(l).length&&e in l&&!t.EXPLICIT_CHARKEY&&(l=l[e])),o(l)&&(l=""!==t.options.emptyTag?t.options.emptyTag:i),null!=t.options.validator&&(m="/"+function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)u=n[t],r.push(u["#name"]);return r}().concat(c).join("/"),function(){var e;try{l=t.options.validator(m,d&&d[c],l)}catch(r){return e=r,t.emit("error",e)}}()),t.options.explicitChildren&&!t.options.mergeAttrs&&"object"==typeof l)if(t.options.preserveChildrenOrder){if(d){for(a in d[t.options.childkey]=d[t.options.childkey]||[],h={},l)p.call(l,a)&&(h[a]=l[a]);d[t.options.childkey].push(h),delete l["#name"],1===Object.keys(l).length&&e in l&&!t.EXPLICIT_CHARKEY&&(l=l[e])}}else u={},t.options.attrkey in l&&(u[t.options.attrkey]=l[t.options.attrkey],delete l[t.options.attrkey]),!t.options.charsAsChildren&&t.options.charkey in l&&(u[t.options.charkey]=l[t.options.charkey],delete l[t.options.charkey]),Object.getOwnPropertyNames(l).length>0&&(u[t.options.childkey]=l),l=u;return n.length>0?t.assignOrPush(d,c,l):(t.options.explicitRoot&&(f=l,(l={})[c]=f),t.resultObject=l,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),r=function(t){return function(r){var i,o;if(o=n[n.length-1])return o[e]+=r,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=r,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(t){var e;if(e=r(t))return e.cdata=!0}},i.prototype.parseString=function(e,r){var n;null!=r&&"function"==typeof r&&(this.on("end",(function(t){return this.reset(),r(null,t)})),this.on("error",(function(t){return this.reset(),r(t)})));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,l(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(n=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},i.prototype.parseStringPromise=function(t){return u(this.parseString)(t)},i}(i),e.parseString=function(t,r,n){var i,o;return null!=n?("function"==typeof n&&(i=n),"object"==typeof r&&(o=r)):("function"==typeof r&&(i=r),o={}),new e.Parser(o).parseString(t,i)},e.parseStringPromise=function(t,r){var n;return"object"==typeof r&&(n=r),new e.Parser(n).parseStringPromise(t)}}).call(this)},function(t,e,r){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=s,t.createStream=function(t,e){return new s(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,r){if(!(this instanceof i))return new i(e,r);!function(t){for(var e=0,r=n.length;r>e;e++)t[n[e]]=""}(this),this.q=this.c="",this.bufferCheckPosition=t.MAX_BUFFER_LENGTH,this.opt=r||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!e,this.noscript=!(!e&&!this.opt.noscript),this.state=A.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(h)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),S(this,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),i.prototype={end:function(){I(this)},write:function(e){if(this.error)throw this.error;if(this.closed)return k(this,"Cannot write after close. Assign an onready handler.");if(null===e)return I(this);"object"==typeof e&&(e=e.toString());for(var r=0,i="";i=R(e,r++),this.c=i,i;)switch(this.trackPosition&&(this.position++,"\n"===i?(this.line++,this.column=0):this.column++),this.state){case A.BEGIN:if(this.state=A.BEGIN_WHITESPACE,"\ufeff"===i)continue;$(this,i);continue;case A.BEGIN_WHITESPACE:$(this,i);continue;case A.TEXT:if(this.sawRoot&&!this.closedRoot){for(var o=r-1;i&&"<"!==i&&"&"!==i;)(i=R(e,r++))&&this.trackPosition&&(this.position++,"\n"===i?(this.line++,this.column=0):this.column++);this.textNode+=e.substring(o,r-1)}"<"!==i||this.sawRoot&&this.closedRoot&&!this.strict?(y(i)||this.sawRoot&&!this.closedRoot||N(this,"Text data outside of root node."),"&"===i?this.state=A.TEXT_ENTITY:this.textNode+=i):(this.state=A.OPEN_WAKA,this.startTagPosition=this.position);continue;case A.SCRIPT:"<"===i?this.state=A.SCRIPT_ENDING:this.script+=i;continue;case A.SCRIPT_ENDING:"/"===i?this.state=A.CLOSE_TAG:(this.script+="<"+i,this.state=A.SCRIPT);continue;case A.OPEN_WAKA:if("!"===i)this.state=A.SGML_DECL,this.sgmlDecl="";else if(y(i));else if(v(p,i))this.state=A.OPEN_TAG,this.tagName=i;else if("/"===i)this.state=A.CLOSE_TAG,this.tagName="";else if("?"===i)this.state=A.PROC_INST,this.procInstName=this.procInstBody="";else{if(N(this,"Unencoded <"),this.startTagPosition+1<this.position){var s=this.position-this.startTagPosition;i=new Array(s).join(" ")+i}this.textNode+="<"+i,this.state=A.TEXT}continue;case A.SGML_DECL:(this.sgmlDecl+i).toUpperCase()===a?(F(this,"onopencdata"),this.state=A.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+i==="--"?(this.state=A.COMMENT,this.comment="",this.sgmlDecl=""):(this.sgmlDecl+i).toUpperCase()===u?(this.state=A.DOCTYPE,(this.doctype||this.sawRoot)&&N(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===i?(F(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=A.TEXT):D(i)?(this.state=A.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case A.SGML_DECL_QUOTED:i===this.q&&(this.state=A.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case A.DOCTYPE:">"===i?(this.state=A.TEXT,F(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=A.DOCTYPE_DTD:D(i)&&(this.state=A.DOCTYPE_QUOTED,this.q=i));continue;case A.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=A.DOCTYPE:D(i)&&(this.state=A.DOCTYPE_DTD_QUOTED,this.q=i);continue;case A.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=A.DOCTYPE_DTD,this.q="");continue;case A.COMMENT:"-"===i?this.state=A.COMMENT_ENDING:this.comment+=i;continue;case A.COMMENT_ENDING:"-"===i?(this.state=A.COMMENT_ENDED,this.comment=O(this.opt,this.comment),this.comment&&F(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==i?(N(this,"Malformed comment"),this.comment+="--"+i,this.state=A.COMMENT):this.state=A.TEXT;continue;case A.CDATA:"]"===i?this.state=A.CDATA_ENDING:this.cdata+=i;continue;case A.CDATA_ENDING:"]"===i?this.state=A.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===i?(this.cdata&&F(this,"oncdata",this.cdata),F(this,"onclosecdata"),this.cdata="",this.state=A.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=A.CDATA);continue;case A.PROC_INST:"?"===i?this.state=A.PROC_INST_ENDING:y(i)?this.state=A.PROC_INST_BODY:this.procInstName+=i;continue;case A.PROC_INST_BODY:if(!this.procInstBody&&y(i))continue;"?"===i?this.state=A.PROC_INST_ENDING:this.procInstBody+=i;continue;case A.PROC_INST_ENDING:">"===i?(F(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=A.TEXT):(this.procInstBody+="?"+i,this.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:v(f,i)?this.tagName+=i:(B(this),">"===i?j(this):"/"===i?this.state=A.OPEN_TAG_SLASH:(y(i)||N(this,"Invalid character in tag name"),this.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===i?(j(this,!0),M(this)):(N(this,"Forward-slash in opening tag not followed by >"),this.state=A.ATTRIB);continue;case A.ATTRIB:if(y(i))continue;">"===i?j(this):"/"===i?this.state=A.OPEN_TAG_SLASH:v(p,i)?(this.attribName=i,this.attribValue="",this.state=A.ATTRIB_NAME):N(this,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===i?this.state=A.ATTRIB_VALUE:">"===i?(N(this,"Attribute without value"),this.attribValue=this.attribName,_(this),j(this)):y(i)?this.state=A.ATTRIB_NAME_SAW_WHITE:v(f,i)?this.attribName+=i:N(this,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=A.ATTRIB_VALUE;else{if(y(i))continue;N(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",F(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?j(this):v(p,i)?(this.attribName=i,this.state=A.ATTRIB_NAME):(N(this,"Invalid attribute name"),this.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(y(i))continue;D(i)?(this.q=i,this.state=A.ATTRIB_VALUE_QUOTED):(N(this,"Unquoted attribute value"),this.state=A.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case A.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=A.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}_(this),this.q="",this.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:y(i)?this.state=A.ATTRIB:">"===i?j(this):"/"===i?this.state=A.OPEN_TAG_SLASH:v(p,i)?(N(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=A.ATTRIB_NAME):N(this,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!g(i)){"&"===i?this.state=A.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}_(this),">"===i?j(this):this.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(this.tagName)">"===i?M(this):v(f,i)?this.tagName+=i:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=A.SCRIPT):(y(i)||N(this,"Invalid tagname in closing tag"),this.state=A.CLOSE_TAG_SAW_WHITE);else{if(y(i))continue;E(p,i)?this.script?(this.script+="</"+i,this.state=A.SCRIPT):N(this,"Invalid tagname in closing tag."):this.tagName=i}continue;case A.CLOSE_TAG_SAW_WHITE:if(y(i))continue;">"===i?M(this):N(this,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var c,l;switch(this.state){case A.TEXT_ENTITY:c=A.TEXT,l="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:c=A.ATTRIB_VALUE_QUOTED,l="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:c=A.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(this[l]+=L(this),this.entity="",this.state=c):v(this.entity.length?m:d,i)?this.entity+=i:(N(this,"Invalid character in entity name"),this[l]+="&"+this.entity+i,this.entity="",this.state=c);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position<this.bufferCheckPosition||function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,s=n.length;s>o;o++){var a=e[n[o]].length;if(a>r)switch(n[o]){case"textNode":T(e);break;case"cdata":F(e,"oncdata",e.cdata),e.cdata="";break;case"script":F(e,"onscript",e.script),e.script="";break;default:k(e,"Max buffer length exceeded: "+n[o])}i=Math.max(i,a)}var u=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=u+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){T(this),""!==this.cdata&&(F(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(F(this,"onscript",this.script),this.script="")}};try{e=r(73).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function s(t,r){if(!(this instanceof s))return new s(t,r);e.apply(this),this._parser=new i(t,r),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,o.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(e.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=r(368).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},s.prototype.on=function(t,r){var n=this;return n._parser["on"+t]||-1===o.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,r)};var a="[CDATA[",u="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",h={xml:c,xmlns:l},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function D(t){return'"'===t||"'"===t}function g(t){return">"===t||y(t)}function v(t,e){return t.test(e)}function E(t,e){return!v(t,e)}var b,x,w,A=0;for(var C in t.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[C]]=C;function S(t,e,r){t[e]&&t[e](r)}function F(t,e,r){t.textNode&&T(t),S(t,e,r)}function T(t){t.textNode=O(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function O(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function k(t,e){return T(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function I(t){return t.sawRoot&&!t.closedRoot&&N(t,"Unclosed root tag"),t.state!==A.BEGIN&&t.state!==A.BEGIN_WHITESPACE&&t.state!==A.TEXT&&k(t,"Unexpected end"),T(t),t.c="",t.closed=!0,S(t,"onend"),i.call(t,t.strict,t.opt),t}function N(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&k(t,e)}function B(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,F(t,"onopentagstart",r)}function P(t,e){var r=0>t.indexOf(":")?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function _(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=P(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==c)N(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==l)N(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,F(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function j(t,e){if(t.opt.xmlns){var r=t.tag,n=P(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(N(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(e){F(t,"onopennamespace",{prefix:e,uri:r.ns[e]})}));for(var o=0,s=t.attribList.length;s>o;o++){var a=t.attribList[o],u=a[0],c=a[1],l=P(u,!0),h=l.prefix,p=l.local,f=""===h?"":r.ns[h]||"",d={name:u,value:c,prefix:h,local:p,uri:f};h&&"xmlns"!==h&&!f&&(N(t,"Unbound namespace prefix: "+JSON.stringify(h)),d.uri=h),t.tag.attributes[u]=d,F(t,"onattribute",d)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),F(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=A.TEXT:t.state=A.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function M(t){if(!t.tagName)return N(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=A.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=A.SCRIPT);F(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--&&t.tags[e].name!==n;)N(t,"Unexpected close tag");if(0>e)return N(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=A.TEXT);t.tagName=r;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,F(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach((function(e){var r=o.ns[e];F(t,"onclosenamespace",{prefix:e,uri:r})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=A.TEXT}function L(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r?(N(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function $(t,e){"<"===e?(t.state=A.OPEN_WAKA,t.startTagPosition=t.position):y(e)||(N(t,"Non-whitespace before first tag."),t.textNode=e,t.state=A.TEXT)}function R(t,e){var r="";return e<t.length&&(r=t.charAt(e)),r}A=t.STATE,String.fromCodePoint||(b=String.fromCharCode,x=Math.floor,w=function(){var t,e,r=16384,n=[],i=-1,o=arguments.length;if(!o)return"";for(var s="";++i<o;){var a=Number(arguments[i]);if(!isFinite(a)||0>a||a>1114111||x(a)!==a)throw RangeError("Invalid code point: "+a);a>65535?(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)):n.push(a),(i+1===o||n.length>r)&&(s+=b.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:w,configurable:!0,writable:!0}):String.fromCodePoint=w)}(e)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e,r){"use strict";var n=r(92),i=r(16),o=r(145),s=r(158),a=s(),u=r(392),c=function(t){return a.apply(i,arguments)};n(c,{custom:a.custom,customPromisifyArgs:a.customPromisifyArgs,getPolyfill:s,implementation:o,shim:u}),t.exports=c},function(t,e,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(144),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$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},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(a&&t.length>0&&!i.call(t,0))for(var m=0;m<t.length;++m)p.push(String(m));if(n&&t.length>0)for(var y=0;y<t.length;++y)p.push(String(y));else for(var D in t)d&&"prototype"===D||!i.call(t,D)||p.push(String(D));if(u)for(var g=function(t){if("undefined"==typeof window||!f)return h(t);try{return h(t)}catch(t){return!1}}(t),v=0;l.length>v;++v)g&&"constructor"===l[v]||!i.call(t,l[v])||p.push(l[v]);return p}}t.exports=n},function(t,e,r){"use strict";var n=r(92),i=r(146);n(i,{getPolyfill:r(157),implementation:i,shim:r(391)}),t.exports=i},function(t,e,r){"use strict";t.exports=r(375)},function(t,e,r){"use strict";var n=r(27)("%Array%"),i=r(93)(),o=r(377),s=r(152),a=r(95),u=a(n.prototype.push),c=a(n.prototype.slice),l=a(n.prototype.join),h=s(s({},o),{SameValueNonNumber:function(t,e){if("number"==typeof t||typeof t!=typeof e)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(t,e)},IterableToArrayLike:function(t){var e;if(i)e=this.GetMethod(t,Symbol.iterator);else if(this.IsArray(t))e=function(){var t=-1,e=this;return{next:function(){return{done:(t+=1)>=e.length,value:e[t]}}}};else if("String"===this.Type(t)){var r=this;e=function(){var e=0;return{next:function(){var n=r.AdvanceStringIndex(t,e,!0),i=l(c(t,e,n),"");return e=n,{done:n>t.length,value:i}}}}}if(void 0!==e){for(var n=this.GetIterator(t,e),o=[],s=!0;s;)if(s=this.IteratorStep(n)){var a=this.IteratorValue(s);u(o,a)}return o}return this.ToObject(t)}});t.exports=h},function(t,e,r){"use strict";t.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}},function(t,e,r){"use strict";var n=r(31),i=r(379),o=r(143),s=r(383),a=r(27),u=a("%TypeError%"),c=a("%RangeError%"),l=a("%SyntaxError%"),h=a("%Array%"),p=h.prototype,f=a("%String%"),d=a("%Object%"),m=a("%Number%"),y=a("%Symbol%",!0),D=a("%RegExp%"),g=a("%Promise%",!0),v=d.preventExtensions,E=r(93)(),b=r(149),x=r(150),w=r(151),A=Math.pow(2,32)-1,C=m.MAX_SAFE_INTEGER||Math.pow(2,53)-1,S=r(152),F=r(153),T=r(154),O=r(385),k=r(386),I=r(155),N=r(387),B=r(156),P=parseInt,_=r(95),j=g?_(a("%PromiseProto_then%")):null,M=_(h.prototype.slice),L=_(f.prototype.slice),$=_(D.prototype.test,/^0b[01]+$/i),R=_(D.prototype.test,/^0o[0-7]+$/i),U=_(D.prototype.test,/^[0-9]$/),V=_(D.prototype.exec),z=new D("["+["
","",""].join("")+"]","g"),J=_(D.prototype.test,z),G=_(D.prototype.test,/^[-+]0x[0-9a-f]+$/i),q=_(f.prototype.charCodeAt),X=_(d.prototype.propertyIsEnumerable),W=_(d.prototype.toString),K=_(a("%NumberPrototype%").valueOf),Y=_(a("%BooleanPrototype%").valueOf),H=_(a("%StringPrototype%").valueOf),Q=_(a("%DatePrototype%").valueOf),Z=E&&_(a("%SymbolPrototype%").toString),tt=Math.floor,et=Math.abs,rt=d.create,nt=d.getOwnPropertyDescriptor,it=d.getOwnPropertyNames,ot=d.getOwnPropertySymbols,st=d.isExtensible,at=d.defineProperty,ut=Object.setPrototypeOf||([].__proto__!==Array.prototype?null:function(t,e){return t.__proto__=e,t}),ct=function(t,e,r,n){if(!at){if(!t.IsDataDescriptor(n))return!1;if(!n["[[Configurable]]"]||!n["[[Writable]]"])return!1;if(r in e&&X(e,r)!==!!n["[[Enumerable]]"])return!1;var i=n["[[Value]]"];return e[r]=i,t.SameValue(e[r],i)}return at(e,r,t.FromPropertyDescriptor(n)),!0},lt=["\t\n\v\f\r "," \u2028","\u2029\ufeff"].join(""),ht=new RegExp("(^["+lt+"]+)|(["+lt+"]+$)","g"),pt=_(f.prototype.replace),ft=r(388),dt=r(390),mt=S(S({},ft),{Call:function(t,e){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(t))throw new u(s(t)+" is not a function");return t.apply(e,r)},ToPrimitive:i,ToNumber:function(t){var e=O(t)?t:i(t,m);if("symbol"==typeof e)throw new u("Cannot convert a Symbol value to a number");if("string"==typeof e){if($(e))return this.ToNumber(P(L(e,2),2));if(R(e))return this.ToNumber(P(L(e,2),8));if(J(e)||G(e))return NaN;var r=function(t){return pt(t,ht,"")}(e);if(r!==e)return this.ToNumber(r)}return m(e)},ToInt16:function(t){var e=this.ToUint16(t);return 32768>e?e:e-65536},ToInt8:function(t){var e=this.ToUint8(t);return 128>e?e:e-256},ToUint8:function(t){var e=this.ToNumber(t);if(x(e)||0===e||!w(e))return 0;var r=F(e)*tt(et(e));return T(r,256)},ToUint8Clamp:function(t){var e=this.ToNumber(t);if(x(e)||0>=e)return 0;if(e>=255)return 255;var r=tt(t);return e>r+.5?r+1:r+.5>e?r:r%2!=0?r+1:r},ToString:function(t){if("symbol"==typeof t)throw new u("Cannot convert a Symbol value to a string");return f(t)},ToObject:function(t){return this.RequireObjectCoercible(t),d(t)},ToPropertyKey:function(t){var e=this.ToPrimitive(t,f);return"symbol"==typeof e?e:this.ToString(e)},ToLength:function(t){var e=this.ToInteger(t);return e>0?e>C?C:e:0},CanonicalNumericIndexString:function(t){if("[object String]"!==W(t))throw new u("must be a string");if("-0"===t)return-0;var e=this.ToNumber(t);return this.SameValue(this.ToString(e),t)?e:void 0},RequireObjectCoercible:ft.CheckObjectCoercible,IsArray:h.isArray||function(t){return"[object Array]"===W(t)},IsConstructor:function(t){return"function"==typeof t&&!!t.prototype},IsExtensible:v?function(t){return!O(t)&&st(t)}:function(t){return!0},IsInteger:function(t){if("number"!=typeof t||x(t)||!w(t))return!1;var e=et(t);return tt(e)===e},IsPropertyKey:function(t){return"string"==typeof t||"symbol"==typeof t},IsRegExp:function(t){if(!t||"object"!=typeof t)return!1;if(E){var e=t[y.match];if(void 0!==e)return ft.ToBoolean(e)}return dt(t)},SameValueZero:function(t,e){return t===e||x(t)&&x(e)},GetV:function(t,e){if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(t)[e]},GetMethod:function(t,e){if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(t,e);if(null!=r){if(!this.IsCallable(r))throw new u(e+"is not a function");return r}},Get:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true, got "+s(e));return t[e]},Type:function(t){return"symbol"==typeof t?"Symbol":ft.Type(t)},SpeciesConstructor:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");var r=t.constructor;if(void 0===r)return e;if("Object"!==this.Type(r))throw new u("O.constructor is not an Object");var n=E&&y.species?r[y.species]:void 0;if(null==n)return e;if(this.IsConstructor(n))return n;throw new u("no constructor found")},FromPropertyDescriptor:function(t){if(void 0===t)return t;b(this,"Property Descriptor","Desc",t);var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=t["[[Configurable]]"]),e},CompletePropertyDescriptor:function(t){return b(this,"Property Descriptor","Desc",t),this.IsGenericDescriptor(t)||this.IsDataDescriptor(t)?(n(t,"[[Value]]")||(t["[[Value]]"]=void 0),n(t,"[[Writable]]")||(t["[[Writable]]"]=!1)):(n(t,"[[Get]]")||(t["[[Get]]"]=void 0),n(t,"[[Set]]")||(t["[[Set]]"]=void 0)),n(t,"[[Enumerable]]")||(t["[[Enumerable]]"]=!1),n(t,"[[Configurable]]")||(t["[[Configurable]]"]=!1),t},Set:function(t,e,r,n){if("Object"!==this.Type(t))throw new u("O must be an Object");if(!this.IsPropertyKey(e))throw new u("P must be a Property Key");if("Boolean"!==this.Type(n))throw new u("Throw must be a Boolean");if(n)return t[e]=r,!0;try{t[e]=r}catch(t){return!1}},HasOwnProperty:function(t,e){if("Object"!==this.Type(t))throw new u("O must be an Object");if(!this.IsPropertyKey(e))throw new u("P must be a Property Key");return n(t,e)},HasProperty:function(t,e){if("Object"!==this.Type(t))throw new u("O must be an Object");if(!this.IsPropertyKey(e))throw new u("P must be a Property Key");return e in t},IsConcatSpreadable:function(t){if("Object"!==this.Type(t))return!1;if(E&&"symbol"==typeof y.isConcatSpreadable){var e=this.Get(t,Symbol.isConcatSpreadable);if(void 0!==e)return this.ToBoolean(e)}return this.IsArray(t)},Invoke:function(t,e){if(!this.IsPropertyKey(e))throw new u("P must be a Property Key");var r=M(arguments,2),n=this.GetV(t,e);return this.Call(n,t,r)},GetIterator:function(t,e){var r=e;if(2>arguments.length){if(!E)throw new SyntaxError("GetIterator depends on native Symbol support when `method` is not passed");r=this.GetMethod(t,y.iterator)}var n=this.Call(r,t);if("Object"!==this.Type(n))throw new u("iterator must return an object");return n},IteratorNext:function(t,e){var r=this.Invoke(t,"next",2>arguments.length?[]:[e]);if("Object"!==this.Type(r))throw new u("iterator next must return an object");return r},IteratorComplete:function(t){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(t,"done"))},IteratorValue:function(t){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(iterResult) is not Object");return this.Get(t,"value")},IteratorStep:function(t){var e=this.IteratorNext(t);return!0!==this.IteratorComplete(e)&&e},IteratorClose:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(e))throw new u("Assertion failed: completion is not a thunk for a Completion Record");var r,n=e,i=this.GetMethod(t,"return");if(void 0===i)return n();try{var o=this.Call(i,t,[])}catch(t){throw r=n(),n=null,t}if(r=n(),n=null,"Object"!==this.Type(o))throw new u("iterator .return must return an object");return r},CreateIterResultObject:function(t,e){if("Boolean"!==this.Type(e))throw new u("Assertion failed: Type(done) is not Boolean");return{value:t,done:e}},RegExpExec:function(t,e){if("Object"!==this.Type(t))throw new u("R must be an Object");if("String"!==this.Type(e))throw new u("S must be a String");var r=this.Get(t,"exec");if(this.IsCallable(r)){var n=this.Call(r,t,[e]);if(null===n||"Object"===this.Type(n))return n;throw new u('"exec" method must return `null` or an Object')}return V(t,e)},ArraySpeciesCreate:function(t,e){if(!this.IsInteger(e)||0>e)throw new u("Assertion failed: length must be an integer >= 0");var r,n=0===e?0:e;if(this.IsArray(t)&&(r=this.Get(t,"constructor"),"Object"===this.Type(r)&&E&&y.species&&null===(r=this.Get(r,y.species))&&(r=void 0)),void 0===r)return h(n);if(!this.IsConstructor(r))throw new u("C must be a constructor");return new r(n)},CreateDataProperty:function(t,e,r){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");var n=nt(t,e),i=n||this.IsExtensible(t);return!(n&&(!n.writable||!n.configurable)||!i)&&ct(this,t,e,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})},CreateDataPropertyOrThrow:function(t,e,r){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(t,e,r);if(!n)throw new u("unable to create data property");return n},ObjectCreate:function(t,e){if(null!==t&&"Object"!==this.Type(t))throw new u("Assertion failed: proto must be null or an object");var r=2>arguments.length?[]:e;if(r.length>0)throw new l("es-abstract does not yet support internal slots");if(null===t&&!rt)throw new l("native Object.create support is required to create null objects");return rt(t)},AdvanceStringIndex:function(t,e,r){if("String"!==this.Type(t))throw new u("S must be a String");if(!this.IsInteger(e)||0>e||e>C)throw new u("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(r))throw new u("Assertion failed: unicode must be a Boolean");if(!r)return e+1;if(e+1>=t.length)return e+1;var n=q(t,e);if(55296>n||n>56319)return e+1;var i=q(t,e+1);return 56320>i||i>57343?e+1:e+2},CreateMethodProperty:function(t,e,r){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");return ct(this,t,e,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0})},DefinePropertyOrThrow:function(t,e,r){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");var n=B(this,r)?r:this.ToPropertyDescriptor(r);if(!B(this,n))throw new u("Assertion failed: Desc is not a valid Property Descriptor");return ct(this,t,e,n)},DeletePropertyOrThrow:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: IsPropertyKey(P) is not true");var r=delete t[e];if(!r)throw new TypeError("Attempt to delete property failed.");return r},EnumerableOwnNames:function(t){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");return o(t)},thisNumberValue:function(t){return"Number"===this.Type(t)?t:K(t)},thisBooleanValue:function(t){return"Boolean"===this.Type(t)?t:Y(t)},thisStringValue:function(t){return"String"===this.Type(t)?t:H(t)},thisTimeValue:function(t){return Q(t)},SetIntegrityLevel:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if("sealed"!==e&&"frozen"!==e)throw new u('Assertion failed: `level` must be `"sealed"` or `"frozen"`');if(!v)throw new l("SetIntegrityLevel requires native `Object.preventExtensions` support");if(!v(t))return!1;if(!it)throw new l("SetIntegrityLevel requires native `Object.getOwnPropertyNames` support");var r=it(t),n=this;return"sealed"===e?k(r,(function(e){n.DefinePropertyOrThrow(t,e,{configurable:!1})})):"frozen"===e&&k(r,(function(e){var r,i=nt(t,e);void 0!==i&&(r=n.IsAccessorDescriptor(n.ToPropertyDescriptor(i))?{configurable:!1}:{configurable:!1,writable:!1},n.DefinePropertyOrThrow(t,e,r))})),!0},TestIntegrityLevel:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if("sealed"!==e&&"frozen"!==e)throw new u('Assertion failed: `level` must be `"sealed"` or `"frozen"`');if(this.IsExtensible(t))return!1;var r=it(t),n=this;return 0===r.length||I(r,(function(r){var i=nt(t,r);if(void 0!==i){if(i.configurable)return!1;if("frozen"===e&&n.IsDataDescriptor(n.ToPropertyDescriptor(i))&&i.writable)return!1}return!0}))},OrdinaryHasInstance:function(t,e){if(!1===this.IsCallable(t))return!1;if("Object"!==this.Type(e))return!1;var r=this.Get(t,"prototype");if("Object"!==this.Type(r))throw new u("OrdinaryHasInstance called on an object with an invalid prototype property.");return e instanceof t},OrdinaryHasProperty:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: P must be a Property Key");return e in t},InstanceofOperator:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");var r=E&&y.hasInstance?this.GetMethod(e,y.hasInstance):void 0;if(void 0!==r)return this.ToBoolean(this.Call(r,e,[t]));if(!this.IsCallable(e))throw new u("`C` is not Callable");return this.OrdinaryHasInstance(e,t)},IsPromise:function(t){if("Object"!==this.Type(t))return!1;if(!g)return!1;try{j(t)}catch(t){return!1}return!0},"Abstract Equality Comparison":function(t,e){var r=this.Type(t),n=this.Type(e);return r===n?t===e:null==t&&null==e||("Number"===r&&"String"===n?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"===r&&"Number"===n?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===r?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===n?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"!==r&&"Number"!==r&&"Symbol"!==r||"Object"!==n?"Object"===r&&("String"===n||"Number"===n||"Symbol"===n)&&this["Abstract Equality Comparison"](this.ToPrimitive(t),e):this["Abstract Equality Comparison"](t,this.ToPrimitive(e)))},ValidateAndApplyPropertyDescriptor:function(t,e,r,n,i){var o=this.Type(t);if("Undefined"!==o&&"Object"!==o)throw new u("Assertion failed: O must be undefined or an Object");if("Boolean"!==this.Type(r))throw new u("Assertion failed: extensible must be a Boolean");if(!B(this,n))throw new u("Assertion failed: Desc must be a Property Descriptor");if("Undefined"!==this.Type(i)&&!B(this,i))throw new u("Assertion failed: current must be a Property Descriptor, or undefined");if("Undefined"!==o&&!this.IsPropertyKey(e))throw new u("Assertion failed: if O is not undefined, P must be a Property Key");if("Undefined"===this.Type(i)){if(!r)return!1;if(this.IsGenericDescriptor(n)||this.IsDataDescriptor(n))"Undefined"!==o&&ct(this,t,e,{"[[Configurable]]":n["[[Configurable]]"],"[[Enumerable]]":n["[[Enumerable]]"],"[[Value]]":n["[[Value]]"],"[[Writable]]":n["[[Writable]]"]});else{if(!this.IsAccessorDescriptor(n))throw new u("Assertion failed: Desc is not an accessor descriptor");if("Undefined"!==o)return ct(this,t,e,n)}return!0}if(this.IsGenericDescriptor(n)&&!("[[Configurable]]"in n)&&!("[[Enumerable]]"in n))return!0;if(N(this,n,i))return!0;if(!i["[[Configurable]]"]){if(n["[[Configurable]]"])return!1;if("[[Enumerable]]"in n&&!n["[[Enumerable]]"]==!!i["[[Enumerable]]"])return!1}if(this.IsGenericDescriptor(n));else if(this.IsDataDescriptor(i)!==this.IsDataDescriptor(n)){if(!i["[[Configurable]]"])return!1;this.IsDataDescriptor(i)?"Undefined"!==o&&ct(this,t,e,{"[[Configurable]]":i["[[Configurable]]"],"[[Enumerable]]":i["[[Enumerable]]"],"[[Get]]":void 0}):"Undefined"!==o&&ct(this,t,e,{"[[Configurable]]":i["[[Configurable]]"],"[[Enumerable]]":i["[[Enumerable]]"],"[[Value]]":void 0})}else if(this.IsDataDescriptor(i)&&this.IsDataDescriptor(n)){if(!i["[[Configurable]]"]&&!i["[[Writable]]"])return!("[[Writable]]"in n&&n["[[Writable]]"]||"[[Value]]"in n&&!this.SameValue(n["[[Value]]"],i["[[Value]]"]))}else{if(!this.IsAccessorDescriptor(i)||!this.IsAccessorDescriptor(n))throw new u("Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.");if(!i["[[Configurable]]"])return!("[[Set]]"in n&&!this.SameValue(n["[[Set]]"],i["[[Set]]"])||"[[Get]]"in n&&!this.SameValue(n["[[Get]]"],i["[[Get]]"]))}return"Undefined"===o||ct(this,t,e,n)},OrdinaryDefineOwnProperty:function(t,e,r){if("Object"!==this.Type(t))throw new u("Assertion failed: O must be an Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: P must be a Property Key");if(!B(this,r))throw new u("Assertion failed: Desc must be a Property Descriptor");var n=nt(t,e),i=n&&this.ToPropertyDescriptor(n),o=this.IsExtensible(t);return this.ValidateAndApplyPropertyDescriptor(t,e,o,r,i)},OrdinaryGetOwnProperty:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: O must be an Object");if(!this.IsPropertyKey(e))throw new u("Assertion failed: P must be a Property Key");if(n(t,e)){if(!nt){var r=this.IsArray(t)&&"length"===e,i=this.IsRegExp(t)&&"lastIndex"===e;return{"[[Configurable]]":!(r||i),"[[Enumerable]]":X(t,e),"[[Value]]":t[e],"[[Writable]]":!0}}return this.ToPropertyDescriptor(nt(t,e))}},ArrayCreate:function(t){if(!this.IsInteger(t)||0>t)throw new u("Assertion failed: `length` must be an integer Number >= 0");if(t>A)throw new c("length is greater than (2**32 - 1)");var e=arguments.length>1?arguments[1]:p,r=[];if(e!==p){if(!ut)throw new l("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");ut(r,e)}return 0!==t&&(r.length=t),r},ArraySetLength:function(t,e){if(!this.IsArray(t))throw new u("Assertion failed: A must be an Array");if(!B(this,e))throw new u("Assertion failed: Desc must be a Property Descriptor");if(!("[[Value]]"in e))return this.OrdinaryDefineOwnProperty(t,"length",e);var r=S({},e),n=this.ToUint32(e["[[Value]]"]);if(n!==this.ToNumber(e["[[Value]]"]))throw new c("Invalid array length");r["[[Value]]"]=n;var i=this.OrdinaryGetOwnProperty(t,"length");if(!this.IsDataDescriptor(i))throw new u("Assertion failed: an array had a non-data descriptor on `length`");var o,s=i["[[Value]]"];if(n>=s)return this.OrdinaryDefineOwnProperty(t,"length",r);if(!i["[[Writable]]"])return!1;if("[[Writable]]"in r&&!r["[[Writable]]"]?(o=!1,r["[[Writable]]"]=!0):o=!0,!this.OrdinaryDefineOwnProperty(t,"length",r))return!1;for(;s>n;)if(s-=1,!delete t[this.ToString(s)]&&(r["[[Value]]"]=s+1,!o))return r["[[Writable]]"]=!1,this.OrdinaryDefineOwnProperty(t,"length",r),!1;return!!o||this.OrdinaryDefineOwnProperty(t,"length",{"[[Writable]]":!1})},CreateHTML:function(t,e,r,n){if("String"!==this.Type(e)||"String"!==this.Type(r))throw new u("Assertion failed: `tag` and `attribute` must be strings");var i=this.RequireObjectCoercible(t),o=this.ToString(i),s="<"+e;if(""!==r){var a=this.ToString(n);s+=" "+r+'="'+pt(a,/\x22/g,""")+'"'}return s+">"+o+"</"+e+">"},GetOwnPropertyKeys:function(t,e){if("Object"!==this.Type(t))throw new u("Assertion failed: Type(O) is not Object");if("Symbol"===e)return E&&ot?ot(t):[];if("String"===e)return it?it(t):o(t);throw new u('Assertion failed: `Type` must be `"String"` or `"Symbol"`')},SymbolDescriptiveString:function(t){if("Symbol"!==this.Type(t))throw new u("Assertion failed: `sym` must be a Symbol");return Z(t)},GetSubstitution:function(t,e,r,n,i){if("String"!==this.Type(t))throw new u("Assertion failed: `matched` must be a String");var o=t.length;if("String"!==this.Type(e))throw new u("Assertion failed: `str` must be a String");var a=e.length;if(!this.IsInteger(r)||0>r||r>a)throw new u("Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got "+s(r));var c=this;if(!this.IsArray(n)||!I(n,(function(t,e,r){return"String"===c.Type(t)||!(e in r)})))throw new u("Assertion failed: `captures` must be a List of Strings, got "+s(n));if("String"!==this.Type(i))throw new u("Assertion failed: `replacement` must be a String");for(var l=r+o,h=n.length,p="",f=0;f<i.length;f+=1){var d=i[f],m=f+1>=i.length,y=f+2>=i.length;if("$"!==d||m)p+=i[f];else{var D=i[f+1];if("$"===D)p+="$",f+=1;else if("&"===D)p+=t,f+=1;else if("`"===D)p+=0===r?"":L(e,0,r-1),f+=1;else if("'"===D)p+=a>l?L(e,l):"",f+=1;else{var g=y?null:i[f+2];if(!U(D)||"0"===D||!y&&U(g))if(U(D)&&(y||U(g))){var v=D+g,E=P(v,10)-1;p+=v>h||"Undefined"!==this.Type(n[E])?n[E]:"",f+=2}else p+="$";else{var b=P(D,10);p+=b>h||"Undefined"!==this.Type(n[b-1])?n[b-1]:"",f+=1}}}}return p}});delete mt.CheckObjectCoercible,t.exports=mt},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError(n+e);for(var r,s=i.call(arguments,1),a=function(){if(this instanceof r){var n=e.apply(this,s.concat(i.call(arguments)));return Object(n)===n?n:this}return e.apply(t,s.concat(i.call(arguments)))},u=Math.max(0,e.length-s.length),c=[],l=0;u>l;l++)c.push("$"+l);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(a),e.prototype){var h=function(){};h.prototype=e.prototype,r.prototype=new h,h.prototype=null}return r}},function(t,e,r){"use strict";t.exports=r(380)},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=r(148),o=r(94),s=r(381),a=r(382),u=function(t,e){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===e?["toString","valueOf"]:["valueOf","toString"];for(s=0;a.length>s;++s)if(r=t[a[s]],o(r)&&(n=r.call(t),i(n)))return n;throw new TypeError("No default value")},c=function(t,e){var r=t[e];if(null!=r){if(!o(r))throw new TypeError(r+" returned for property "+e+" of object "+t+" is not a function");return r}};t.exports=function(t){if(i(t))return t;var e,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?e=c(t,Symbol.toPrimitive):a(t)&&(e=Symbol.prototype.valueOf)),void 0!==e){var o=e.call(t,r);if(i(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(s(t)||a(t))&&(r="string"),u(t,"default"===r?"number":r)}},function(t,e,r){"use strict";var n=Date.prototype.getDay,i=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(o?function(t){try{return n.call(t),!0}catch(t){return!1}}(t):"[object Date]"===i.call(t))}},function(t,e,r){"use strict";var n=Object.prototype.toString;if(r(93)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&o.test(i.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&u&&"function"==typeof u.get?u.get:null,l=a&&Set.prototype.forEach,h=Boolean.prototype.valueOf,p=Object.prototype.toString,f="function"==typeof BigInt?BigInt.prototype.valueOf:null,d=r(384).custom,m=d&&v(d)?d:null;function y(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function D(t){return String(t).replace(/"/g,""")}function g(t){return"[object Array]"===x(t)}function v(t){return"[object Symbol]"===x(t)}t.exports=function t(e,r,n,i){if(r||(r={}),b(r,"quoteStyle")&&"single"!==r.quoteStyle&&"double"!==r.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function(t,e){return y(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,w),"single",e)}(e,r);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var a,u=void 0===r.depth?5:r.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof e)return"[Object]";if(void 0===i)i=[];else if(function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1}(i,e)>=0)return"[Circular]";function p(e,o){return o&&(i=i.slice()).push(o),t(e,r,n+1,i)}if("function"==typeof e){var d=function(t){if(t.name)return t.name;var e=String(t).match(/^function\s*([\w$]+)/);return e?e[1]:void 0}(e);return"[Function"+(d?": "+d:"")+"]"}if(v(e)){var E=Symbol.prototype.toString.call(e);return"object"==typeof e?A(E):E}if((a=e)&&"object"==typeof a&&("undefined"!=typeof HTMLElement&&a instanceof HTMLElement||"string"==typeof a.nodeName&&"function"==typeof a.getAttribute)){for(var F="<"+String(e.nodeName).toLowerCase(),T=e.attributes||[],O=0;O<T.length;O++)F+=" "+T[O].name+"="+y(D(T[O].value),"double",r);return F+=">",e.childNodes&&e.childNodes.length&&(F+="..."),F+"</"+String(e.nodeName).toLowerCase()+">"}if(g(e))return 0===e.length?"[]":"[ "+S(e,p).join(", ")+" ]";if(function(t){return"[object Error]"===x(t)}(e))return 0===(k=S(e,p)).length?"["+String(e)+"]":"{ ["+String(e)+"] "+k.join(", ")+" }";if("object"==typeof e){if(m&&"function"==typeof e[m])return e[m]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o)return!1;try{o.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var k=[];return s.call(e,(function(t,r){k.push(p(r,e)+" => "+p(t,e))})),C("Map",o.call(e),k)}if(function(t){if(!c)return!1;try{c.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e))return k=[],l.call(e,(function(t){k.push(p(t,e))})),C("Set",c.call(e),k);if(function(t){return"[object Number]"===x(t)}(e))return A(p(Number(e)));if(function(t){return"[object BigInt]"===x(t)}(e))return A(p(f.call(e)));if(function(t){return"[object Boolean]"===x(t)}(e))return A(h.call(e));if(function(t){return"[object String]"===x(t)}(e))return A(p(String(e)));if(!function(t){return"[object Date]"===x(t)}(e)&&!function(t){return"[object RegExp]"===x(t)}(e)){var I=S(e,p);return 0===I.length?"{}":"{ "+I.join(", ")+" }"}return String(e)};var E=Object.prototype.hasOwnProperty||function(t){return t in this};function b(t,e){return E.call(t,e)}function x(t){return p.call(t)}function w(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(16>e?"0":"")+e.toString(16)}function A(t){return"Object("+t+")"}function C(t,e,r){return t+" ("+e+") {"+r.join(", ")+"}"}function S(t,e){var r=g(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=b(t,i)?e(t[i],t):""}for(var o in t)b(t,o)&&(r&&String(Number(o))===o&&o<t.length||(/[^\w$]/.test(o)?n.push(e(o,t)+": "+e(t[o],t)):n.push(o+": "+e(t[o],t))));return n}},function(t,e,r){t.exports=r(16).inspect},function(t,e,r){"use strict";t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";t.exports=function(t,e){for(var r=0;r<t.length;r+=1)e(t[r],r,t)}},function(t,e,r){"use strict";var n=r(155);t.exports=function(t,e,r){return n(["[[Configurable]]","[[Enumerable]]","[[Get]]","[[Set]]","[[Value]]","[[Writable]]"],(function(n){return n in e==n in r&&t.SameValue(e[n],r[n])}))}},function(t,e,r){"use strict";var n=r(27),i=n("%Object%"),o=n("%TypeError%"),s=n("%String%"),a=n("%Number%"),u=r(149),c=r(156),l=r(150),h=r(151),p=r(153),f=r(154),d=r(94),m=r(389),y=r(31),D=r(95)(s.prototype.slice),g=function(t,e){return t===e||t.length<=e.length&&D(e,0,t.length)===t},v={ToPrimitive:m,ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var e=this.ToNumber(t);return l(e)?0:0!==e&&h(e)?p(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(l(e)||0===e||!h(e))return 0;var r=p(e)*Math.floor(Math.abs(e));return f(r,65536)},ToString:function(t){return s(t)},ToObject:function(t){return this.CheckObjectCoercible(t),i(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new o(e||"Cannot call method on "+t);return t},IsCallable:d,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:l(t)&&l(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){return c(this,t)},IsAccessorDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!y(t,"[[Get]]")&&!y(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!y(t,"[[Value]]")&&!y(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(u(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new o("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new o("ToPropertyDescriptor requires an object");var e={};if(y(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),y(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),y(t,"value")&&(e["[[Value]]"]=t.value),y(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),y(t,"get")){var r=t.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");e["[[Get]]"]=r}if(y(t,"set")){var n=t.set;if(void 0!==n&&!this.IsCallable(n))throw new o("setter must be a function");e["[[Set]]"]=n}if((y(e,"[[Get]]")||y(e,"[[Set]]"))&&(y(e,"[[Value]]")||y(e,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e},"Abstract Equality Comparison":function(t,e){var r=this.Type(t),n=this.Type(e);return r===n?t===e:null==t&&null==e||("Number"===r&&"String"===n?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"===r&&"Number"===n?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===r?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===n?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"!==r&&"Number"!==r||"Object"!==n?"Object"===r&&("String"===n||"Number"===n)&&this["Abstract Equality Comparison"](this.ToPrimitive(t),e):this["Abstract Equality Comparison"](t,this.ToPrimitive(e)))},"Strict Equality Comparison":function(t,e){var r=this.Type(t);return r===this.Type(e)&&("Undefined"===r||"Null"===r||t===e)},"Abstract Relational Comparison":function(t,e,r){if("Boolean"!==this.Type(r))throw new o("Assertion failed: LeftFirst argument must be a Boolean");var n,i;if(r?(n=this.ToPrimitive(t,a),i=this.ToPrimitive(e,a)):(i=this.ToPrimitive(e,a),n=this.ToPrimitive(t,a)),"String"!==this.Type(n)||"String"!==this.Type(i)){var s=this.ToNumber(n),u=this.ToNumber(i);if(l(s)||l(u))return;return!(h(s)&&h(u)&&s===u||0===s&&0===u||s===1/0||u!==1/0&&(u===-1/0||s!==-1/0&&s>=u))}return!g(i,n)&&(!!g(n,i)||i>n)}};t.exports=v},function(t,e,r){"use strict";var n=Object.prototype.toString,i=r(148),o=r(94),s=function(t){var e;if((e=arguments.length>1?arguments[1]:"[object Date]"===n.call(t)?String:Number)===String||e===Number){var r,s,a=e===String?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<a.length;++s)if(o(t[a[s]])&&(r=t[a[s]](),i(r)))return r;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};t.exports=function(t){return i(t)?t:arguments.length>1?s(t,arguments[1]):s(t)}},function(t,e,r){"use strict";var n=r(31),i=RegExp.prototype.exec,o=Object.getOwnPropertyDescriptor,s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!a)return"[object RegExp]"===s.call(t);var e=o(t,"lastIndex");return!(!e||!n(e,"value"))&&function(t){try{var e=t.lastIndex;return t.lastIndex=0,i.call(t),!0}catch(t){return!1}finally{t.lastIndex=e}}(t)}},function(t,e,r){"use strict";var n=r(157),i=r(92);t.exports=function(){var t=n();return i(Object,{getOwnPropertyDescriptors:t},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==t}}),t}},function(t,e,r){"use strict";var n=r(16),i=r(158);t.exports=function(){var t=i();return t!==n.promisify&&(n.promisify=t,Object.defineProperty(n,"promisify",{value:t})),t}},function(t,e,r){"use strict";const n=r(29),i=r(394),o=r(30),s=(t,e)=>new Promise((r,n)=>{try{o.writeMaybeCompressedFile(t,i.safeDump(e),r,n)}catch(t){n(t)}});t.exports=new class{read(t){return n(t,n.string.nonEmpty),new Promise((e,r)=>{o.readMaybeCompressedFile(t).then(t=>{try{e(i.safeLoad(t))}catch(t){r(t)}},r)})}write(t,e){return n(t,n.string.nonEmpty),n(e,n.object),s(t,e)}output(t,e){return n(t,n.string.nonEmpty),n(e,n.object),new Promise((r,n)=>{o.ensureContainingFolder(t).then(()=>{s(t,e).then(r,n)},n)})}}},function(t,e,r){"use strict";var n=r(395);t.exports=n},function(t,e,r){"use strict";var n=r(396),i=r(416);function o(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}t.exports.Type=r(8),t.exports.Schema=r(33),t.exports.FAILSAFE_SCHEMA=r(96),t.exports.JSON_SCHEMA=r(160),t.exports.CORE_SCHEMA=r(159),t.exports.DEFAULT_SAFE_SCHEMA=r(38),t.exports.DEFAULT_FULL_SCHEMA=r(57),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=i.dump,t.exports.safeDump=i.safeDump,t.exports.YAMLException=r(37),t.exports.MINIMAL_SCHEMA=r(96),t.exports.SAFE_SCHEMA=r(38),t.exports.DEFAULT_SCHEMA=r(57),t.exports.scan=o("scan"),t.exports.parse=o("parse"),t.exports.compose=o("compose"),t.exports.addConstructor=o("addConstructor")},function(t,e,r){"use strict";var n=r(32),i=r(37),o=r(397),s=r(38),a=r(57),u=Object.prototype.hasOwnProperty,c=1,l=2,h=3,p=4,f=1,d=2,m=3,y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D=/[\x85\u2028\u2029]/,g=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,E=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function b(t){return Object.prototype.toString.call(t)}function x(t){return 10===t||13===t}function w(t){return 9===t||32===t}function A(t){return 9===t||32===t||10===t||13===t}function C(t){return 44===t||91===t||93===t||123===t||125===t}function S(t){var e;return 48>t||t>57?97>(e=32|t)||e>102?-1:e-97+10:t-48}function F(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t?"\t":9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function T(t){return t>65535?String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023)):String.fromCharCode(t)}for(var O=new Array(256),k=new Array(256),I=0;256>I;I++)O[I]=F(I)?1:0,k[I]=F(I);function N(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||a,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function B(t,e){return new i(e,new o(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function P(t,e){throw B(t,e)}function _(t,e){t.onWarning&&t.onWarning.call(null,B(t,e))}var j={YAML:function(t,e,r){var n,i,o;null!==t.version&&P(t,"duplication of %YAML directive"),1!==r.length&&P(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&P(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&P(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=2>o,1!==o&&2!==o&&_(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;2!==r.length&&P(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],v.test(n)||P(t,"ill-formed tag handle (first argument) of the TAG directive"),u.call(t.tagMap,n)&&P(t,'there is a previously declared suffix for "'+n+'" tag handle'),E.test(i)||P(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[n]=i}};function M(t,e,r,n){var i,o,s,a;if(r>e){if(a=t.input.slice(e,r),n)for(i=0,o=a.length;o>i;i+=1)9!==(s=a.charCodeAt(i))&&(32>s||s>1114111)&&P(t,"expected valid JSON character");else y.test(a)&&P(t,"the stream contains non-printable characters");t.result+=a}}function L(t,e,r,i){var o,s,a,c;for(n.isObject(r)||P(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,c=(o=Object.keys(r)).length;c>a;a+=1)s=o[a],u.call(e,s)||(e[s]=r[s],i[s]=!0)}function $(t,e,r,n,i,o,s,a){var c,l;if(Array.isArray(i))for(c=0,l=(i=Array.prototype.slice.call(i)).length;l>c;c+=1)Array.isArray(i[c])&&P(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===b(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===b(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(c=0,l=o.length;l>c;c+=1)L(t,e,o[c],r);else L(t,e,o,r);else t.json||u.call(r,i)||!u.call(e,i)||(t.line=s||t.line,t.position=a||t.position,P(t,"duplicated mapping key")),e[i]=o,delete r[i];return e}function R(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):P(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function U(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);0!==i;){for(;w(i);)i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!x(i))break;for(R(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==r&&0!==n&&t.lineIndent<r&&_(t,"deficient indentation"),n}function V(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!A(e)))}function z(t,e){1===e?t.result+=" ":e>1&&(t.result+=n.repeat("\n",e-1))}function J(t,e){var r,n,i=t.tag,o=t.anchor,s=[],a=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),n=t.input.charCodeAt(t.position);0!==n&&45===n&&A(t.input.charCodeAt(t.position+1));)if(a=!0,t.position++,!U(t,!0,-1)||t.lineIndent>e)if(r=t.line,X(t,e,h,!1,!0),s.push(t.result),U(t,!0,-1),n=t.input.charCodeAt(t.position),t.line!==r&&t.lineIndent<=e||0===n){if(t.lineIndent<e)break}else P(t,"bad indentation of a sequence entry");else s.push(null),n=t.input.charCodeAt(t.position);return!!a&&(t.tag=i,t.anchor=o,t.kind="sequence",t.result=s,!0)}function G(t){var e,r,n,i,o=!1,s=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&P(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(o=!0,i=t.input.charCodeAt(++t.position)):33===i?(s=!0,r="!!",i=t.input.charCodeAt(++t.position)):r="!",e=t.position,o){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(n=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):P(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!A(i);)33===i&&(s?P(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),v.test(r)||P(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),g.test(n)&&P(t,"tag suffix cannot contain flow indicator characters")}return n&&!E.test(n)&&P(t,"tag name cannot contain such characters: "+n),o?t.tag=n:u.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:P(t,'undeclared tag handle "'+r+'"'),!0}function q(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&P(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!A(r)&&!C(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&P(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function X(t,e,r,i,o){var s,a,y,D,g,v,E,b,F=1,I=!1,N=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=y=p===r||h===r,i&&U(t,!0,-1)&&(I=!0,t.lineIndent>e?F=1:t.lineIndent===e?F=0:t.lineIndent<e&&(F=-1)),1===F)for(;G(t)||q(t);)U(t,!0,-1)?(I=!0,y=s,t.lineIndent>e?F=1:t.lineIndent===e?F=0:t.lineIndent<e&&(F=-1)):y=!1;if(y&&(y=I||o),1!==F&&p!==r||(E=c===r||l===r?e:e+1,b=t.position-t.lineStart,1===F?y&&(J(t,b)||function(t,e,r){var n,i,o,s,a,u=t.tag,c=t.anchor,h={},f={},d=null,m=null,y=null,D=!1,g=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=h),a=t.input.charCodeAt(t.position);0!==a;){if(n=t.input.charCodeAt(t.position+1),o=t.line,s=t.position,63!==a&&58!==a||!A(n)){if(!X(t,r,l,!1,!0))break;if(t.line===o){for(a=t.input.charCodeAt(t.position);w(a);)a=t.input.charCodeAt(++t.position);if(58===a)A(a=t.input.charCodeAt(++t.position))||P(t,"a whitespace character is expected after the key-value separator within a block mapping"),D&&($(t,h,f,d,m,null),d=m=y=null),g=!0,D=!1,i=!1,d=t.tag,m=t.result;else{if(!g)return t.tag=u,t.anchor=c,!0;P(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return t.tag=u,t.anchor=c,!0;P(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===a?(D&&($(t,h,f,d,m,null),d=m=y=null),g=!0,D=!0,i=!0):D?(D=!1,i=!0):P(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,a=n;if((t.line===o||t.lineIndent>e)&&(X(t,e,p,!0,i)&&(D?m=t.result:y=t.result),D||($(t,h,f,d,m,y,o,s),d=m=y=null),U(t,!0,-1),a=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==a)P(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return D&&$(t,h,f,d,m,null),g&&(t.tag=u,t.anchor=c,t.kind="mapping",t.result=h),g}(t,b,E))||function(t,e){var r,n,i,o,s,a,u,l,h,p,f=!0,d=t.tag,m=t.anchor,y={};if(91===(p=t.input.charCodeAt(t.position)))i=93,a=!1,n=[];else{if(123!==p)return!1;i=125,a=!0,n={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=n),p=t.input.charCodeAt(++t.position);0!==p;){if(U(t,!0,e),(p=t.input.charCodeAt(t.position))===i)return t.position++,t.tag=d,t.anchor=m,t.kind=a?"mapping":"sequence",t.result=n,!0;f||P(t,"missed comma between flow collection entries"),h=null,o=s=!1,63===p&&A(t.input.charCodeAt(t.position+1))&&(o=s=!0,t.position++,U(t,!0,e)),r=t.line,X(t,e,c,!1,!0),l=t.tag,u=t.result,U(t,!0,e),p=t.input.charCodeAt(t.position),!s&&t.line!==r||58!==p||(o=!0,p=t.input.charCodeAt(++t.position),U(t,!0,e),X(t,e,c,!1,!0),h=t.result),a?$(t,n,y,l,u,h):o?n.push($(t,null,y,l,u,h)):n.push(u),U(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}P(t,"unexpected end of the stream within a flow collection")}(t,E)?N=!0:(a&&function(t,e){var r,i,o,s,a,u=f,c=!1,l=!1,h=e,p=0,y=!1;if(124===(s=t.input.charCodeAt(t.position)))i=!1;else{if(62!==s)return!1;i=!0}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)f===u?u=43===s?m:d:P(t,"repeat of a chomping mode identifier");else{if(0>(o=48>(a=s)||a>57?-1:a-48))break;0===o?P(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?P(t,"repeat of an indentation width identifier"):(h=e+o-1,l=!0)}if(w(s)){do{s=t.input.charCodeAt(++t.position)}while(w(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!x(s)&&0!==s)}for(;0!==s;){for(R(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),x(s))p++;else{if(t.lineIndent<h){u===m?t.result+=n.repeat("\n",c?1+p:p):u===f&&c&&(t.result+="\n");break}for(i?w(s)?(y=!0,t.result+=n.repeat("\n",c?1+p:p)):y?(y=!1,t.result+=n.repeat("\n",p+1)):0===p?c&&(t.result+=" "):t.result+=n.repeat("\n",p):t.result+=n.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=t.position;!x(s)&&0!==s;)s=t.input.charCodeAt(++t.position);M(t,r,t.position,!1)}}return!0}(t,E)||function(t,e){var r,n,i;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(M(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,i=t.position}else x(r)?(M(t,n,i,!0),z(t,U(t,!1,e)),n=i=t.position):t.position===t.lineStart&&V(t)?P(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);P(t,"unexpected end of the stream within a single quoted scalar")}(t,E)||function(t,e){var r,n,i,o,s,a,u;if(34!==(a=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return M(t,r,t.position,!0),t.position++,!0;if(92===a){if(M(t,r,t.position,!0),x(a=t.input.charCodeAt(++t.position)))U(t,!1,e);else if(256>a&&O[a])t.result+=k[a],t.position++;else if((s=120===(u=a)?2:117===u?4:85===u?8:0)>0){for(i=s,o=0;i>0;i--)0>(s=S(a=t.input.charCodeAt(++t.position)))?P(t,"expected hexadecimal character"):o=(o<<4)+s;t.result+=T(o),t.position++}else P(t,"unknown escape sequence");r=n=t.position}else x(a)?(M(t,r,n,!0),z(t,U(t,!1,e)),r=n=t.position):t.position===t.lineStart&&V(t)?P(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}P(t,"unexpected end of the stream within a double quoted scalar")}(t,E)?N=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!A(n)&&!C(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&P(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),t.anchorMap.hasOwnProperty(r)||P(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],U(t,!0,-1),!0}(t)?(N=!0,null===t.tag&&null===t.anchor||P(t,"alias node should not have any properties")):function(t,e,r){var n,i,o,s,a,u,c,l,h=t.kind,p=t.result;if(A(l=t.input.charCodeAt(t.position))||C(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(A(n=t.input.charCodeAt(t.position+1))||r&&C(n)))return!1;for(t.kind="scalar",t.result="",i=o=t.position,s=!1;0!==l;){if(58===l){if(A(n=t.input.charCodeAt(t.position+1))||r&&C(n))break}else if(35===l){if(A(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&V(t)||r&&C(l))break;if(x(l)){if(a=t.line,u=t.lineStart,c=t.lineIndent,U(t,!1,-1),t.lineIndent<e){t.position=o,t.line=a,t.lineStart=u,t.lineIndent=c;break}s=!0,l=t.input.charCodeAt(t.position);continue}}s&&(M(t,i,o,!1),z(t,t.line-a),i=o=t.position,s=!1),w(l)||(o=t.position+1),l=t.input.charCodeAt(++t.position)}return M(t,i,o,!1),!!t.result||(t.kind=h,t.result=p,!1)}(t,E,c===r)&&(N=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===F&&(N=y&&J(t,b))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(D=0,g=t.implicitTypes.length;g>D;D+=1)if((v=t.implicitTypes[D]).resolve(t.result)){t.result=v.construct(t.result),t.tag=v.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else u.call(t.typeMap[t.kind||"fallback"],t.tag)?(v=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&v.kind!==t.kind&&P(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+v.kind+'", not "'+t.kind+'"'),v.resolve(t.result)?(t.result=v.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):P(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):P(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||N}function W(t){var e,r,n,i,o=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(i=t.input.charCodeAt(t.position))&&(U(t,!0,-1),i=t.input.charCodeAt(t.position),0>=t.lineIndent&&37===i);){for(s=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!A(i);)i=t.input.charCodeAt(++t.position);for(n=[],1>(r=t.input.slice(e,t.position)).length&&P(t,"directive name must not be less than one character in length");0!==i;){for(;w(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!x(i));break}if(x(i))break;for(e=t.position;0!==i&&!A(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&R(t),u.call(j,r)?j[r](t,r,n):_(t,'unknown document directive "'+r+'"')}U(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,U(t,!0,-1)):s&&P(t,"directives end mark is expected"),X(t,t.lineIndent-1,p,!1,!0),U(t,!0,-1),t.checkLineBreaks&&D.test(t.input.slice(o,t.position))&&_(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&V(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,U(t,!0,-1)):t.position<t.length-1&&P(t,"end of the stream or a document separator is expected")}function K(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new N(t,e);for(r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)W(r);return r.documents}function Y(t,e,r){var n,i,o=K(t,r);if("function"!=typeof e)return o;for(n=0,i=o.length;i>n;n+=1)e(o[n])}function H(t,e){var r=K(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new i("expected a single document in the stream, but found more")}}t.exports.loadAll=Y,t.exports.load=H,t.exports.safeLoadAll=function(t,e,r){if("function"!=typeof e)return Y(t,n.extend({schema:s},r));Y(t,e,n.extend({schema:s},r))},t.exports.safeLoad=function(t,e){return H(t,n.extend({schema:s},e))}},function(t,e,r){"use strict";var n=r(32);function i(t,e,r,n,i){this.name=t,this.buffer=e,this.position=r,this.line=n,this.column=i}i.prototype.getSnippet=function(t,e){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,e=e||75,r="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>e/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>e/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),n.repeat(" ",t)+r+a+o+"\n"+n.repeat(" ",t+this.position-i+r.length)+"^"},i.prototype.toString=function(t){var e,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet())&&(r+=":\n"+e),r},t.exports=i},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var n=r(32),i=r(8);function o(t){return t>=48&&55>=t}function s(t){return t>=48&&57>=t}t.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=t.length,i=0,a=!1;if(!n)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===n)return!0;if("b"===(e=t[++i])){for(i++;n>i;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(i++;n>i;i++)if("_"!==(e=t[i])){if((48>(r=t.charCodeAt(i))||r>57)&&(65>r||r>70)&&(97>r||r>102))return!1;a=!0}return a&&"_"!==e}for(;n>i;i++)if("_"!==(e=t[i])){if(!o(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}if("_"===e)return!1;for(;n>i;i++)if("_"!==(e=t[i])){if(":"===e)break;if(!s(t.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===e)&&(":"!==e||/^(:[0-5]?[0-9])+$/.test(t.slice(i)))},construct:function(t){var e,r,n=t,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n?0:"0"===e?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach((function(t){o.unshift(parseInt(t,10))})),n=0,r=1,o.forEach((function(t){n+=t*r,r*=60})),i*n):i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!n.isNegativeZero(t)},represent:{binary:function(t){return 0>t?"-0b"+t.toString(2).slice(1):"0b"+t.toString(2)},octal:function(t){return 0>t?"-0"+t.toString(8).slice(1):"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return 0>t?"-0x"+t.toString(16).toUpperCase().slice(1):"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(t,e,r){"use strict";var n=r(32),i=r(8),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!o.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r,n,i;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],0>"+-".indexOf(e[0])||(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:0>e.indexOf(":")?r*parseFloat(e,10):(e.split(":").forEach((function(t){i.unshift(parseFloat(t,10))})),e=0,n=1,i.forEach((function(t){e+=t*n,n*=60})),r*e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||n.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(t))return"-0.0";return r=t.toString(10),s.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},function(t,e,r){"use strict";var n=r(8),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==i.exec(t)||null!==o.exec(t))},construct:function(t){var e,r,n,s,a,u,c,l,h=0,p=null;if(null===(e=i.exec(t))&&(e=o.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,s=+e[3],!e[4])return new Date(Date.UTC(r,n,s));if(a=+e[4],u=+e[5],c=+e[6],e[7]){for(h=e[7].slice(0,3);3>h.length;)h+="0";h=+h}return e[9]&&(p=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(p=-p)),l=new Date(Date.UTC(r,n,s,a,u,c,h)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(t){return t.toISOString()}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})},function(t,e,r){"use strict";var n;try{n=r(408).Buffer}catch(t){}var i=r(8),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=0,i=t.length,s=o;for(r=0;i>r;r++)if(64>=(e=s.indexOf(t.charAt(r)))){if(0>e)return!1;n+=6}return n%8==0},construct:function(t){var e,r,i=t.replace(/[\r\n=]/g,""),s=i.length,a=o,u=0,c=[];for(e=0;s>e;e++)e%4==0&&e&&(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)),u=u<<6|a.indexOf(i.charAt(e));return 0==(r=s%4*6)?(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)):18===r?(c.push(u>>10&255),c.push(u>>2&255)):12===r&&c.push(u>>4&255),n?n.from?n.from(c):new n(c):c},predicate:function(t){return n&&n.isBuffer(t)},represent:function(t){var e,r,n="",i=0,s=t.length,a=o;for(e=0;s>e;e++)e%3==0&&e&&(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+t[e];return 0==(r=s%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}})},function(t,e){t.exports=require("buffer")},function(t,e,r){"use strict";var n=r(8),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,s,a,u=[],c=t;for(e=0,r=c.length;r>e;e+=1){if(n=c[e],a=!1,"[object Object]"!==o.call(n))return!1;for(s in n)if(i.call(n,s)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==u.indexOf(s))return!1;u.push(s)}return!0},construct:function(t){return null!==t?t:[]}})},function(t,e,r){"use strict";var n=r(8),i=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,o,s,a=t;for(s=new Array(a.length),e=0,r=a.length;r>e;e+=1){if(n=a[e],"[object Object]"!==i.call(n))return!1;if(1!==(o=Object.keys(n)).length)return!1;s[e]=[o[0],n[o[0]]]}return!0},construct:function(t){if(null===t)return[];var e,r,n,i,o,s=t;for(o=new Array(s.length),e=0,r=s.length;r>e;e+=1)n=s[e],i=Object.keys(n),o[e]=[i[0],n[i[0]]];return o}})},function(t,e,r){"use strict";var n=r(8),i=Object.prototype.hasOwnProperty;t.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,r=t;for(e in r)if(i.call(r,e)&&null!==r[e])return!1;return!0},construct:function(t){return null!==t?t:{}}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(t){return void 0===t},represent:function(){return""}})},function(t,e,r){"use strict";var n=r(8);t.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,r=/\/([gim]*)$/.exec(t),n="";if("/"===e[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==e[e.length-n.length-1])return!1}return!0},construct:function(t){var e=t,r=/\/([gim]*)$/.exec(t),n="";return"/"===e[0]&&(r&&(n=r[1]),e=e.slice(1,e.length-n.length-1)),new RegExp(e,n)},predicate:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},represent:function(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}})},function(t,e,r){"use strict";var n;try{n=r(415)}catch(t){"undefined"!=typeof window&&(n=window.esprima)}var i=r(8);t.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var e="("+t+")",r=n.parse(e,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(t){return!1}},construct:function(t){var e,r="("+t+")",i=n.parse(r,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(t){o.push(t.name)})),e=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,r.slice(e[0]+1,e[1]-1)):new Function(o,"return "+r.slice(e[0],e[1]))},predicate:function(t){return"[object Function]"===Object.prototype.toString.call(t)},represent:function(t){return t.toString()}})},function(t,e,r){var n;n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),o=r(8),s=r(15);function a(t,e,r){var s=null,a=function(t,e){r&&r(t,e),s&&s.visit(t,e)},u="function"==typeof r?a:null,c=!1;if(e){c="boolean"==typeof e.comment&&e.comment;var l="boolean"==typeof e.attachComment&&e.attachComment;(c||l)&&((s=new n.CommentHandler).attach=l,e.comment=!0,u=a)}var h,p=!1;e&&"string"==typeof e.sourceType&&(p="module"===e.sourceType),h=e&&"boolean"==typeof e.jsx&&e.jsx?new i.JSXParser(t,e,u):new o.Parser(t,e,u);var f=p?h.parseModule():h.parseScript();return c&&s&&(f.comments=s.comments),h.config.tokens&&(f.tokens=h.tokens),h.config.tolerant&&(f.errors=h.errorHandler.errors),f}e.parse=a,e.parseModule=function(t,e,r){var n=e||{};return n.sourceType="module",a(t,n,r)},e.parseScript=function(t,e,r){var n=e||{};return n.sourceType="script",a(t,n,r)},e.tokenize=function(t,e,r){var n,i=new s.Tokenizer(t,e);n=[];try{for(;;){var o=i.getNextToken();if(!o)break;r&&(o=r(o)),n.push(o)}}catch(t){i.errorHandler.tolerate(t)}return i.errorHandler.tolerant&&(n.errors=i.errors()),n};var u=r(2);e.Syntax=u.Syntax,e.version="4.0.1"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=function(){function t(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return t.prototype.insertInnerComments=function(t,e){if(t.type===n.Syntax.BlockStatement&&0===t.body.length){for(var r=[],i=this.leading.length-1;i>=0;--i){var o=this.leading[i];e.end.offset<o.start||(r.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}r.length&&(t.innerComments=r)}},t.prototype.findTrailingComments=function(t){var e=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var n=this.trailing[r];n.start<t.end.offset||e.unshift(n.comment)}return this.trailing.length=0,e}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var o=i.node.trailingComments[0];o&&o.range[0]>=t.end.offset&&(e=i.node.trailingComments,delete i.node.trailingComments)}return e},t.prototype.findLeadingComments=function(t){for(var e,r=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=t.start.offset;)e=o.node,this.stack.pop();if(e){for(var n=(e.leadingComments?e.leadingComments.length:0)-1;n>=0;--n){var i=e.leadingComments[n];i.range[1]>t.start.offset||(r.unshift(i),e.leadingComments.splice(n,1))}return e.leadingComments&&0===e.leadingComments.length&&delete e.leadingComments,r}for(n=this.leading.length-1;n>=0;--n){var o;(o=this.leading[n]).start>t.start.offset||(r.unshift(o.comment),this.leading.splice(n,1))}return r},t.prototype.visitNode=function(t,e){if(t.type!==n.Syntax.Program||0>=t.body.length){this.insertInnerComments(t,e);var r=this.findTrailingComments(e),i=this.findLeadingComments(e);i.length>0&&(t.leadingComments=i),r.length>0&&(t.trailingComments=r),this.stack.push({node:t,start:e.start.offset})}},t.prototype.visitComment=function(t,e){var r="L"===t.type[0]?"Line":"Block",n={type:r,value:t.value};if(t.range&&(n.range=t.range),t.loc&&(n.loc=t.loc),this.comments.push(n),this.attach){var i={comment:{type:r,value:t.value,range:[e.start.offset,e.end.offset]},start:e.start.offset};t.loc&&(i.comment.loc=t.loc),t.type=r,this.leading.push(i),this.trailing.push(i)}},t.prototype.visit=function(t,e){"LineComment"===t.type?this.visitComment(t,e):"BlockComment"===t.type?this.visitComment(t,e):this.attach&&this.visitNode(t,e)},t}();e.CommentHandler=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(4),s=r(5),a=r(6),u=r(7),c=r(8),l=r(13),h=r(14);function p(t){var e;switch(t.type){case a.JSXSyntax.JSXIdentifier:e=t.name;break;case a.JSXSyntax.JSXNamespacedName:var r=t;e=p(r.namespace)+":"+p(r.name);break;case a.JSXSyntax.JSXMemberExpression:var n=t;e=p(n.object)+"."+p(n.property)}return e}l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";var f=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return i(e,t),e.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},e.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},e.prototype.finishJSX=function(){this.nextToken()},e.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},e.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.scanXHTMLEntity=function(t){for(var e="&",r=!0,n=!1,i=!1,s=!1;!this.scanner.eof()&&r&&!n;){var a=this.scanner.source[this.scanner.index];if(a===t)break;if(n=";"===a,e+=a,++this.scanner.index,!n)switch(e.length){case 2:i="#"===a;break;case 3:i&&(r=(s="x"===a)||o.Character.isDecimalDigit(a.charCodeAt(0)),i=i&&!s);break;default:r=(r=r&&!(i&&!o.Character.isDecimalDigit(a.charCodeAt(0))))&&!(s&&!o.Character.isHexDigit(a.charCodeAt(0)))}}if(r&&n&&e.length>2){var u=e.substr(1,e.length-2);i&&u.length>1?e=String.fromCharCode(parseInt(u.substr(1),10)):s&&u.length>2?e=String.fromCharCode(parseInt("0"+u.substr(1),16)):i||s||!h.XHTMLEntities[u]||(e=h.XHTMLEntities[u])}return e},e.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===t||39===t){for(var e=this.scanner.index,r=this.scanner.source[this.scanner.index++],n="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==r;)n+="&"===u?this.scanXHTMLEntity(r):u;return{type:8,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(46===t){var i=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===i&&46===s?"...":".";return e=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(96===t)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(t)&&92!==t){for(e=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(e,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}return this.scanner.lex()},e.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},e.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var t=this.scanner.index,e="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,e+=r,o.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var n={type:101,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return e.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(n)),n},e.prototype.peekJSXToken=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.lexJSX();return this.scanner.restoreState(t),e},e.prototype.expectJSX=function(t){var e=this.nextJSXToken();7===e.type&&e.value===t||this.throwUnexpectedToken(e)},e.prototype.matchJSX=function(t){var e=this.peekJSXToken();return 7===e.type&&e.value===t},e.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),e=this.nextJSXToken();return 100!==e.type&&this.throwUnexpectedToken(e),this.finalize(t,new s.JSXIdentifier(e.value))},e.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),e=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=e;this.expectJSX(":");var n=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXNamespacedName(r,n))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=e;this.expectJSX(".");var o=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXMemberExpression(i,o))}return e},e.prototype.parseJSXAttributeName=function(){var t,e=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXNamespacedName(n,i))}else t=r;return t},e.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),e=this.nextJSXToken();8!==e.type&&this.throwUnexpectedToken(e);var r=this.getTokenRaw(e);return this.finalize(t,new u.Literal(e.value,r))},e.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXExpressionContainer(e))},e.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},e.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),e=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(t,new s.JSXAttribute(e,r))},e.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXSpreadAttribute(e))},e.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var e=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(e)}return t},e.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var e=this.parseJSXElementName(),r=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(e,n,r))},e.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var e=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new s.JSXClosingElement(e))}var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(r,i,n))},e.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(t,new s.JSXEmptyExpression)},e.prototype.parseJSXExpressionContainer=function(){var t,e=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new s.JSXExpressionContainer(t))},e.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var e=this.createJSXChildNode(),r=this.nextJSXText();if(r.start<r.end){var n=this.getTokenRaw(r),i=this.finalize(e,new s.JSXText(r.value,n));t.push(i)}if("{"!==this.scanner.source[this.scanner.index])break;var o=this.parseJSXExpressionContainer();t.push(o)}return t},e.prototype.parseComplexJSXElement=function(t){for(var e=[];!this.scanner.eof();){t.children=t.children.concat(this.parseJSXChildren());var r=this.createJSXChildNode(),n=this.parseJSXBoundaryElement();if(n.type===a.JSXSyntax.JSXOpeningElement){var i=n;if(i.selfClosing){var o=this.finalize(r,new s.JSXElement(i,[],null));t.children.push(o)}else e.push(t),t={node:r,opening:i,closing:null,children:[]}}if(n.type===a.JSXSyntax.JSXClosingElement){t.closing=n;var u=p(t.opening.name);if(u!==p(t.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",u),0>=e.length)break;o=this.finalize(t.node,new s.JSXElement(t.opening,t.children,t.closing)),(t=e[e.length-1]).children.push(o),e.pop()}}return t},e.prototype.parseJSXElement=function(){var t=this.createJSXNode(),e=this.parseJSXOpeningElement(),r=[],n=null;if(!e.selfClosing){var i=this.parseComplexJSXElement({node:t,opening:e,closing:n,children:r});r=i.children,n=i.closing}return this.finalize(t,new s.JSXElement(e,r,n))},e.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},e.prototype.isStartOfExpression=function(){return t.prototype.isStartOfExpression.call(this)||this.match("<")},e}(c.Parser);e.JSXParser=f},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\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[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(t){return 65536>t?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||92===t||t>=128&&r.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||t>=48&&57>=t||92===t||t>=128&&r.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&57>=t},isHexDigit:function(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t},isOctalDigit:function(t){return t>=48&&55>=t}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);e.JSXClosingElement=function(t){this.type=n.JSXSyntax.JSXClosingElement,this.name=t},e.JSXElement=function(t,e,r){this.type=n.JSXSyntax.JSXElement,this.openingElement=t,this.children=e,this.closingElement=r},e.JSXEmptyExpression=function(){this.type=n.JSXSyntax.JSXEmptyExpression},e.JSXExpressionContainer=function(t){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=t},e.JSXIdentifier=function(t){this.type=n.JSXSyntax.JSXIdentifier,this.name=t},e.JSXMemberExpression=function(t,e){this.type=n.JSXSyntax.JSXMemberExpression,this.object=t,this.property=e},e.JSXAttribute=function(t,e){this.type=n.JSXSyntax.JSXAttribute,this.name=t,this.value=e},e.JSXNamespacedName=function(t,e){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=e},e.JSXOpeningElement=function(t,e,r){this.type=n.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=e,this.attributes=r},e.JSXSpreadAttribute=function(t){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=t},e.JSXText=function(t,e){this.type=n.JSXSyntax.JSXText,this.value=t,this.raw=e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.ArrayExpression=function(t){this.type=n.Syntax.ArrayExpression,this.elements=t},e.ArrayPattern=function(t){this.type=n.Syntax.ArrayPattern,this.elements=t},e.ArrowFunctionExpression=function(t,e,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=r,this.async=!1},e.AssignmentExpression=function(t,e,r){this.type=n.Syntax.AssignmentExpression,this.operator=t,this.left=e,this.right=r},e.AssignmentPattern=function(t,e){this.type=n.Syntax.AssignmentPattern,this.left=t,this.right=e},e.AsyncArrowFunctionExpression=function(t,e,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=r,this.async=!0},e.AsyncFunctionDeclaration=function(t,e,r){this.type=n.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=r,this.generator=!1,this.expression=!1,this.async=!0},e.AsyncFunctionExpression=function(t,e,r){this.type=n.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=r,this.generator=!1,this.expression=!1,this.async=!0},e.AwaitExpression=function(t){this.type=n.Syntax.AwaitExpression,this.argument=t},e.BinaryExpression=function(t,e,r){var i="||"===t||"&&"===t;this.type=i?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=t,this.left=e,this.right=r},e.BlockStatement=function(t){this.type=n.Syntax.BlockStatement,this.body=t},e.BreakStatement=function(t){this.type=n.Syntax.BreakStatement,this.label=t},e.CallExpression=function(t,e){this.type=n.Syntax.CallExpression,this.callee=t,this.arguments=e},e.CatchClause=function(t,e){this.type=n.Syntax.CatchClause,this.param=t,this.body=e},e.ClassBody=function(t){this.type=n.Syntax.ClassBody,this.body=t},e.ClassDeclaration=function(t,e,r){this.type=n.Syntax.ClassDeclaration,this.id=t,this.superClass=e,this.body=r},e.ClassExpression=function(t,e,r){this.type=n.Syntax.ClassExpression,this.id=t,this.superClass=e,this.body=r},e.ComputedMemberExpression=function(t,e){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=e},e.ConditionalExpression=function(t,e,r){this.type=n.Syntax.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=r},e.ContinueStatement=function(t){this.type=n.Syntax.ContinueStatement,this.label=t},e.DebuggerStatement=function(){this.type=n.Syntax.DebuggerStatement},e.Directive=function(t,e){this.type=n.Syntax.ExpressionStatement,this.expression=t,this.directive=e},e.DoWhileStatement=function(t,e){this.type=n.Syntax.DoWhileStatement,this.body=t,this.test=e},e.EmptyStatement=function(){this.type=n.Syntax.EmptyStatement},e.ExportAllDeclaration=function(t){this.type=n.Syntax.ExportAllDeclaration,this.source=t},e.ExportDefaultDeclaration=function(t){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=t},e.ExportNamedDeclaration=function(t,e,r){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=r},e.ExportSpecifier=function(t,e){this.type=n.Syntax.ExportSpecifier,this.exported=e,this.local=t},e.ExpressionStatement=function(t){this.type=n.Syntax.ExpressionStatement,this.expression=t},e.ForInStatement=function(t,e,r){this.type=n.Syntax.ForInStatement,this.left=t,this.right=e,this.body=r,this.each=!1},e.ForOfStatement=function(t,e,r){this.type=n.Syntax.ForOfStatement,this.left=t,this.right=e,this.body=r},e.ForStatement=function(t,e,r,i){this.type=n.Syntax.ForStatement,this.init=t,this.test=e,this.update=r,this.body=i},e.FunctionDeclaration=function(t,e,r,i){this.type=n.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=r,this.generator=i,this.expression=!1,this.async=!1},e.FunctionExpression=function(t,e,r,i){this.type=n.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=r,this.generator=i,this.expression=!1,this.async=!1},e.Identifier=function(t){this.type=n.Syntax.Identifier,this.name=t},e.IfStatement=function(t,e,r){this.type=n.Syntax.IfStatement,this.test=t,this.consequent=e,this.alternate=r},e.ImportDeclaration=function(t,e){this.type=n.Syntax.ImportDeclaration,this.specifiers=t,this.source=e},e.ImportDefaultSpecifier=function(t){this.type=n.Syntax.ImportDefaultSpecifier,this.local=t},e.ImportNamespaceSpecifier=function(t){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=t},e.ImportSpecifier=function(t,e){this.type=n.Syntax.ImportSpecifier,this.local=t,this.imported=e},e.LabeledStatement=function(t,e){this.type=n.Syntax.LabeledStatement,this.label=t,this.body=e},e.Literal=function(t,e){this.type=n.Syntax.Literal,this.value=t,this.raw=e},e.MetaProperty=function(t,e){this.type=n.Syntax.MetaProperty,this.meta=t,this.property=e},e.MethodDefinition=function(t,e,r,i,o){this.type=n.Syntax.MethodDefinition,this.key=t,this.computed=e,this.value=r,this.kind=i,this.static=o},e.Module=function(t){this.type=n.Syntax.Program,this.body=t,this.sourceType="module"},e.NewExpression=function(t,e){this.type=n.Syntax.NewExpression,this.callee=t,this.arguments=e},e.ObjectExpression=function(t){this.type=n.Syntax.ObjectExpression,this.properties=t},e.ObjectPattern=function(t){this.type=n.Syntax.ObjectPattern,this.properties=t},e.Property=function(t,e,r,i,o,s){this.type=n.Syntax.Property,this.key=e,this.computed=r,this.value=i,this.kind=t,this.method=o,this.shorthand=s},e.RegexLiteral=function(t,e,r,i){this.type=n.Syntax.Literal,this.value=t,this.raw=e,this.regex={pattern:r,flags:i}},e.RestElement=function(t){this.type=n.Syntax.RestElement,this.argument=t},e.ReturnStatement=function(t){this.type=n.Syntax.ReturnStatement,this.argument=t},e.Script=function(t){this.type=n.Syntax.Program,this.body=t,this.sourceType="script"},e.SequenceExpression=function(t){this.type=n.Syntax.SequenceExpression,this.expressions=t},e.SpreadElement=function(t){this.type=n.Syntax.SpreadElement,this.argument=t},e.StaticMemberExpression=function(t,e){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=e},e.Super=function(){this.type=n.Syntax.Super},e.SwitchCase=function(t,e){this.type=n.Syntax.SwitchCase,this.test=t,this.consequent=e},e.SwitchStatement=function(t,e){this.type=n.Syntax.SwitchStatement,this.discriminant=t,this.cases=e},e.TaggedTemplateExpression=function(t,e){this.type=n.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=e},e.TemplateElement=function(t,e){this.type=n.Syntax.TemplateElement,this.value=t,this.tail=e},e.TemplateLiteral=function(t,e){this.type=n.Syntax.TemplateLiteral,this.quasis=t,this.expressions=e},e.ThisExpression=function(){this.type=n.Syntax.ThisExpression},e.ThrowStatement=function(t){this.type=n.Syntax.ThrowStatement,this.argument=t},e.TryStatement=function(t,e,r){this.type=n.Syntax.TryStatement,this.block=t,this.handler=e,this.finalizer=r},e.UnaryExpression=function(t,e){this.type=n.Syntax.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0},e.UpdateExpression=function(t,e,r){this.type=n.Syntax.UpdateExpression,this.operator=t,this.argument=e,this.prefix=r},e.VariableDeclaration=function(t,e){this.type=n.Syntax.VariableDeclaration,this.declarations=t,this.kind=e},e.VariableDeclarator=function(t,e){this.type=n.Syntax.VariableDeclarator,this.id=t,this.init=e},e.WhileStatement=function(t,e){this.type=n.Syntax.WhileStatement,this.test=t,this.body=e},e.WithStatement=function(t,e){this.type=n.Syntax.WithStatement,this.object=t,this.body=e},e.YieldExpression=function(t,e){this.type=n.Syntax.YieldExpression,this.argument=t,this.delegate=e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),i=r(10),o=r(11),s=r(7),a=r(12),u=r(2),c=r(13),l=function(){function t(t,e,r){void 0===e&&(e={}),this.config={range:"boolean"==typeof e.range&&e.range,loc:"boolean"==typeof e.loc&&e.loc,source:null,tokens:"boolean"==typeof e.tokens&&e.tokens,comment:"boolean"==typeof e.comment&&e.comment,tolerant:"boolean"==typeof e.tolerant&&e.tolerant},this.config.loc&&e.source&&null!==e.source&&(this.config.source=String(e.source)),this.delegate=r,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return t.prototype.throwError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),o=t.replace(/%(\d)/g,(function(t,e){return n.assert(e<i.length,"Message reference must be in range"),i[e]})),s=this.lastMarker.index,a=this.lastMarker.line,u=this.lastMarker.column+1;throw this.errorHandler.createError(s,a,u,o)},t.prototype.tolerateError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),o=t.replace(/%(\d)/g,(function(t,e){return n.assert(e<i.length,"Message reference must be in range"),i[e]})),s=this.lastMarker.index,a=this.scanner.lineNumber,u=this.lastMarker.column+1;this.errorHandler.tolerateError(s,a,u,o)},t.prototype.unexpectedTokenError=function(t,e){var r,n=e||o.Messages.UnexpectedToken;if(t?(e||(n=2===t.type?o.Messages.UnexpectedEOS:3===t.type?o.Messages.UnexpectedIdentifier:6===t.type?o.Messages.UnexpectedNumber:8===t.type?o.Messages.UnexpectedString:10===t.type?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,4===t.type&&(this.scanner.isFutureReservedWord(t.value)?n=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(t.value)&&(n=o.Messages.StrictReservedWord))),r=t.value):r="ILLEGAL",n=n.replace("%0",r),t&&"number"==typeof t.lineNumber){var i=t.start,s=t.lineNumber,a=this.lastMarker.index-this.lastMarker.column,u=t.start-a+1;return this.errorHandler.createError(i,s,u,n)}return i=this.lastMarker.index,s=this.lastMarker.line,u=this.lastMarker.column+1,this.errorHandler.createError(i,s,u,n)},t.prototype.throwUnexpectedToken=function(t,e){throw this.unexpectedTokenError(t,e)},t.prototype.tolerateUnexpectedToken=function(t,e){this.errorHandler.tolerate(this.unexpectedTokenError(t,e))},t.prototype.collectComments=function(){if(this.config.comment){var t=this.scanner.scanComments();if(t.length>0&&this.delegate)for(var e=0;e<t.length;++e){var r=t[e],n=void 0;n={type:r.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(r.slice[0],r.slice[1])},this.config.range&&(n.range=r.range),this.config.loc&&(n.loc=r.loc);var i={start:{line:r.loc.start.line,column:r.loc.start.column,offset:r.range[0]},end:{line:r.loc.end.line,column:r.loc.end.column,offset:r.range[1]}};this.delegate(n,i)}}else this.scanner.scanComments()},t.prototype.getTokenRaw=function(t){return this.scanner.source.slice(t.start,t.end)},t.prototype.convertToken=function(t){var e={type:c.TokenName[t.type],value:this.getTokenRaw(t)};if(this.config.range&&(e.range=[t.start,t.end]),this.config.loc&&(e.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===t.type){var r=t.pattern,n=t.flags;e.regex={pattern:r,flags:n}}return e},t.prototype.nextToken=function(){var t=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var e=this.scanner.lex();return this.hasLineTerminator=t.lineNumber!==e.lineNumber,e&&this.context.strict&&3===e.type&&this.scanner.isStrictModeReservedWord(e.value)&&(e.type=4),this.lookahead=e,this.config.tokens&&2!==e.type&&this.tokens.push(this.convertToken(e)),t},t.prototype.nextRegexToken=function(){this.collectComments();var t=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(t))),this.lookahead=t,this.nextToken(),t},t.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},t.prototype.startNode=function(t,e){void 0===e&&(e=0);var r=t.start-t.lineStart,n=t.lineNumber;return 0>r&&(r+=e,n--),{index:t.start,line:n,column:r}},t.prototype.finalize=function(t,e){if(this.config.range&&(e.range=[t.index,this.lastMarker.index]),this.config.loc&&(e.loc={start:{line:t.line,column:t.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(e.loc.source=this.config.source)),this.delegate){var r={start:{line:t.line,column:t.column,offset:t.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(e,r)}return e},t.prototype.expect=function(t){var e=this.nextToken();7===e.type&&e.value===t||this.throwUnexpectedToken(e)},t.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var t=this.lookahead;7===t.type&&","===t.value?this.nextToken():7===t.type&&";"===t.value?(this.nextToken(),this.tolerateUnexpectedToken(t)):this.tolerateUnexpectedToken(t,o.Messages.UnexpectedToken)}else this.expect(",")},t.prototype.expectKeyword=function(t){var e=this.nextToken();4===e.type&&e.value===t||this.throwUnexpectedToken(e)},t.prototype.match=function(t){return 7===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchKeyword=function(t){return 4===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchContextualKeyword=function(t){return 3===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var t=this.lookahead.value;return"="===t||"*="===t||"**="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var e=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=e,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=n,i},t.prototype.inheritCoverGrammar=function(t){var e=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&e,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=n||this.context.firstCoverInitializedNameError,i},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},t.prototype.parsePrimaryExpression=function(){var t,e,r,n=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(n,new s.Literal(e.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(n,new s.Literal("true"===e.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),r=this.getTokenRaw(e),t=this.finalize(n,new s.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,e=this.nextRegexToken(),r=this.getTokenRaw(e),t=this.finalize(n,new s.RegexLiteral(e.regex,r,e.pattern,e.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(n,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(n,new s.ThisExpression)):t=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var e=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new s.SpreadElement(e))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),e=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),e.push(r)}else e.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new s.ArrayExpression(e))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var e=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=t.simple;var n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=e,this.context.allowStrictDirective=r,n},t.prototype.parsePropertyMethodFunction=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,r.params,n,!1))},t.prototype.parsePropertyMethodAsyncFunction=function(){var t=this.createNode(),e=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=e,this.context.await=r,this.finalize(t,new s.AsyncFunctionExpression(null,n.params,i))},t.prototype.parseObjectPropertyKey=function(){var t,e=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,o.Messages.StrictOctalLiteral);var n=this.getTokenRaw(r);t=this.finalize(e,new s.Literal(r.value,n));break;case 3:case 1:case 5:case 4:t=this.finalize(e,new s.Identifier(r.value));break;case 7:"["===r.value?(t=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):t=this.throwUnexpectedToken(r);break;default:t=this.throwUnexpectedToken(r)}return t},t.prototype.isPropertyKey=function(t,e){return t.type===u.Syntax.Identifier&&t.name===e||t.type===u.Syntax.Literal&&t.value===e},t.prototype.parseObjectProperty=function(t){var e,r=this.createNode(),n=this.lookahead,i=null,a=null,u=!1,c=!1,l=!1,h=!1;if(3===n.type){var p=n.value;this.nextToken(),u=this.match("["),i=(h=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(r,new s.Identifier(p))}else this.match("*")?this.nextToken():(u=this.match("["),i=this.parseObjectPropertyKey());var f=this.qualifiedPropertyName(this.lookahead);if(3===n.type&&!h&&"get"===n.value&&f)e="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===n.type&&!h&&"set"===n.value&&f)e="set",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===n.type&&"*"===n.value&&f)e="init",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),c=!0;else if(i||this.throwUnexpectedToken(this.lookahead),e="init",this.match(":")&&!h)!u&&this.isPropertyKey(i,"__proto__")&&(t.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0;else if(3===n.type)if(p=this.finalize(r,new s.Identifier(n.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var d=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(r,new s.AssignmentPattern(p,d))}else l=!0,a=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new s.Property(e,i,u,a,c,l))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var e=[],r={value:!1};!this.match("}");)e.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new s.ObjectExpression(e))},t.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),e=this.nextToken(),r=e.value,i=e.cooked;return this.finalize(t,new s.TemplateElement({raw:r,cooked:i},e.tail))},t.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var t=this.createNode(),e=this.nextToken(),r=e.value,n=e.cooked;return this.finalize(t,new s.TemplateElement({raw:r,cooked:n},e.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),e=[],r=[],n=this.parseTemplateHead();for(r.push(n);!n.tail;)e.push(this.parseExpression()),n=this.parseTemplateElement(),r.push(n);return this.finalize(t,new s.TemplateLiteral(r,e))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:t.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case u.Syntax.ArrayExpression:t.type=u.Syntax.ArrayPattern;for(var e=0;e<t.elements.length;e++)null!==t.elements[e]&&this.reinterpretExpressionAsPattern(t.elements[e]);break;case u.Syntax.ObjectExpression:for(t.type=u.Syntax.ObjectPattern,e=0;e<t.properties.length;e++)this.reinterpretExpressionAsPattern(t.properties[e].value);break;case u.Syntax.AssignmentExpression:t.type=u.Syntax.AssignmentPattern,delete t.operator,this.reinterpretExpressionAsPattern(t.left)}},t.prototype.parseGroupExpression=function(){var t;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var e=this.lookahead,r=[];if(this.match("..."))t=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[t],async:!1};else{var n=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(t);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);n=!0,t={type:"ArrowParameterPlaceHolder",params:i,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(r)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);n=!0,t={type:"ArrowParameterPlaceHolder",params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(n)break}n||(t=this.finalize(this.startNode(e),new s.SequenceExpression(i)))}if(!n){if(this.expect(")"),this.match("=>")&&(t.type===u.Syntax.Identifier&&"yield"===t.name&&(n=!0,t={type:"ArrowParameterPlaceHolder",params:[t],async:!1}),!n)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===u.Syntax.SequenceExpression)for(o=0;o<t.expressions.length;o++)this.reinterpretExpressionAsPattern(t.expressions[o]);else this.reinterpretExpressionAsPattern(t);t={type:"ArrowParameterPlaceHolder",params:t.type===u.Syntax.SequenceExpression?t.expressions:[t],async:!1}}this.context.isBindingElement=!1}}}return t},t.prototype.parseArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var e=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(t.push(e),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.isIdentifierName=function(t){return 3===t.type||4===t.type||1===t.type||5===t.type},t.prototype.parseIdentifierName=function(){var t=this.createNode(),e=this.nextToken();return this.isIdentifierName(e)||this.throwUnexpectedToken(e),this.finalize(t,new s.Identifier(e.value))},t.prototype.parseNewExpression=function(){var t,e=this.createNode(),r=this.parseIdentifierName();if(n.assert("new"===r.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();t=new s.MetaProperty(r,i)}else this.throwUnexpectedToken(this.lookahead);else{var o=this.isolateCoverGrammar(this.parseLeftHandSideExpression),a=this.match("(")?this.parseArguments():[];t=new s.NewExpression(o,a),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,t)},t.prototype.parseAsyncArgument=function(){var t=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,t},t.prototype.parseAsyncArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var e=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(t.push(e),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.parseLeftHandSideExpressionAllowCall=function(){var t,e=this.lookahead,r=this.matchContextualKeyword("async"),n=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(t=this.createNode(),this.nextToken(),t=this.finalize(t,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):t=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();t=this.finalize(this.startNode(e),new s.StaticMemberExpression(t,i))}else if(this.match("(")){var o=r&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var a=o?this.parseAsyncArguments():this.parseArguments();if(t=this.finalize(this.startNode(e),new s.CallExpression(t,a)),o&&this.match("=>")){for(var u=0;u<a.length;++u)this.reinterpretExpressionAsPattern(a[u]);t={type:"ArrowParameterPlaceHolder",params:a,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),i=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),t=this.finalize(this.startNode(e),new s.ComputedMemberExpression(t,i));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var c=this.parseTemplateLiteral();t=this.finalize(this.startNode(e),new s.TaggedTemplateExpression(t,c))}return this.context.allowIn=n,t},t.prototype.parseSuper=function(){var t=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(t,new s.Super)},t.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var t=this.startNode(this.lookahead),e=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var r=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),e=this.finalize(t,new s.ComputedMemberExpression(e,r))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),r=this.parseIdentifierName(),e=this.finalize(t,new s.StaticMemberExpression(e,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var i=this.parseTemplateLiteral();e=this.finalize(t,new s.TaggedTemplateExpression(e,i))}return e},t.prototype.parseUpdateExpression=function(){var t,e=this.lookahead;if(this.match("++")||this.match("--")){var r=this.startNode(e),n=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment);var i=!0;t=this.finalize(r,new s.UpdateExpression(n.value,t,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(t=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=this.nextToken().value;i=!1,t=this.finalize(this.startNode(e),new s.UpdateExpression(a,t,i))}return t},t.prototype.parseAwaitExpression=function(){var t=this.createNode();this.nextToken();var e=this.parseUnaryExpression();return this.finalize(t,new s.AwaitExpression(e))},t.prototype.parseUnaryExpression=function(){var t;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var e=this.startNode(this.lookahead),r=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),t=this.finalize(e,new s.UnaryExpression(r.value,t)),this.context.strict&&"delete"===t.operator&&t.argument.type===u.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else t=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return t},t.prototype.parseExponentiationExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseUnaryExpression);if(e.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e,n=this.isolateCoverGrammar(this.parseExponentiationExpression);e=this.finalize(this.startNode(t),new s.BinaryExpression("**",r,n))}return e},t.prototype.binaryPrecedence=function(t){var e=t.value;return 7===t.type?this.operatorPrecedence[e]||0:4===t.type&&("instanceof"===e||this.context.allowIn&&"in"===e)?7:0},t.prototype.parseBinaryExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseExponentiationExpression),r=this.lookahead,n=this.binaryPrecedence(r);if(n>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[t,this.lookahead],o=e,a=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[o,r.value,a],c=[n];(n=this.binaryPrecedence(this.lookahead))>0;){for(;u.length>2&&n<=c[c.length-1];){a=u.pop();var l=u.pop();c.pop(),o=u.pop(),i.pop();var h=this.startNode(i[i.length-1]);u.push(this.finalize(h,new s.BinaryExpression(l,o,a)))}u.push(this.nextToken().value),c.push(n),i.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=u.length-1;e=u[p];for(var f=i.pop();p>1;){var d=i.pop(),m=f&&f.lineStart;h=this.startNode(d,m),l=u[p-1],e=this.finalize(h,new s.BinaryExpression(l,u[p-2],e)),p-=2,f=d}}return e},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.ConditionalExpression(e,n,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return e},t.prototype.checkPatternParam=function(t,e){switch(e.type){case u.Syntax.Identifier:this.validateParam(t,e,e.name);break;case u.Syntax.RestElement:this.checkPatternParam(t,e.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(t,e.left);break;case u.Syntax.ArrayPattern:for(var r=0;r<e.elements.length;r++)null!==e.elements[r]&&this.checkPatternParam(t,e.elements[r]);break;case u.Syntax.ObjectPattern:for(r=0;r<e.properties.length;r++)this.checkPatternParam(t,e.properties[r].value)}t.simple=t.simple&&e instanceof s.Identifier},t.prototype.reinterpretAsCoverFormalsList=function(t){var e,r=[t],n=!1;switch(t.type){case u.Syntax.Identifier:break;case"ArrowParameterPlaceHolder":r=t.params,n=t.async;break;default:return null}e={simple:!0,paramSet:{}};for(var i=0;i<r.length;++i)(s=r[i]).type===u.Syntax.AssignmentPattern?s.right.type===u.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=u.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):n&&s.type===u.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(e,s),r[i]=s;if(this.context.strict||!this.context.allowYield)for(i=0;i<r.length;++i){var s;(s=r[i]).type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(e.message===o.Messages.StrictParamDupe){var a=this.context.strict?e.stricted:e.firstRestricted;this.throwUnexpectedToken(a,e.message)}return{simple:e.simple,params:r,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}},t.prototype.parseAssignmentExpression=function(){var t;if(!this.context.allowYield&&this.matchKeyword("yield"))t=this.parseYieldExpression();else{var e=this.lookahead,r=e;if(t=this.parseConditionalExpression(),3===r.type&&r.lineNumber===this.lookahead.lineNumber&&"async"===r.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var n=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(n),t={type:"ArrowParameterPlaceHolder",params:[n],async:!0}}if("ArrowParameterPlaceHolder"===t.type||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=t.async,a=this.reinterpretAsCoverFormalsList(t);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var c=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var h=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=i;var f=this.startNode(e);this.expect("=>");var d=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,d=this.parseFunctionSourceElements(),this.context.allowIn=m}else d=this.isolateCoverGrammar(this.parseAssignmentExpression);var y=d.type!==u.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),t=i?this.finalize(f,new s.AsyncArrowFunctionExpression(a.params,d,y)):this.finalize(f,new s.ArrowFunctionExpression(a.params,d,y)),this.context.strict=c,this.context.allowStrictDirective=l,this.context.allowYield=h,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===u.Syntax.Identifier){var D=t;this.scanner.isRestrictedWord(D.name)&&this.tolerateUnexpectedToken(r,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(D.name)&&this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var g=(r=this.nextToken()).value,v=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.AssignmentExpression(g,t,v)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,e=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(e);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(t),new s.SequenceExpression(r))}return e},t.prototype.parseStatementListItem=function(){var t;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),t=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),t=this.parseImportDeclaration();break;case"const":t=this.parseLexicalDeclaration({inFor:!1});break;case"function":t=this.parseFunctionDeclaration();break;case"class":t=this.parseClassDeclaration();break;case"let":t=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:t=this.parseStatement()}else t=this.parseStatement();return t},t.prototype.parseBlock=function(){var t=this.createNode();this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseStatementListItem());return this.expect("}"),this.finalize(t,new s.BlockStatement(e))},t.prototype.parseLexicalBinding=function(t,e){var r=this.createNode(),n=this.parsePattern([],t);this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return"const"===t?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!e.inFor&&n.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new s.VariableDeclarator(n,i))},t.prototype.parseBindingList=function(t,e){for(var r=[this.parseLexicalBinding(t,e)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(t,e));return r},t.prototype.isLexicalDeclaration=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.scanner.lex();return this.scanner.restoreState(t),3===e.type||7===e.type&&"["===e.value||7===e.type&&"{"===e.value||4===e.type&&"let"===e.value||4===e.type&&"yield"===e.value},t.prototype.parseLexicalDeclaration=function(t){var e=this.createNode(),r=this.nextToken().value;n.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var i=this.parseBindingList(r,t);return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(i,r))},t.prototype.parseBindingRestElement=function(t,e){var r=this.createNode();this.expect("...");var n=this.parsePattern(t,e);return this.finalize(r,new s.RestElement(n))},t.prototype.parseArrayPattern=function(t,e){var r=this.createNode();this.expect("[");for(var n=[];!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else{if(this.match("...")){n.push(this.parseBindingRestElement(t,e));break}n.push(this.parsePatternWithDefault(t,e)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new s.ArrayPattern(n))},t.prototype.parsePropertyPattern=function(t,e){var r,n,i=this.createNode(),o=!1,a=!1;if(3===this.lookahead.type){var u=this.lookahead;r=this.parseVariableIdentifier();var c=this.finalize(i,new s.Identifier(u.value));if(this.match("=")){t.push(u),a=!0,this.nextToken();var l=this.parseAssignmentExpression();n=this.finalize(this.startNode(u),new s.AssignmentPattern(c,l))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(t,e)):(t.push(u),a=!0,n=c)}else o=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(t,e);return this.finalize(i,new s.Property("init",r,o,n,!1,a))},t.prototype.parseObjectPattern=function(t,e){var r=this.createNode(),n=[];for(this.expect("{");!this.match("}");)n.push(this.parsePropertyPattern(t,e)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new s.ObjectPattern(n))},t.prototype.parsePattern=function(t,e){var r;return this.match("[")?r=this.parseArrayPattern(t,e):this.match("{")?r=this.parseObjectPattern(t,e):(!this.matchKeyword("let")||"const"!==e&&"let"!==e||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),t.push(this.lookahead),r=this.parseVariableIdentifier(e)),r},t.prototype.parsePatternWithDefault=function(t,e){var r=this.lookahead,n=this.parsePattern(t,e);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,n=this.finalize(this.startNode(r),new s.AssignmentPattern(n,o))}return n},t.prototype.parseVariableIdentifier=function(t){var e=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==t)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(e,new s.Identifier(r.value))},t.prototype.parseVariableDeclaration=function(t){var e=this.createNode(),r=this.parsePattern([],"var");this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===u.Syntax.Identifier||t.inFor||this.expect("="),this.finalize(e,new s.VariableDeclarator(r,n))},t.prototype.parseVariableDeclarationList=function(t){var e={inFor:t.inFor},r=[];for(r.push(this.parseVariableDeclaration(e));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(e));return r},t.prototype.parseVariableStatement=function(){var t=this.createNode();this.expectKeyword("var");var e=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(e,"var"))},t.prototype.parseEmptyStatement=function(){var t=this.createNode();return this.expect(";"),this.finalize(t,new s.EmptyStatement)},t.prototype.parseExpressionStatement=function(){var t=this.createNode(),e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ExpressionStatement(e))},t.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},t.prototype.parseIfStatement=function(){var t,e=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(e,new s.IfStatement(n,t,r))},t.prototype.parseDoWhileStatement=function(){var t=this.createNode();this.expectKeyword("do");var e=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=e,this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(t,new s.DoWhileStatement(r,n))},t.prototype.parseWhileStatement=function(){var t,e=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var n=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=n}return this.finalize(e,new s.WhileStatement(r,t))},t.prototype.parseForStatement=function(){var t,e,r,n=null,i=null,a=null,c=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===p.length&&this.matchKeyword("in")){var f=p[0];f.init&&(f.id.type===u.Syntax.ArrayPattern||f.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.nextToken(),t=n,e=this.parseExpression(),n=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.nextToken(),t=n,e=this.parseAssignmentExpression(),n=null,c=!1):(n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var d=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(d,{inFor:!0}),this.context.allowIn=h,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(n=this.finalize(n,new s.VariableDeclaration(p,d)),this.nextToken(),t=n,e=this.parseExpression(),n=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new s.VariableDeclaration(p,d)),this.nextToken(),t=n,e=this.parseAssignmentExpression(),n=null,c=!1):(this.consumeSemicolon(),n=this.finalize(n,new s.VariableDeclaration(p,d)))):(n=this.finalize(n,new s.Identifier(d)),this.nextToken(),t=n,e=this.parseExpression(),n=null)}else{var m=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),t=n,e=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),t=n,e=this.parseAssignmentExpression(),n=null,c=!1;else{if(this.match(",")){for(var y=[n];this.match(",");)this.nextToken(),y.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(m),new s.SequenceExpression(y))}this.expect(";")}}if(void 0===t&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var D=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=D}return void 0===t?this.finalize(l,new s.ForStatement(n,i,a,r)):c?this.finalize(l,new s.ForInStatement(t,e,r)):this.finalize(l,new s.ForOfStatement(t,e,r))},t.prototype.parseContinueStatement=function(){var t=this.createNode();this.expectKeyword("continue");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();e=r;var n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(o.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(t,new s.ContinueStatement(e))},t.prototype.parseBreakStatement=function(){var t=this.createNode();this.expectKeyword("break");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(o.Messages.UnknownLabel,r.name),e=r}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(t,new s.BreakStatement(e))},t.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var t=this.createNode();this.expectKeyword("return");var e=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ReturnStatement(e))},t.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var t,e=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new s.WithStatement(r,t))},t.prototype.parseSwitchCase=function(){var t,e=this.createNode();this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(e,new s.SwitchCase(t,r))},t.prototype.parseSwitchStatement=function(){var t=this.createNode();this.expectKeyword("switch"),this.expect("(");var e=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var n=[],i=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(i&&this.throwError(o.Messages.MultipleDefaultsInSwitch),i=!0),n.push(a)}return this.expect("}"),this.context.inSwitch=r,this.finalize(t,new s.SwitchStatement(e,n))},t.prototype.parseLabelledStatement=function(){var t,e=this.createNode(),r=this.parseExpression();if(r.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var n=r,i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(o.Messages.Redeclaration,"Label",n.name),this.context.labelSet[i]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var c=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(c,o.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(c,o.Messages.GeneratorInLegacyContext),a=l}else a=this.parseStatement();delete this.context.labelSet[i],t=new s.LabeledStatement(n,a)}else this.consumeSemicolon(),t=new s.ExpressionStatement(r);return this.finalize(e,t)},t.prototype.parseThrowStatement=function(){var t=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ThrowStatement(e))},t.prototype.parseCatchClause=function(){var t=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var e=[],r=this.parsePattern(e),n={},i=0;e.length>i;i++){var a="$"+e[i].value;Object.prototype.hasOwnProperty.call(n,a)&&this.tolerateError(o.Messages.DuplicateBinding,e[i].value),n[a]=!0}this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(")");var c=this.parseBlock();return this.finalize(t,new s.CatchClause(r,c))},t.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},t.prototype.parseTryStatement=function(){var t=this.createNode();this.expectKeyword("try");var e=this.parseBlock(),r=this.matchKeyword("catch")?this.parseCatchClause():null,n=this.matchKeyword("finally")?this.parseFinallyClause():null;return r||n||this.throwError(o.Messages.NoCatchOrFinally),this.finalize(t,new s.TryStatement(e,r,n))},t.prototype.parseDebuggerStatement=function(){var t=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(t,new s.DebuggerStatement)},t.prototype.parseStatement=function(){var t;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:t=this.parseExpressionStatement();break;case 7:var e=this.lookahead.value;t="{"===e?this.parseBlock():"("===e?this.parseExpressionStatement():";"===e?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:t=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":t=this.parseBreakStatement();break;case"continue":t=this.parseContinueStatement();break;case"debugger":t=this.parseDebuggerStatement();break;case"do":t=this.parseDoWhileStatement();break;case"for":t=this.parseForStatement();break;case"function":t=this.parseFunctionDeclaration();break;case"if":t=this.parseIfStatement();break;case"return":t=this.parseReturnStatement();break;case"switch":t=this.parseSwitchStatement();break;case"throw":t=this.parseThrowStatement();break;case"try":t=this.parseTryStatement();break;case"var":t=this.parseVariableStatement();break;case"while":t=this.parseWhileStatement();break;case"with":t=this.parseWithStatement();break;default:t=this.parseExpressionStatement()}break;default:t=this.throwUnexpectedToken(this.lookahead)}return t},t.prototype.parseFunctionSourceElements=function(){var t=this.createNode();this.expect("{");var e=this.parseDirectivePrologues(),r=this.context.labelSet,n=this.context.inIteration,i=this.context.inSwitch,o=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)e.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=r,this.context.inIteration=n,this.context.inSwitch=i,this.context.inFunctionBody=o,this.finalize(t,new s.BlockStatement(e))},t.prototype.validateParam=function(t,e,r){var n="$"+r;this.context.strict?(this.scanner.isRestrictedWord(r)&&(t.stricted=e,t.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,n)&&(t.stricted=e,t.message=o.Messages.StrictParamDupe)):t.firstRestricted||(this.scanner.isRestrictedWord(r)?(t.firstRestricted=e,t.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(r)?(t.firstRestricted=e,t.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,n)&&(t.stricted=e,t.message=o.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(t.paramSet,n,{value:!0,enumerable:!0,writable:!0,configurable:!0}):t.paramSet[n]=!0},t.prototype.parseRestElement=function(t){var e=this.createNode();this.expect("...");var r=this.parsePattern(t);return this.match("=")&&this.throwError(o.Messages.DefaultRestParameter),this.match(")")||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(e,new s.RestElement(r))},t.prototype.parseFormalParameter=function(t){for(var e=[],r=this.match("...")?this.parseRestElement(e):this.parsePatternWithDefault(e),n=0;e.length>n;n++)this.validateParam(t,e[n],e[n].value);t.simple=t.simple&&r instanceof s.Identifier,t.params.push(r)},t.prototype.parseFormalParameters=function(t){var e;if(e={simple:!0,params:[],firstRestricted:t},this.expect("("),!this.match(")"))for(e.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(e),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:e.simple,params:e.params,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}},t.prototype.matchAsyncFunction=function(){var t=this.matchContextualKeyword("async");if(t){var e=this.scanner.saveState();this.scanner.scanComments();var r=this.scanner.lex();this.scanner.restoreState(e),t=e.lineNumber===r.lineNumber&&4===r.type&&"function"===r.value}return t},t.prototype.parseFunctionDeclaration=function(t){var e=this.createNode(),r=this.matchContextualKeyword("async");r&&this.nextToken(),this.expectKeyword("function");var n,i=!r&&this.match("*");i&&this.nextToken();var a=null,u=null;if(!t||!this.match("(")){var c=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(u=c,n=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(u=c,n=o.Messages.StrictReservedWord)}var l=this.context.await,h=this.context.allowYield;this.context.await=r,this.context.allowYield=!i;var p=this.parseFormalParameters(u),f=p.params,d=p.stricted;u=p.firstRestricted,p.message&&(n=p.message);var m=this.context.strict,y=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var D=this.parseFunctionSourceElements();return this.context.strict&&u&&this.throwUnexpectedToken(u,n),this.context.strict&&d&&this.tolerateUnexpectedToken(d,n),this.context.strict=m,this.context.allowStrictDirective=y,this.context.await=l,this.context.allowYield=h,r?this.finalize(e,new s.AsyncFunctionDeclaration(a,f,D)):this.finalize(e,new s.FunctionDeclaration(a,f,D,i))},t.prototype.parseFunctionExpression=function(){var t=this.createNode(),e=this.matchContextualKeyword("async");e&&this.nextToken(),this.expectKeyword("function");var r,n=!e&&this.match("*");n&&this.nextToken();var i,a=null,u=this.context.await,c=this.context.allowYield;if(this.context.await=e,this.context.allowYield=!n,!this.match("(")){var l=this.lookahead;a=this.context.strict||n||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(i=l,r=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(i=l,r=o.Messages.StrictReservedWord)}var h=this.parseFormalParameters(i),p=h.params,f=h.stricted;i=h.firstRestricted,h.message&&(r=h.message);var d=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var y=this.parseFunctionSourceElements();return this.context.strict&&i&&this.throwUnexpectedToken(i,r),this.context.strict&&f&&this.tolerateUnexpectedToken(f,r),this.context.strict=d,this.context.allowStrictDirective=m,this.context.await=u,this.context.allowYield=c,e?this.finalize(t,new s.AsyncFunctionExpression(a,p,y)):this.finalize(t,new s.FunctionExpression(a,p,y,n))},t.prototype.parseDirective=function(){var t=this.lookahead,e=this.createNode(),r=this.parseExpression(),n=r.type===u.Syntax.Literal?this.getTokenRaw(t).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(e,n?new s.Directive(r,n):new s.ExpressionStatement(r))},t.prototype.parseDirectivePrologues=function(){for(var t=null,e=[];;){var r=this.lookahead;if(8!==r.type)break;var n=this.parseDirective();e.push(n);var i=n.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,t&&this.tolerateUnexpectedToken(t,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(r,o.Messages.IllegalLanguageModeDirective)):!t&&r.octal&&(t=r)}return e},t.prototype.qualifiedPropertyName=function(t){switch(t.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===t.value}return!1},t.prototype.parseGetterMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var n=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,r.params,n,!1))},t.prototype.parseSetterMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();1!==r.params.length?this.tolerateError(o.Messages.BadSetterArity):r.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var n=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,r.params,n,!1))},t.prototype.parseGeneratorMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,r.params,n,!0))},t.prototype.isStartOfExpression=function(){var t=!0,e=this.lookahead.value;switch(this.lookahead.type){case 7:t="["===e||"("===e||"{"===e||"+"===e||"-"===e||"!"===e||"~"===e||"++"===e||"--"===e||"/"===e||"/="===e;break;case 4:t="class"===e||"delete"===e||"function"===e||"let"===e||"new"===e||"super"===e||"this"===e||"typeof"===e||"void"===e||"yield"===e}return t},t.prototype.parseYieldExpression=function(){var t=this.createNode();this.expectKeyword("yield");var e=null,r=!1;if(!this.hasLineTerminator){var n=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),e=this.parseAssignmentExpression()):this.isStartOfExpression()&&(e=this.parseAssignmentExpression()),this.context.allowYield=n}return this.finalize(t,new s.YieldExpression(e,r))},t.prototype.parseClassElement=function(t){var e=this.lookahead,r=this.createNode(),n="",i=null,a=null,u=!1,c=!1,l=!1,h=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(e=this.lookahead,l=!0,u=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===e.type&&!this.hasLineTerminator&&"async"===e.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(h=!0,e=this.lookahead,i=this.parseObjectPropertyKey(),3===e.type&&"constructor"===e.value&&this.tolerateUnexpectedToken(e,o.Messages.ConstructorIsAsync))}var f=this.qualifiedPropertyName(this.lookahead);return 3===e.type?"get"===e.value&&f?(n="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===e.value&&f&&(n="set",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===e.type&&"*"===e.value&&f&&(n="init",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),c=!0),!n&&i&&this.match("(")&&(n="init",a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0),n||this.throwUnexpectedToken(this.lookahead),"init"===n&&(n="method"),u||(l&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(e,o.Messages.StaticPrototype),!l&&this.isPropertyKey(i,"constructor")&&(("method"!==n||!c||a&&a.generator)&&this.throwUnexpectedToken(e,o.Messages.ConstructorSpecialMethod),t.value?this.throwUnexpectedToken(e,o.Messages.DuplicateConstructor):t.value=!0,n="constructor")),this.finalize(r,new s.MethodDefinition(i,u,a,n,l))},t.prototype.parseClassElementList=function(){var t=[],e={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():t.push(this.parseClassElement(e));return this.expect("}"),t},t.prototype.parseClassBody=function(){var t=this.createNode(),e=this.parseClassElementList();return this.finalize(t,new s.ClassBody(e))},t.prototype.parseClassDeclaration=function(t){var e=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=t&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=r,this.finalize(e,new s.ClassDeclaration(n,i,o))},t.prototype.parseClassExpression=function(){var t=this.createNode(),e=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=e,this.finalize(t,new s.ClassExpression(r,n,i))},t.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new s.Module(e))},t.prototype.parseScript=function(){for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new s.Script(e))},t.prototype.parseModuleSpecifier=function(){var t=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var e=this.nextToken(),r=this.getTokenRaw(e);return this.finalize(t,new s.Literal(e.value,r))},t.prototype.parseImportSpecifier=function(){var t,e,r=this.createNode();return 3===this.lookahead.type?(e=t=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),e=this.parseVariableIdentifier())):(e=t=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),e=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new s.ImportSpecifier(e,t))},t.prototype.parseNamedImports=function(){this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),t},t.prototype.parseImportDefaultSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName();return this.finalize(t,new s.ImportDefaultSpecifier(e))},t.prototype.parseImportNamespaceSpecifier=function(){var t=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var e=this.parseIdentifierName();return this.finalize(t,new s.ImportNamespaceSpecifier(e))},t.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var t,e=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)t=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new s.ImportDeclaration(r,t))},t.prototype.parseExportSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName(),r=e;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(t,new s.ExportSpecifier(e,r))},t.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var t,e=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(r))}else this.matchKeyword("class")?(r=this.parseClassDeclaration(!0),t=this.finalize(e,new s.ExportDefaultDeclaration(r))):this.matchContextualKeyword("async")?(r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),t=this.finalize(e,new s.ExportDefaultDeclaration(r))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),t=this.finalize(e,new s.ExportDefaultDeclaration(r)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new s.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(r=void 0,this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new s.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction())r=this.parseFunctionDeclaration(),t=this.finalize(e,new s.ExportNamedDeclaration(r,[],null));else{var a=[],u=null,c=!1;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):c?(n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(n,this.lookahead.value)):this.consumeSemicolon(),t=this.finalize(e,new s.ExportNamedDeclaration(null,a,u))}return t},t}();e.Parser=l},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assert=function(t,e){if(!t)throw new Error("ASSERT: "+e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.errors=[],this.tolerant=!1}return t.prototype.recordError=function(t){this.errors.push(t)},t.prototype.tolerate=function(t){if(!this.tolerant)throw t;this.recordError(t)},t.prototype.constructError=function(t,e){var r=new Error(t);try{throw r}catch(t){Object.create&&Object.defineProperty&&(r=Object.create(t),Object.defineProperty(r,"column",{value:e}))}return r},t.prototype.createError=function(t,e,r,n){var i="Line "+e+": "+n,o=this.constructError(i,r);return o.index=t,o.lineNumber=e,o.description=n,o},t.prototype.throwError=function(t,e,r,n){throw this.createError(t,e,r,n)},t.prototype.tolerateError=function(t,e,r,n){var i=this.createError(t,e,r,n);if(!this.tolerant)throw i;this.recordError(i)},t}();e.ErrorHandler=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),i=r(4),o=r(11);function s(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function a(t){return"01234567".indexOf(t)}var u=function(){function t(t,e){this.source=t,this.errorHandler=e,this.trackComment=!1,this.isModule=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},t.prototype.restoreState=function(t){this.index=t.index,this.lineNumber=t.lineNumber,this.lineStart=t.lineStart},t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){return void 0===t&&(t=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(t){void 0===t&&(t=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.skipSingleLineComment=function(t){var e,r,n=[];for(this.trackComment&&(n=[],e=this.index-t,r={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[e+t,this.index-1],range:[e,this.index-1],loc:r};n.push(s)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n}}return this.trackComment&&(r.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[e+t,this.index],range:[e,this.index],loc:r},n.push(s)),n},t.prototype.skipMultiLineComment=function(){var t,e,r=[];for(this.trackComment&&(r=[],t=this.index-2,e={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(n))13===n&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===n){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:e};r.push(o)}return r}++this.index}else++this.index}return this.trackComment&&(e.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:e},r.push(o)),this.tolerateUnexpectedToken(),r},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var e=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(r))++this.index;else if(i.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(n)),e=!0}else{if(42!==r)break;this.index+=2,n=this.skipMultiLineComment(),this.trackComment&&(t=t.concat(n))}else if(e&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,n=this.skipSingleLineComment(3),this.trackComment&&(t=t.concat(n))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,n=this.skipSingleLineComment(4),this.trackComment&&(t=t.concat(n))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var e=this.source.charCodeAt(t);if(e>=55296&&56319>=e){var r=this.source.charCodeAt(t+1);56320>r||r>57343||(e=1024*(e-55296)+r-56320+65536)}return e},t.prototype.scanHexEscape=function(t){for(var e="u"===t?4:2,r=0,n=0;e>n;++n){if(this.eof()||!i.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;r=16*r+s(this.source[this.index++])}return String.fromCharCode(r)},t.prototype.scanUnicodeCodePointEscape=function(){var t=this.source[this.index],e=0;for("}"===t&&this.throwUnexpectedToken();!this.eof()&&(t=this.source[this.index++],i.Character.isHexDigit(t.charCodeAt(0)));)e=16*e+s(t);return(e>1114111||"}"!==t)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(e)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var e=this.source.charCodeAt(this.index);if(92===e)return this.index=t,this.getComplexIdentifier();if(e>=55296&&57343>e)return this.index=t,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(e))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t,e=this.codePointAt(this.index),r=i.Character.fromCodePoint(e);for(this.index+=r.length,92===e&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&i.Character.isIdentifierStart(t.charCodeAt(0))||this.throwUnexpectedToken(),r=t);!this.eof()&&(e=this.codePointAt(this.index),i.Character.isIdentifierPart(e));)r+=t=i.Character.fromCodePoint(e),this.index+=t.length,92===e&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&i.Character.isIdentifierPart(t.charCodeAt(0))||this.throwUnexpectedToken(),r+=t);return r},t.prototype.octalToDecimal=function(t){var e="0"!==t,r=a(t);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(e=!0,r=8*r+a(this.source[this.index++]),0>"0123".indexOf(t)||this.eof()||!i.Character.isOctalDigit(this.source.charCodeAt(this.index))||(r=8*r+a(this.source[this.index++]))),{code:r,octal:e}},t.prototype.scanIdentifier=function(){var t,e=this.index,r=92===this.source.charCodeAt(e)?this.getComplexIdentifier():this.getIdentifier();if(3!=(t=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&e+r.length!==this.index){var n=this.index;this.index=e,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=n}return{type:t,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.scanPunctuator=function(){var t=this.index,e=this.source[this.index];switch(e){case"(":case"{":"{"===e&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,e="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(e=this.source.substr(this.index,4))?this.index+=4:"==="===(e=e.substr(0,3))||"!=="===e||">>>"===e||"<<="===e||">>="===e||"**="===e?this.index+=3:"&&"===(e=e.substr(0,2))||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e||"**"===e?this.index+=2:(e=this.source[this.index],0>"<>=!+-*%&|^/".indexOf(e)||++this.index)}return this.index===t&&this.throwUnexpectedToken(),{type:7,value:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanHexLiteral=function(t){for(var e="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)e+=this.source[this.index++];return 0===e.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+e,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var e,r="";!this.eof()&&("0"===(e=this.source[this.index])||"1"===e);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),this.eof()||(e=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(e)||i.Character.isDecimalDigit(e))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,e){var r="",n=!1;for(i.Character.isOctalDigit(t.charCodeAt(0))?(n=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return n||0!==r.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t<this.length;++t){var e=this.source[t];if("8"===e||"9"===e)return!1;if(!i.Character.isOctalDigit(e.charCodeAt(0)))return!0}return!0},t.prototype.scanNumericLiteral=function(){var t=this.index,e=this.source[t];n.assert(i.Character.isDecimalDigit(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal digit or a decimal point");var r="";if("."!==e){if(r=this.source[this.index++],e=this.source[this.index],"0"===r){if("x"===e||"X"===e)return++this.index,this.scanHexLiteral(t);if("b"===e||"B"===e)return++this.index,this.scanBinaryLiteral(t);if("o"===e||"O"===e)return this.scanOctalLiteral(e,t);if(e&&i.Character.isOctalDigit(e.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(e,t)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];e=this.source[this.index]}if("."===e){for(r+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];e=this.source[this.index]}if("e"===e||"E"===e)if(r+=this.source[this.index++],"+"!==(e=this.source[this.index])&&"-"!==e||(r+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanStringLiteral=function(){var t=this.index,e=this.source[t];n.assert("'"===e||'"'===e,"String literal must starts with a quote"),++this.index;for(var r=!1,s="";!this.eof();){var a=this.source[this.index++];if(a===e){e="";break}if("\\"===a)if((a=this.source[this.index++])&&i.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var u=this.scanHexEscape(a);null===u&&this.throwUnexpectedToken(),s+=u}break;case"x":var c=this.scanHexEscape(a);null===c&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),s+=c;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=a,this.tolerateUnexpectedToken();break;default:if(a&&i.Character.isOctalDigit(a.charCodeAt(0))){var l=this.octalToDecimal(a);r=l.octal||r,s+=String.fromCharCode(l.code)}else s+=a}else{if(i.Character.isLineTerminator(a.charCodeAt(0)))break;s+=a}}return""!==e&&(this.index=t,this.throwUnexpectedToken()),{type:8,value:s,octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanTemplate=function(){var t="",e=!1,r=this.index,n="`"===this.source[r],s=!1,a=2;for(++this.index;!this.eof();){var u=this.source[this.index++];if("`"===u){a=1,s=!0,e=!0;break}if("$"===u){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,e=!0;break}t+=u}else if("\\"===u)if(u=this.source[this.index++],i.Character.isLineTerminator(u.charCodeAt(0)))++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(u){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"u":if("{"===this.source[this.index])++this.index,t+=this.scanUnicodeCodePointEscape();else{var c=this.index,l=this.scanHexEscape(u);null!==l?t+=l:(this.index=c,t+=u)}break;case"x":var h=this.scanHexEscape(u);null===h&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),t+=h;break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:"0"===u?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),t+="\0"):i.Character.isOctalDigit(u.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):t+=u}else i.Character.isLineTerminator(u.charCodeAt(0))?(++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,t+="\n"):t+=u}return e||this.throwUnexpectedToken(),n||this.curlyStack.pop(),{type:10,value:this.source.slice(r+1,this.index-a),cooked:t,head:n,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:r,end:this.index}},t.prototype.testRegExp=function(t,e){var r=t,n=this;0>e.indexOf("u")||(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(t,e,r){var i=parseInt(e||r,16);return i>1114111&&n.throwUnexpectedToken(o.Messages.InvalidRegExp),i>65535?"":String.fromCharCode(i)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,""));try{RegExp(r)}catch(t){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(t,e)}catch(t){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];n.assert("/"===t,"Regular expression literal must start with a slash");for(var e=this.source[this.index++],r=!1,s=!1;!this.eof();)if(e+=t=this.source[this.index++],"\\"===t)t=this.source[this.index++],i.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),e+=t;else if(i.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(r)"]"===t&&(r=!1);else{if("/"===t){s=!0;break}"["===t&&(r=!0)}return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),e.substr(1,e.length-2)},t.prototype.scanRegExpFlags=function(){for(var t="";!this.eof();){var e=this.source[this.index];if(!i.Character.isIdentifierPart(e.charCodeAt(0)))break;if(++this.index,"\\"!==e||this.eof())t+=e;else if("u"===(e=this.source[this.index])){++this.index;var r=this.index,n=this.scanHexEscape("u");if(null!==n)for(t+=n;r<this.index;++r)this.source[r];else this.index=r,t+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return t},t.prototype.scanRegExp=function(){var t=this.index,e=this.scanRegExpBody(),r=this.scanRegExpFlags();return{type:9,value:"",pattern:e,flags:r,regex:this.testRegExp(e,r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var t=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(t)?this.scanIdentifier():40===t||41===t||59===t?this.scanPunctuator():39===t||34===t?this.scanStringLiteral():46===t?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(t)?this.scanNumericLiteral():96===t||125===t&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():t>=55296&&57343>t&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();e.Scanner=u},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenName={},e.TokenName[1]="Boolean",e.TokenName[2]="<end>",e.TokenName[3]="Identifier",e.TokenName[4]="Keyword",e.TokenName[5]="Null",e.TokenName[6]="Numeric",e.TokenName[7]="Punctuator",e.TokenName[8]="String",e.TokenName[9]="RegularExpression",e.TokenName[10]="Template"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(10),i=r(12),o=r(13),s=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],e=null!==t;switch(t){case"this":case"]":e=!1;break;case")":var r=this.values[this.paren-1];e="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(e=!1,"function"===this.values[this.curly-3])e=!!(n=this.values[this.curly-4])&&!this.beforeFunctionExpression(n);else if("function"===this.values[this.curly-4]){var n;e=!(n=this.values[this.curly-5])||!this.beforeFunctionExpression(n)}}return e},t.prototype.push=function(t){7===t.type||4===t.type?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),a=function(){function t(t,e){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=!!e&&"boolean"==typeof e.tolerant&&e.tolerant,this.scanner=new i.Scanner(t,this.errorHandler),this.scanner.trackComment=!!e&&"boolean"==typeof e.comment&&e.comment,this.trackRange=!!e&&"boolean"==typeof e.range&&e.range,this.trackLoc=!!e&&"boolean"==typeof e.loc&&e.loc,this.buffer=[],this.reader=new s}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var e=0;e<t.length;++e){var r=t[e],n=this.scanner.source.slice(r.slice[0],r.slice[1]),i={type:r.multiLine?"BlockComment":"LineComment",value:n};this.trackRange&&(i.range=r.range),this.trackLoc&&(i.loc=r.loc),this.buffer.push(i)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var a="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(a);var u={type:o.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};if(this.trackRange&&(u.range=[a.start,a.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},u.loc=s),9===a.type){var c=a.pattern,l=a.flags;u.regex={pattern:c,flags:l}}this.buffer.push(u)}}return this.buffer.shift()},t}();e.Tokenizer=a}])},t.exports=n()},function(t,e,r){"use strict";var n=r(32),i=r(37),o=r(57),s=r(38),a=Object.prototype.toString,u=Object.prototype.hasOwnProperty,c=9,l=10,h=32,p=33,f=34,d=35,m=37,y=38,D=39,g=42,v=44,E=45,b=58,x=62,w=63,A=64,C=91,S=93,F=96,T=123,O=124,k=125,I={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},N=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function B(t){var e,r,o;if(e=t.toString(16).toUpperCase(),t>255)if(t>65535){if(t>4294967295)throw new i("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}else r="u",o=4;else r="x",o=2;return"\\"+r+n.repeat("0",o-e.length)+e}function P(t){this.schema=t.schema||o,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=n.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var r,n,i,o,s,a,c;if(null===e)return{};for(r={},i=0,o=(n=Object.keys(e)).length;o>i;i+=1)s=n[i],a=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(c=t.compiledTypeMap.fallback[s])&&u.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function _(t,e){for(var r,i=n.repeat(" ",e),o=0,s=-1,a="",u=t.length;u>o;)-1===(s=t.indexOf("\n",o))?(r=t.slice(o),o=u):(r=t.slice(o,s+1),o=s+1),r.length&&"\n"!==r&&(a+=i),a+=r;return a}function j(t,e){return"\n"+n.repeat(" ",t.indent*e)}function M(t){return t===h||t===c}function L(t){return t>=32&&126>=t||t>=161&&55295>=t&&8232!==t&&8233!==t||t>=57344&&65533>=t&&65279!==t||t>=65536&&1114111>=t}function $(t){return L(t)&&65279!==t&&t!==v&&t!==C&&t!==S&&t!==T&&t!==k&&t!==b&&t!==d}function R(t){return/^\n* /.test(t)}var U=1,V=2,z=3,J=4,G=5;function q(t,e){var r=R(t)?String(e):"",n="\n"===t[t.length-1];return r+(!n||"\n"!==t[t.length-2]&&"\n"!==t?n?"":"-":"+")+"\n"}function X(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function W(t,e){if(""===t||" "===t[0])return t;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,u="";r=i.exec(t);)(a=r.index)-o>e&&(n=s>o?s:a,u+="\n"+t.slice(o,n),o=n+1),s=a;return u+="\n",t.length-o>e&&s>o?u+=t.slice(o,s)+"\n"+t.slice(s+1):u+=t.slice(o),u.slice(1)}function K(t,e,r){var n,o,s,c,l,h;for(s=0,c=(o=r?t.explicitTypes:t.implicitTypes).length;c>s;s+=1)if(((l=o[s]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof e&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(t.tag=r?l.tag:"?",l.represent){if(h=t.styleMap[l.tag]||l.defaultStyle,"[object Function]"===a.call(l.represent))n=l.represent(e,h);else{if(!u.call(l.represent,h))throw new i("!<"+l.tag+'> tag resolver accepts not "'+h+'" style');n=l.represent[h](e,h)}t.dump=n}return!0}return!1}function Y(t,e){var r=new P(e=e||{});return r.noRefs||function(t,e){var r,n,i=[],o=[];for(function t(e,r,n){var i,o,s;if(null!==e&&"object"==typeof e)if(-1!==(o=r.indexOf(e)))-1===n.indexOf(o)&&n.push(o);else if(r.push(e),Array.isArray(e))for(o=0,s=e.length;s>o;o+=1)t(e[o],r,n);else for(o=0,s=(i=Object.keys(e)).length;s>o;o+=1)t(e[i[o]],r,n)}(t,i,o),r=0,n=o.length;n>r;r+=1)e.duplicates.push(i[o[r]]);e.usedDuplicates=new Array(n)}(t,r),function t(e,r,n,o,s,u){e.tag=null,e.dump=n,K(e,n,!1)||K(e,n,!0);var c=a.call(e.dump);o&&(o=0>e.flowLevel||e.flowLevel>r);var h,P,Y="[object Object]"===c||"[object Array]"===c;if(Y&&(P=-1!==(h=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||P||2!==e.indent&&r>0)&&(s=!1),P&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(Y&&P&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===c)o&&0!==Object.keys(e.dump).length?(function(e,r,n,o){var s,a,u,c,h,p,f="",d=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(s=0,a=m.length;a>s;s+=1)p="",o&&0===s||(p+=j(e,r)),c=n[u=m[s]],t(e,r+1,u,!0,!0,!0)&&((h=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&l===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=j(e,r)),t(e,r+1,c,!0,h)&&(e.dump&&l===e.dump.charCodeAt(0)?p+=":":p+=": ",f+=p+=e.dump));e.tag=d,e.dump=f||"{}"}(e,r,e.dump,s),P&&(e.dump="&ref_"+h+e.dump)):(function(e,r,n){var i,o,s,a,u,c="",l=e.tag,h=Object.keys(n);for(i=0,o=h.length;o>i;i+=1)u=e.condenseFlow?'"':"",0!==i&&(u+=", "),a=n[s=h[i]],t(e,r,s,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),t(e,r,a,!1,!1)&&(c+=u+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,r,e.dump),P&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===c){var H=e.noArrayIndent&&r>0?r-1:r;o&&0!==e.dump.length?(function(e,r,n,i){var o,s,a="",u=e.tag;for(o=0,s=n.length;s>o;o+=1)t(e,r+1,n[o],!0,!0)&&(i&&0===o||(a+=j(e,r)),e.dump&&l===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=u,e.dump=a||"[]"}(e,H,e.dump,s),P&&(e.dump="&ref_"+h+e.dump)):(function(e,r,n){var i,o,s="",a=e.tag;for(i=0,o=n.length;o>i;i+=1)t(e,r,n[i],!1,!1)&&(0!==i&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=a,e.dump="["+s+"]"}(e,H,e.dump),P&&(e.dump="&ref_"+h+" "+e.dump))}else{if("[object String]"!==c){if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&function(t,e,r,n){t.dump=function(){if(0===e.length)return"''";if(!t.noCompatMode&&-1!==N.indexOf(e))return"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;switch(function(e,r,n,i,o){var s,a,u,c=!1,h=!1,I=-1!==i,N=-1,B=L(u=e.charCodeAt(0))&&65279!==u&&!M(u)&&u!==E&&u!==w&&u!==b&&u!==v&&u!==C&&u!==S&&u!==T&&u!==k&&u!==d&&u!==y&&u!==g&&u!==p&&u!==O&&u!==x&&u!==D&&u!==f&&u!==m&&u!==A&&u!==F&&!M(e.charCodeAt(e.length-1));if(r)for(s=0;s<e.length;s++){if(!L(a=e.charCodeAt(s)))return G;B=B&&$(a)}else{for(s=0;s<e.length;s++){if((a=e.charCodeAt(s))===l)c=!0,I&&(h=h||s-N-1>i&&" "!==e[N+1],N=s);else if(!L(a))return G;B=B&&$(a)}h=h||I&&s-N-1>i&&" "!==e[N+1]}return c||h?n>9&&R(e)?G:h?J:z:B&&!function(e){return function(t,e){var r,n;for(r=0,n=t.implicitTypes.length;n>r;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}(t,e)}(e)?U:V}(e,a,t.indent,s)){case U:return e;case V:return"'"+e.replace(/'/g,"''")+"'";case z:return"|"+q(e,t.indent)+X(_(e,o));case J:return">"+q(e,t.indent)+X(_(function(t,e){for(var r,n,i,o=/(\n+)([^\n]*)/g,s=(i=-1!==(i=t.indexOf("\n"))?i:t.length,o.lastIndex=i,W(t.slice(0,i),e)),a="\n"===t[0]||" "===t[0];n=o.exec(t);){var u=n[1],c=n[2];r=" "===c[0],s+=u+(a||r||""===c?"":"\n")+W(c,e),a=r}return s}(e,s),o));case G:return'"'+function(t){for(var e,r,n,i="",o=0;o<t.length;o++)55296>(e=t.charCodeAt(o))||e>56319||56320>(r=t.charCodeAt(o+1))||r>57343?i+=!(n=I[e])&&L(e)?t[o]:n||B(e):(i+=B(1024*(e-55296)+r-56320+65536),o++);return i}(e)+'"';default:throw new i("impossible error: invalid scalar style")}}()}(e,e.dump,r,u)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}(r,0,t,!0,!0)?r.dump+"\n":""}t.exports.dump=Y,t.exports.safeDump=function(t,e){return Y(t,n.extend({schema:s},e))}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return h}));var n=r(179),i=r.n(n),o=r(0),s=r(63),a=r(2),u=r(12),c=r(23),l=r.n(c);class h{constructor(){this.watchers=[];for(const t of o.a.watchedSteamDepotIds){const e=Object(s.ensureObject)(t,"id"),r=new i.a({depotId:e.id,pollInterval:1e3*o.a.watchSteamGamesIntervalSeconds});this.watchers.push({instance:r,...e})}}preInit(){return!Object(u.isEmpty)(o.a.travisToken)&&!Object(u.isEmpty)(this.watchers)&&void 0}postInit(){return a.a.ready}ready(){for(const{instance:t,id:e,name:r}of this.watchers)t.on("contentChanged",()=>{a.a.say(`HSCheers Neues Update bei ${r||"einem Game auf Steam"}: steamdb.info/depot/${e}/history`)}),t.start();o.e.info("Started Steam game update watcher with %s",l()(o.a.watchedSteamDepotIds,"entry"))}}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return f}));var n=r(182),i=r.n(n),o=r(0),s=r(2),a=r(63),u=r(23),c=r.n(u),l=r(12);const h=t=>{var e;return!t.retweeted_status&&(!t.in_reply_to_user_id||t.in_reply_to_user_id===t.user.id)&&!!(null==t?void 0:null===(e=t.user)||void 0===e?void 0:e.id_str)&&o.a.twitterFollowedIds.includes(t.user.id_str)},p=t=>{var e;return(null===(e=t.extended_tweet)||void 0===e?void 0:e.full_text)||t.text};class f{init(){this.twit=new i.a({consumer_key:o.a.twitterConsumerKey,consumer_secret:o.a.twitterConsumerSecret,access_token:o.a.twitterAccessToken,access_token_secret:o.a.twitterAccessSecret})}preInit(){if(Object(l.isEmpty)(o.a.twitterFollowedIds))return!1}postInit(){return s.a.ready}ready(){const t=this.twit.stream("statuses/filter",{follow:o.a.twitterFollowedIds.map(t=>Object(a.unpackObject)(t,"id")),filter_level:"none"});t.on("tweet",t=>{var e;h(t)&&s.a.say(`MercyWing2 ${t.user.name} tweetet: ${e=t,p(e)}`)}),t.on("delete",t=>{h(t)&&s.a.say(`CurseLit ${t.user.name} hat einen Tweet gelöscht: ${t.text}`)}),o.e.info("Started tweet notifier for %s",c()(o.a.twitterFollowedIds,"profile"))}}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return C}));var n=r(97),i=r.n(n),o=r(39),s=r.n(o),a=r(0),u=r(2),c=r(183),l=r.n(c),h=r(184),p=r.n(h),f=r(3),d=r(104),m=r.n(d),y=r(185),D=r.n(y),g=r(62),v=r.n(g),E=r(186),b=r.n(E),x=r(23),w=r.n(x),A=r(12);class C extends s.a{constructor(){super({pollInterval:1e3*a.a.youtubeSubscriptionsPollIntervalSeconds,invalidateInitialEntries:!0}),this.startDate=Date.now(),this.on("initialEntry",t=>{a.e.debug('Found video "%s", but it is not new.',t.title)}),this.on("newEntry",async t=>{try{var e,r;if((null===(e=t.channel)||void 0===e?void 0:e.titleRegex)&&!m()(t.channel.titleRegex).test(t.title))return void a.e.info('Skipping new video "%s" by %s, because it failed RegExp test %s',t.title,t.channel.name,t.channel.titleRegex);if((null===(r=t.channel)||void 0===r?void 0:r.titleRegexNot)&&m()(t.channel.titleRegexNot).test(t.title))return void a.e.info('Skipping new video "%s" by %s, because it succeeded RegExp test %s',t.title,t.channel.name,t.channel.titleRegexNot);const n=`youtu.be/${t.id}`;t.channel.name?u.a.say(`PopCorn Video "${t.title}" von ${t.channel.name}: ${n}`):u.a.say(`PopCorn Video "${t.title}": ${n}`),await b()(1e3*a.a.videoSubscriptionAddDelaySeconds),await f.default.queueByUrl(n,{priority:t.channel.priority||a.a.videoSubscriptionPriority})}catch(e){a.e.error("Found new YouTube video %s, but couldn't process it: %s",t.id,e)}})}preInit(){if(Object(A.isEmpty)(a.a.observedYoutubeChannels))return!1}postInit(){return u.a.ready}ready(){this.start(),a.e.info("Started YouTube subscriptionWatcher for %s subscriptions",a.a.observedYoutubeChannels.length)}async fetchEntries(){const t=await v()(a.a.observedYoutubeChannels,async t=>{const e=p()(t,"id");return a.e.debug("Fetching YouTube videos from %s",e.name),(await D()(l()(e.id),1e3*a.a.secondsBetweenYoutubeChecks,{delayRejection:!1})).map(t=>({...t,channel:e}))},{concurrency:1}),e=i()(t);return a.e.debug("Fetched %s from %s",w()(e,"video"),w()(a.a.observedYoutubeChannels,"channel")),e}handleError(t){a.e.error("Could not check YouTube subscriptions: %s",t)}}},function(t,e,r){"use strict";r.r(e);var n=r(180),i=r(0),o=r(19),s=r(42),a=r.n(s),u=r(181),c=r.n(u),l=r(40);e.default=new class{async ready(){a.a.use(new n.Strategy({scope:l.a,clientID:i.a.twitchClientId,clientSecret:i.a.twitchClientSecret,callbackURL:i.a.twitchClientCallbackUrl},async(t,e,r,n)=>{await o.default.upsert({accessToken:t,refreshToken:e,broadcasterType:r.broadcaster_type,description:r.description,displayName:r.display_name,twitchId:r.id,loginName:r.login,offlineImageUrl:r.offline_image_url,avatarUrl:r.profile_image_url,viewCount:r.view_count}),i.e.info("Login from Twitch user %s",r.login),n()})),i.c.koa.use(a.a.initialize()),this.router=new c.a,this.router.get("/",t=>{t.type="html",t.body="<a href=/auth/twitch>Login with Twitch</a>"}),this.router.get("/auth/twitch",a.a.authenticate("twitch")),this.router.get("/auth/twitch/callback",a.a.authenticate("twitch",{failureRedirect:"/"}),t=>{t.body="OK"}),i.c.koa.use(this.router.routes())}}}]);