@accordproject/concerto-cto
Version:
Parser for Concerto CTO files
2 lines • 253 kB
JavaScript
/*! For license information please see concerto-cto.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["concerto-cto"]=t():e["concerto-cto"]=t()}(self,()=>(()=>{var e={348(e,t,r){"use strict";const n=r(954),{DcsCto:o,DcsNamespace:a}=r(497);e.exports={MetaModelUtil:n,MetaModelNamespace:"concerto.metamodel@1.0.0",DcsCto:o,DcsNamespace:a}},497(e){"use strict";e.exports={DcsCto:'/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace org.accordproject.decoratorcommands@0.4.0\n\nimport concerto.metamodel@1.0.0.Decorator\n\n/**\n * A reference to an existing named & versioned DecoratorCommandSet\n */\nconcept DecoratorCommandSetReference {\n o String name\n o String version\n}\n\n/**\n * Whether to upsert or append the decorator\n */\nenum CommandType {\n o UPSERT\n o APPEND\n}\n\n/**\n * Which models elements to add the decorator to. Any null\n * elements are \'wildcards\'.\n */\nconcept CommandTarget {\n o String namespace optional\n o String declaration optional\n o String property optional\n o String[] properties optional // property and properties are mutually exclusive\n o String type optional\n o MapElement mapElement optional\n}\n\n/**\n * Map Declaration elements which might be used as a target\n */\nenum MapElement {\n o KEY\n o VALUE\n o KEY_VALUE\n}\n\n/**\n * Applies a decorator to a given target\n */\nconcept Command {\n o CommandTarget target\n o Decorator decorator\n o CommandType type\n o String decoratorNamespace optional\n}\n\n/**\n * A named and versioned set of commands. Includes are supported for modularity/reuse.\n */\nconcept DecoratorCommandSet {\n o String name\n o String version\n o DecoratorCommandSetReference[] includes optional // not yet supported\n o Command[] commands\n}',DcsNamespace:"org.accordproject.decoratorcommands@0.4.0"}},702(e){"use strict";e.exports='/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n@DotNetNamespace("AccordProject.Concerto.Metamodel")\nnamespace concerto.metamodel@1.0.0\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\n\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n o String resolvedName optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nabstract concept MapKeyType {\n o Decorator[] decorators optional\n o Range location optional\n}\n\nabstract concept MapValueType {\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept MapDeclaration extends Declaration {\n o MapKeyType key\n o MapValueType value\n}\n\nconcept StringMapKeyType extends MapKeyType {}\nconcept DateTimeMapKeyType extends MapKeyType {}\n\nconcept ObjectMapKeyType extends MapKeyType {\n o TypeIdentifier type\n}\n\nconcept BooleanMapValueType extends MapValueType {}\nconcept DateTimeMapValueType extends MapValueType {}\nconcept StringMapValueType extends MapValueType {}\nconcept IntegerMapValueType extends MapValueType {}\nconcept LongMapValueType extends MapValueType {}\nconcept DoubleMapValueType extends MapValueType {}\n\nconcept ObjectMapValueType extends MapValueType {\n o TypeIdentifier type\n}\n\nconcept RelationshipMapValueType extends MapValueType {\n o TypeIdentifier type\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n o StringLengthValidator lengthValidator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept StringLengthValidator {\n o Integer minLength optional\n o Integer maxLength optional\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nconcept AliasedType{\n o String name\n o String aliasedName\n}\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept ImportTypes extends Import {\n o String[] types\n o AliasedType[] aliasedTypes optional\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n o Decorator[] decorators optional\n}\n\nconcept Models {\n o Model[] models\n}\n\nabstract concept ScalarDeclaration extends Declaration {\n o String namespace optional\n}\n\nconcept BooleanScalar extends ScalarDeclaration {\n o Boolean defaultValue optional\n}\n\nconcept IntegerScalar extends ScalarDeclaration {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept LongScalar extends ScalarDeclaration {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept DoubleScalar extends ScalarDeclaration {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept StringScalar extends ScalarDeclaration {\n o String defaultValue optional\n o StringRegexValidator validator optional\n o StringLengthValidator lengthValidator optional\n}\n\nconcept DateTimeScalar extends ScalarDeclaration {\n o String defaultValue optional\n}\n'},954(e,t,r){"use strict";const n=r(865),o="concerto.metamodel@1.0.0",a=r(702);function u(e,t){return e.declarations.find(e=>e.name===t)}function c(e,t){if(!t[e])throw new Error(`Name ${e} not found`);return t[e].namespace}function i(e,t){switch((e.decorators||[]).forEach(e=>{i(e,t)}),e.$class){case`${o}.Model`:(e.declarations||[]).forEach(e=>{i(e,t)});break;case`${o}.EnumDeclaration`:case`${o}.AssetDeclaration`:case`${o}.ConceptDeclaration`:case`${o}.EventDeclaration`:case`${o}.TransactionDeclaration`:case`${o}.ParticipantDeclaration`:if(e.superType){const r=e.superType.name;e.superType.namespace=c(r,t),e.superType.name=t[r].name,t[r]?.resolvedName&&(e.superType.resolvedName=t[r].resolvedName)}(e.properties||[]).forEach(e=>{i(e,t)});break;case`${o}.MapDeclaration`:i(e.key,t),i(e.value,t);break;case`${o}.Decorator`:(e.arguments||[]).forEach(e=>{i(e,t)});break;case`${o}.ObjectProperty`:case`${o}.RelationshipProperty`:case`${o}.DecoratorTypeReference`:case`${o}.ObjectMapKeyType`:case`${o}.ObjectMapValueType`:case`${o}.RelationshipMapValueType`:e.type.namespace=c(e.type.name,t),e.type.name=t[e.type.name].name,t[e.type.name]?.resolvedName&&(e.type.resolvedName=t[e.type.name].resolvedName);break;case`${o}.StringScalar`:case`${o}.BooleanScalar`:case`${o}.DateTimeScalar`:case`${o}.DoubleScalar`:case`${o}.LongScalar`:case`${o}.IntegerScalar`:e.namespace=c(e.name,t),e.name=t[e.name].name}return e}function s(e,t){const r=JSON.parse(JSON.stringify(t)),n=function(e,t){const r="concerto@1.0.0",n={Concept:{namespace:r,name:"Concept"},Asset:{namespace:r,name:"Asset"},Participant:{namespace:r,name:"Participant"},Transaction:{namespace:r,name:"Transaction"},Event:{namespace:r,name:"Event"}};return(t.imports||[]).forEach(t=>{const r=t.namespace,a=function(e,t){return e.models.find(e=>e.namespace===t)}(e,r);if(t.$class===`${o}.ImportType`){if(!u(a,t.name))throw new Error(`Declaration ${t.name} in namespace ${r} not found`);n[t.name]={namespace:r,name:t.name}}else if(t.$class===`${o}.ImportTypes`){const e=t.aliasedTypes?new Map(t.aliasedTypes.map(({name:e,aliasedName:t})=>[e,t])):new Map;t.types.forEach(t=>{const o=e.get(t)||t;if(!u(a,t))throw new Error(`Declaration ${t} in namespace ${r} not found`);n[o]=o!==t?{namespace:r,name:o,resolvedName:t}:{namespace:r,name:t}})}else(a.declarations||[]).forEach(e=>{n[e.name]={namespace:r,name:e.name}})}),(t.declarations||[]).forEach(e=>{n[e.name]={namespace:t.namespace,name:e.name}}),n}(e,t);return i(r,n),r}function l(e){const t=[];switch(e.$class){case`${o}.ImportAll`:t.push(`${e.namespace}.*`);break;case`${o}.ImportType`:t.push(`${e.namespace}.${e.name}`);break;case`${o}.ImportTypes`:e.types.forEach(r=>{t.push(`${e.namespace}.${r}`)});break;default:throw new Error(`Unrecognized imports ${e.$class}`)}return t}e.exports={metaModelAst:n,metaModelCto:a,resolveLocalNames:s,resolveLocalNamesForAll:function(e){const t={$class:`${o}.Models`,models:[]};return e.models.forEach(r=>{const n=s(e,r);t.models.push(n)}),t},importFullyQualifiedNames:l,getExternalImports:function(e){const t={};return e.imports&&e.imports.forEach(e=>{const r=l(e);e.uri&&(t[r[0]]=e.uri)}),t}}},942(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,a=-1,u=0,c=0;c<=e.length;++c){if(c<e.length)r=e.charCodeAt(c);else{if(47===r)break;r=47}if(47===r){if(a===c-1||1===u);else if(a!==c-1&&2===u){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var i=n.lastIndexOf("/");if(i!==n.length-1){-1===i?(n="",o=0):o=(n=n.slice(0,i)).length-1-n.lastIndexOf("/"),a=c,u=0;continue}}else if(2===n.length||1===n.length){n="",o=0,a=c,u=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(a+1,c):n=e.slice(a+1,c),o=c-a-1;a=c,u=0}else 46===r&&-1!==u?++u:u=-1}return n}var n={resolve:function(){for(var e,n="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var u;a>=0?u=arguments[a]:(void 0===e&&(e=process.cwd()),u=e),t(u),0!==u.length&&(n=u+"/"+n,o=47===u.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var a=e.length,u=a-o,c=1;c<r.length&&47===r.charCodeAt(c);++c);for(var i=r.length-c,s=u<i?u:i,l=-1,p=0;p<=s;++p){if(p===s){if(i>s){if(47===r.charCodeAt(c+p))return r.slice(c+p+1);if(0===p)return r.slice(c+p)}else u>s&&(47===e.charCodeAt(o+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(o+p);if(f!==r.charCodeAt(c+p))break;47===f&&(l=p)}var d="";for(p=o+l+1;p<=a;++p)p!==a&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(c+l):(c+=l,47===r.charCodeAt(c)&&++c,r.slice(c))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,a=!0,u=e.length-1;u>=1;--u)if(47===(r=e.charCodeAt(u))){if(!a){o=u;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,a=-1,u=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var c=r.length-1,i=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!u){o=n+1;break}}else-1===i&&(u=!1,i=n+1),c>=0&&(s===r.charCodeAt(c)?-1===--c&&(a=n):(c=-1,a=i))}return o===a?a=i:-1===a&&(a=e.length),e.slice(o,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!u){o=n+1;break}}else-1===a&&(u=!1,a=n+1);return-1===a?"":e.slice(o,a)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,a=!0,u=0,c=e.length-1;c>=0;--c){var i=e.charCodeAt(c);if(47!==i)-1===o&&(a=!1,o=c+1),46===i?-1===r?r=c:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){n=c+1;break}}return-1===r||-1===o||0===u||1===u&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),a=47===o;a?(r.root="/",n=1):n=0;for(var u=-1,c=0,i=-1,s=!0,l=e.length-1,p=0;l>=n;--l)if(47!==(o=e.charCodeAt(l)))-1===i&&(s=!1,i=l+1),46===o?-1===u?u=l:1!==p&&(p=1):-1!==u&&(p=-1);else if(!s){c=l+1;break}return-1===u||-1===i||0===p||1===p&&u===i-1&&u===c+1?-1!==i&&(r.base=r.name=0===c&&a?e.slice(1,i):e.slice(c,i)):(0===c&&a?(r.name=e.slice(1,u),r.base=e.slice(1,i)):(r.name=e.slice(c,u),r.base=e.slice(c,i)),r.ext=e.slice(u,i)),c>0?r.dir=e.slice(0,c-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},487(e){var t;self,t=()=>(()=>{var e={6573(e,t,r){"use strict";const n=r(1187);e.exports=n.PromisePool},5160(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolError=void 0;class r extends Error{constructor(e,t){super(),this.item=t,this.name=this.constructor.name,this.message=this.messageFrom(e),Error.captureStackTrace(this,this.constructor)}static createFrom(e,t){return new this(e,t)}messageFrom(e){return e instanceof Error||"object"==typeof e?e.message:"string"==typeof e||"number"==typeof e?e.toString():""}}t.PromisePoolError=r},2241(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolExecutor=void 0;const n=r(5160);t.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}for(e){return this.items=e,this}withHandler(e){return this.handler=e,this}handleError(e){return this.errorHandler=e,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const e of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(e);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(e){const t=this.createTaskFor(e).then(e=>{this.results.push(e),this.tasks.splice(this.tasks.indexOf(t),1)}).catch(r=>{if(this.tasks.splice(this.tasks.indexOf(t),1),this.errorHandler)return this.errorHandler(r,e);this.errors.push(n.PromisePoolError.createFrom(r,e))});this.tasks.push(t)}async createTaskFor(e){return this.handler(e)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},1187(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePool=void 0;const n=r(2241);class o{constructor(e){this.concurrency=10,this.items=null!=e?e:[],this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}static withConcurrency(e){return(new this).withConcurrency(e)}for(e){return new o(e).withConcurrency(this.concurrency)}static for(e){return(new this).for(e)}handleError(e){return this.errorHandler=e,this}async process(e){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(e).handleError(this.errorHandler).for(this.items).start()}}t.PromisePool=o},6093(e,t,r){"use strict";var n=r(4364);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a,u,c=r(1342).codes,i=c.ERR_AMBIGUOUS_ARGUMENT,s=c.ERR_INVALID_ARG_TYPE,l=c.ERR_INVALID_ARG_VALUE,p=c.ERR_INVALID_RETURN_VALUE,f=c.ERR_MISSING_ARGS,d=r(9801),m=r(9208).inspect,y=r(9208).types,A=y.isPromise,h=y.isRegExp,g=r(3225)(),C=r(1937)(),b=r(9818)("RegExp.prototype.test");function E(){var e=r(5656);a=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var v=!1,F=e.exports=$,D={};function w(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function B(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=o,a}}function $(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];B.apply(void 0,[$,t.length].concat(t))}F.fail=function e(t,r,o,a,u){var c,i=arguments.length;if(0===i)c="Failed";else if(1===i)o=t,t=void 0;else{if(!1===v){v=!0;var s=function(e,t){n.warn({message:`DEPRECATED: ${e}`,type:t?.type,code:t?.code,detail:t?.detail})}?function(e,t){n.warn({message:`DEPRECATED: ${e}`,type:t?.type,code:t?.code,detail:t?.detail})}:n.warn.bind(n);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===i&&(a="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===a?"fail":a,stackStartFn:u||e};void 0!==o&&(l.message=o);var p=new d(l);throw c&&(p.message=c,p.generatedMessage=!0),p},F.AssertionError=d,F.ok=$,F.equal=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t!=r&&w({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},F.notEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t==r&&w({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},F.deepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),a(t,r)||w({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},F.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),a(t,r)&&w({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},F.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),u(t,r)||w({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},F.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),u(t,r)&&w({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},F.strictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");C(t,r)||w({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},F.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");C(t,r)&&w({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var O=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&h(t[e])&&b(t[e],n[e])?o[e]=n[e]:o[e]=t[e])})});function S(e,t,r,n){if("function"!=typeof t){if(h(t))return b(t,e);if(2===arguments.length)throw new s("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var c=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw c.operator=n.name,c}var i=Object.keys(t);if(t instanceof Error)i.push("name","message");else if(0===i.length)throw new l("error",t,"may not be an empty object");return void 0===a&&E(),i.forEach(function(o){"string"==typeof e[o]&&h(t[o])&&b(t[o],e[o])||function(e,t,r,n,o,a){if(!(r in e)||!u(e[r],t[r])){if(!n){var c=new O(e,o),i=new O(t,o,e),s=new d({actual:c,expected:i,operator:"deepStrictEqual",stackStartFn:a});throw s.actual=e,s.expected=t,s.operator=a.name,s}w({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}(e,t,o,r,i,n)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function T(e){if("function"!=typeof e)throw new s("fn","Function",e);try{e()}catch(e){return e}return D}function x(e){return A(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!x(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!x(e))throw new s("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return D}).catch(function(e){return e})})}function P(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new s("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new i("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new i("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new s("error",["Object","Error","Function","RegExp"],r);if(t===D){var a="";r&&r.name&&(a+=" (".concat(r.name,")")),a+=n?": ".concat(n):".";var u="rejects"===e.name?"rejection":"exception";w({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(u).concat(a),stackStartFn:e})}if(r&&!S(t,r,n,e))throw t}function M(e,t,r,n){if(t!==D){if("string"==typeof r&&(n=r,r=void 0),!r||S(t,r)){var o=n?": ".concat(n):".",a="doesNotReject"===e.name?"rejection":"exception";w({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function I(e,t,r,n,a){if(!h(t))throw new s("regexp","RegExp",t);var u="match"===a;if("string"!=typeof e||b(t,e)!==u){if(r instanceof Error)throw r;var c=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(o(e)," (").concat(m(e),")"):(u?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(t),". Input:\n\n").concat(m(e),"\n"));var i=new d({actual:e,expected:t,message:r,operator:a,stackStartFn:n});throw i.generatedMessage=c,i}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];B.apply(void 0,[N,t.length].concat(t))}F.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];P.apply(void 0,[e,T(t)].concat(n))},F.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then(function(t){return P.apply(void 0,[e,t].concat(n))})},F.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];M.apply(void 0,[e,T(t)].concat(n))},F.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then(function(t){return M.apply(void 0,[e,t].concat(n))})},F.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var n=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),a=t.stack;if("string"==typeof a){var u=a.split("\n");u.shift();for(var c=n.stack.split("\n"),i=0;i<u.length;i++){var s=c.indexOf(u[i]);if(-1!==s){c=c.slice(0,s);break}}n.stack="".concat(c.join("\n"),"\n").concat(u.join("\n"))}throw n}},F.match=function e(t,r,n){I(t,r,n,e,"match")},F.doesNotMatch=function e(t,r,n){I(t,r,n,e,"doesNotMatch")},F.strict=g(N,F,{equal:F.strictEqual,deepEqual:F.deepStrictEqual,notEqual:F.notStrictEqual,notDeepEqual:F.notDeepStrictEqual}),F.strict.strict=F.strict},9801(e,t,r){"use strict";var n=r(9907);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=c(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!==y(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function i(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function p(e,t,r){return p=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o},p.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var A=r(9208).inspect,h=r(1342).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var C="",b="",E="",v="",F={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function D(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function w(e){return A(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var B=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(B,e);var r,o,c,l,p=(r=B,o=f(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function B(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,B),"object"!==y(e)||null===e)throw new h("options","Object",e);var r=e.message,o=e.operator,a=e.stackStartFn,u=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=p.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(C="[34m",b="[32m",v="[39m",E="[31m"):(C="",b="",v="",E="")),"object"===y(u)&&null!==u&&"object"===y(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=D(u),c=D(c)),"deepStrictEqual"===o||"strictEqual"===o)t=p.call(this,function(e,t,r){var o="",a="",u=0,c="",i=!1,s=w(e),l=s.split("\n"),p=w(t).split("\n"),f=0,d="";if("strictEqual"===r&&"object"===y(e)&&"object"===y(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===p.length&&l[0]!==p[0]){var m=l[0].length+p[0].length;if(m<=10){if(!("object"===y(e)&&null!==e||"object"===y(t)&&null!==t||0===e&&0===t))return"".concat(F[r],"\n\n")+"".concat(l[0]," !== ").concat(p[0],"\n")}else if("strictEqualObject"!==r&&m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][f]===p[0][f];)f++;f>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",f),"^"),f=0)}}for(var A=l[l.length-1],h=p[p.length-1];A===h&&(f++<2?c="\n ".concat(A).concat(c):o=A,l.pop(),p.pop(),0!==l.length&&0!==p.length);)A=l[l.length-1],h=p[p.length-1];var D=Math.max(l.length,p.length);if(0===D){var B=s.split("\n");if(B.length>30)for(B[26]="".concat(C,"...").concat(v);B.length>27;)B.pop();return"".concat(F.notIdentical,"\n\n").concat(B.join("\n"),"\n")}f>3&&(c="\n".concat(C,"...").concat(v).concat(c),i=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var $=0,O=F[r]+"\n".concat(b,"+ actual").concat(v," ").concat(E,"- expected").concat(v),S=" ".concat(C,"...").concat(v," Lines skipped");for(f=0;f<D;f++){var T=f-u;if(l.length<f+1)T>1&&f>2&&(T>4?(a+="\n".concat(C,"...").concat(v),i=!0):T>3&&(a+="\n ".concat(p[f-2]),$++),a+="\n ".concat(p[f-1]),$++),u=f,o+="\n".concat(E,"-").concat(v," ").concat(p[f]),$++;else if(p.length<f+1)T>1&&f>2&&(T>4?(a+="\n".concat(C,"...").concat(v),i=!0):T>3&&(a+="\n ".concat(l[f-2]),$++),a+="\n ".concat(l[f-1]),$++),u=f,a+="\n".concat(b,"+").concat(v," ").concat(l[f]),$++;else{var x=p[f],j=l[f],P=j!==x&&(!g(j,",")||j.slice(0,-1)!==x);P&&g(x,",")&&x.slice(0,-1)===j&&(P=!1,j+=","),P?(T>1&&f>2&&(T>4?(a+="\n".concat(C,"...").concat(v),i=!0):T>3&&(a+="\n ".concat(l[f-2]),$++),a+="\n ".concat(l[f-1]),$++),u=f,a+="\n".concat(b,"+").concat(v," ").concat(j),o+="\n".concat(E,"-").concat(v," ").concat(x),$+=2):(a+=o,o="",1!==T&&0!==f||(a+="\n ".concat(j),$++))}if($>20&&f<D-2)return"".concat(O).concat(S,"\n").concat(a,"\n").concat(C,"...").concat(v).concat(o,"\n")+"".concat(C,"...").concat(v)}return"".concat(O).concat(i?S:"","\n").concat(a).concat(o).concat(c).concat(d)}(u,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=F[o],d=w(u).split("\n");if("notStrictEqual"===o&&"object"===y(u)&&null!==u&&(f=F.notStrictEqualObject),d.length>30)for(d[26]="".concat(C,"...").concat(v);d.length>27;)d.pop();t=1===d.length?p.call(this,"".concat(f," ").concat(d[0])):p.call(this,"".concat(f,"\n\n").concat(d.join("\n"),"\n"))}else{var m=w(u),A="",$=F[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(F[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(A="".concat(w(c)),m.length>512&&(m="".concat(m.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat($,"\n\n").concat(m,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),t=p.call(this,"".concat(m).concat(A))}return Error.stackTraceLimit=l,t.generatedMessage=!r,Object.defineProperty(s(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=u,t.expected=c,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(t),a),t.stack,t.name="AssertionError",i(t)}return c=B,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return A(this,a(a({},t),{},{customInspect:!1,depth:0}))}}])&&u(c.prototype,l),Object.defineProperty(c,"prototype",{writable:!1}),B}(l(Error),A.custom);e.exports=B},1342(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var u,c,i={};function s(e,t,r){r||(r=Error);var u=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,r);var u,c,i,s=(c=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=a(c);if(i){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(r,n,o){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a=s.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o)),a.code=e,a}return u=l,Object.defineProperty(u,"prototype",{writable:!1}),u}(r);i[e]=u}function l(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}s("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),s("ERR_INVALID_ARG_TYPE",function(e,t,o){var a,c,i,s;if(void 0===u&&(u=r(6093)),u("string"==typeof e,"'name' must be a string"),"string"==typeof t&&"not "===t.substr(0,4)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length)," argument"===e.substring(r-9,r)}(e))c="The ".concat(e," ").concat(a," ").concat(l(t,"type"));else{var p=("number"!=typeof s&&(s=0),s+1>(i=e).length||-1===i.indexOf(".",s)?"argument":"property");c='The "'.concat(e,'" ').concat(p," ").concat(a," ").concat(l(t,"type"))}return c+". Received type ".concat(n(o))},TypeError),s("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(9208));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),s("ERR_INVALID_RETURN_VALUE",function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")},TypeError),s("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===u&&(u=r(6093)),u(t.length>0,"At least one arg needs to be specified");var o="The ",a=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),a){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,a-1).join(", "),o+=", and ".concat(t[a-1]," arguments")}return"".concat(o," must be specified")},TypeError),e.exports.codes=i},5656(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,u,c=[],i=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{if(!i&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var u=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},i=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},s=Object.is?Object.is:r(5968),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(7838);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),m=f(Object.prototype.propertyIsEnumerable),y=f(Object.prototype.toString),A=r(9208).types,h=A.isAnyArrayBuffer,g=A.isArrayBufferView,C=A.isDate,b=A.isMap,E=A.isRegExp,v=A.isSet,F=A.isNativeError,D=A.isBoxedPrimitive,w=A.isNumberObject,B=A.isStringObject,$=A.isBooleanObject,O=A.isBigIntObject,S=A.isSymbolObject,T=A.isFloat32Array,x=A.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function I(e,t,r,n){if(e===t)return 0!==e||!r||s(e,t);if(r){if("object"!==a(e))return"number"==typeof e&&p(e)&&p(t);if("object"!==a(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==a(e))return(null===t||"object"!==a(t))&&e==t;if(null===t||"object"!==a(t))return!1}var o,c,i,l,f=y(e);if(f!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=P(e),m=P(t);return d.length===m.length&&L(e,t,r,n,1,d)}if("[object Object]"===f&&(!b(e)&&b(t)||!v(e)&&v(t)))return!1;if(C(e)){if(!C(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(E(e)){if(!E(t)||(i=e,l=t,!(u?i.source===l.source&&i.flags===l.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(l))))return!1}else if(F(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(r||!T(e)&&!x(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var A=P(e),j=P(t);return A.length===j.length&&L(e,t,r,n,0,A)}if(v(e))return!(!v(t)||e.size!==t.size)&&L(e,t,r,n,2);if(b(e))return!(!b(t)||e.size!==t.size)&&L(e,t,r,n,3);if(h(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==M(new Uint8Array(o),new Uint8Array(c)))return!1}else if(D(e)&&!function(e,t){return w(e)?w(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):B(e)?B(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):$(e)?$(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):O(e)?O(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):S(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return L(e,t,r,n,0)}function N(e,t){return t.filter(function(t){return m(e,t)})}function L(e,t,r,o,u,s){if(5===arguments.length){s=Object.keys(e);var p=Object.keys(t);if(s.length!==p.length)return!1}for(var f=0;f<s.length;f++)if(!d(t,s[f]))return!1;if(r&&5===arguments.length){var y=l(e);if(0!==y.length){var A=0;for(f=0;f<y.length;f++){var h=y[f];if(m(e,h)){if(!m(t,h))return!1;s.push(h),A++}else if(m(t,h))return!1}var g=l(t);if(y.length!==g.length&&N(t,g).length!==A)return!1}else{var C=l(t);if(0!==C.length&&0!==N(t,C).length)return!1}}if(0===s.length&&(0===u||1===u&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var b=o.val1.get(e);if(void 0!==b){var E=o.val2.get(t);if(void 0!==E)return b===E}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var v=function(e,t,r,o,u,s){var l=0;if(2===s){if(!function(e,t,r,n){for(var o=null,u=c(e),i=0;i<u.length;i++){var s=u[i];if("object"===a(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(r)return!1;if(!R(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var l=c(t),p=0;p<l.length;p++){var f=l[p];if("object"===a(f)&&null!==f){if(!k(o,f,r,n))return!1}else if(!r&&!e.has(f)&&!k(o,f,r,n))return!1}return 0===o.size}return!0}(e,t,r,u))return!1}else if(3===s){if(!function(e,t,r,o){for(var u=null,c=i(e),s=0;s<c.length;s++){var l=n(c[s],2),p=l[0],f=l[1];if("object"===a(p)&&null!==p)null===u&&(u=new Set),u.add(p);else{var d=t.get(p);if(void 0===d&&!t.has(p)||!I(f,d,r,o)){if(r)return!1;if(!V(e,t,p,f,o))return!1;null===u&&(u=new Set),u.add(p)}}}if(null!==u){for(var m=i(t),y=0;y<m.length;y++){var A=n(m[y],2),h=A[0],g=A[1];if("object"===a(h)&&null!==h){if(!U(u,e,h,g,r,o))return!1}else if(!(r||e.has(h)&&I(e.get(h),g,!1,o)||U(u,e,h,g,!1,o)))return!1}return 0===u.size}return!0}(e,t,r,u))return!1}else if(1===s)for(;l<e.length;l++){if(!d(e,l)){if(d(t,l))return!1;for(var p=Object.keys(e);l<p.length;l++){var f=p[l];if(!d(t,f)||!I(e[f],t[f],r,u))return!1}return p.length===Object.keys(t).length}if(!d(t,l)||!I(e[l],t[l],r,u))return!1}for(l=0;l<o.length;l++){var m=o[l];if(!I(e[m],t[m],r,u))return!1}return!0}(e,t,r,s,o,u);return o.val1.delete(e),o.val2.delete(t),v}function k(e,t,r,n){for(var o=c(e),a=0;a<o.length;a++){var u=o[a];if(I(t,u,r,n))return e.delete(u),!0}return!1}function _(e){switch(a(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(p(e))return!1}return!0}function R(e,t,r){var n=_(r);return null!=n?n:t.has(n)&&!e.has(n)}function V(e,t,r,n,o){var a=_(r);if(null!=a)return a;var u=t.get(a);return!(void 0===u&&!t.has(a)||!I(n,u,!1,o))&&!e.has(a)&&I(n,u,!1,o)}function U(e,t,r,n,o,a){for(var u=c(e),i=0;i<u.length;i++){var s=u[i];if(I(r,s,o,a)&&I(n,t.get(s),o,a))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},8165(e,t,r){"use strict";var n=r(9138),o=r(6095),a=r(4531),u=r(7196);e.exports=u||n.call(a,o)},2012(e,t,r){"use strict";var n=r(9138),o=r(6095),a=r(8165);e.exports=function(){return a(n,o,arguments)}},6095(e){"use strict";e.exports=Function.prototype.apply},4531(e){"use strict";e.exports=Function.prototype.call},9903(e,t,r){"use strict";var n=r(9138),o=r(3468),a=r(4531),u=r(8165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return u(n,a,e)}},7196(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},9818(e,t,r){"use strict";var n=r(528),o=r(8498),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?o(r):r}},8498(e,t,r){"use strict";var n=r(6108),o=r(4940),a=r(9903),u=r(2012);e.exports=function(e){var t=a(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},o?o(e.exports,"apply",{value:u}):e.exports.apply=u},4607(e,t,r){"use strict";var n=r(528),o=r(9903),a=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?o([r]):r}},4364(e,t,r){var n=r(9208),o=r(6093);function a(){return(new Date).getTime()}var u,c=Array.prototype.slice,i={};u=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){u.log.apply(u,arguments)},"info"],[function(){u.log.apply(u,arguments)},"warn"],[function(){u.warn.apply(u,arguments