3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-23 04:29:33 +01:00
docker-metadata/dist/index.js

60 lines
859 KiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const p=o(r(2037));const u=r(5278);function issueCommand(t,a,r){const d=new Command(t,a,r);process.stdout.write(d.toString()+p.EOL)}a.issueCommand=issueCommand;function issue(t,a=""){issueCommand(t,{},a)}a.issue=issue;const l="::";class Command{constructor(t,a,r){if(!t){t="missing.command"}this.command=t;this.properties=a;this.message=r}toString(){let t=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{t+=","}t+=`${r}=${escapeProperty(d)}`}}}}t+=`${l}${escapeData(this.message)}`;return t}}function escapeData(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};var p=this&&this.__awaiter||function(t,a,r,d){function adopt(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(t){try{step(d.next(t))}catch(t){i(t)}}function rejected(t){try{step(d["throw"](t))}catch(t){i(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((d=d.apply(t,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const u=r(7351);const l=r(717);const c=r(5278);const m=o(r(2037));const h=o(r(1017));const v=r(8041);var g;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(g=a.ExitCode||(a.ExitCode={}));function exportVariable(t,a){const r=c.toCommandValue(a);process.env[t]=r;const d=process.env["GITHUB_ENV"]||"";if(d){const a="_GitHubActionsFileCommandDelimeter_";const d=`${t}<<${a}${m.EOL}${r}${m.EOL}${a}`;l.issueCommand("ENV",d)}else{u.issueCommand("set-env",{name:t},r)}}a.exportVariable=exportVariable;function setSecret(t){u.issueCommand("add-mask",{},t)}a.setSecret=setSecret;function addPath(t){const a=process.env["GITHUB_PATH"]||"";if(a){l.issueCommand("PATH",t)}else{u.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${h.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(t,a){const r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${t}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(t,a){const r=getInput(t,a).split("\n").filter((t=>t!==""));ret
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}function isPlainObject(t){var a,r;if(isObject(t)===false)return false;a=t.constructor;if(a===undefined)return true;r=a.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}a.isPlainObject=isPlainObject},7129:(t,a,r)=>{"use strict";const d=r(665);const i=Symbol("max");const o=Symbol("length");const p=Symbol("lengthCalculator");const u=Symbol("allowStale");const l=Symbol("maxAge");const c=Symbol("dispose");const m=Symbol("noDisposeOnSet");const h=Symbol("lruList");const v=Symbol("cache");const g=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(t){if(typeof t==="number")t={max:t};if(!t)t={};if(t.max&&(typeof t.max!=="number"||t.max<0))throw new TypeError("max must be a non-negative number");const a=this[i]=t.max||Infinity;const r=t.length||naiveLength;this[p]=typeof r!=="function"?naiveLength:r;this[u]=t.stale||false;if(t.maxAge&&typeof t.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0;this[c]=t.dispose;this[m]=t.noDisposeOnSet||false;this[g]=t.updateAgeOnGet||false;this.reset()}set max(t){if(typeof t!=="number"||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||Infinity;trim(this)}get max(){return this[i]}set allowStale(t){this[u]=!!t}get allowStale(){return this[u]}set maxAge(t){if(typeof t!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=t;trim(this)}get maxAge(){return this[l]}set lengthCalculator(t){if(typeof t!=="function")t=naiveLength;if(t!==this[p]){this[p]=t;this[o]=0;this[h].forEach((t=>{t.length=this[p](t.value,t.key);this[o]+=t.length}))}trim(this)}get lengthCalculator(){return this[p]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,a){a=a||this;for(let r=this[h].tail;r!==null;){const d=r.prev;forEachStep(this,t,r,a);r=d}}forEach(t,a){a=a||this;for(let r=this[h].head;r!==null;){const d=r.next;forEachStep(this,t,r,a);r=d}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){if(this[c]&&this[h]&&this[h].length){this[h].forEach((t=>this[c](t.key,t.value)))}this[v]=new Map;this[h]=new d;this[o]=0}dump(){return this[h].map((t=>isStale(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,a,r){r=r||this[l];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const d=r?Date.now():0;const u=this[p](a,t);if(this[v].has(t)){if(u>this[i]){del(this,this[v].get(t));return false}const p=this[v].get(t);const l=p.value;if(this[c]){if(!this[m])this[c](t,l.value)}l.now=d;l.maxAge=r;l.value=a;this[o]+=u-l.length;l.length=u;this.get(t);trim(this);return true}const g=new Entry(t,a,u,d,r);if(g.length>this[i]){if(this[c])this[c](t,a);return false}this[o]+=g.length;this[h].unshift(g);this[v].set(t,this[h].head);trim(this);return true}has(t){if(!this[v].has(t))return false;const a=this[v].get(t).value;return!isStale(this,a)}get(t){return get(this,t,true)}peek(t){return get(this,t,false)}pop(){const t=this[h].tail;if(!t)return null;del(this,t);return t.value}del(t){del(this,this[v].get(t))}load(t){this.reset();const a=Date.now();for(let r=t.length-1;r>=0;r--){const d=t[r];const i=d.e||0;if(i===0)this.set(d.k,d.v);else{const t=i-a;if(t>0){this.set(d.k,d.v,t)}}}}prune(){this[v].forEach(((t,a)=>get(this,a,false)))}}const get=(t,a,r)=>{const d=t[v].get(a);if(d){const a=d.value;if(isStale(t,a)){del(t,d);if(!t[u])return undefined}else{if(r){if(t[g])d.value.now=Date.now();t[h].unshiftNode(d)}}return a.value}};const isStale=(t,a)=>{if(!a||!a.maxAge&&!t[l])return false;const r=Date.now()-a.now;return a.maxAge?r>a.maxAge:t[l]&&r>t[l]};const trim=t=>{if(t[o]>t[i]){for(let a=t[h].tail;t[o]>t[i]&&a!==null;){const r=a.prev;del(t,a);a=r}}};const del=(t,a)=>{if(a){const r=a.value;if(t[c])t[c](r.key,r.value);t[o]-=r.length;t[v].delete(r.key);t[h].removeNode(a)}};class Entry{constructor(t,a,r,d,i){this.key=t;this.value=a;this.length
//! moment.js
//! version : 2.29.3
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(a,r){true?t.exports=r():0})(this,(function(){"use strict";var a;function hooks(){return a.apply(null,arguments)}function setHookCallback(t){a=t}function isArray(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function isObject(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function hasOwnProp(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function isObjectEmpty(t){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(t).length===0}else{var a;for(a in t){if(hasOwnProp(t,a)){return false}}return true}}function isUndefined(t){return t===void 0}function isNumber(t){return typeof t==="number"||Object.prototype.toString.call(t)==="[object Number]"}function isDate(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function map(t,a){var r=[],d,i=t.length;for(d=0;d<i;++d){r.push(a(t[d],d))}return r}function extend(t,a){for(var r in a){if(hasOwnProp(a,r)){t[r]=a[r]}}if(hasOwnProp(a,"toString")){t.toString=a.toString}if(hasOwnProp(a,"valueOf")){t.valueOf=a.valueOf}return t}function createUTC(t,a,r,d){return createLocalOrUTC(t,a,r,d,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(t){if(t._pf==null){t._pf=defaultParsingFlags()}return t._pf}var r;if(Array.prototype.some){r=Array.prototype.some}else{r=function(t){var a=Object(this),r=a.length>>>0,d;for(d=0;d<r;d++){if(d in a&&t.call(this,a[d],d,a)){return true}}return false}}function isValid(t){if(t._isValid==null){var a=getParsingFlags(t),d=r.call(a.parsedDateParts,(function(t){return t!=null})),i=!isNaN(t._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&d);if(t._strict){i=i&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(t)){t._isValid=i}else{return i}}return t._isValid}function createInvalid(t){var a=createUTC(NaN);if(t!=null){extend(getParsingFlags(a),t)}else{getParsingFlags(a).userInvalidated=true}return a}var d=hooks.momentProperties=[],i=false;function copyConfig(t,a){var r,i,o,p=d.length;if(!isUndefined(a._isAMomentObject)){t._isAMomentObject=a._isAMomentObject}if(!isUndefined(a._i)){t._i=a._i}if(!isUndefined(a._f)){t._f=a._f}if(!isUndefined(a._l)){t._l=a._l}if(!isUndefined(a._strict)){t._strict=a._strict}if(!isUndefined(a._tzm)){t._tzm=a._tzm}if(!isUndefined(a._isUTC)){t._isUTC=a._isUTC}if(!isUndefined(a._offset)){t._offset=a._offset}if(!isUndefined(a._pf)){t._pf=getParsingFlags(a)}if(!isUndefined(a._locale)){t._locale=a._locale}if(p>0){for(r=0;r<p;r++){i=d[r];o=a[i];if(!isUndefined(o)){t[i]=o}}}return t}function Moment(t){copyConfig(this,t);this._d=new Date(t._d!=null?t._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(i===false){i=true;hooks.updateOffset(this);i=false}}function isMoment(t){return t instanceof Moment||t!=null&&t._isAMomentObject!=null}function warn(t){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+t)}}function deprecate(t,a){var r=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,t)}if(r){var d=[],i,o,p,u=arguments.length;for(o=0;o<u;o++){i="";if(typeof arguments[o]==="object"){i+="\n["+o+"] ";for(p in arguments[0]){if(hasOwnProp(arguments[0],p)){i+=p+": "+arguments[0][p]+", "}}i=i.slice(0,-2)}else{i=arguments[o]}d.push(i)}warn(t+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)}),a)}var o={};function deprecateSimple(t,a){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(t,a)}if(!o[t]){warn(a);o[t]=true}}hooks.suppressDeprecationWarnings=false;hooks.depr
//! moment.js
hooks.version="2.29.3";setHookCallback(createLocal);hooks.fn=We;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=We;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var d=_interopDefault(r(2781));var i=_interopDefault(r(3685));var o=_interopDefault(r(7310));var p=_interopDefault(r(3323));var u=_interopDefault(r(5687));var l=_interopDefault(r(9796));const c=d.Readable;const m=Symbol("buffer");const h=Symbol("type");class Blob{constructor(){this[h]="";const t=arguments[0];const a=arguments[1];const r=[];let d=0;if(t){const a=t;const i=Number(a.length);for(let t=0;t<i;t++){const i=a[t];let o;if(i instanceof Buffer){o=i}else if(ArrayBuffer.isView(i)){o=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){o=Buffer.from(i)}else if(i instanceof Blob){o=i[m]}else{o=Buffer.from(typeof i==="string"?i:String(i))}d+=o.length;r.push(o)}}this[m]=Buffer.concat(r);let i=a&&a.type!==undefined&&String(a.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[h]=i}}get size(){return this[m].length}get type(){return this[h]}text(){return Promise.resolve(this[m].toString())}arrayBuffer(){const t=this[m];const a=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return Promise.resolve(a)}stream(){const t=new c;t._read=function(){};t.push(this[m]);t.push(null);return t}toString(){return"[object Blob]"}slice(){const t=this.size;const a=arguments[0];const r=arguments[1];let d,i;if(a===undefined){d=0}else if(a<0){d=Math.max(t+a,0)}else{d=Math.min(a,t)}if(r===undefined){i=t}else if(r<0){i=Math.max(t+r,0)}else{i=Math.min(r,t)}const o=Math.max(i-d,0);const p=this[m];const u=p.slice(d,d+o);const l=new Blob([],{type:arguments[2]});l[m]=u;return l}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(t,a,r){Error.call(this,t);this.message=t;this.type=a;if(r){this.code=this.errno=r.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let v;try{v=r(2877).convert}catch(t){}const g=Symbol("Body internals");const _=d.PassThrough;function Body(t){var a=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let o=i===undefined?0:i;var p=r.timeout;let u=p===undefined?0:p;if(t==null){t=null}else if(isURLSearchParams(t)){t=Buffer.from(t.toString())}else if(isBlob(t));else if(Buffer.isBuffer(t));else if(Object.prototype.toString.call(t)==="[object ArrayBuffer]"){t=Buffer.from(t)}else if(ArrayBuffer.isView(t)){t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)}else if(t instanceof d);else{t=Buffer.from(String(t))}this[g]={body:t,disturbed:false,error:null};this.size=o;this.timeout=u;if(t instanceof d){t.on("error",(function(t){const r=t.name==="AbortError"?t:new FetchError(`Invalid response body while tryi
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var c=function _default(t){var a="xregexp";var r=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var d=t.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,r],"g",{conjunction:"or"});function deanchor(t){var a=/^(?:\(\?:\))*\^/;var r=/\$(?:\(\?:\))*$/;if(a.test(t)&&r.test(t)&&r.test(t.replace(/\\[\s\S]/g,""))){return t.replace(a,"").replace(r,"")}return t}function asXRegExp(r,d){var i=d?"x":"";return t.isRegExp(r)?r[a]&&r[a].captureNames?r:t(r.source,i):t(r,i)}function interpolate(a){return a instanceof RegExp?a:t.escape(a)}function reduceToSubpatternsObject(t,a,r){t["subpattern".concat(r)]=a;return t}function embedSubpatternAfter(t,a,r){var d=a<r.length-1;return t+(d?"{{subpattern".concat(a,"}}"):"")}t.tag=function(a){return function(r){var d,i;for(var o=arguments.length,p=new Array(o>1?o-1:0),c=1;c<o;c++){p[c-1]=arguments[c]}var m=(0,l["default"])(d=(0,u["default"])(p).call(p,interpolate)).call(d,reduceToSubpatternsObject,{});var h=(0,u["default"])(i=r.raw).call(i,embedSubpatternAfter).join("");return t.build(h,m,a)}};t.build=function(i,u,l){l=l||"";var c=(0,p["default"])(l).call(l,"x");var m=/^\(\?([\w$]+)\)/.exec(i);if(m){l=t._clipDuplicates(l+m[1])}var h={};for(var v in u){if(u.hasOwnProperty(v)){var g=asXRegExp(u[v],c);h[v]={pattern:deanchor(g.source),names:g[a].captureNames||[]}}}var _=asXRegExp(i,c);var b=0;var w;var y=0;var S=[0];var E=_[a].captureNames||[];var T=_.source.replace(d,(function(t,a,d,i,p){var u=a||d;var l;var c;var m;if(u){var v;if(!h.hasOwnProperty(u)){throw new ReferenceError("Undefined property ".concat(t))}if(a){l=E[y];S[++y]=++b;c="(?<".concat(l||u,">")}else{c="(?:"}w=b;var g=h[u].pattern.replace(r,(function(t,a,r){if(a){l=h[u].names[b-w];++b;if(l){return"(?<".concat(l,">")}}else if(r){m=+r-1;return h[u].names[m]?"\\k<".concat(h[u].names[m],">"):"\\".concat(+r+w)}return t}));return(0,o["default"])(v="".concat(c)).call(v,g,")")}if(i){l=E[y];S[++y]=++b;if(l){return"(?<".concat(l,">")}}else if(p){m=+p-1;return E[m]?"\\k<".concat(E[m],">"):"\\".concat(S[+p])}return t}));return t(T,l)}};a["default"]=c;t.exports=a.default},4811:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(9188));var p=d(r(466));var u=d(r(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var l=function _default(t){function row(t,a,r,d){return{name:t,value:a,start:r,end:d}}t.matchRecursive=function(a,r,d,i,l){i=i||"";l=l||{};var c=(0,u["default"])(i).call(i,"g");var m=(0,u["default"])(i).call(i,"y");var h=i.replace(/y/g,"");var v=l,g=v.escapeChar;var _=l.valueNames;var b=[];var w=0;var y=0;var S=0;var E=0;var T;var k;var O;var P;var x;r=t(r,h);d=t(d,h);if(g){var A,D;if(g.length>1){throw new Error("Cannot use more than one escape character")}g=t.escape(g);x=new RegExp((0,p["default"])(A=(0,p["default"])(D="(?:".concat(g,"[\\S\\s]|(?:(?!")).call(D,t.union([r,d],"",{conjunction:"or"}).source,")[^")).call(A,g,"])+)+"),i.replace(/[^imu]+/g,""))}while(true){if(g){S+=(t.exec(a,x,S,"sticky")||[""])[0].length}O=t.exec(a,r,S);P=t.exec(a,d,S);if(O&&P){if(O.index<=P.index){P=null}else{O=null}}if(O||P){y=(O||P).index;S=y+(O||P)[0].length}else if(!w){break}if(m&&!w&&y>E){break}if(O){if(!w){T=y;k=S}++w}else if(P&&w){if(!--w){if(_){if(_[0]&&T>E){b.push(row(_[0],(0,o["default"])(a).call(a,E,T),E,T))}if(_[1]){b.push(row(_[1],(0,o["default"])(a).call(a,T,k),T,k))}if(_[2]){b.push(row(_[2],(0,o["default"])(a).call(a,k,y),k,y))}if(_[3]){b.push(row(_[3],(0,o["default"])(a).call(a,y,S),y,S))}}else{b.push((0,o["default"])(a).call(a,k,y))}E=S;if(!c){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(y===S){++S}}if(c&&!m&&_&&_[0]&&a.length>E){b.push(row(_[0],(0,o["default"])(a).call(a,E),E,a.length))}return b}};a["default"]=l;t.exports=a.default},3110:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2038));var p=d(r(5401));var u=d(r(9640));var l=d(r(7652));var c=d(r(3361));var m=d(r(9188));var h=d(r(6611));var v=d(r(466));var g=d(r(669));function _createForOfIteratorHelper(t,a){var r;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(r=_unsupportedIterableToArray(t))||a&&t&&typeof t.length==="number"){if(r)t=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=t.length)return{done:true};return{done:false,value:t[d++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,m=false,h;return{s:function s(){r=(0,o["default"])(t)},n:function n(){var t=r.next();c=t.done;return t},e:function e(t){m=true;h=t},f:function f(){try{if(!c&&r["return"]!=null)r["return"]()}finally{if(m)throw h}}}}function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,a);var d=(0,m["default"])(r=Object.prototype.toString.call(t)).call(r,8,-1);if(d==="Object"&&t.constructor)d=t.constructor.name;if(d==="Map"||d==="Set")return(0,c["default"])(t);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(t,a)}function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=t[r]}return d}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var _=function _default(t){var a={};var r=t._dec;var d=t._hex;var i=t._pad4;function normalize(t){return t.replace(/[- _]+/g,"").toLowerCase()}function charCode(t){var a=/^\\[xu](.+)/.exec(t);return a?r(a[1]):t.charCodeAt(t[0]==="\\"?1:0)}function invertBmp(a){var r="";var o=-1;(0,g["default"])(t).call(t,a,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(t){var a=charCode(t[1]);if(a>o+1){r+="\\u".concat(i(d(o+1)));if(a>o+2){r+="-\\u".concat(i(d(a-1)))}}o=charCode(t[2]||t[1])}));if(o<65535){r+="\\u".concat(i(d(o+1)));if(o<65534){r+="-\\uFFFF"}}return r}function cacheInvertedBmp(t){var r="b!";return a[t][r]||(a[t][r]=invertBmp(a[t].bmp))}function buildAstral(t,r){var d=a[t];var i="";if(d.bmp&&!d.isBmpLast){var o;i=(0,v["default"])(o="[".concat(d.bmp,"]")).call(o,d.astral?"|":"")}if(d.astral){i+=d.astral}if(d.isBmpLast&&d.bmp){var p;i+=(0,v["default"])(p="".concat(d.astral?"|":"","[")).call(p,d.bmp,"]")}return r?"(?:(?!".concat(i,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(i,")")}function cacheAstral(t,r){var d=r?"a!":"a=";return a[t][d]||(a[t][d]=buildAstral(t,r))}t.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(t,r,d){var i="Invalid double negation ";var o="Unknown Unicode token ";var p="Unicode token missing data ";var u="Astral mode required for Unicode token ";var l="Astral mode does not support Unicode tokens within character classes";var c=t[1]==="P"||!!t[2];var m=(0,h["default"])(d).call(d,"A");var g=normalize(t[4]||t[3]);var _=a[g];if(t[1]==="P"&&t[2]){throw new SyntaxError(i+t[0])}if(!a.hasOwnProperty(g)){throw new SyntaxError(o+t[0])}if(_.inverseOf){g=normalize(_.inverseOf);if(!a.hasOwnProperty(g)){var b;throw new ReferenceError((0,v["default"])(b="".concat(p+t[0]," -> ")).call(b,_.inverseOf))}_=a[g];c=!c}if(!(_.bmp||m)){throw new SyntaxError(u+t[0])}if(m){if(r==="class"){throw new SyntaxError(l)}return cacheAstral(g,c)}return r==="class"?c?cacheInvertedBmp(g):_.bmp:"".concat((c?"[^":"[")+_.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});t.addUnicodeData=function(r){var d="Unicode token requires name";var i="Unicode token has no character data ";var o=_createForOfIteratorHelper(r),p;try{for(o.s();!(p=o.n()).done;){var u=p.value;if(!u.name){throw new Error(d)}if(!(u.inverseOf||u.bmp||u.astral)){throw new Error(i+u.name)}a[normalize(u.name)]=u;if(u.alias){a[normalize(u.alias)]=u}}}catch(t){o.e(t)}finally{o.f()}t.cache.flush("patterns")};t._getUnicodeProperty=function(t){var r=normalize(t);return a[r]}};a["default"]=_;t.exports=a.default},4686:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(5826));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},1996:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(8537));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},9250:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(616));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var a=o["default"];a.push({name:"Assigned",inverseOf:"Cn"});t.addUnicodeData(a)};a["default"]=p;t.exports=a.default},5715:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2524));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},7750:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(8612));var p=d(r(380));var u=d(r(4811));var l=d(r(3110));var c=d(r(4686));var m=d(r(1996));var h=d(r(9250));var v=d(r(5715));(0,p["default"])(o["default"]);(0,u["default"])(o["default"]);(0,l["default"])(o["default"]);(0,c["default"])(o["default"]);(0,m["default"])(o["default"]);(0,h["default"])(o["default"]);(0,v["default"])(o["default"]);var g=o["default"];a["default"]=g;t.exports=a.default},8612:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2038));var p=d(r(5401));var u=d(r(9640));var l=d(r(7652));var c=d(r(3361));var m=d(r(466));var h=d(r(3781));var v=d(r(6761));var g=d(r(8135));var _=d(r(669));var b=d(r(6611));var w=d(r(1308));var y=d(r(9188));var S=d(r(8979));var E=d(r(3046));function _createForOfIteratorHelper(t,a){var r;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(r=_unsupportedIterableToArray(t))||a&&t&&typeof t.length==="number"){if(r)t=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=t.length)return{done:true};return{done:false,value:t[d++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,m=false,h;return{s:function s(){r=(0,o["default"])(t)},n:function n(){var t=r.next();c=t.done;return t},e:function e(t){m=true;h=t},f:function f(){try{if(!c&&r["return"]!=null)r["return"]()}finally{if(m)throw h}}}}function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,a);var d=(0,y["default"])(r=Object.prototype.toString.call(t)).call(r,8,-1);if(d==="Object"&&t.constructor)d=t.constructor.name;if(d==="Map"||d==="Set")return(0,c["default"])(t);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(t,a)}function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=t[r]}return d}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var T="xregexp";var k={astral:false,namespacing:false};var O={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var P={};var x={};var A={};var D=[];var N="default";var C="class";var I={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var R=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var L=O.exec.call(/()??/,"")[1]===undefined;var M=(0,E["default"])(/x/)!==undefined;var G={},V=G.toString;function hasNativeFlag(t){var a=true;try{new RegExp("",t);if(t==="y"){var r=function(){return"gy"}();var d=".a".replace(new RegExp("a",r),".")==="..";if(d){a=false}}}catch(t){a=false}return a}var U=hasNativeFlag("u");var j=hasNativeFlag("y");var B={g:true,i:true,m:true,u:U,y:j};function augment(t,a,r,d,i){var o;t[T]={captureNames:a};if(i){return t}if(t.__proto__){t.__proto__=XRegExp.prototype}else{for(var p in XRegExp.prototype){t[p]=XRegExp.prototype[p]}}t[T].source=r;t[T].flags=d?(0,S["default"])(o=d.split("")).call(o).join(""):d;return t}function clipDuplicates(t){return O.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(t,a){var r;if(!XRegExp.isRegExp(t)){throw new TypeError("Type RegExp expected")}var d=t[T]||{};var i=getNativeFlags(t);var o="";var p="";var u=null;var l=null;a=a||{};if(a.removeG){p+="g"}if(a.removeY){p+="y"}if(p){i=O.replace.call(i,new RegExp("[".concat(p,"]+"),"g"),"")}if(a.addG){o+="g"}if(a.addY){o+="y"}if(o){i=clipDuplicates(i+o)}if(!a.isInternalOnly){if(d.source!==undefined){u=d.source}if((0,E["default"])(d)!=null){l=o?clipDuplicates((0,E["default"])(d)+o):(0,E["default"])(d)}}t=augment(new RegExp(a.source||t.source,i),hasNamedCapture(t)?(0,y["default"])(r=d.captureNames).call(r,0):null,u,l,a.isInternalOnly);return t}function dec(t){return(0,w["default"])(t,16)}function getContextualTokenSeparator(t,a,r){if(t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||O.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||isQuantifierNext(t.input,t.index+t[0].length,r)){return""}return"(?:)"}function getNativeFlags(t){return M?(0,E["default"])(t):O.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function hasNamedCapture(t){return!!(t[T]&&t[T].captureNames)}function hex(t){return(0,w["default"])(t,10).toString(16)}function isQuantifierNext(t,a,r){var d="\\(\\?#[^)]*\\)";var i="#[^#\\n]*";var o="[?*+]|{\\d+(?:,\\d*)?}";return O.test.call((0,b["default"])(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,y["default"])(t).call(t,a))}function isType(t,a){return V.call(t)==="[object ".concat(a,"]")}function pad4(t){while(t.length<4){t="0".concat(t)}return t}function prepareFlags(t,a){if(clipDuplicates(a)!==a){throw new SyntaxError("Invalid duplicate regex flag ".concat(a))}t=O.replace.call(t,/^\(\?([\w$]+)\)/,(function(t,r){if(O.test.call(/[gy]/,r)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(t))}a=clipDuplicates(a+r);return""}));var r=_createForOfIteratorHelper(a),d;try{for(r.s();!(d=r.n()).done;){var i=d.value;if(!B[i]){throw new SyntaxError("Unknown regex flag ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}return{pattern:t,flags:a}}function prepareOptions(t){var a={};if(isType(t,"String")){(0,_["default"])(XRegExp).call(XRegExp,t,/[^\s,]+/,(function(t){a[t]=true}));return a}return t}function registerFlag(t){if(!/^[\w$]$/.test(t)){throw new Error("Flag must be a single character A-Za-z0-9_$")}B[t]=true}function runTokens(t,a,r,d,i){var o=D.length;var p=t[r];var u=null;var l;var c;while(o--){c=D[o];if(c.leadChar&&c.leadChar!==p||c.scope!==d&&c.scope!=="all"||c.flag&&!(0,b["default"])(a).call(a,c.flag)){continue}l=XRegExp.exec(t,c.regex,r,"sticky");i
//# sourceMappingURL=index.js.map