@codesandbox/sandpack-client
Version:
<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
1 lines • 582 kB
JavaScript
(this.csbJsonP=this.csbJsonP||[]).push([["vendors~postcss-compiler"],{"../../node_modules/asn1.js/lib/asn1.js":function(t,e,i){var r=e;r.bignum=i("../../node_modules/bn.js/lib/bn.js"),r.define=i("../../node_modules/asn1.js/lib/asn1/api.js").define,r.base=i("../../node_modules/asn1.js/lib/asn1/base/index.js"),r.constants=i("../../node_modules/asn1.js/lib/asn1/constants/index.js"),r.decoders=i("../../node_modules/asn1.js/lib/asn1/decoders/index.js"),r.encoders=i("../../node_modules/asn1.js/lib/asn1/encoders/index.js")},"../../node_modules/asn1.js/lib/asn1/api.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1.js"),n=i("../../node_modules/inherits/inherits_browser.js");function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){var e;try{e=i("../../node_modules/vm-browserify/index.js").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return n(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},s.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},s.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},"../../node_modules/asn1.js/lib/asn1/base/buffer.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/asn1.js/lib/asn1/base/index.js").Reporter,s=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer;function o(t,e){n.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof a||(t=new a(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(o,n),e.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(t){var e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,n.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},"../../node_modules/asn1.js/lib/asn1/base/index.js":function(t,e,i){var r=e;r.Reporter=i("../../node_modules/asn1.js/lib/asn1/base/reporter.js").Reporter,r.DecoderBuffer=i("../../node_modules/asn1.js/lib/asn1/base/buffer.js").DecoderBuffer,r.EncoderBuffer=i("../../node_modules/asn1.js/lib/asn1/base/buffer.js").EncoderBuffer,r.Node=i("../../node_modules/asn1.js/lib/asn1/base/node.js")},"../../node_modules/asn1.js/lib/asn1/base/node.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1/base/index.js").Reporter,n=i("../../node_modules/asn1.js/lib/asn1/base/index.js").EncoderBuffer,s=i("../../node_modules/asn1.js/lib/asn1/base/index.js").DecoderBuffer,o=i("../../node_modules/minimalistic-assert/index.js"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function d(t,e){var i={};this._baseState=i,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=d;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){var t=this._baseState,e={};u.forEach((function(i){e[i]=t[i]}));var i=new this.constructor(e.parent);return i._baseState=e,i},d.prototype._wrap=function(){var t=this._baseState;h.forEach((function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},d.prototype._init=function(t){var e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),o.equal(e.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(t){var e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(o(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0);var r=t[i];e[r]=i})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){d.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){d.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(i),this}})),d.prototype.use=function(t){o(t);var e=this._baseState;return o(null===e.use),e.use=t,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(t){var e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},d.prototype.explicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},d.prototype.implicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},d.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},d.prototype.key=function(t){var e=this._baseState;return o(null===e.key),e.key=t,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(t){var e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},d.prototype.contains=function(t){var e=this._baseState;return o(null===e.use),e.contains=t,this},d.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r,n=i.default,o=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){var h=null;if(null!==i.explicit?h=i.explicit:null!==i.implicit?h=i.implicit:null!==i.tag&&(h=i.tag),null!==h||i.any){if(o=this._peekTag(t,h,i.any),t.isError(o))return o}else{var d=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(d)}}if(i.obj&&o&&(r=t.enterObject()),o){if(null!==i.explicit){var u=this._decodeTag(t,i.explicit);if(t.isError(u))return u;t=u}var f=t.offset;if(null===i.use&&null===i.choice){if(i.any)d=t.save();var l=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(l))return l;i.any?n=t.raw(d):t=l}if(e&&e.track&&null!==i.tag&&e.track(t.path(),f,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),n=i.any?n:null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),t.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var c=new s(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(c,e)}}return i.obj&&o&&(n=t.leaveObject(r)),null===i.key||null===n&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,n),n},d.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},d.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},d.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some((function(s){var o=t.save(),a=i.choice[s];try{var h=a._decode(t,e);if(t.isError(h))return!1;r={type:s,value:h},n=!0}catch(e){return t.restore(o),!1}return!0}),this),n?r:t.error("Choice not matched")},d.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},d.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){var n=this._encodeValue(t,e,i);if(void 0!==n&&!this._skipDefault(n,e,i))return n}},d.prototype._encodeValue=function(t,e,i){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(t,e||new r);var s=null;if(this.reporter=e,n.optional&&void 0===t){if(null===n.default)return;t=n.default}var o=null,a=!1;if(n.any)s=this._createEncoderBuffer(t);else if(n.choice)s=this._encodeChoice(t,e);else if(n.contains)o=this._getUse(n.contains,i)._encode(t,e),a=!0;else if(n.children)o=n.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");var r=e.enterKey(i._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var n=i._encode(t[i._baseState.key],e,t);return e.leaveKey(r),n}),this).filter((function(t){return t})),o=this._createEncoderBuffer(o);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var h=this.clone();h._baseState.implicit=null,o=this._createEncoderBuffer(t.map((function(i){var r=this._baseState;return this._getUse(r.args[0],t)._encode(i,e)}),h))}else null!==n.use?s=this._getUse(n.use,i)._encode(t,e):(o=this._encodePrimitive(n.tag,t),a=!0);if(!n.any&&null===n.choice){var d=null!==n.implicit?n.implicit:n.tag,u=null===n.implicit?"universal":"context";null===d?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(s=this._encodeComposite(d,a,u,o))}return null!==n.explicit&&(s=this._encodeComposite(n.explicit,!1,"context",s)),s},d.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},d.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},d.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},d.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},"../../node_modules/asn1.js/lib/asn1/base/reporter.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js");function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=n,n.prototype.isError=function(t){return t instanceof s},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){var e,i=this._reporterState,r=t instanceof s;if(e=r?t:new s(i.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!i.options.partial)throw e;return r||i.errors.push(e),e},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},"../../node_modules/asn1.js/lib/asn1/constants/der.js":function(t,e,i){var r=i("../../node_modules/asn1.js/lib/asn1/constants/index.js");e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)},"../../node_modules/asn1.js/lib/asn1/constants/index.js":function(t,e,i){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);var r=t[i];e[r]=i})),e},r.der=i("../../node_modules/asn1.js/lib/asn1/constants/der.js")},"../../node_modules/asn1.js/lib/asn1/decoders/der.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/asn1.js/lib/asn1.js"),s=n.base,o=n.bignum,a=n.constants.der;function h(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){s.Node.call(this,"der",t)}function u(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=a.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var s=i;for(i=0;128==(128&s);){if(s=t.readUInt8(e),t.isError(s))return s;i<<=7,i|=127&s}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:a.tag[i]}}function f(t,e,i){var r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var n=127&r;if(n>4)return t.error("length octect is too long");r=0;for(var s=0;s<n;s++){r<<=8;var o=t.readUInt8(i);if(t.isError(o))return o;r|=o}return r}t.exports=h,h.prototype.decode=function(t,e){return t instanceof s.DecoderBuffer||(t=new s.DecoderBuffer(t,e)),this.tree._decode(t,e)},r(d,s.Node),d.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;var r=t.save(),n=u(t,'Failed to peek tag: "'+e+'"');return t.isError(n)?n:(t.restore(r),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||i)},d.prototype._decodeTag=function(t,e,i){var r=u(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var n=f(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(n))return n;if(!i&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==n)return t.skip(n,'Failed to match body of: "'+e+'"');var s=t.save(),o=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(o)?o:(n=t.offset-s.offset,t.restore(s),t.skip(n,'Failed to match body of: "'+e+'"'))},d.prototype._skipUntilEnd=function(t,e){for(;;){var i=u(t,e);if(t.isError(i))return i;var r,n=f(t,i.primitive,e);if(t.isError(n))return n;if(r=i.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},d.prototype._decodeList=function(t,e,i,r){for(var n=[];!t.isEmpty();){var s=this._peekTag(t,"end");if(t.isError(s))return s;var o=i.decode(t,"der",r);if(t.isError(o)&&s)break;n.push(o)}return n},d.prototype._decodeStr=function(t,e){if("bitstr"===e){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var n="",s=0;s<r.length/2;s++)n+=String.fromCharCode(r.readUInt16BE(2*s));return n}if("numstr"===e){var o=t.raw().toString("ascii");return this._isNumstr(o)?o:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var a=t.raw().toString("ascii");return this._isPrintstr(a)?a:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},d.prototype._decodeObjid=function(t,e,i){for(var r,n=[],s=0;!t.isEmpty();){var o=t.readUInt8();s<<=7,s|=127&o,0==(128&o)&&(n.push(s),s=0)}128&o&&n.push(s);var a=n[0]/40|0,h=n[0]%40;if(r=i?n:[a,h].concat(n.slice(1)),e){var d=e[r.join(" ")];void 0===d&&(d=e[r.join(".")]),void 0!==d&&(r=d)}return r},d.prototype._decodeTime=function(t,e){var i=t.raw().toString();if("gentime"===e)var r=0|i.slice(0,4),n=0|i.slice(4,6),s=0|i.slice(6,8),o=0|i.slice(8,10),a=0|i.slice(10,12),h=0|i.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|i.slice(0,2),n=0|i.slice(2,4),s=0|i.slice(4,6),o=0|i.slice(6,8),a=0|i.slice(8,10),h=0|i.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,s,o,a,h,0)},d.prototype._decodeNull=function(t){return null},d.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},d.prototype._decodeInt=function(t,e){var i=t.raw(),r=new o(i);return e&&(r=e[r.toString(10)]||r),r},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},"../../node_modules/asn1.js/lib/asn1/decoders/index.js":function(t,e,i){var r=e;r.der=i("../../node_modules/asn1.js/lib/asn1/decoders/der.js"),r.pem=i("../../node_modules/asn1.js/lib/asn1/decoders/pem.js")},"../../node_modules/asn1.js/lib/asn1/decoders/pem.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer,s=i("../../node_modules/asn1.js/lib/asn1/decoders/der.js");function o(t){s.call(this,t),this.enc="pem"}r(o,s),t.exports=o,o.prototype.decode=function(t,e){for(var i=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,h=-1,d=0;d<i.length;d++){var u=i[d].match(o);if(null!==u&&u[2]===r){if(-1!==a){if("END"!==u[1])break;h=d;break}if("BEGIN"!==u[1])break;a=d}}if(-1===a||-1===h)throw new Error("PEM section not found for: "+r);var f=i.slice(a+1,h).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new n(f,"base64");return s.prototype.decode.call(this,l,e)}},"../../node_modules/asn1.js/lib/asn1/encoders/der.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer,s=i("../../node_modules/asn1.js/lib/asn1.js"),o=s.base,a=s.constants.der;function h(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){o.Node.call(this,"der",t)}function u(t){return t<10?"0"+t:t}t.exports=h,h.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(d,o.Node),d.prototype._encodeComposite=function(t,e,i,r){var s,o=function(t,e,i,r){var n;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}if(n>=31)return r.error("Multi-octet tag encoding unsupported");e||(n|=32);return n|=a.tagClassByName[i||"universal"]<<6}(t,e,i,this.reporter);if(r.length<128)return(s=new n(2))[0]=o,s[1]=r.length,this._createEncoderBuffer([s,r]);for(var h=1,d=r.length;d>=256;d>>=8)h++;(s=new n(2+h))[0]=o,s[1]=128|h;d=1+h;for(var u=r.length;u>0;d--,u>>=8)s[d]=255&u;return this._createEncoderBuffer([s,r])},d.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var i=new n(2*t.length),r=0;r<t.length;r++)i.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(i)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},d.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t)){t=t.slice();for(r=0;r<t.length;r++)t[r]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var s=0;for(r=0;r<t.length;r++){var o=t[r];for(s++;o>=128;o>>=7)s++}var a=new n(s),h=a.length-1;for(r=t.length-1;r>=0;r--){o=t[r];for(a[h--]=127&o;(o>>=7)>0;)a[h--]=128|127&o}return this._createEncoderBuffer(a)},d.prototype._encodeTime=function(t,e){var i,r=new Date(t);return"gentime"===e?i=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!n.isBuffer(t)){var i=t.toArray();!t.sign&&128&i[0]&&i.unshift(0),t=new n(i)}if(n.isBuffer(t)){var r=t.length;0===t.length&&r++;var s=new n(r);return t.copy(s),0===t.length&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var o=t;o>=256;o>>=8)r++;for(o=(s=new Array(r)).length-1;o>=0;o--)s[o]=255&t,t>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new n(s))},d.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},d.prototype._skipDefault=function(t,e,i){var r,n=this._baseState;if(null===n.default)return!1;var s=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),s.length!==n.defaultBuffer.length)return!1;for(r=0;r<s.length;r++)if(s[r]!==n.defaultBuffer[r])return!1;return!0}},"../../node_modules/asn1.js/lib/asn1/encoders/index.js":function(t,e,i){var r=e;r.der=i("../../node_modules/asn1.js/lib/asn1/encoders/der.js"),r.pem=i("../../node_modules/asn1.js/lib/asn1/encoders/pem.js")},"../../node_modules/asn1.js/lib/asn1/encoders/pem.js":function(t,e,i){var r=i("../../node_modules/inherits/inherits_browser.js"),n=i("../../node_modules/asn1.js/lib/asn1/encoders/der.js");function s(t){n.call(this,t),this.enc="pem"}r(s,n),t.exports=s,s.prototype.encode=function(t,e){for(var i=n.prototype.encode.call(this,t).toString("base64"),r=["-----BEGIN "+e.label+"-----"],s=0;s<i.length;s+=64)r.push(i.slice(s,s+64));return r.push("-----END "+e.label+"-----"),r.join("\n")}},"../../node_modules/bn.js/lib/bn.js":function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=i("../../standalone-packages/codesandbox-browserfs/dist/shims/buffer.js").Buffer}catch(t){}function a(t,e,i){for(var r=0,n=Math.min(t.length,i),s=e;s<n;s++){var o=t.charCodeAt(s)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function h(t,e,i,r){for(var n=0,s=Math.min(t.length,i),o=e;o<s;o++){var a=t.charCodeAt(o)-48;n*=r,n+=a>=49?a-49+10:a>=17?a-17+10:a}return n}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var s,o,a=0;if("be"===i)for(n=t.length-1,s=0;n>=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===i)for(n=0,s=0;n<t.length;n+=3)o=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,s=0;for(i=t.length-6,r=0;i>=e;i-=6)n=a(t,i,i+6),this.words[r]|=n<<s&67108863,this.words[r+1]|=n>>>26-s&4194303,(s+=24)>=26&&(s-=26,r++);i+6!==e&&(n=a(t,e,i+6),this.words[r]|=n<<s&67108863,this.words[r+1]|=n>>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,a=Math.min(s,s-o)+i,d=0,u=i;u<a;u+=r)d=h(t,u,u+r,e),this.imuln(n),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(0!==o){var f=1;for(d=h(t,u,t.length,e),u=0;u<o;u++)f*=e;this.imuln(f),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,a=67108863&o,h=o/67108864|0;i.words[0]=a;for(var d=1;d<r;d++){for(var u=h>>>26,f=67108863&h,l=Math.min(d,e.length-1),c=Math.max(0,d-t.length+1);c<=l;c++){var p=d-c|0;u+=(o=(n=0|t.words[p])*(s=0|e.words[c])+f)/67108864|0,f=67108863&o}i.words[d]=0|f,h=0|u}return 0!==h?i.words[d]=0|h:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o<this.length;o++){var a=this.words[o],h=(16777215&(a<<n|s)).toString(16);i=0!==(s=a>>>24-n&16777215)||o!==this.length-1?d[6-h.length]+h+i:h+i,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var l=u[t],c=f[t];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(t);i=(p=p.idivn(c)).isZero()?m+i:d[l-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,h="le"===e,d=new t(s),u=this.clone();if(h){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),d[a]=o;for(;a<s;a++)d[a]=0}else{for(a=0;a<s-n;a++)d[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),d[s-a-1]=o}return d},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,i=0;return e>=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(t){var e,i,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s<r.length;s++)e=(0|i.words[s])+(0|r.words[s])+n,this.words[s]=67108863&e,n=e>>>26;for(;0!==n&&s<i.length;s++)e=(0|i.words[s])+n,this.words[s]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this},s.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o<r.length;o++)s=(e=(0|i.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&e;for(;0!==s&&o<i.length;o++)s=(e=(0|i.words[o])+s)>>26,this.words[o]=67108863&e;if(0===s&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var c=function(t,e,i){var r,n,s,o=t.words,a=e.words,h=i.words,d=0,u=0|o[0],f=8191&u,l=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,b=0|o[2],v=8191&b,g=b>>>13,y=0|o[3],_=8191&y,w=y>>>13,M=0|o[4],x=8191&M,j=M>>>13,E=0|o[5],S=8191&E,k=E>>>13,A=0|o[6],R=8191&A,I=A>>>13,B=0|o[7],C=8191&B,O=B>>>13,T=0|o[8],P=8191&T,N=T>>>13,L=0|o[9],q=8191&L,D=L>>>13,z=0|a[0],U=8191&z,K=z>>>13,F=0|a[1],H=8191&F,Z=F>>>13,G=0|a[2],V=8191&G,X=G>>>13,$=0|a[3],W=8191&$,Y=$>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],it=8191&et,rt=et>>>13,nt=0|a[6],st=8191&nt,ot=nt>>>13,at=0|a[7],ht=8191&at,dt=at>>>13,ut=0|a[8],ft=8191&ut,lt=ut>>>13,ct=0|a[9],pt=8191&ct,mt=ct>>>13;i.negative=t.negative^e.negative,i.length=19;var bt=(d+(r=Math.imul(f,U))|0)+((8191&(n=(n=Math.imul(f,K))+Math.imul(l,U)|0))<<13)|0;d=((s=Math.imul(l,K))+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,U),n=(n=Math.imul(p,K))+Math.imul(m,U)|0,s=Math.imul(m,K);var vt=(d+(r=r+Math.imul(f,H)|0)|0)+((8191&(n=(n=n+Math.imul(f,Z)|0)+Math.imul(l,H)|0))<<13)|0;d=((s=s+Math.imul(l,Z)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,U),n=(n=Math.imul(v,K))+Math.imul(g,U)|0,s=Math.imul(g,K),r=r+Math.imul(p,H)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,Z)|0;var gt=(d+(r=r+Math.imul(f,V)|0)|0)+((8191&(n=(n=n+Math.imul(f,X)|0)+Math.imul(l,V)|0))<<13)|0;d=((s=s+Math.imul(l,X)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(_,U),n=(n=Math.imul(_,K))+Math.imul(w,U)|0,s=Math.imul(w,K),r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,Z)|0,r=r+Math.imul(p,V)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,X)|0;var yt=(d+(r=r+Math.imul(f,W)|0)|0)+((8191&(n=(n=n+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;d=((s=s+Math.imul(l,Y)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(x,U),n=(n=Math.imul(x,K))+Math.imul(j,U)|0,s=Math.imul(j,K),r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,H)|0,s=s+Math.imul(w,Z)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(g,V)|0,s=s+Math.imul(g,X)|0,r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,Y)|0;var _t=(d+(r=r+Math.imul(f,Q)|0)|0)+((8191&(n=(n=n+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;d=((s=s+Math.imul(l,tt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(S,U),n=(n=Math.imul(S,K))+Math.imul(k,U)|0,s=Math.imul(k,K),r=r+Math.imul(x,H)|0,n=(n=n+Math.imul(x,Z)|0)+Math.imul(j,H)|0,s=s+Math.imul(j,Z)|0,r=r+Math.imul(_,V)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(w,V)|0,s=s+Math.imul(w,X)|0,r=r+Math.imul(v,W)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(g,W)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,tt)|0;var wt=(d+(r=r+Math.imul(f,it)|0)|0)+((8191&(n=(n=n+Math.imul(f,rt)|0)+Math.imul(l,it)|0))<<13)|0;d=((s=s+Math.imul(l,rt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,U),n=(n=Math.imul(R,K))+Math.imul(I,U)|0,s=Math.imul(I,K),r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,Z)|0)+Math.imul(k,H)|0,s=s+Math.imul(k,Z)|0,r=r+Math.imul(x,V)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,X)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,tt)|0,r=r+Math.imul(p,it)|0,n=(n=n+Math.imul(p,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var Mt=(d+(r=r+Math.imul(f,st)|0)|0)+((8191&(n=(n=n+Math.imul(f,ot)|0)+Math.imul(l,st)|0))<<13)|0;d=((s=s+Math.imul(l,ot)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(C,U),n=(n=Math.imul(C,K))+Math.imul(O,U)|0,s=Math.imul(O,K),r=r+Math.imul(R,H)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,Z)|0,r=r+Math.imul(S,V)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,V)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,Y)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(g,it)|0,s=s+Math.imul(g,rt)|0,r=r+Math.imul(p,st)|0,n=(n=n+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(d+(r=r+Math.imul(f,ht)|0)|0)+((8191&(n=(n=n+Math.imul(f,dt)|0)+Math.imul(l,ht)|0))<<13)|0;d=((s=s+Math.imul(l,dt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,U),n=(n=Math.imul(P,K))+Math.imul(N,U)|0,s=Math.imul(N,K),r=r+Math.imul(C,H)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,Z)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(I,V)|0,s=s+Math.imul(I,X)|0,r=r+Math.imul(S,W)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(k,W)|0,s=s+Math.imul(k,Y)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,tt)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(_,it)|0,n=(n=n+Math.imul(_,rt)|0)+Math.imul(w,it)|0,s=s+Math.imul(w,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(g,st)|0,s=s+Math.imul(g,ot)|0,r=r+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var jt=(d+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;d=((s=s+Math.imul(l,lt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(q,U),n=(n=Math.imul(q,K))+Math.imul(D,U)|0,s=Math.imul(D,K),r=r+Math.imul(P,H)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(N,H)|0,s=s+Math.imul(N,Z)|0,r=r+Math.imul(C,V)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(O,V)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(R,W)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,tt)|0,r=r+Math.imul(x,it)|0,n=(n=n+Math.imul(x,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(_,st)|0,n=(n=n+Math.imul(_,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,r=r+Math.imul(v,ht)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(g,ht)|0,s=s+Math.imul(g,dt)|0,r=r+Math.imul(p,ft)|0,n=(n=n+Math.imul(p,lt)|0)+Math.imul(m,ft)|0,s=s+Math.imul(m,lt)|0;var Et=(d+(r=r+Math.imul(f,pt)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(l,pt)|0))<<13)|0;d=((s=s+Math.imul(l,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(q,H),n=(n=Math.imul(q,Z))+Math.imul(D,H)|0,s=Math.imul(D,Z),r=r+Math.imul(P,V)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(N,V)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,tt)|0,r=r+Math.imul(S,it)|0,n=(n=n+Math.imul(S,rt)|0)+Math.imul(k,it)|0,s=s+Math.imul(k,rt)|0,r=r+Math.imul(x,st)|0,n=(n=n+Math.imul(x,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(_,ht)|0,n=(n=n+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0,r=r+Math.imul(v,ft)|0,n=(n=n+Math.imul(v,lt)|0)+Math.imul(g,ft)|0,s=s+Math.imul(g,lt)|0;var St=(d+(r=r+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;d=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(q,V),n=(n=Math.imul(q,X))+Math.imul(D,V)|0,s=Math.imul(D,X),r=r+Math.imul(P,W)|0,n=(n=n+Math.imul(P,Y)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(I,it)|0,s=s+Math.imul(I,rt)|0,r=r+Math.imul(S,st)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(k,st)|0,s=s+Math.imul(k,ot)|0,r=r+Math.imul(x,ht)|0,n=(n=n+Math.imul(x,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0,r=r+Math.imul(_,ft)|0,n=(n=n+Math.imul(_,lt)|0)+Math.imul(w,ft)|0,s=s+Math.imul(w,lt)|0;var kt=(d+(r=r+Math.imul(v,pt)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(g,pt)|0))<<13)|0;d=((s=s+Math.imul(g,mt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(q,W),n=(n=Math.imul(q,Y))+Math.imul(D,W)|0,s=Math.imul(D,Y),r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,tt)|0,r=r+Math.imul(C,it)|0,n=(n=n+Math.imul(C,rt)|0)+Math.imul(O,it)|0,s=s+Math.imul(O,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,r=r+Math.imul(S,ht)|0,n=(n=n+Math.imul(S,dt)|0)+Math.imul(k,ht)|0,s=s+Math.imul(k,dt)|0,r=r+Math.imul(x,ft)|0,n=(n=n+Math.imul(x,lt)|0)+Math.imul(j,ft)|0,s=s+Math.imul(j,lt)|0;var At=(d+(r=r+Math.imul(_,pt)|0)|0)+((8191&(n=(n=n+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;d=((s=s+Math.imul(w,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(q,Q),n=(n=Math.imul(q,tt))+Math.imul(D,Q)|0,s=Math.imul(D,tt),r=r+Math.imul(P,it)|0,n=(n=n+Math.imul(P,rt)|0)+Math.imul(N,it)|0,s=s+Math.imul(N,rt)|0,r=r+Math.imul(C,st)|0,n=(n=n+Math.imul(C,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,r=r+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(I,ht)|0,s=s+Math.imul(I,dt)|0,r=r+Math.imul(S,ft)|0,n=(n=n+Math.imul(S,lt)|0)+Math.imul(k,ft)|0,s=s+Math.imul(k,lt)|0;var Rt=(d+(r=r+Math.imul(x,pt)|0)|0)+((8191&(n=(n=n+Math.imul(x,mt)|0)+Math.imul(j,pt)|0))<<13)|0;d=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(q,it),n=(n=Math.imul(q,rt))+Math.imul(D,it)|0,s=Math.imul(D,rt),r=r+Math.imul(P,st)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,r=r+Math.imul(C,ht)|0,n=(n=n+Math.imul(C,dt)|0)+Math.imul(O,ht)|0,s=s+Math.imul(O,dt)|0,r=r+Math.imul(R,ft)|0,n=(n=n+Math.imul(R,lt)|0)+Math.imul(I,ft)|0,s=s+Math.imul(I,lt)|0;var It=(d+(r=r+Math.imul(S,pt)|0)|0)+((8191&(n=(n=n+Math.imul(S,mt)|0)+Math.imul(k,pt)|0))<<13)|0;d=((s=s+Math.imul(k,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(q,st),n=(n=Math.imul(q,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),r=r+Math.imul(P,ht)|0,n=(n=n+Math.imul(P,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0,r=r+Math.imul(C,ft)|0,n=(n=n+Math.imul(C,lt)|0)+Math.imul(O,ft)|0,s=s+Math.imul(O,lt)|0;var Bt=(d+(r=r+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;d=((s=s+Math.imul(I,mt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(q,ht),n=(n=Math.imul(q,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt),r=r+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,lt)|0)+Math.imul(N,ft)|0,s=s+Math.imul(N,lt)|0;var Ct=(d+(r=r+Math.imul(C,pt)|0)|0)+((8191&(n=(n=n+Math.imul(C,mt)|0)+Math.imul(O,pt)|0))<<13)|0;d=((s=s+Math.imul(O,mt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(q,ft),n=(n=Math.imul(q,lt))+Math.imul(D,ft)|0,s=Math.imul(D,lt);var Ot=(d+(r=r+Math.imul(P,pt)|0)|0)+((8191&(n=(n=n+Math.imul(P,mt)|0)+Math.imul(N,pt)|0))<<13)|0;d=((s=s+Math.imul(N,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Tt=(d+(r=Math.imul(q,pt))|0)+((8191&(n=(n=Math.imul(q,mt))+Math.imul(D,pt)|0))<<13)|0;return d=((s=Math.imul(D,mt))+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h[0]=bt,h[1]=vt,h[2]=gt,h[3]=yt,h[4]=_t,h[5]=wt,h[6]=Mt,h[7]=xt,h[8]=jt,h[9]=Et,h[10]=St,h[11]=kt,h[12]=At,h[13]=Rt,h[14]=It,h[15]=Bt,h[16]=Ct,h[17]=Ot,h[18]=Tt,0!==d&&(h[19]=d,i.length++),i};function p(t,e,i){return(new m).mulp(t,e,i)}function m(t,e){this.x=t,this.y=e}Math.imul||(c=l),s.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,e):i<63?l(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s<i.length-1;s++){var o=n;n=0;for(var a=67108863&r,h=Math.min(s,e.length-1),d=Math.max(0,s-t.length+1);d<=h;d++){var u=s-d,f=(0|t.words[u])*(0|e.words[d]),l=67108863&f;a=67108863&(l=l+a|0),n+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}i.words[s]=a,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},m.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},m.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o<s;o++)r[o]=e[t[o]],n[o]=i[t[o]]},m.prototype.transform=function(t,e,i,r,n,s){this.permute(s,t,e,i,r,n);for(var o=1;o<n;o<<=1)for(var a=o<<1,h=Math.cos(2*Math.PI/a),d=Math.sin(2*Math.PI/a),u=0;u<n;u+=a)for(var f=h,l=d,c=0;c<o;c++){var p=i[u+c],m=r[u+c],b=i[u+c+o],v=r[u+c+o],g=f*b-l*v;v=f*v+l*b,b=g,i[u+c]=p+b,r[u+c]=m+v,i[u+c+o]=p-b,r[u+c+o]=m-v,c!==a&&(g=h*f-d*l,l=h*l+d*f,f=g)}},m.prototype.guessLen13b=function(t,e){var i=1|Math.max(e,t),r=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+r},m.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},m.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},m.prototype.convert13b=function(t,e,i,n){for(var s=0,o=0;o<e;o++)s+=0|t[o],i[2*o]=8191&s,s>>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o<n;++o)i[o]=0;r(0===s),r(0==(-8192&s))},m.prototype.stub=function(t)