@agentlang/lstudio 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/assets/{index-DGxKop46.js → index-BVDalg8J.js} +1 -1
  2. package/assets/index-Bto-kj6R-C0A_3Pwb.js +1 -0
  3. package/assets/index-CRBN_oZa.js +1 -0
  4. package/assets/{index-CZyH7rAI-yNipxqK_.js → index-Cgd01XOu-DZ3EXoBB.js} +2 -2
  5. package/assets/{index-DVE_yv84.js → index-CzztApPS.js} +1593 -15956
  6. package/assets/index-KGBiLwKE-Doz2tX9S.js +58 -0
  7. package/assets/index-cBigiEzZ.js +1 -0
  8. package/assets/index.browser-BHPvGrwi-6Mh8eUw-.js +1 -0
  9. package/assets/index.browser-DJzU6L_M.js +6 -0
  10. package/assets/inherits_browser-nmOknR35-Bp0mvRSL.js +1 -0
  11. package/assets/loadCognitoIdentity-CJ88jpa8.js +1 -0
  12. package/assets/{loadSts-BapsviSG.js → loadSts-C3D0kgNq.js} +1 -1
  13. package/assets/replService-zmzywhSy.js +1 -0
  14. package/assets/util-CNqBjtt6-GUXK7Yxz.js +10 -0
  15. package/assets/util-DZRIOW0Z-CproX86h.js +1 -0
  16. package/assets/winston-D0VJZ3P8-x1CFZMA0.js +1 -0
  17. package/assets/{winston-CtcDki1r-tmxR7nDg.js → winston-D1zwHYTY-CkaOApIk.js} +27 -27
  18. package/index.html +4 -9
  19. package/package.json +1 -1
  20. package/assets/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +0 -1
  21. package/assets/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +0 -1
  22. package/assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +0 -1
  23. package/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +0 -1
  24. package/assets/index-CNLtnwcG-CT9Tl0QI.js +0 -20
  25. package/assets/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +0 -20
  26. package/assets/index-CUtIwvTY-Dla_hTy0.js +0 -58
  27. package/assets/index-CZxYSK50.js +0 -1
  28. package/assets/index-D5v913EJ-CsbEilVn.js +0 -1
  29. package/assets/index-DGQM-tVy-4NRC-u1U.js +0 -1
  30. package/assets/index-Df47_4iR.js +0 -1
  31. package/assets/index-VamKv2HZ--hbiLl7B.js +0 -5
  32. package/assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js +0 -5
  33. package/assets/index-xuotMAFm-B-PTrwYx.js +0 -1
  34. package/assets/index.browser-CpFXY3d8.js +0 -6
  35. package/assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js +0 -1
  36. package/assets/loadCognitoIdentity-C6v0Wrbw.js +0 -1
  37. package/assets/replService-CQlo69lH.js +0 -1
  38. package/assets/util-ByC4ZISM-BeKX2g97.js +0 -1
  39. package/assets/util-Di1GNq-L-D-kgTTr0.js +0 -10
  40. package/assets/winston-Bb5ONwX_-B86ttl8E.js +0 -1
  41. package/assets/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +0 -1
  42. package/assets/winston-BvKfy0iJ-CwnGwJ9X.js +0 -51
  43. package/assets/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +0 -51
  44. package/assets/winston-CLh__iui-Dz2dJhwh.js +0 -1
@@ -1,20 +0,0 @@
1
- import{b as Pt}from"./index-xuotMAFm-B-PTrwYx.js";import{Y as Or}from"./index-6mKfgpcs-DsgiI2lM.js";import{p as Nr,a as Tr}from"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import{P as Cr,C as Un,p as Ir,w as Re,G as Ar,l as Fr}from"./winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js";import"./index-D5v913EJ-CsbEilVn.js";import"./__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js";function Ur(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(r,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function it(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xn={exports:{}},Yn;function Lr(){return Yn||(Yn=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,s,u){function g(U,j){if(!s[U]){if(!r[U]){var ee=typeof it=="function"&&it;if(!j&&ee)return ee(U,!0);if(O)return O(U,!0);throw new Error("Cannot find module '"+U+"'")}j=s[U]={exports:{}},r[U][0].call(j.exports,function(k){var Q=r[U][1][k];return g(Q||k)},j,j.exports,n,r,s,u)}return s[U].exports}for(var O=typeof it=="function"&&it,A=0;A<u.length;A++)g(u[A]);return g})({1:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){var x=n("crypto");function y(h,w){w=v(h,w);var o;return(o=w.algorithm!=="passthrough"?x.createHash(w.algorithm):new M).write===void 0&&(o.write=o.update,o.end=o.update),b(w,o).dispatch(h),o.update||o.end(""),o.digest?o.digest(w.encoding==="buffer"?void 0:w.encoding):(h=o.read(),w.encoding!=="buffer"?h.toString(w.encoding):h)}(s=r.exports=y).sha1=function(h){return y(h)},s.keys=function(h){return y(h,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(h){return y(h,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(h){return y(h,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=x.getHashes?x.getHashes().slice():["sha1","md5"],p=(c.push("passthrough"),["buffer","hex","binary","base64"]);function v(h,w){var o={};if(o.algorithm=(w=w||{}).algorithm||"sha1",o.encoding=w.encoding||"hex",o.excludeValues=!!w.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=w.ignoreUnknown===!0,o.respectType=w.respectType!==!1,o.respectFunctionNames=w.respectFunctionNames!==!1,o.respectFunctionProperties=w.respectFunctionProperties!==!1,o.unorderedArrays=w.unorderedArrays===!0,o.unorderedSets=w.unorderedSets!==!1,o.unorderedObjects=w.unorderedObjects!==!1,o.replacer=w.replacer||void 0,o.excludeKeys=w.excludeKeys||void 0,h===void 0)throw new Error("Object argument required.");for(var f=0;f<c.length;++f)c[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=c[f]);if(c.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+c.join(", "));if(p.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+p.join(", "));return o}function S(h){if(typeof h=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(h))!=null}function b(h,w,o){o=o||[];function f(a){return w.update?w.update(a,"utf8"):w.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=h.replacer?h.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var m,_=Object.prototype.toString.call(a),R=/\[object (.*)\]/i.exec(_);if(R=(R=R?R[1]:"unknown:["+_+"]").toLowerCase(),0<=(_=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+_+"]");if(o.push(a),O!==void 0&&O.isBuffer&&O.isBuffer(a))return f("buffer:"),f(a);if(R==="object"||R==="function"||R==="asyncfunction")return _=Object.keys(a),h.unorderedObjects&&(_=_.sort()),h.respectType===!1||S(a)||_.splice(0,0,"prototype","__proto__","constructor"),h.excludeKeys&&(_=_.filter(function(P){return!h.excludeKeys(P)})),f("object:"+_.length+":"),m=this,_.forEach(function(P){m.dispatch(P),f(":"),h.excludeValues||m.dispatch(a[P]),f(",")});if(!this["_"+R]){if(h.ignoreUnknown)return f("["+R+"]");throw new Error('Unknown object type "'+R+'"')}this["_"+R](a)},_array:function(a,P){P=P!==void 0?P:h.unorderedArrays!==!1;var _=this;if(f("array:"+a.length+":"),!P||a.length<=1)return a.forEach(function(W){return _.dispatch(W)});var R=[],P=a.map(function(W){var F=new M,B=o.slice();return b(h,F,B).dispatch(W),R=R.concat(B.slice(o.length)),F.read().toString()});return o=o.concat(R),P.sort(),this._array(P,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),h.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),h.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,h.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,h.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(h.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
2
- (see https://github.com/puleos/object-hash/issues/26)
3
- Use "options.replacer" or "options.ignoreUnknown"
4
- `)},_domwindow:function(){return f("domwindow")},_bigint:function(a){return f("bigint:"+a.toString())},_process:function(){return f("process")},_timer:function(){return f("timer")},_pipe:function(){return f("pipe")},_tcp:function(){return f("tcp")},_udp:function(){return f("udp")},_tty:function(){return f("tty")},_statwatcher:function(){return f("statwatcher")},_securecontext:function(){return f("securecontext")},_connection:function(){return f("connection")},_zlib:function(){return f("zlib")},_context:function(){return f("context")},_nodescript:function(){return f("nodescript")},_httpparser:function(){return f("httpparser")},_dataview:function(){return f("dataview")},_signal:function(){return f("signal")},_fsevent:function(){return f("fsevent")},_tlswrap:function(){return f("tlswrap")}}}function M(){return{buf:"",write:function(h){this.buf+=h},end:function(h){this.buf+=h},read:function(){return this.buf}}}s.writeToStream=function(h,w,o){return o===void 0&&(o=w,w={}),b(w=v(h,w),o).dispatch(h)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){(function(x){var y=typeof Uint8Array<"u"?Uint8Array:Array,c=43,p=47,v=48,S=97,b=65,M=45,h=95;function w(o){return o=o.charCodeAt(0),o===c||o===M?62:o===p||o===h?63:o<v?-1:o<v+10?o-v+26+26:o<b+26?o-b:o<S+26?o-S+26:void 0}x.toByteArray=function(o){var f,a;if(0<o.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.length,m=o.charAt(m-2)==="="?2:o.charAt(m-1)==="="?1:0,_=new y(3*o.length/4-m),R=0<m?o.length-4:o.length,P=0;function W(F){_[P++]=F}for(f=0;f<R;f+=4,0)W((16711680&(a=w(o.charAt(f))<<18|w(o.charAt(f+1))<<12|w(o.charAt(f+2))<<6|w(o.charAt(f+3))))>>16),W((65280&a)>>8),W(255&a);return m==2?W(255&(a=w(o.charAt(f))<<2|w(o.charAt(f+1))>>4)):m==1&&(W((a=w(o.charAt(f))<<10|w(o.charAt(f+1))<<4|w(o.charAt(f+2))>>2)>>8&255),W(255&a)),_},x.fromByteArray=function(o){var f,a,m,_,R=o.length%3,P="";function W(F){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(F)}for(f=0,m=o.length-R;f<m;f+=3)a=(o[f]<<16)+(o[f+1]<<8)+o[f+2],P+=W((_=a)>>18&63)+W(_>>12&63)+W(_>>6&63)+W(63&_);switch(R){case 1:P=(P+=W((a=o[o.length-1])>>2))+W(a<<4&63)+"==";break;case 2:P=(P=(P+=W((a=(o[o.length-2]<<8)+o[o.length-1])>>10))+W(a>>4&63))+W(a<<2&63)+"="}return P}})(s===void 0?this.base64js={}:s)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,s){(function(u,g,c,A,U,j,ee,k,Q){var x=n("base64-js"),y=n("ieee754");function c(i,l,d){if(!(this instanceof c))return new c(i,l,d);var E,Y,C,z,se=typeof i;if(l==="base64"&&se=="string")for(i=(z=i).trim?z.trim():z.replace(/^\s+|\s+$/g,"");i.length%4!=0;)i+="=";if(se=="number")E=V(i);else if(se=="string")E=c.byteLength(i,l);else{if(se!="object")throw new Error("First argument needs to be a number, array or string.");E=V(i.length)}if(c._useTypedArrays?Y=c._augment(new Uint8Array(E)):((Y=this).length=E,Y._isBuffer=!0),c._useTypedArrays&&typeof i.byteLength=="number")Y._set(i);else if(K(z=i)||c.isBuffer(z)||z&&typeof z=="object"&&typeof z.length=="number")for(C=0;C<E;C++)c.isBuffer(i)?Y[C]=i.readUInt8(C):Y[C]=i[C];else if(se=="string")Y.write(i,0,l);else if(se=="number"&&!c._useTypedArrays&&!d)for(C=0;C<E;C++)Y[C]=0;return Y}function p(i,l,d,E){return c._charsWritten=ye((function(Y){for(var C=[],z=0;z<Y.length;z++)C.push(255&Y.charCodeAt(z));return C})(l),i,d,E)}function v(i,l,d,E){return c._charsWritten=ye((function(Y){for(var C,z,se=[],ue=0;ue<Y.length;ue++)z=Y.charCodeAt(ue),C=z>>8,z=z%256,se.push(z),se.push(C);return se})(l),i,d,E)}function S(i,l,d){var E="";d=Math.min(i.length,d);for(var Y=l;Y<d;Y++)E+=String.fromCharCode(i[Y]);return E}function b(i,l,d,C){C||(N(typeof d=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length"));var Y,C=i.length;if(!(C<=l))return d?(Y=i[l],l+1<C&&(Y|=i[l+1]<<8)):(Y=i[l]<<8,l+1<C&&(Y|=i[l+1])),Y}function M(i,l,d,C){C||(N(typeof d=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length"));var Y,C=i.length;if(!(C<=l))return d?(l+2<C&&(Y=i[l+2]<<16),l+1<C&&(Y|=i[l+1]<<8),Y|=i[l],l+3<C&&(Y+=i[l+3]<<24>>>0)):(l+1<C&&(Y=i[l+1]<<16),l+2<C&&(Y|=i[l+2]<<8),l+3<C&&(Y|=i[l+3]),Y+=i[l]<<24>>>0),Y}function h(i,l,d,E){if(E||(N(typeof d=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return E=b(i,l,d,!0),32768&E?-1*(65535-E+1):E}function w(i,l,d,E){if(E||(N(typeof d=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return E=M(i,l,d,!0),2147483648&E?-1*(4294967295-E+1):E}function o(i,l,d,E){return E||(N(typeof d=="boolean","missing or invalid endian"),N(l+3<i.length,"Trying to read beyond buffer length")),y.read(i,l,d,23,4)}function f(i,l,d,E){return E||(N(typeof d=="boolean","missing or invalid endian"),N(l+7<i.length,"Trying to read beyond buffer length")),y.read(i,l,d,52,8)}function a(i,l,d,E,Y){if(Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+1<i.length,"trying to write beyond buffer length"),Ut(l,65535)),Y=i.length,!(Y<=d))for(var C=0,z=Math.min(Y-d,2);C<z;C++)i[d+C]=(l&255<<8*(E?C:1-C))>>>8*(E?C:1-C)}function m(i,l,d,E,Y){if(Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+3<i.length,"trying to write beyond buffer length"),Ut(l,4294967295)),Y=i.length,!(Y<=d))for(var C=0,z=Math.min(Y-d,4);C<z;C++)i[d+C]=l>>>8*(E?C:3-C)&255}function _(i,l,d,E,Y){Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+1<i.length,"Trying to write beyond buffer length"),Lt(l,32767,-32768)),i.length<=d||a(i,0<=l?l:65535+l+1,d,E,Y)}function R(i,l,d,E,Y){Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+3<i.length,"Trying to write beyond buffer length"),Lt(l,2147483647,-2147483648)),i.length<=d||m(i,0<=l?l:4294967295+l+1,d,E,Y)}function P(i,l,d,E,Y){Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+3<i.length,"Trying to write beyond buffer length"),kn(l,34028234663852886e22,-34028234663852886e22)),i.length<=d||y.write(i,l,d,E,23,4)}function W(i,l,d,E,Y){Y||(N(l!=null,"missing value"),N(typeof E=="boolean","missing or invalid endian"),N(d!=null,"missing offset"),N(d+7<i.length,"Trying to write beyond buffer length"),kn(l,17976931348623157e292,-17976931348623157e292)),i.length<=d||y.write(i,l,d,E,52,8)}s.Buffer=c,s.SlowBuffer=c,s.INSPECT_MAX_BYTES=50,c.poolSize=8192,c._useTypedArrays=(function(){try{var i=new ArrayBuffer(0),l=new Uint8Array(i);return l.foo=function(){return 42},l.foo()===42&&typeof l.subarray=="function"}catch{return!1}})(),c.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.isBuffer=function(i){return!(i==null||!i._isBuffer)},c.byteLength=function(i,l){var d;switch(i+="",l||"utf8"){case"hex":d=i.length/2;break;case"utf8":case"utf-8":d=ce(i).length;break;case"ascii":case"binary":case"raw":d=i.length;break;case"base64":d=Oe(i).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":d=2*i.length;break;default:throw new Error("Unknown encoding")}return d},c.concat=function(i,l){if(N(K(i),`Usage: Buffer.concat(list, [totalLength])
5
- list should be an Array.`),i.length===0)return new c(0);if(i.length===1)return i[0];if(typeof l!="number")for(Y=l=0;Y<i.length;Y++)l+=i[Y].length;for(var d=new c(l),E=0,Y=0;Y<i.length;Y++){var C=i[Y];C.copy(d,E),E+=C.length}return d},c.prototype.write=function(i,l,d,E){isFinite(l)?isFinite(d)||(E=d,d=void 0):(ue=E,E=l,l=d,d=ue),l=Number(l)||0;var Y,C,z,se,ue=this.length-l;switch((!d||ue<(d=Number(d)))&&(d=ue),E=String(E||"utf8").toLowerCase()){case"hex":Y=(function(ve,he,de,le){de=Number(de)||0;var ae=ve.length-de;(!le||ae<(le=Number(le)))&&(le=ae),N((ae=he.length)%2==0,"Invalid hex string"),ae/2<le&&(le=ae/2);for(var ze=0;ze<le;ze++){var Mn=parseInt(he.substr(2*ze,2),16);N(!isNaN(Mn),"Invalid hex string"),ve[de+ze]=Mn}return c._charsWritten=2*ze,ze})(this,i,l,d);break;case"utf8":case"utf-8":C=this,z=l,se=d,Y=c._charsWritten=ye(ce(i),C,z,se);break;case"ascii":case"binary":Y=p(this,i,l,d);break;case"base64":C=this,z=l,se=d,Y=c._charsWritten=ye(Oe(i),C,z,se);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=v(this,i,l,d);break;default:throw new Error("Unknown encoding")}return Y},c.prototype.toString=function(i,l,d){var E,Y,C,z,se=this;if(i=String(i||"utf8").toLowerCase(),l=Number(l)||0,(d=d!==void 0?Number(d):se.length)===l)return"";switch(i){case"hex":E=(function(ue,ve,he){var de=ue.length;(!ve||ve<0)&&(ve=0),(!he||he<0||de<he)&&(he=de);for(var le="",ae=ve;ae<he;ae++)le+=G(ue[ae]);return le})(se,l,d);break;case"utf8":case"utf-8":E=(function(ue,ve,he){var de="",le="";he=Math.min(ue.length,he);for(var ae=ve;ae<he;ae++)ue[ae]<=127?(de+=Sn(le)+String.fromCharCode(ue[ae]),le=""):le+="%"+ue[ae].toString(16);return de+Sn(le)})(se,l,d);break;case"ascii":case"binary":E=S(se,l,d);break;case"base64":Y=se,z=d,E=(C=l)===0&&z===Y.length?x.fromByteArray(Y):x.fromByteArray(Y.slice(C,z));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":E=(function(ue,ve,he){for(var de=ue.slice(ve,he),le="",ae=0;ae<de.length;ae+=2)le+=String.fromCharCode(de[ae]+256*de[ae+1]);return le})(se,l,d);break;default:throw new Error("Unknown encoding")}return E},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.copy=function(i,l,d,E){if(l=l||0,(E=E||E===0?E:this.length)!==(d=d||0)&&i.length!==0&&this.length!==0){N(d<=E,"sourceEnd < sourceStart"),N(0<=l&&l<i.length,"targetStart out of bounds"),N(0<=d&&d<this.length,"sourceStart out of bounds"),N(0<=E&&E<=this.length,"sourceEnd out of bounds"),E>this.length&&(E=this.length);var Y=(E=i.length-l<E-d?i.length-l+d:E)-d;if(Y<100||!c._useTypedArrays)for(var C=0;C<Y;C++)i[C+l]=this[C+d];else i._set(this.subarray(d,d+Y),l)}},c.prototype.slice=function(i,l){var d=this.length;if(i=B(i,d,0),l=B(l,d,d),c._useTypedArrays)return c._augment(this.subarray(i,l));for(var E=l-i,Y=new c(E,void 0,!0),C=0;C<E;C++)Y[C]=this[C+i];return Y},c.prototype.get=function(i){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(i)},c.prototype.set=function(i,l){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(i,l)},c.prototype.readUInt8=function(i,l){if(l||(N(i!=null,"missing offset"),N(i<this.length,"Trying to read beyond buffer length")),!(i>=this.length))return this[i]},c.prototype.readUInt16LE=function(i,l){return b(this,i,!0,l)},c.prototype.readUInt16BE=function(i,l){return b(this,i,!1,l)},c.prototype.readUInt32LE=function(i,l){return M(this,i,!0,l)},c.prototype.readUInt32BE=function(i,l){return M(this,i,!1,l)},c.prototype.readInt8=function(i,l){if(l||(N(i!=null,"missing offset"),N(i<this.length,"Trying to read beyond buffer length")),!(i>=this.length))return 128&this[i]?-1*(255-this[i]+1):this[i]},c.prototype.readInt16LE=function(i,l){return h(this,i,!0,l)},c.prototype.readInt16BE=function(i,l){return h(this,i,!1,l)},c.prototype.readInt32LE=function(i,l){return w(this,i,!0,l)},c.prototype.readInt32BE=function(i,l){return w(this,i,!1,l)},c.prototype.readFloatLE=function(i,l){return o(this,i,!0,l)},c.prototype.readFloatBE=function(i,l){return o(this,i,!1,l)},c.prototype.readDoubleLE=function(i,l){return f(this,i,!0,l)},c.prototype.readDoubleBE=function(i,l){return f(this,i,!1,l)},c.prototype.writeUInt8=function(i,l,d){d||(N(i!=null,"missing value"),N(l!=null,"missing offset"),N(l<this.length,"trying to write beyond buffer length"),Ut(i,255)),l>=this.length||(this[l]=i)},c.prototype.writeUInt16LE=function(i,l,d){a(this,i,l,!0,d)},c.prototype.writeUInt16BE=function(i,l,d){a(this,i,l,!1,d)},c.prototype.writeUInt32LE=function(i,l,d){m(this,i,l,!0,d)},c.prototype.writeUInt32BE=function(i,l,d){m(this,i,l,!1,d)},c.prototype.writeInt8=function(i,l,d){d||(N(i!=null,"missing value"),N(l!=null,"missing offset"),N(l<this.length,"Trying to write beyond buffer length"),Lt(i,127,-128)),l>=this.length||(0<=i?this.writeUInt8(i,l,d):this.writeUInt8(255+i+1,l,d))},c.prototype.writeInt16LE=function(i,l,d){_(this,i,l,!0,d)},c.prototype.writeInt16BE=function(i,l,d){_(this,i,l,!1,d)},c.prototype.writeInt32LE=function(i,l,d){R(this,i,l,!0,d)},c.prototype.writeInt32BE=function(i,l,d){R(this,i,l,!1,d)},c.prototype.writeFloatLE=function(i,l,d){P(this,i,l,!0,d)},c.prototype.writeFloatBE=function(i,l,d){P(this,i,l,!1,d)},c.prototype.writeDoubleLE=function(i,l,d){W(this,i,l,!0,d)},c.prototype.writeDoubleBE=function(i,l,d){W(this,i,l,!1,d)},c.prototype.fill=function(i,l,d){if(l=l||0,d=d||this.length,N(typeof(i=typeof(i=i||0)=="string"?i.charCodeAt(0):i)=="number"&&!isNaN(i),"value is not a number"),N(l<=d,"end < start"),d!==l&&this.length!==0){N(0<=l&&l<this.length,"start out of bounds"),N(0<=d&&d<=this.length,"end out of bounds");for(var E=l;E<d;E++)this[E]=i}},c.prototype.inspect=function(){for(var i=[],l=this.length,d=0;d<l;d++)if(i[d]=G(this[d]),d===s.INSPECT_MAX_BYTES){i[d+1]="...";break}return"<Buffer "+i.join(" ")+">"},c.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(c._useTypedArrays)return new c(this).buffer;for(var i=new Uint8Array(this.length),l=0,d=i.length;l<d;l+=1)i[l]=this[l];return i.buffer};var F=c.prototype;function B(i,l,d){return typeof i!="number"?d:l<=(i=~~i)?l:0<=i||0<=(i+=l)?i:0}function V(i){return(i=~~Math.ceil(+i))<0?0:i}function K(i){return(Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"})(i)}function G(i){return i<16?"0"+i.toString(16):i.toString(16)}function ce(i){for(var l=[],d=0;d<i.length;d++){var E=i.charCodeAt(d);if(E<=127)l.push(i.charCodeAt(d));else for(var Y=d,C=(55296<=E&&E<=57343&&d++,encodeURIComponent(i.slice(Y,d+1)).substr(1).split("%")),z=0;z<C.length;z++)l.push(parseInt(C[z],16))}return l}function Oe(i){return x.toByteArray(i)}function ye(i,l,d,E){for(var Y=0;Y<E&&!(Y+d>=l.length||Y>=i.length);Y++)l[Y+d]=i[Y];return Y}function Sn(i){try{return decodeURIComponent(i)}catch{return"�"}}function Ut(i,l){N(typeof i=="number","cannot write a non-number as a number"),N(0<=i,"specified a negative value for writing an unsigned value"),N(i<=l,"value is larger than maximum value for type"),N(Math.floor(i)===i,"value has a fractional component")}function Lt(i,l,d){N(typeof i=="number","cannot write a non-number as a number"),N(i<=l,"value larger than maximum allowed value"),N(d<=i,"value smaller than minimum allowed value"),N(Math.floor(i)===i,"value has a fractional component")}function kn(i,l,d){N(typeof i=="number","cannot write a non-number as a number"),N(i<=l,"value larger than maximum allowed value"),N(d<=i,"value smaller than minimum allowed value")}function N(i,l){if(!i)throw new Error(l||"Failed assertion")}c._augment=function(i){return i._isBuffer=!0,i._get=i.get,i._set=i.set,i.get=F.get,i.set=F.set,i.write=F.write,i.toString=F.toString,i.toLocaleString=F.toString,i.toJSON=F.toJSON,i.copy=F.copy,i.slice=F.slice,i.readUInt8=F.readUInt8,i.readUInt16LE=F.readUInt16LE,i.readUInt16BE=F.readUInt16BE,i.readUInt32LE=F.readUInt32LE,i.readUInt32BE=F.readUInt32BE,i.readInt8=F.readInt8,i.readInt16LE=F.readInt16LE,i.readInt16BE=F.readInt16BE,i.readInt32LE=F.readInt32LE,i.readInt32BE=F.readInt32BE,i.readFloatLE=F.readFloatLE,i.readFloatBE=F.readFloatBE,i.readDoubleLE=F.readDoubleLE,i.readDoubleBE=F.readDoubleBE,i.writeUInt8=F.writeUInt8,i.writeUInt16LE=F.writeUInt16LE,i.writeUInt16BE=F.writeUInt16BE,i.writeUInt32LE=F.writeUInt32LE,i.writeUInt32BE=F.writeUInt32BE,i.writeInt8=F.writeInt8,i.writeInt16LE=F.writeInt16LE,i.writeInt16BE=F.writeInt16BE,i.writeInt32LE=F.writeInt32LE,i.writeInt32BE=F.writeInt32BE,i.writeFloatLE=F.writeFloatLE,i.writeFloatBE=F.writeFloatBE,i.writeDoubleLE=F.writeDoubleLE,i.writeDoubleBE=F.writeDoubleBE,i.fill=F.fill,i.inspect=F.inspect,i.toArrayBuffer=F.toArrayBuffer,i}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,s){(function(u,g,x,A,U,j,ee,k,Q){var x=n("buffer").Buffer,y=4,c=new x(y);c.fill(0),r.exports={hash:function(p,v,S,b){for(var M=v((function(a,m){a.length%y!=0&&(_=a.length+(y-a.length%y),a=x.concat([a,c],_));for(var _,R=[],P=m?a.readInt32BE:a.readInt32LE,W=0;W<a.length;W+=y)R.push(P.call(a,W));return R})(p=x.isBuffer(p)?p:new x(p),b),8*p.length),v=b,h=new x(S),w=v?h.writeInt32BE:h.writeInt32LE,o=0;o<M.length;o++)w.call(h,M[o],4*o,!0);return h}}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,s){(function(u,g,x,A,U,j,ee,k,Q){var x=n("buffer").Buffer,y=n("./sha"),c=n("./sha256"),p=n("./rng"),v={sha1:y,sha256:c,md5:n("./md5")},S=64,b=new x(S);function M(a,m){var _=v[a=a||"sha1"],R=[];return _||h("algorithm:",a,"is not yet supported"),{update:function(P){return x.isBuffer(P)||(P=new x(P)),R.push(P),P.length,this},digest:function(P){var W=x.concat(R),W=m?(function(F,B,V){x.isBuffer(B)||(B=new x(B)),x.isBuffer(V)||(V=new x(V)),B.length>S?B=F(B):B.length<S&&(B=x.concat([B,b],S));for(var K=new x(S),G=new x(S),ce=0;ce<S;ce++)K[ce]=54^B[ce],G[ce]=92^B[ce];return V=F(x.concat([K,V])),F(x.concat([G,V]))})(_,m,W):_(W);return R=null,P?W.toString(P):W}}}function h(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
6
- `))}b.fill(0),s.createHash=function(a){return M(a)},s.createHmac=M,s.randomBytes=function(a,m){if(!m||!m.call)return new x(p(a));try{m.call(this,void 0,new x(p(a)))}catch(_){m(_)}};var w,o=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],f=function(a){s[a]=function(){h("sorry,",a,"is not implemented yet")}};for(w in o)f(o[w])}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){var x=n("./helpers");function y(h,w){h[w>>5]|=128<<w%32,h[14+(w+64>>>9<<4)]=w;for(var o=1732584193,f=-271733879,a=-1732584194,m=271733878,_=0;_<h.length;_+=16){var R=o,P=f,W=a,F=m,o=p(o,f,a,m,h[_+0],7,-680876936),m=p(m,o,f,a,h[_+1],12,-389564586),a=p(a,m,o,f,h[_+2],17,606105819),f=p(f,a,m,o,h[_+3],22,-1044525330);o=p(o,f,a,m,h[_+4],7,-176418897),m=p(m,o,f,a,h[_+5],12,1200080426),a=p(a,m,o,f,h[_+6],17,-1473231341),f=p(f,a,m,o,h[_+7],22,-45705983),o=p(o,f,a,m,h[_+8],7,1770035416),m=p(m,o,f,a,h[_+9],12,-1958414417),a=p(a,m,o,f,h[_+10],17,-42063),f=p(f,a,m,o,h[_+11],22,-1990404162),o=p(o,f,a,m,h[_+12],7,1804603682),m=p(m,o,f,a,h[_+13],12,-40341101),a=p(a,m,o,f,h[_+14],17,-1502002290),o=v(o,f=p(f,a,m,o,h[_+15],22,1236535329),a,m,h[_+1],5,-165796510),m=v(m,o,f,a,h[_+6],9,-1069501632),a=v(a,m,o,f,h[_+11],14,643717713),f=v(f,a,m,o,h[_+0],20,-373897302),o=v(o,f,a,m,h[_+5],5,-701558691),m=v(m,o,f,a,h[_+10],9,38016083),a=v(a,m,o,f,h[_+15],14,-660478335),f=v(f,a,m,o,h[_+4],20,-405537848),o=v(o,f,a,m,h[_+9],5,568446438),m=v(m,o,f,a,h[_+14],9,-1019803690),a=v(a,m,o,f,h[_+3],14,-187363961),f=v(f,a,m,o,h[_+8],20,1163531501),o=v(o,f,a,m,h[_+13],5,-1444681467),m=v(m,o,f,a,h[_+2],9,-51403784),a=v(a,m,o,f,h[_+7],14,1735328473),o=S(o,f=v(f,a,m,o,h[_+12],20,-1926607734),a,m,h[_+5],4,-378558),m=S(m,o,f,a,h[_+8],11,-2022574463),a=S(a,m,o,f,h[_+11],16,1839030562),f=S(f,a,m,o,h[_+14],23,-35309556),o=S(o,f,a,m,h[_+1],4,-1530992060),m=S(m,o,f,a,h[_+4],11,1272893353),a=S(a,m,o,f,h[_+7],16,-155497632),f=S(f,a,m,o,h[_+10],23,-1094730640),o=S(o,f,a,m,h[_+13],4,681279174),m=S(m,o,f,a,h[_+0],11,-358537222),a=S(a,m,o,f,h[_+3],16,-722521979),f=S(f,a,m,o,h[_+6],23,76029189),o=S(o,f,a,m,h[_+9],4,-640364487),m=S(m,o,f,a,h[_+12],11,-421815835),a=S(a,m,o,f,h[_+15],16,530742520),o=b(o,f=S(f,a,m,o,h[_+2],23,-995338651),a,m,h[_+0],6,-198630844),m=b(m,o,f,a,h[_+7],10,1126891415),a=b(a,m,o,f,h[_+14],15,-1416354905),f=b(f,a,m,o,h[_+5],21,-57434055),o=b(o,f,a,m,h[_+12],6,1700485571),m=b(m,o,f,a,h[_+3],10,-1894986606),a=b(a,m,o,f,h[_+10],15,-1051523),f=b(f,a,m,o,h[_+1],21,-2054922799),o=b(o,f,a,m,h[_+8],6,1873313359),m=b(m,o,f,a,h[_+15],10,-30611744),a=b(a,m,o,f,h[_+6],15,-1560198380),f=b(f,a,m,o,h[_+13],21,1309151649),o=b(o,f,a,m,h[_+4],6,-145523070),m=b(m,o,f,a,h[_+11],10,-1120210379),a=b(a,m,o,f,h[_+2],15,718787259),f=b(f,a,m,o,h[_+9],21,-343485551),o=M(o,R),f=M(f,P),a=M(a,W),m=M(m,F)}return Array(o,f,a,m)}function c(h,w,o,f,a,m){return M((w=M(M(w,h),M(f,m)))<<a|w>>>32-a,o)}function p(h,w,o,f,a,m,_){return c(w&o|~w&f,h,w,a,m,_)}function v(h,w,o,f,a,m,_){return c(w&f|o&~f,h,w,a,m,_)}function S(h,w,o,f,a,m,_){return c(w^o^f,h,w,a,m,_)}function b(h,w,o,f,a,m,_){return c(o^(w|~f),h,w,a,m,_)}function M(h,w){var o=(65535&h)+(65535&w);return(h>>16)+(w>>16)+(o>>16)<<16|65535&o}r.exports=function(h){return x.hash(h,y,16)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){r.exports=function(x){for(var y,c=new Array(x),p=0;p<x;p++)(3&p)==0&&(y=4294967296*Math.random()),c[p]=y>>>((3&p)<<3)&255;return c}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){var x=n("./helpers");function y(v,S){v[S>>5]|=128<<24-S%32,v[15+(S+64>>9<<4)]=S;for(var b,M,h,w=Array(80),o=1732584193,f=-271733879,a=-1732584194,m=271733878,_=-1009589776,R=0;R<v.length;R+=16){for(var P=o,W=f,F=a,B=m,V=_,K=0;K<80;K++){w[K]=K<16?v[R+K]:p(w[K-3]^w[K-8]^w[K-14]^w[K-16],1);var G=c(c(p(o,5),(G=f,M=a,h=m,(b=K)<20?G&M|~G&h:!(b<40)&&b<60?G&M|G&h|M&h:G^M^h)),c(c(_,w[K]),(b=K)<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514)),_=m,m=a,a=p(f,30),f=o,o=G}o=c(o,P),f=c(f,W),a=c(a,F),m=c(m,B),_=c(_,V)}return Array(o,f,a,m,_)}function c(v,S){var b=(65535&v)+(65535&S);return(v>>16)+(S>>16)+(b>>16)<<16|65535&b}function p(v,S){return v<<S|v>>>32-S}r.exports=function(v){return x.hash(v,y,20,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){function x(S,b){var M=(65535&S)+(65535&b);return(S>>16)+(b>>16)+(M>>16)<<16|65535&M}function y(S,b){var M,h=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),w=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),o=new Array(64);S[b>>5]|=128<<24-b%32,S[15+(b+64>>9<<4)]=b;for(var f,a,m=0;m<S.length;m+=16){for(var _=w[0],R=w[1],P=w[2],W=w[3],F=w[4],B=w[5],V=w[6],K=w[7],G=0;G<64;G++)o[G]=G<16?S[G+m]:x(x(x((a=o[G-2],p(a,17)^p(a,19)^v(a,10)),o[G-7]),(a=o[G-15],p(a,7)^p(a,18)^v(a,3))),o[G-16]),M=x(x(x(x(K,p(a=F,6)^p(a,11)^p(a,25)),F&B^~F&V),h[G]),o[G]),f=x(p(f=_,2)^p(f,13)^p(f,22),_&R^_&P^R&P),K=V,V=B,B=F,F=x(W,M),W=P,P=R,R=_,_=x(M,f);w[0]=x(_,w[0]),w[1]=x(R,w[1]),w[2]=x(P,w[2]),w[3]=x(W,w[3]),w[4]=x(F,w[4]),w[5]=x(B,w[5]),w[6]=x(V,w[6]),w[7]=x(K,w[7])}return w}var c=n("./helpers"),p=function(S,b){return S>>>b|S<<32-b},v=function(S,b){return S>>>b};r.exports=function(S){return c.hash(S,y,32,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){s.read=function(x,y,c,p,m){var S,b,M=8*m-p-1,h=(1<<M)-1,w=h>>1,o=-7,f=c?m-1:0,a=c?-1:1,m=x[y+f];for(f+=a,S=m&(1<<-o)-1,m>>=-o,o+=M;0<o;S=256*S+x[y+f],f+=a,o-=8);for(b=S&(1<<-o)-1,S>>=-o,o+=p;0<o;b=256*b+x[y+f],f+=a,o-=8);if(S===0)S=1-w;else{if(S===h)return b?NaN:1/0*(m?-1:1);b+=Math.pow(2,p),S-=w}return(m?-1:1)*b*Math.pow(2,S-p)},s.write=function(x,y,c,p,v,_){var b,M,h=8*_-v-1,w=(1<<h)-1,o=w>>1,f=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=p?0:_-1,m=p?1:-1,_=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(M=isNaN(y)?1:0,b=w):(b=Math.floor(Math.log(y)/Math.LN2),y*(p=Math.pow(2,-b))<1&&(b--,p*=2),2<=(y+=1<=b+o?f/p:f*Math.pow(2,1-o))*p&&(b++,p/=2),w<=b+o?(M=0,b=w):1<=b+o?(M=(y*p-1)*Math.pow(2,v),b+=o):(M=y*Math.pow(2,o-1)*Math.pow(2,v),b=0));8<=v;x[c+a]=255&M,a+=m,M/=256,v-=8);for(b=b<<v|M,h+=v;0<h;x[c+a]=255&b,a+=m,b/=256,h-=8);x[c+a-m]|=128*_}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,s){(function(u,g,O,A,U,j,ee,k,Q){var x,y,c;function p(){}(u=r.exports={}).nextTick=(y=typeof window<"u"&&window.setImmediate,c=typeof window<"u"&&window.postMessage&&window.addEventListener,y?function(v){return window.setImmediate(v)}:c?(x=[],window.addEventListener("message",function(v){var S=v.source;S!==window&&S!==null||v.data!=="process-tick"||(v.stopPropagation(),0<x.length&&x.shift()())},!0),function(v){x.push(v),window.postMessage("process-tick","*")}):function(v){setTimeout(v,0)}),u.title="browser",u.browser=!0,u.env={},u.argv=[],u.on=p,u.addListener=p,u.once=p,u.off=p,u.removeListener=p,u.removeAllListeners=p,u.emit=p,u.binding=function(v){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(v){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(xn)),xn.exports}//! moment.js
7
- //! version : 2.30.1
8
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
9
- //! license : MIT
10
- //! momentjs.com
11
- var Ln;function T(){return Ln.apply(null,arguments)}function Pr(e){Ln=e}function Se(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ge(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(q(e,t))return!1;return!0}function me(e){return e===void 0}function Ue(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ct(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Pn(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function We(e,t){for(var n in t)q(t,n)&&(e[n]=t[n]);return q(t,"toString")&&(e.toString=t.toString),q(t,"valueOf")&&(e.valueOf=t.valueOf),e}function De(e,t,n,r){return or(e,t,n,r,!0).utc()}function Rr(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function H(e){return e._pf==null&&(e._pf=Rr()),e._pf}var $t;Array.prototype.some?$t=Array.prototype.some:$t=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function en(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=H(e),n=$t.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function xt(e){var t=De(NaN);return e!=null?We(H(t),e):H(t).userInvalidated=!0,t}var Dn=T.momentProperties=[],Rt=!1;function tn(e,t){var n,r,s,u=Dn.length;if(me(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),me(t._i)||(e._i=t._i),me(t._f)||(e._f=t._f),me(t._l)||(e._l=t._l),me(t._strict)||(e._strict=t._strict),me(t._tzm)||(e._tzm=t._tzm),me(t._isUTC)||(e._isUTC=t._isUTC),me(t._offset)||(e._offset=t._offset),me(t._pf)||(e._pf=H(t)),me(t._locale)||(e._locale=t._locale),u>0)for(n=0;n<u;n++)r=Dn[n],s=t[r],me(s)||(e[r]=s);return e}function ht(e){tn(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Rt===!1&&(Rt=!0,T.updateOffset(this),Rt=!1)}function ke(e){return e instanceof ht||e!=null&&e._isAMomentObject!=null}function Rn(e){T.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function we(e,t){var n=!0;return We(function(){if(T.deprecationHandler!=null&&T.deprecationHandler(null,e),n){var r=[],s,u,g,O=arguments.length;for(u=0;u<O;u++){if(s="",typeof arguments[u]=="object"){s+=`
12
- [`+u+"] ";for(g in arguments[0])q(arguments[0],g)&&(s+=g+": "+arguments[0][g]+", ");s=s.slice(0,-2)}else s=arguments[u];r.push(s)}Rn(e+`
13
- Arguments: `+Array.prototype.slice.call(r).join("")+`
14
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var En={};function Wn(e,t){T.deprecationHandler!=null&&T.deprecationHandler(e,t),En[e]||(Rn(t),En[e]=!0)}T.suppressDeprecationWarnings=!1;T.deprecationHandler=null;function Ee(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Wr(e){var t,n;for(n in e)q(e,n)&&(t=e[n],Ee(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zt(e,t){var n=We({},e),r;for(r in t)q(t,r)&&(Ge(e[r])&&Ge(t[r])?(n[r]={},We(n[r],e[r]),We(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)q(e,r)&&!q(t,r)&&Ge(e[r])&&(n[r]=We({},n[r]));return n}function nn(e){e!=null&&this.set(e)}var Zt;Object.keys?Zt=Object.keys:Zt=function(e){var t,n=[];for(t in e)q(e,t)&&n.push(t);return n};var jr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Hr(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Ee(r)?r.call(t,n):r}function Ye(e,t,n){var r=""+Math.abs(e),s=t-r.length,u=e>=0;return(u?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var rn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,yt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wt={},Qe={};function L(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(Qe[e]=s),t&&(Qe[t[0]]=function(){return Ye(s.apply(this,arguments),t[1],t[2])}),n&&(Qe[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Br(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Vr(e){var t=e.match(rn),n,r;for(n=0,r=t.length;n<r;n++)Qe[t[n]]?t[n]=Qe[t[n]]:t[n]=Br(t[n]);return function(s){var u="",g;for(g=0;g<r;g++)u+=Ee(t[g])?t[g].call(s,e):t[g];return u}}function pt(e,t){return e.isValid()?(t=jn(t,e.localeData()),Wt[t]=Wt[t]||Vr(t),Wt[t](e)):e.localeData().invalidDate()}function jn(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(yt.lastIndex=0;n>=0&&yt.test(e);)e=e.replace(yt,r),yt.lastIndex=0,n-=1;return e}var Gr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $r(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(rn).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var zr="Invalid date";function Zr(){return this._invalidDate}var qr="%d",Jr=/\d{1,2}/;function Qr(e){return this._ordinal.replace("%d",e)}var Kr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Xr(e,t,n,r){var s=this._relativeTime[n];return Ee(s)?s(e,t,n,r):s.replace(/%d/i,e)}function es(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ee(n)?n(t):n.replace(/%s/i,t)}var On={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function _e(e){return typeof e=="string"?On[e]||On[e.toLowerCase()]:void 0}function sn(e){var t={},n,r;for(r in e)q(e,r)&&(n=_e(r),n&&(t[n]=e[r]));return t}var ts={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ns(e){var t=[],n;for(n in e)q(e,n)&&t.push({unit:n,priority:ts[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var Hn=/\d/,ge=/\d\d/,Bn=/\d{3}/,an=/\d{4}/,Yt=/[+-]?\d{6}/,ne=/\d\d?/,Vn=/\d\d\d\d?/,Gn=/\d\d\d\d\d\d?/,Dt=/\d{1,3}/,on=/\d{1,4}/,Et=/[+-]?\d{1,6}/,et=/\d+/,Ot=/[+-]?\d+/,rs=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,ss=/[+-]?\d+(\.\d{1,3})?/,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tt=/^[1-9]\d?/,un=/^([1-9]\d|\d)/,vt;vt={};function I(e,t,n){vt[e]=Ee(t)?t:function(r,s){return r&&n?n:t}}function is(e,t){return q(vt,e)?vt[e](t._strict,t._locale):new RegExp(as(e))}function as(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,u){return n||r||s||u}))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=pe(t)),n}var qt={};function X(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Ue(t)&&(r=function(u,g){g[t]=$(u)}),s=e.length,n=0;n<s;n++)qt[e[n]]=r}function mt(e,t){X(e,function(n,r,s,u){s._w=s._w||{},t(n,s._w,s,u)})}function os(e,t,n){t!=null&&q(qt,e)&&qt[e](t,n._a,n,e)}function Tt(e){return e%4===0&&e%100!==0||e%400===0}var fe=0,Ce=1,xe=2,oe=3,be=4,Ie=5,Ve=6,us=7,ls=8;L("Y",0,0,function(){var e=this.year();return e<=9999?Ye(e,4):"+"+e});L(0,["YY",2],0,function(){return this.year()%100});L(0,["YYYY",4],0,"year");L(0,["YYYYY",5],0,"year");L(0,["YYYYYY",6,!0],0,"year");I("Y",Ot);I("YY",ne,ge);I("YYYY",on,an);I("YYYYY",Et,Yt);I("YYYYYY",Et,Yt);X(["YYYYY","YYYYYY"],fe);X("YYYY",function(e,t){t[fe]=e.length===2?T.parseTwoDigitYear(e):$(e)});X("YY",function(e,t){t[fe]=T.parseTwoDigitYear(e)});X("Y",function(e,t){t[fe]=parseInt(e,10)});function at(e){return Tt(e)?366:365}T.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var $n=nt("FullYear",!0);function fs(){return Tt(this.year())}function nt(e,t){return function(n){return n!=null?(zn(this,e,n),T.updateOffset(this,t),this):ot(this,e)}}function ot(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function zn(e,t,n){var r,s,u,g,O;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}u=n,g=e.month(),O=e.date(),O=O===29&&g===1&&!Tt(u)?28:O,s?r.setUTCFullYear(u,g,O):r.setFullYear(u,g,O)}}function cs(e){return e=_e(e),Ee(this[e])?this[e]():this}function hs(e,t){if(typeof e=="object"){e=sn(e);var n=ns(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=_e(e),Ee(this[e]))return this[e](t);return this}function ds(e,t){return(e%t+t)%t}var ie;Array.prototype.indexOf?ie=Array.prototype.indexOf:ie=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ln(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ds(t,12);return e+=(t-n)/12,n===1?Tt(e)?29:28:31-n%7%2}L("M",["MM",2],"Mo",function(){return this.month()+1});L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});L("MMMM",0,0,function(e){return this.localeData().months(this,e)});I("M",ne,tt);I("MM",ne,ge);I("MMM",function(e,t){return t.monthsShortRegex(e)});I("MMMM",function(e,t){return t.monthsRegex(e)});X(["M","MM"],function(e,t){t[Ce]=$(e)-1});X(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[Ce]=s:H(n).invalidMonth=e});var ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Zn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ys=dt,gs=dt;function ps(e,t){return e?Se(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||qn).test(t)?"format":"standalone"][e.month()]:Se(this._months)?this._months:this._months.standalone}function ws(e,t){return e?Se(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[qn.test(t)?"format":"standalone"][e.month()]:Se(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function _s(e,t,n){var r,s,u,g=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)u=De([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(u,"").toLocaleLowerCase();return n?t==="MMM"?(s=ie.call(this._shortMonthsParse,g),s!==-1?s:null):(s=ie.call(this._longMonthsParse,g),s!==-1?s:null):t==="MMM"?(s=ie.call(this._shortMonthsParse,g),s!==-1?s:(s=ie.call(this._longMonthsParse,g),s!==-1?s:null)):(s=ie.call(this._longMonthsParse,g),s!==-1?s:(s=ie.call(this._shortMonthsParse,g),s!==-1?s:null))}function vs(e,t,n){var r,s,u;if(this._monthsParseExact)return _s.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(s=De([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(u="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(u.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e)||n&&t==="MMM"&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Jn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=$(t);else if(t=e.localeData().monthsParse(t),!Ue(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,ln(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Qn(e){return e!=null?(Jn(this,e),T.updateOffset(this,!0),this):ot(this,"Month")}function bs(){return ln(this.year(),this.month())}function Ss(e){return this._monthsParseExact?(q(this,"_monthsRegex")||Kn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(q(this,"_monthsShortRegex")||(this._monthsShortRegex=ys),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ks(e){return this._monthsParseExact?(q(this,"_monthsRegex")||Kn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(q(this,"_monthsRegex")||(this._monthsRegex=gs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Kn(){function e(A,U){return U.length-A.length}var t=[],n=[],r=[],s,u,g,O;for(s=0;s<12;s++)u=De([2e3,s]),g=Ae(this.monthsShort(u,"")),O=Ae(this.months(u,"")),t.push(g),n.push(O),r.push(O),r.push(g);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ms(e,t,n,r,s,u,g){var O;return e<100&&e>=0?(O=new Date(e+400,t,n,r,s,u,g),isFinite(O.getFullYear())&&O.setFullYear(e)):O=new Date(e,t,n,r,s,u,g),O}function ut(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,n){var r=7+t-n,s=(7+ut(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Xn(e,t,n,r,s){var u=(7+n-r)%7,g=bt(e,r,s),O=1+7*(t-1)+u+g,A,U;return O<=0?(A=e-1,U=at(A)+O):O>at(e)?(A=e+1,U=O-at(e)):(A=e,U=O),{year:A,dayOfYear:U}}function lt(e,t,n){var r=bt(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,u,g;return s<1?(g=e.year()-1,u=s+Fe(g,t,n)):s>Fe(e.year(),t,n)?(u=s-Fe(e.year(),t,n),g=e.year()+1):(g=e.year(),u=s),{week:u,year:g}}function Fe(e,t,n){var r=bt(e,t,n),s=bt(e+1,t,n);return(at(e)-r+s)/7}L("w",["ww",2],"wo","week");L("W",["WW",2],"Wo","isoWeek");I("w",ne,tt);I("ww",ne,ge);I("W",ne,tt);I("WW",ne,ge);mt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=$(e)});function xs(e){return lt(e,this._week.dow,this._week.doy).week}var Ys={dow:0,doy:6};function Ds(){return this._week.dow}function Es(){return this._week.doy}function Os(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ns(e){var t=lt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}L("d",0,"do","day");L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});L("e",0,0,"weekday");L("E",0,0,"isoWeekday");I("d",ne);I("e",ne);I("E",ne);I("dd",function(e,t){return t.weekdaysMinRegex(e)});I("ddd",function(e,t){return t.weekdaysShortRegex(e)});I("dddd",function(e,t){return t.weekdaysRegex(e)});mt(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:H(n).invalidWeekday=e});mt(["d","e","E"],function(e,t,n,r){t[r]=$(e)});function Ts(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Cs(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fn(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Is="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),As="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fs=dt,Us=dt,Ls=dt;function Ps(e,t){var n=Se(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fn(n,this._week.dow):e?n[e.day()]:n}function Rs(e){return e===!0?fn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ws(e){return e===!0?fn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function js(e,t,n){var r,s,u,g=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)u=De([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(u,"").toLocaleLowerCase();return n?t==="dddd"?(s=ie.call(this._weekdaysParse,g),s!==-1?s:null):t==="ddd"?(s=ie.call(this._shortWeekdaysParse,g),s!==-1?s:null):(s=ie.call(this._minWeekdaysParse,g),s!==-1?s:null):t==="dddd"?(s=ie.call(this._weekdaysParse,g),s!==-1||(s=ie.call(this._shortWeekdaysParse,g),s!==-1)?s:(s=ie.call(this._minWeekdaysParse,g),s!==-1?s:null)):t==="ddd"?(s=ie.call(this._shortWeekdaysParse,g),s!==-1||(s=ie.call(this._weekdaysParse,g),s!==-1)?s:(s=ie.call(this._minWeekdaysParse,g),s!==-1?s:null)):(s=ie.call(this._minWeekdaysParse,g),s!==-1||(s=ie.call(this._weekdaysParse,g),s!==-1)?s:(s=ie.call(this._shortWeekdaysParse,g),s!==-1?s:null))}function Hs(e,t,n){var r,s,u;if(this._weekdaysParseExact)return js.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(s=De([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(u="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(u.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e)||n&&t==="dd"&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function Bs(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");return e!=null?(e=Ts(e,this.localeData()),this.add(e-t,"d")):t}function Vs(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Gs(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Cs(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function $s(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(q(this,"_weekdaysRegex")||(this._weekdaysRegex=Fs),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zs(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(q(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Us),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zs(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(q(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ls),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cn(){function e(j,ee){return ee.length-j.length}var t=[],n=[],r=[],s=[],u,g,O,A,U;for(u=0;u<7;u++)g=De([2e3,1]).day(u),O=Ae(this.weekdaysMin(g,"")),A=Ae(this.weekdaysShort(g,"")),U=Ae(this.weekdays(g,"")),t.push(O),n.push(A),r.push(U),s.push(O),s.push(A),s.push(U);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function hn(){return this.hours()%12||12}function qs(){return this.hours()||24}L("H",["HH",2],0,"hour");L("h",["hh",2],0,hn);L("k",["kk",2],0,qs);L("hmm",0,0,function(){return""+hn.apply(this)+Ye(this.minutes(),2)});L("hmmss",0,0,function(){return""+hn.apply(this)+Ye(this.minutes(),2)+Ye(this.seconds(),2)});L("Hmm",0,0,function(){return""+this.hours()+Ye(this.minutes(),2)});L("Hmmss",0,0,function(){return""+this.hours()+Ye(this.minutes(),2)+Ye(this.seconds(),2)});function tr(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}tr("a",!0);tr("A",!1);function nr(e,t){return t._meridiemParse}I("a",nr);I("A",nr);I("H",ne,un);I("h",ne,tt);I("k",ne,tt);I("HH",ne,ge);I("hh",ne,ge);I("kk",ne,ge);I("hmm",Vn);I("hmmss",Gn);I("Hmm",Vn);I("Hmmss",Gn);X(["H","HH"],oe);X(["k","kk"],function(e,t,n){var r=$(e);t[oe]=r===24?0:r});X(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});X(["h","hh"],function(e,t,n){t[oe]=$(e),H(n).bigHour=!0});X("hmm",function(e,t,n){var r=e.length-2;t[oe]=$(e.substr(0,r)),t[be]=$(e.substr(r)),H(n).bigHour=!0});X("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[oe]=$(e.substr(0,r)),t[be]=$(e.substr(r,2)),t[Ie]=$(e.substr(s)),H(n).bigHour=!0});X("Hmm",function(e,t,n){var r=e.length-2;t[oe]=$(e.substr(0,r)),t[be]=$(e.substr(r))});X("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[oe]=$(e.substr(0,r)),t[be]=$(e.substr(r,2)),t[Ie]=$(e.substr(s))});function Js(e){return(e+"").toLowerCase().charAt(0)==="p"}var Qs=/[ap]\.?m?\.?/i,Ks=nt("Hours",!0);function Xs(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rr={calendar:jr,longDateFormat:Gr,invalidDate:zr,ordinal:qr,dayOfMonthOrdinalParse:Jr,relativeTime:Kr,months:ms,monthsShort:Zn,week:Ys,weekdays:Is,weekdaysMin:As,weekdaysShort:er,meridiemParse:Qs},re={},rt={},ft;function ei(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Nn(e){return e&&e.toLowerCase().replace("_","-")}function ti(e){for(var t=0,n,r,s,u;t<e.length;){for(u=Nn(e[t]).split("-"),n=u.length,r=Nn(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=Ct(u.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&ei(u,r)>=n-1)break;n--}t++}return ft}function ni(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ct(e){var t=null,n;if(re[e]===void 0&&typeof module<"u"&&module&&module.exports&&ni(e))try{t=ft._abbr,n=it,n("./locale/"+e),He(t)}catch{re[e]=null}return re[e]}function He(e,t){var n;return e&&(me(t)?n=Le(e):n=dn(e,t),n?ft=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ft._abbr}function dn(e,t){if(t!==null){var n,r=rr;if(t.abbr=e,re[e]!=null)Wn("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=re[e]._config;else if(t.parentLocale!=null)if(re[t.parentLocale]!=null)r=re[t.parentLocale]._config;else if(n=Ct(t.parentLocale),n!=null)r=n._config;else return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;return re[e]=new nn(zt(r,t)),rt[e]&&rt[e].forEach(function(s){dn(s.name,s.config)}),He(e),re[e]}else return delete re[e],null}function ri(e,t){if(t!=null){var n,r,s=rr;re[e]!=null&&re[e].parentLocale!=null?re[e].set(zt(re[e]._config,t)):(r=Ct(e),r!=null&&(s=r._config),t=zt(s,t),r==null&&(t.abbr=e),n=new nn(t),n.parentLocale=re[e],re[e]=n),He(e)}else re[e]!=null&&(re[e].parentLocale!=null?(re[e]=re[e].parentLocale,e===He()&&He(e)):re[e]!=null&&delete re[e]);return re[e]}function Le(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ft;if(!Se(e)){if(t=Ct(e),t)return t;e=[e]}return ti(e)}function si(){return Zt(re)}function mn(e){var t,n=e._a;return n&&H(e).overflow===-2&&(t=n[Ce]<0||n[Ce]>11?Ce:n[xe]<1||n[xe]>ln(n[fe],n[Ce])?xe:n[oe]<0||n[oe]>24||n[oe]===24&&(n[be]!==0||n[Ie]!==0||n[Ve]!==0)?oe:n[be]<0||n[be]>59?be:n[Ie]<0||n[Ie]>59?Ie:n[Ve]<0||n[Ve]>999?Ve:-1,H(e)._overflowDayOfYear&&(t<fe||t>xe)&&(t=xe),H(e)._overflowWeeks&&t===-1&&(t=us),H(e)._overflowWeekday&&t===-1&&(t=ls),H(e).overflow=t),e}var ii=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ai=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oi=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],jt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ui=/^\/?Date\((-?\d+)/i,li=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sr(e){var t,n,r=e._i,s=ii.exec(r)||ai.exec(r),u,g,O,A,U=gt.length,j=jt.length;if(s){for(H(e).iso=!0,t=0,n=U;t<n;t++)if(gt[t][1].exec(s[1])){g=gt[t][0],u=gt[t][2]!==!1;break}if(g==null){e._isValid=!1;return}if(s[3]){for(t=0,n=j;t<n;t++)if(jt[t][1].exec(s[3])){O=(s[2]||" ")+jt[t][0];break}if(O==null){e._isValid=!1;return}}if(!u&&O!=null){e._isValid=!1;return}if(s[4])if(oi.exec(s[4]))A="Z";else{e._isValid=!1;return}e._f=g+(O||"")+(A||""),gn(e)}else e._isValid=!1}function ci(e,t,n,r,s,u){var g=[hi(e),Zn.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return u&&g.push(parseInt(u,10)),g}function hi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function di(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mi(e,t,n){if(e){var r=er.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return H(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function yi(e,t,n){if(e)return fi[e];if(t)return 0;var r=parseInt(n,10),s=r%100,u=(r-s)/100;return u*60+s}function ir(e){var t=li.exec(di(e._i)),n;if(t){if(n=ci(t[4],t[3],t[2],t[5],t[6],t[7]),!mi(t[1],n,e))return;e._a=n,e._tzm=yi(t[8],t[9],t[10]),e._d=ut.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),H(e).rfc2822=!0}else e._isValid=!1}function gi(e){var t=ui.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(sr(e),e._isValid===!1)delete e._isValid;else return;if(ir(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:T.createFromInputFallback(e)}T.createFromInputFallback=we("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function qe(e,t,n){return e??t??n}function pi(e){var t=new Date(T.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function yn(e){var t,n,r=[],s,u,g;if(!e._d){for(s=pi(e),e._w&&e._a[xe]==null&&e._a[Ce]==null&&wi(e),e._dayOfYear!=null&&(g=qe(e._a[fe],s[fe]),(e._dayOfYear>at(g)||e._dayOfYear===0)&&(H(e)._overflowDayOfYear=!0),n=ut(g,0,e._dayOfYear),e._a[Ce]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[oe]===24&&e._a[be]===0&&e._a[Ie]===0&&e._a[Ve]===0&&(e._nextDay=!0,e._a[oe]=0),e._d=(e._useUTC?ut:Ms).apply(null,r),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(H(e).weekdayMismatch=!0)}}function wi(e){var t,n,r,s,u,g,O,A,U;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(u=1,g=4,n=qe(t.GG,e._a[fe],lt(te(),1,4).year),r=qe(t.W,1),s=qe(t.E,1),(s<1||s>7)&&(A=!0)):(u=e._locale._week.dow,g=e._locale._week.doy,U=lt(te(),u,g),n=qe(t.gg,e._a[fe],U.year),r=qe(t.w,U.week),t.d!=null?(s=t.d,(s<0||s>6)&&(A=!0)):t.e!=null?(s=t.e+u,(t.e<0||t.e>6)&&(A=!0)):s=u),r<1||r>Fe(n,u,g)?H(e)._overflowWeeks=!0:A!=null?H(e)._overflowWeekday=!0:(O=Xn(n,r,s,u,g),e._a[fe]=O.year,e._dayOfYear=O.dayOfYear)}T.ISO_8601=function(){};T.RFC_2822=function(){};function gn(e){if(e._f===T.ISO_8601){sr(e);return}if(e._f===T.RFC_2822){ir(e);return}e._a=[],H(e).empty=!0;var t=""+e._i,n,r,s,u,g,O=t.length,A=0,U,j;for(s=jn(e._f,e._locale).match(rn)||[],j=s.length,n=0;n<j;n++)u=s[n],r=(t.match(is(u,e))||[])[0],r&&(g=t.substr(0,t.indexOf(r)),g.length>0&&H(e).unusedInput.push(g),t=t.slice(t.indexOf(r)+r.length),A+=r.length),Qe[u]?(r?H(e).empty=!1:H(e).unusedTokens.push(u),os(u,r,e)):e._strict&&!r&&H(e).unusedTokens.push(u);H(e).charsLeftOver=O-A,t.length>0&&H(e).unusedInput.push(t),e._a[oe]<=12&&H(e).bigHour===!0&&e._a[oe]>0&&(H(e).bigHour=void 0),H(e).parsedDateParts=e._a.slice(0),H(e).meridiem=e._meridiem,e._a[oe]=_i(e._locale,e._a[oe],e._meridiem),U=H(e).era,U!==null&&(e._a[fe]=e._locale.erasConvertYear(U,e._a[fe])),yn(e),mn(e)}function _i(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function vi(e){var t,n,r,s,u,g,O=!1,A=e._f.length;if(A===0){H(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<A;s++)u=0,g=!1,t=tn({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],gn(t),en(t)&&(g=!0),u+=H(t).charsLeftOver,u+=H(t).unusedTokens.length*10,H(t).score=u,O?u<r&&(r=u,n=t):(r==null||u<r||g)&&(r=u,n=t,g&&(O=!0));We(e,n||t)}function bi(e){if(!e._d){var t=sn(e._i),n=t.day===void 0?t.date:t.day;e._a=Pn([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),yn(e)}}function Si(e){var t=new ht(mn(ar(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ar(e){var t=e._i,n=e._f;return e._locale=e._locale||Le(e._l),t===null||n===void 0&&t===""?xt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ke(t)?new ht(mn(t)):(ct(t)?e._d=t:Se(n)?vi(e):n?gn(e):ki(e),en(e)||(e._d=null),e))}function ki(e){var t=e._i;me(t)?e._d=new Date(T.now()):ct(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gi(e):Se(t)?(e._a=Pn(t.slice(0),function(n){return parseInt(n,10)}),yn(e)):Ge(t)?bi(e):Ue(t)?e._d=new Date(t):T.createFromInputFallback(e)}function or(e,t,n,r,s){var u={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ge(e)&&Xt(e)||Se(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,Si(u)}function te(e,t,n,r){return or(e,t,n,r,!1)}var Mi=we("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=te.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:xt()}),xi=we("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=te.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:xt()});function ur(e,t){var n,r;if(t.length===1&&Se(t[0])&&(t=t[0]),!t.length)return te();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Yi(){var e=[].slice.call(arguments,0);return ur("isBefore",e)}function Di(){var e=[].slice.call(arguments,0);return ur("isAfter",e)}var Ei=function(){return Date.now?Date.now():+new Date},st=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Oi(e){var t,n=!1,r,s=st.length;for(t in e)if(q(e,t)&&!(ie.call(st,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[st[r]]){if(n)return!1;parseFloat(e[st[r]])!==$(e[st[r]])&&(n=!0)}return!0}function Ni(){return this._isValid}function Ti(){return Me(NaN)}function It(e){var t=sn(e),n=t.year||0,r=t.quarter||0,s=t.month||0,u=t.week||t.isoWeek||0,g=t.day||0,O=t.hour||0,A=t.minute||0,U=t.second||0,j=t.millisecond||0;this._isValid=Oi(t),this._milliseconds=+j+U*1e3+A*6e4+O*1e3*60*60,this._days=+g+u*7,this._months=+s+r*3+n*12,this._data={},this._locale=Le(),this._bubble()}function wt(e){return e instanceof It}function Jt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ci(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),u=0,g;for(g=0;g<r;g++)$(e[g])!==$(t[g])&&u++;return u+s}function lr(e,t){L(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Ye(~~(n/60),2)+t+Ye(~~n%60,2)})}lr("Z",":");lr("ZZ","");I("Z",Nt);I("ZZ",Nt);X(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=pn(Nt,e)});var Ii=/([\+\-]|\d\d)/gi;function pn(e,t){var n=(t||"").match(e),r,s,u;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(Ii)||["-",0,0],u=+(s[1]*60)+$(s[2]),u===0?0:s[0]==="+"?u:-u)}function wn(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ke(e)||ct(e)?e.valueOf():te(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),T.updateOffset(n,!1),n):te(e).local()}function Qt(e){return-Math.round(e._d.getTimezoneOffset())}T.updateOffset=function(){};function Ai(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=pn(Nt,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=Qt(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?hr(this,Me(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,T.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Qt(this)}function Fi(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ui(e){return this.utcOffset(0,e)}function Li(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qt(this),"m")),this}function Pi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=pn(rs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ri(e){return this.isValid()?(e=e?te(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Wi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ji(){if(!me(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tn(e,this),e=ar(e),e._a?(t=e._isUTC?De(e._a):te(e._a),this._isDSTShifted=this.isValid()&&Ci(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hi(){return this.isValid()?!this._isUTC:!1}function Bi(){return this.isValid()?this._isUTC:!1}function fr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Vi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Me(e,t){var n=e,r=null,s,u,g;return wt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ue(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Vi.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:$(r[xe])*s,h:$(r[oe])*s,m:$(r[be])*s,s:$(r[Ie])*s,ms:$(Jt(r[Ve]*1e3))*s}):(r=Gi.exec(e))?(s=r[1]==="-"?-1:1,n={y:Be(r[2],s),M:Be(r[3],s),w:Be(r[4],s),d:Be(r[5],s),h:Be(r[6],s),m:Be(r[7],s),s:Be(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(g=$i(te(n.from),te(n.to)),n={},n.ms=g.milliseconds,n.M=g.months),u=new It(n),wt(e)&&q(e,"_locale")&&(u._locale=e._locale),wt(e)&&q(e,"_isValid")&&(u._isValid=e._isValid),u}Me.fn=It.prototype;Me.invalid=Ti;function Be(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Tn(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $i(e,t){var n;return e.isValid()&&t.isValid()?(t=wn(t,e),e.isBefore(t)?n=Tn(e,t):(n=Tn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function cr(e,t){return function(n,r){var s,u;return r!==null&&!isNaN(+r)&&(Wn(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=n,n=r,r=u),s=Me(n,r),hr(this,s,e),this}}function hr(e,t,n,r){var s=t._milliseconds,u=Jt(t._days),g=Jt(t._months);e.isValid()&&(r=r??!0,g&&Jn(e,ot(e,"Month")+g*n),u&&zn(e,"Date",ot(e,"Date")+u*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&T.updateOffset(e,u||g))}var zi=cr(1,"add"),Zi=cr(-1,"subtract");function dr(e){return typeof e=="string"||e instanceof String}function qi(e){return ke(e)||ct(e)||dr(e)||Ue(e)||Qi(e)||Ji(e)||e===null||e===void 0}function Ji(e){var t=Ge(e)&&!Xt(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,u,g=r.length;for(s=0;s<g;s+=1)u=r[s],n=n||q(e,u);return t&&n}function Qi(e){var t=Se(e),n=!1;return t&&(n=e.filter(function(r){return!Ue(r)&&dr(e)}).length===0),t&&n}function Ki(e){var t=Ge(e)&&!Xt(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,u;for(s=0;s<r.length;s+=1)u=r[s],n=n||q(e,u);return t&&n}function Xi(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function ea(e,t){arguments.length===1&&(arguments[0]?qi(arguments[0])?(e=arguments[0],t=void 0):Ki(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||te(),r=wn(n,this).startOf("day"),s=T.calendarFormat(this,r)||"sameElse",u=t&&(Ee(t[s])?t[s].call(this,n):t[s]);return this.format(u||this.localeData().calendar(s,this,te(n)))}function ta(){return new ht(this)}function na(e,t){var n=ke(e)?e:te(e);return this.isValid()&&n.isValid()?(t=_e(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ra(e,t){var n=ke(e)?e:te(e);return this.isValid()&&n.isValid()?(t=_e(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function sa(e,t,n,r){var s=ke(e)?e:te(e),u=ke(t)?t:te(t);return this.isValid()&&s.isValid()&&u.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(u,n):!this.isAfter(u,n))):!1}function ia(e,t){var n=ke(e)?e:te(e),r;return this.isValid()&&n.isValid()?(t=_e(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function aa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function oa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ua(e,t,n){var r,s,u;if(!this.isValid())return NaN;if(r=wn(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=_e(t),t){case"year":u=_t(this,r)/12;break;case"month":u=_t(this,r);break;case"quarter":u=_t(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-s)/864e5;break;case"week":u=(this-r-s)/6048e5;break;default:u=this-r}return n?u:pe(u)}function _t(e,t){if(e.date()<t.date())return-_t(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,u;return t-r<0?(s=e.clone().add(n-1,"months"),u=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),u=(t-r)/(s-r)),-(n+u)||0}T.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";T.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fa(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?pt(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ee(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pt(n,"Z")):pt(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",u=t+'[")]',this.format(n+r+s+u)}function ha(e){e||(e=this.isUtc()?T.defaultFormatUtc:T.defaultFormat);var t=pt(this,e);return this.localeData().postformat(t)}function da(e,t){return this.isValid()&&(ke(e)&&e.isValid()||te(e).isValid())?Me({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ma(e){return this.from(te(),e)}function ya(e,t){return this.isValid()&&(ke(e)&&e.isValid()||te(e).isValid())?Me({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ga(e){return this.to(te(),e)}function mr(e){var t;return e===void 0?this._locale._abbr:(t=Le(e),t!=null&&(this._locale=t),this)}var yr=we("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function gr(){return this._locale}var St=1e3,Ke=60*St,kt=60*Ke,pr=(365*400+97)*24*kt;function Xe(e,t){return(e%t+t)%t}function wr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pr:new Date(e,t,n).valueOf()}function _r(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pr:Date.UTC(e,t,n)}function pa(e){var t,n;if(e=_e(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_r:wr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xe(t+(this._isUTC?0:this.utcOffset()*Ke),kt);break;case"minute":t=this._d.valueOf(),t-=Xe(t,Ke);break;case"second":t=this._d.valueOf(),t-=Xe(t,St);break}return this._d.setTime(t),T.updateOffset(this,!0),this}function wa(e){var t,n;if(e=_e(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_r:wr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=kt-Xe(t+(this._isUTC?0:this.utcOffset()*Ke),kt)-1;break;case"minute":t=this._d.valueOf(),t+=Ke-Xe(t,Ke)-1;break;case"second":t=this._d.valueOf(),t+=St-Xe(t,St)-1;break}return this._d.setTime(t),T.updateOffset(this,!0),this}function _a(){return this._d.valueOf()-(this._offset||0)*6e4}function va(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function Sa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ka(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ma(){return this.isValid()?this.toISOString():null}function xa(){return en(this)}function Ya(){return We({},H(this))}function Da(){return H(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}L("N",0,0,"eraAbbr");L("NN",0,0,"eraAbbr");L("NNN",0,0,"eraAbbr");L("NNNN",0,0,"eraName");L("NNNNN",0,0,"eraNarrow");L("y",["y",1],"yo","eraYear");L("y",["yy",2],0,"eraYear");L("y",["yyy",3],0,"eraYear");L("y",["yyyy",4],0,"eraYear");I("N",_n);I("NN",_n);I("NNN",_n);I("NNNN",Ra);I("NNNNN",Wa);X(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?H(n).era=s:H(n).invalidEra=e});I("y",et);I("yy",et);I("yyy",et);I("yyyy",et);I("yo",ja);X(["y","yy","yyy","yyyy"],fe);X(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[fe]=n._locale.eraYearOrdinalParse(e,s):t[fe]=parseInt(e,10)});function Oa(e,t){var n,r,s,u=this._eras||Le("en")._eras;for(n=0,r=u.length;n<r;++n){switch(typeof u[n].since){case"string":s=T(u[n].since).startOf("day"),u[n].since=s.valueOf();break}switch(typeof u[n].until){case"undefined":u[n].until=1/0;break;case"string":s=T(u[n].until).startOf("day").valueOf(),u[n].until=s.valueOf();break}}return u}function Na(e,t,n){var r,s,u=this.eras(),g,O,A;for(e=e.toUpperCase(),r=0,s=u.length;r<s;++r)if(g=u[r].name.toUpperCase(),O=u[r].abbr.toUpperCase(),A=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(O===e)return u[r];break;case"NNNN":if(g===e)return u[r];break;case"NNNNN":if(A===e)return u[r];break}else if([g,O,A].indexOf(e)>=0)return u[r]}function Ta(e,t){var n=e.since<=e.until?1:-1;return t===void 0?T(e.since).year():T(e.since).year()+(t-e.offset)*n}function Ca(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Ia(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Fa(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-T(s[e].since).year())*n+s[e].offset;return this.year()}function Ua(e){return q(this,"_erasNameRegex")||vn.call(this),e?this._erasNameRegex:this._erasRegex}function La(e){return q(this,"_erasAbbrRegex")||vn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pa(e){return q(this,"_erasNarrowRegex")||vn.call(this),e?this._erasNarrowRegex:this._erasRegex}function _n(e,t){return t.erasAbbrRegex(e)}function Ra(e,t){return t.erasNameRegex(e)}function Wa(e,t){return t.erasNarrowRegex(e)}function ja(e,t){return t._eraYearOrdinalRegex||et}function vn(){var e=[],t=[],n=[],r=[],s,u,g,O,A,U=this.eras();for(s=0,u=U.length;s<u;++s)g=Ae(U[s].name),O=Ae(U[s].abbr),A=Ae(U[s].narrow),t.push(g),e.push(O),n.push(A),r.push(g),r.push(O),r.push(A);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}L(0,["gg",2],0,function(){return this.weekYear()%100});L(0,["GG",2],0,function(){return this.isoWeekYear()%100});function At(e,t){L(0,[e,e.length],0,t)}At("gggg","weekYear");At("ggggg","weekYear");At("GGGG","isoWeekYear");At("GGGGG","isoWeekYear");I("G",Ot);I("g",Ot);I("GG",ne,ge);I("gg",ne,ge);I("GGGG",on,an);I("gggg",on,an);I("GGGGG",Et,Yt);I("ggggg",Et,Yt);mt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=$(e)});mt(["gg","GG"],function(e,t,n,r){t[r]=T.parseTwoDigitYear(e)});function Ha(e){return vr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ba(e){return vr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Va(){return Fe(this.year(),1,4)}function Ga(){return Fe(this.isoWeekYear(),1,4)}function $a(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)}function za(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)}function vr(e,t,n,r,s){var u;return e==null?lt(this,r,s).year:(u=Fe(e,r,s),t>u&&(t=u),Za.call(this,e,t,n,r,s))}function Za(e,t,n,r,s){var u=Xn(e,t,n,r,s),g=ut(u.year,0,u.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}L("Q",0,"Qo","quarter");I("Q",Hn);X("Q",function(e,t){t[Ce]=($(e)-1)*3});function qa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}L("D",["DD",2],"Do","date");I("D",ne,tt);I("DD",ne,ge);I("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});X(["D","DD"],xe);X("Do",function(e,t){t[xe]=$(e.match(ne)[0])});var br=nt("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear");I("DDD",Dt);I("DDDD",Bn);X(["DDD","DDDD"],function(e,t,n){n._dayOfYear=$(e)});function Ja(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}L("m",["mm",2],0,"minute");I("m",ne,un);I("mm",ne,ge);X(["m","mm"],be);var Qa=nt("Minutes",!1);L("s",["ss",2],0,"second");I("s",ne,un);I("ss",ne,ge);X(["s","ss"],Ie);var Ka=nt("Seconds",!1);L("S",0,0,function(){return~~(this.millisecond()/100)});L(0,["SS",2],0,function(){return~~(this.millisecond()/10)});L(0,["SSS",3],0,"millisecond");L(0,["SSSS",4],0,function(){return this.millisecond()*10});L(0,["SSSSS",5],0,function(){return this.millisecond()*100});L(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});L(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});L(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});L(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});I("S",Dt,Hn);I("SS",Dt,ge);I("SSS",Dt,Bn);var je,Sr;for(je="SSSS";je.length<=9;je+="S")I(je,et);function Xa(e,t){t[Ve]=$(("0."+e)*1e3)}for(je="S";je.length<=9;je+="S")X(je,Xa);Sr=nt("Milliseconds",!1);L("z",0,0,"zoneAbbr");L("zz",0,0,"zoneName");function eo(){return this._isUTC?"UTC":""}function to(){return this._isUTC?"Coordinated Universal Time":""}var D=ht.prototype;D.add=zi;D.calendar=ea;D.clone=ta;D.diff=ua;D.endOf=wa;D.format=ha;D.from=da;D.fromNow=ma;D.to=ya;D.toNow=ga;D.get=cs;D.invalidAt=Da;D.isAfter=na;D.isBefore=ra;D.isBetween=sa;D.isSame=ia;D.isSameOrAfter=aa;D.isSameOrBefore=oa;D.isValid=xa;D.lang=yr;D.locale=mr;D.localeData=gr;D.max=xi;D.min=Mi;D.parsingFlags=Ya;D.set=hs;D.startOf=pa;D.subtract=Zi;D.toArray=Sa;D.toObject=ka;D.toDate=ba;D.toISOString=fa;D.inspect=ca;typeof Symbol<"u"&&Symbol.for!=null&&(D[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});D.toJSON=Ma;D.toString=la;D.unix=va;D.valueOf=_a;D.creationData=Ea;D.eraName=Ca;D.eraNarrow=Ia;D.eraAbbr=Aa;D.eraYear=Fa;D.year=$n;D.isLeapYear=fs;D.weekYear=Ha;D.isoWeekYear=Ba;D.quarter=D.quarters=qa;D.month=Qn;D.daysInMonth=bs;D.week=D.weeks=Os;D.isoWeek=D.isoWeeks=Ns;D.weeksInYear=$a;D.weeksInWeekYear=za;D.isoWeeksInYear=Va;D.isoWeeksInISOWeekYear=Ga;D.date=br;D.day=D.days=Bs;D.weekday=Vs;D.isoWeekday=Gs;D.dayOfYear=Ja;D.hour=D.hours=Ks;D.minute=D.minutes=Qa;D.second=D.seconds=Ka;D.millisecond=D.milliseconds=Sr;D.utcOffset=Ai;D.utc=Ui;D.local=Li;D.parseZone=Pi;D.hasAlignedHourOffset=Ri;D.isDST=Wi;D.isLocal=Hi;D.isUtcOffset=Bi;D.isUtc=fr;D.isUTC=fr;D.zoneAbbr=eo;D.zoneName=to;D.dates=we("dates accessor is deprecated. Use date instead.",br);D.months=we("months accessor is deprecated. Use month instead",Qn);D.years=we("years accessor is deprecated. Use year instead",$n);D.zone=we("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fi);D.isDSTShifted=we("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ji);function no(e){return te(e*1e3)}function ro(){return te.apply(null,arguments).parseZone()}function kr(e){return e}var J=nn.prototype;J.calendar=Hr;J.longDateFormat=$r;J.invalidDate=Zr;J.ordinal=Qr;J.preparse=kr;J.postformat=kr;J.relativeTime=Xr;J.pastFuture=es;J.set=Wr;J.eras=Oa;J.erasParse=Na;J.erasConvertYear=Ta;J.erasAbbrRegex=La;J.erasNameRegex=Ua;J.erasNarrowRegex=Pa;J.months=ps;J.monthsShort=ws;J.monthsParse=vs;J.monthsRegex=ks;J.monthsShortRegex=Ss;J.week=xs;J.firstDayOfYear=Es;J.firstDayOfWeek=Ds;J.weekdays=Ps;J.weekdaysMin=Ws;J.weekdaysShort=Rs;J.weekdaysParse=Hs;J.weekdaysRegex=$s;J.weekdaysShortRegex=zs;J.weekdaysMinRegex=Zs;J.isPM=Js;J.meridiem=Xs;function Mt(e,t,n,r){var s=Le(),u=De().set(r,t);return s[n](u,e)}function Mr(e,t,n){if(Ue(e)&&(t=e,e=void 0),e=e||"",t!=null)return Mt(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Mt(e,r,n,"month");return s}function bn(e,t,n,r){typeof e=="boolean"?(Ue(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ue(t)&&(n=t,t=void 0),t=t||"");var s=Le(),u=e?s._week.dow:0,g,O=[];if(n!=null)return Mt(t,(n+u)%7,r,"day");for(g=0;g<7;g++)O[g]=Mt(t,(g+u)%7,r,"day");return O}function so(e,t){return Mr(e,t,"months")}function io(e,t){return Mr(e,t,"monthsShort")}function ao(e,t,n){return bn(e,t,n,"weekdays")}function oo(e,t,n){return bn(e,t,n,"weekdaysShort")}function uo(e,t,n){return bn(e,t,n,"weekdaysMin")}He("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=$(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});T.lang=we("moment.lang is deprecated. Use moment.locale instead.",He);T.langData=we("moment.langData is deprecated. Use moment.localeData instead.",Le);var Ne=Math.abs;function lo(){var e=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),e.milliseconds=Ne(e.milliseconds),e.seconds=Ne(e.seconds),e.minutes=Ne(e.minutes),e.hours=Ne(e.hours),e.months=Ne(e.months),e.years=Ne(e.years),this}function xr(e,t,n,r){var s=Me(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function fo(e,t){return xr(this,e,t,1)}function co(e,t){return xr(this,e,t,-1)}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function ho(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,u,g,O,A;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Cn(Kt(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=pe(e/1e3),r.seconds=s%60,u=pe(s/60),r.minutes=u%60,g=pe(u/60),r.hours=g%24,t+=pe(g/24),A=pe(Yr(t)),n+=A,t-=Cn(Kt(A)),O=pe(n/12),n%=12,r.days=t,r.months=n,r.years=O,this}function Yr(e){return e*4800/146097}function Kt(e){return e*146097/4800}function mo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=_e(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Yr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Kt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Pe(e){return function(){return this.as(e)}}var Dr=Pe("ms"),yo=Pe("s"),go=Pe("m"),po=Pe("h"),wo=Pe("d"),_o=Pe("w"),vo=Pe("M"),bo=Pe("Q"),So=Pe("y"),ko=Dr;function Mo(){return Me(this)}function xo(e){return e=_e(e),this.isValid()?this[e+"s"]():NaN}function $e(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yo=$e("milliseconds"),Do=$e("seconds"),Eo=$e("minutes"),Oo=$e("hours"),No=$e("days"),To=$e("months"),Co=$e("years");function Io(){return pe(this.days()/7)}var Te=Math.round,Je={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ao(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function Fo(e,t,n,r){var s=Me(e).abs(),u=Te(s.as("s")),g=Te(s.as("m")),O=Te(s.as("h")),A=Te(s.as("d")),U=Te(s.as("M")),j=Te(s.as("w")),ee=Te(s.as("y")),k=u<=n.ss&&["s",u]||u<n.s&&["ss",u]||g<=1&&["m"]||g<n.m&&["mm",g]||O<=1&&["h"]||O<n.h&&["hh",O]||A<=1&&["d"]||A<n.d&&["dd",A];return n.w!=null&&(k=k||j<=1&&["w"]||j<n.w&&["ww",j]),k=k||U<=1&&["M"]||U<n.M&&["MM",U]||ee<=1&&["y"]||["yy",ee],k[2]=t,k[3]=+e>0,k[4]=r,Ao.apply(null,k)}function Uo(e){return e===void 0?Te:typeof e=="function"?(Te=e,!0):!1}function Lo(e,t){return Je[e]===void 0?!1:t===void 0?Je[e]:(Je[e]=t,e==="s"&&(Je.ss=t-1),!0)}function Po(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Je,s,u;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Je,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),u=Fo(this,!n,r,s),n&&(u=s.pastFuture(+this,u)),s.postformat(u)}var Ht=Math.abs;function Ze(e){return(e>0)-(e<0)||+e}function Ft(){if(!this.isValid())return this.localeData().invalidDate();var e=Ht(this._milliseconds)/1e3,t=Ht(this._days),n=Ht(this._months),r,s,u,g,O=this.asSeconds(),A,U,j,ee;return O?(r=pe(e/60),s=pe(r/60),e%=60,r%=60,u=pe(n/12),n%=12,g=e?e.toFixed(3).replace(/\.?0+$/,""):"",A=O<0?"-":"",U=Ze(this._months)!==Ze(O)?"-":"",j=Ze(this._days)!==Ze(O)?"-":"",ee=Ze(this._milliseconds)!==Ze(O)?"-":"",A+"P"+(u?U+u+"Y":"")+(n?U+n+"M":"")+(t?j+t+"D":"")+(s||r||e?"T":"")+(s?ee+s+"H":"")+(r?ee+r+"M":"")+(e?ee+g+"S":"")):"P0D"}var Z=It.prototype;Z.isValid=Ni;Z.abs=lo;Z.add=fo;Z.subtract=co;Z.as=mo;Z.asMilliseconds=Dr;Z.asSeconds=yo;Z.asMinutes=go;Z.asHours=po;Z.asDays=wo;Z.asWeeks=_o;Z.asMonths=vo;Z.asQuarters=bo;Z.asYears=So;Z.valueOf=ko;Z._bubble=ho;Z.clone=Mo;Z.get=xo;Z.milliseconds=Yo;Z.seconds=Do;Z.minutes=Eo;Z.hours=Oo;Z.days=No;Z.weeks=Io;Z.months=To;Z.years=Co;Z.humanize=Po;Z.toISOString=Ft;Z.toString=Ft;Z.toJSON=Ft;Z.locale=mr;Z.localeData=gr;Z.toIsoString=we("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ft);Z.lang=yr;L("X",0,0,"unix");L("x",0,0,"valueOf");I("x",Ot);I("X",ss);X("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});X("x",function(e,t,n){n._d=new Date($(e))});//! moment.js
15
- T.version="2.30.1";Pr(te);T.fn=D;T.min=Yi;T.max=Di;T.now=Ei;T.utc=De;T.unix=no;T.months=so;T.isDate=ct;T.locale=He;T.invalid=xt;T.duration=Me;T.isMoment=ke;T.weekdays=ao;T.parseZone=ro;T.localeData=Le;T.isDuration=wt;T.monthsShort=io;T.weekdaysMin=uo;T.defineLocale=dn;T.updateLocale=ri;T.locales=si;T.weekdaysShort=oo;T.normalizeUnits=_e;T.relativeTimeRounding=Uo;T.relativeTimeThreshold=Lo;T.calendarFormat=Xi;T.prototype=D;T.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ro=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),Wo=Tr(Ro);var Bt,In;function jo(){if(In)return Bt;In=1;/*!
16
- * FileStreamRotator
17
- * Copyright(c) 2012-2017 Holiday Extras.
18
- * Copyright(c) 2017 Roger C.
19
- * MIT Licensed
20
- */var e=Re,t=Re,n=Wo,r=Re,s=Fr(),u={};Bt=u;var g=["daily","test","m","h","custom"],O="YYYYMMDDHHmm",A=function(y,c){if(typeof c=="number"){switch(y){case"m":if(c<0||c>60)return!1;break;case"h":if(c<0||c>24)return!1;break}return{type:y,digit:c}}},U=function(y){switch(y){case"custom":case"daily":return{type:y,digit:void 0};case"test":return{type:y,digit:0}}return!1};u.getFrequency=function(y){var c=y.toLowerCase().match(/^(\d+)([mh])$/);if(c)return A(c[2],parseInt(c[1]));var p=U(y);return p||!1},u.parseFileSize=function(y){if(y&&typeof y=="string"){var c=y.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/);if(c)switch(c[2]){case"k":return c[1]*1024;case"m":return c[1]*1024*1024;case"g":return c[1]*1024*1024*1024}}return null},u.getDate=function(y,c,p){c=c||O;let v=p?n.utc():n().local();if(y&&g.indexOf(y.type)!==-1)switch(y.type){case"m":var S=Math.floor(v.minutes()/y.digit)*y.digit;return v.minutes(S).format(c);case"h":var b=Math.floor(v.hour()/y.digit)*y.digit;return v.hour(b).format(c);case"daily":case"custom":case"test":return v.format(c)}return v.format(c)},u.setAuditLog=function(y,c,p){var v=null;if(y){var S=y.toString().substr(-1),b=y.toString().match(/^(\d+)/);if(Number(b[1])>0){var M=t.dirname(p.replace(/%DATE%.+/,"_filename"));try{if(c){var h=t.resolve(c);v=JSON.parse(e.readFileSync(h,{encoding:"utf-8"}))}else{var h=t.resolve(M+"/.audit.json");v=JSON.parse(e.readFileSync(h,{encoding:"utf-8"}))}}catch(w){if(w.code!=="ENOENT")return null;v={keep:{days:!1,amount:Number(b[1])},auditLog:c||M+"/.audit.json",files:[]}}v.keep={days:S==="d",amount:Number(b[1])}}}return v},u.writeAuditLog=function(y,c){try{Q(y.auditLog),e.writeFileSync(y.auditLog,JSON.stringify(y,null,4))}catch(p){c&&console.error(new Date,"[FileStreamRotator] Failed to store log audit at:",y.auditLog,"Error:",p)}};function j(y,c){if(y.hash===r.createHash(y.hashType).update(y.name+"LOG_FILE"+y.date).digest("hex"))try{e.existsSync(y.name)&&e.unlinkSync(y.name)}catch{c&&console.error(new Date,"[FileStreamRotator] Could not remove old log file: ",y.name)}}function ee(y,c,p){let v=c||"current.log",S=t.dirname(y),b=t.basename(y),M=S+"/"+v;try{e.lstatSync(M).isSymbolicLink()&&(e.unlinkSync(M),e.symlinkSync(b,M))}catch(h){if(h&&h.code=="ENOENT")try{e.symlinkSync(b,M)}catch{p&&console.error(new Date,"[FileStreamRotator] Could not create symlink file: ",M," -> ",b)}}}function k(y,c,p){if(!y)return null;try{let v=e.lstatSync(y);return e.watch(y,function(S,b){if(S=="rename")try{let M=e.lstatSync(y)}catch(M){p(M,y)}})}catch{c&&console.log(new Date,"[FileStreamRotator] Could not add watcher for "+y)}}u.addLogToAudit=function(y,c,p,v){if(c&&c.files){var S=c.files.findIndex(function(o){return o.name===y});if(S!==-1)return c;var b=Date.now();if(c.files.push({date:b,name:y,hash:r.createHash(c.hashType).update(y+"LOG_FILE"+b).digest("hex")}),c.keep.days){var M=n().subtract(c.keep.amount,"days").valueOf(),h=c.files.filter(function(o){return o.date>M?!0:(o.hashType=c.hashType,j(o,v),p.emit("logRemoved",o),!1)});c.files=h}else{var w=c.files.splice(-c.keep.amount);c.files.length>0&&c.files.filter(function(o){return o.hashType=c.hashType,j(o,v),p.emit("logRemoved",o),!1}),c.files=w}u.writeAuditLog(c,v)}return c},u.getStream=function(y){var c=null,p=null,v=this;if(!y.filename)return console.error(new Date,"[FileStreamRotator] No filename supplied. Defaulting to STDOUT"),Pt.stdout;y.frequency&&(c=v.getFrequency(y.frequency));let S=v.setAuditLog(y.max_logs,y.audit_file,y.filename);S!=null&&(S.hashType=y.audit_hash_type!==void 0?y.audit_hash_type:"md5"),v.verbose=y.verbose!==void 0?y.verbose:!0;var b=null,M=0,h=0;y.size&&(b=u.parseFileSize(y.size));var w=y.date_format||O;c&&c.type=="daily"&&(y.date_format||(w="YYYY-MM-DD"),(n().format(w)!=n().endOf("day").format(w)||n().format(w)==n().add(1,"day").format(w))&&(v.verbose&&console.log(new Date,"[FileStreamRotator] Changing type to custom as date format changes more often than once a day or not every day"),c.type="custom")),c&&(p=y.frequency?v.getDate(c,w,y.utc):""),y.create_symlink=y.create_symlink||!1,y.extension=y.extension||"";var o=y.filename,f=null,a=o+(p?"."+p:"");if(o.match(/%DATE%/)&&(a=o.replace(/%DATE%/g,p||v.getDate(null,w,y.utc))),b){var m=null,_=a;if(S&&S.files&&S.files instanceof Array&&S.files.length>0){var R=S.files[S.files.length-1].name;if(R.match(_)){var P=R.match(_+"\\.(\\d+)");P&&(_=R,M=P[1])}}for(M==0&&_==a&&(_+=y.extension);e.existsSync(_);)m=_,M++,_=a+"."+M+y.extension;if(m){var W=e.statSync(m);W.size<b&&(_=m,M--,h=W.size)}a=_}else a+=y.extension;v.verbose&&console.log(new Date,"[FileStreamRotator] Logging to: ",a),Q(a);var F=y.file_options||{flags:"a"},B=e.createWriteStream(a,F);if(p&&c&&g.indexOf(c.type)>-1||b>0){v.verbose&&console.log(new Date,"[FileStreamRotator] Rotating file: ",c?c.type:"",b?"size: "+b:"");var V=new s;V.auditLog=S,V.end=function(){B.end.apply(B,arguments)},x(B,V),V.on("close",function(){K&&K.close()}),V.on("new",function(G){V.auditLog=v.addLogToAudit(G,V.auditLog,V,v.verbose),y.create_symlink&&ee(G,y.symlink_name,v.verbose),y.watch_log&&V.emit("addWatcher",G)});var K;return V.on("addWatcher",function(G){K&&K.close(),y.watch_log&&(K=k(G,v.verbose,function(ce,Oe){V.emit("createLog",Oe)}))}),V.on("createLog",function(G){try{let ce=e.lstatSync(G)}catch{B&&B.end=="function"&&B.end(),B=e.createWriteStream(G,F),V.emit("new",G),x(B,V)}}),V.write=(function(G,ce){var Oe=c?this.getDate(c,w,y.utc):p;if(Oe!=p||b&&h>b){var ye=o+(p&&c?"."+Oe:"");o.match(/%DATE%/)&&p&&(ye=o.replace(/%DATE%/g,Oe)),b&&h>b?(M++,ye+="."+M+y.extension):(M=0,ye+=y.extension),h=0,v.verbose&&console.log(new Date,Un().format("[FileStreamRotator] Changing logs from %s to %s",a,ye)),p=Oe,f=a,a=ye,y.end_stream===!0?B.end():B.destroy(),Q(a),B=e.createWriteStream(ye,F),V.emit("new",ye),V.emit("rotate",f,ye),x(B,V)}B.write(G,ce),h+=Or.byteLength(G,ce)}).bind(this),Pt.nextTick(function(){V.emit("new",a)}),V.emit("new",a),V}else return v.verbose&&console.log(new Date,"[FileStreamRotator] File won't be rotated: ",y.frequency,y.size),Pt.nextTick(function(){B.emit("new",a)}),B};var Q=function(y){var c=t.dirname(y);c.split(t.sep).reduce(function(p,v){if(p+=v+t.sep,!e.existsSync(p))try{e.mkdirSync(p)}catch(S){if(S.code!=="EEXIST")throw S}return p},"")},x=function(y,c){y.on("close",function(){c.emit("close")}),y.on("finish",function(){c.emit("finish")}),y.on("error",function(p){c.emit("error",p)}),y.on("open",function(p){c.emit("open",p)})};return Bt}var Vt,An;function Ho(){if(An)return Vt;An=1;const e=Re,t=Re,n=Re,r=Un(),s=Re,u=Lr(),g=Ir().MESSAGE,O=Re.PassThrough,A=Ar(),U={json:!1,colorize:!1,eol:t.EOL,logstash:null,prettyPrint:!1,label:null,stringify:!1,depth:null,showLevel:!0,timestamp:()=>new Date().toISOString()},j=function(k){k=k||{},A.call(this,k);function Q(p){Array.prototype.slice.call(arguments,1).forEach(v=>{if(k[v])throw new Error("Cannot set "+v+" and "+p+" together")})}function x(p){if(p&&typeof p=="string"){if(p.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/))return p}else if(p&&Number.isInteger(p)){const v=Math.round(p/1024);return v===0?"1k":v+"k"}return null}function y(p){return!/["<>|:*?\\/\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(p)}function c(p){return!/["<>|\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(p)}if(this.options=Object.assign({},U,k),k.stream)Q("stream","filename","maxsize"),this.logStream=new O,this.logStream.pipe(k.stream);else{if(this.filename=k.filename?n.basename(k.filename):"winston.log",this.dirname=k.dirname||n.dirname(k.filename),!y(this.filename)||!c(this.dirname))throw new Error("Your path or filename contain an invalid character.");this.logStream=jo().getStream({filename:n.join(this.dirname,this.filename),frequency:k.frequency?k.frequency:"custom",date_format:k.datePattern?k.datePattern:"YYYY-MM-DD",verbose:!1,size:x(k.maxSize),max_logs:k.maxFiles,end_stream:!0,audit_file:k.auditFile?k.auditFile:n.join(this.dirname,"."+u(k)+"-audit.json"),file_options:k.options?k.options:{flags:"a"},utc:k.utc?k.utc:!1,extension:k.extension?k.extension:"",create_symlink:k.createSymlink?k.createSymlink:!1,symlink_name:k.symlinkName?k.symlinkName:"current.log",watch_log:k.watchLog?k.watchLog:!1,audit_hash_type:k.auditHashType?k.auditHashType:"sha256"}),this.logStream.on("new",p=>{this.emit("new",p)}),this.logStream.on("rotate",(p,v)=>{this.emit("rotate",p,v)}),this.logStream.on("logRemoved",p=>{if(k.zippedArchive){const v=p.name+".gz";try{e.unlinkSync(v)}catch(S){if(S.code!=="ENOENT"){S.message=`Error occurred while removing ${v}: ${S.message}`,this.emit("error",S);return}}this.emit("logRemoved",v);return}this.emit("logRemoved",p.name)}),k.zippedArchive&&this.logStream.on("rotate",p=>{try{if(!e.existsSync(p))return}catch(M){M.message=`Error occurred while checking existence of ${p}: ${M.message}`,this.emit("error",M);return}try{if(e.existsSync(`${p}.gz`))return}catch(M){M.message=`Error occurred while checking existence of ${p}.gz: ${M.message}`,this.emit("error",M);return}const v=s.createGzip(),S=e.createReadStream(p);S.on("error",M=>{M.message=`Error occurred while reading ${p}: ${M.message}`,this.emit("error",M)});const b=e.createWriteStream(p+".gz");b.on("error",M=>{M.message=`Error occurred while writing ${p}.gz: ${M.message}`,this.emit("error",M)}),S.pipe(v).pipe(b).on("finish",()=>{try{e.unlinkSync(p)}catch(M){if(M.code!=="ENOENT"){M.message=`Error occurred while removing ${p}: ${M.message}`,this.emit("error",M);return}}this.emit("archive",p+".gz")})}),k.watchLog&&this.logStream.on("addWatcher",p=>{this.emit("addWatcher",p)})}};Vt=j,r.inherits(j,A),j.prototype.name="dailyRotateFile";const ee=function(){};return j.prototype.log=function(k,Q){Q=Q||ee,this.logStream.write(k[g]+this.options.eol),this.emit("logged",k),Q(null,!0)},j.prototype.close=function(){this.logStream&&this.logStream.end(()=>{this.emit("finish")})},j.prototype.query=function(k,Q){if(typeof k=="function"&&(Q=k,k={}),!this.options.json)throw new Error("query() may not be used without the json option being set to true");if(!this.filename)throw new Error("query() may not be used when initializing with a stream");let x=[];k=k||{},k.rows=k.rows||k.limit||10,k.start=k.start||0,k.until=k.until||new Date,typeof k.until!="object"&&(k.until=new Date(k.until)),k.from=k.from||k.until-1440*60*1e3,typeof k.from!="object"&&(k.from=new Date(k.from)),k.order=k.order||"desc";const y=(()=>{const p=new RegExp(this.filename.replace("%DATE%",".*"),"i");return e.readdirSync(this.dirname).filter(v=>n.basename(v).match(p))})();y.length===0&&Q&&Q(null,x);const c=p=>{if(!p)return;const v=n.join(this.dirname,p);let S="",b;if(p.endsWith(".gz")){b=new O;const h=e.createReadStream(v);h.on("error",w=>{w.message=`Error occurred while reading ${v}: ${w.message}`,b.emit("error",w)}),h.pipe(s.createGunzip()).pipe(b)}else b=e.createReadStream(v,{encoding:"utf8"});b.on("error",h=>{if(b.readable&&b.destroy(),!!Q)return h.code==="ENOENT"?Q(null,x):Q(h)}),b.on("data",h=>{h=(S+h).split(/\n+/);const w=h.length-1;for(let o=0;o<w;o++)M(h[o]);S=h[w]}),b.on("end",()=>{if(S&&M(S,!0),y.length)c(y.shift());else if(Q){x.sort((o,f)=>{const a=new Date(o.timestamp).getTime(),m=new Date(f.timestamp).getTime();return a>m?1:a<m?-1:0}),k.order==="desc"&&(x=x.reverse());const h=k.start||0,w=k.limit||x.length;x=x.slice(h,h+w),k.fields&&(x=x.map(o=>{const f={};return k.fields.forEach(a=>{f[a]=o[a]}),f})),Q(null,x)}});function M(h,w){try{const o=JSON.parse(h);if(!o||typeof o!="object")return;const f=new Date(o.timestamp);if(k.from&&f<k.from||k.until&&f>k.until||k.level&&k.level!==o.level)return;x.push(o)}catch(o){w||b.emit("error",o)}}};c(y.shift())},Vt}var Gt,Fn;function Bo(){if(Fn)return Gt;Fn=1;const e=Cr(),t=Ho();return e.transports.DailyRotateFile=t,Gt=t,Gt}var Er=Bo();const Vo=Nr(Er),Qo=Ur({__proto__:null,default:Vo},[Er]);export{Qo as i};
@@ -1,58 +0,0 @@
1
- import{l as Pt,u as Lt}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{I as xe,k as Ne}from"./index-DSosZ5sh-Ceejs_jv.js";import{l as mt}from"./index-D5v913EJ-CsbEilVn.js";import{r as Ke}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{Y as wt}from"./index-6mKfgpcs-DsgiI2lM.js";/*!
2
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */var jn=(function(){function o(t){var n=t||{},s=n.ValidationData,a=n.Username,c=n.Password,f=n.AuthParameters,g=n.ClientMetadata;this.validationData=s||{},this.authParameters=f||{},this.clientMetadata=g||{},this.username=a,this.password=c}var r=o.prototype;return r.getUsername=function(){return this.username},r.getPassword=function(){return this.password},r.getValidationData=function(){return this.validationData},r.getAuthParameters=function(){return this.authParameters},r.getClientMetadata=function(){return this.clientMetadata},o})(),qt={},At,jt;function Ve(){if(jt)return At;jt=1;var o={}.toString;return At=Array.isArray||function(r){return o.call(r)=="[object Array]"},At}/*!
5
- * The buffer module from node.js, for the browser.
6
- *
7
- * @author Feross Aboukhadijeh <http://feross.org>
8
- * @license MIT
9
- */var Ht;function Le(){return Ht||(Ht=1,(function(o){var r=xe(),t=Ne(),n=Ve();o.Buffer=f,o.SlowBuffer=T,o.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=Lt.TYPED_ARRAY_SUPPORT!==void 0?Lt.TYPED_ARRAY_SUPPORT:s(),o.kMaxLength=a();function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42&&typeof e.subarray=="function"&&e.subarray(1,1).byteLength===0}catch{return!1}}function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,i){if(a()<i)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(i),e.__proto__=f.prototype):(e===null&&(e=new f(i)),e.length=i),e}function f(e,i,u){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(e,i,u);if(typeof e=="number"){if(typeof i=="string")throw new Error("If encoding is specified then the first argument must be a string");return y(this,e)}return g(this,e,i,u)}f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e};function g(e,i,u,h){if(typeof i=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer?U(e,i,u,h):typeof i=="string"?S(e,i,u):A(e,i)}f.from=function(e,i,u){return g(null,e,i,u)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function l(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,i,u,h){return l(i),i<=0?c(e,i):u!==void 0?typeof h=="string"?c(e,i).fill(u,h):c(e,i).fill(u):c(e,i)}f.alloc=function(e,i,u){return d(null,e,i,u)};function y(e,i){if(l(i),e=c(e,i<0?0:E(i)|0),!f.TYPED_ARRAY_SUPPORT)for(var u=0;u<i;++u)e[u]=0;return e}f.allocUnsafe=function(e){return y(null,e)},f.allocUnsafeSlow=function(e){return y(null,e)};function S(e,i,u){if((typeof u!="string"||u==="")&&(u="utf8"),!f.isEncoding(u))throw new TypeError('"encoding" must be a valid string encoding');var h=B(i,u)|0;e=c(e,h);var p=e.write(i,u);return p!==h&&(e=e.slice(0,p)),e}function w(e,i){var u=i.length<0?0:E(i.length)|0;e=c(e,u);for(var h=0;h<u;h+=1)e[h]=i[h]&255;return e}function U(e,i,u,h){if(i.byteLength,u<0||i.byteLength<u)throw new RangeError("'offset' is out of bounds");if(i.byteLength<u+(h||0))throw new RangeError("'length' is out of bounds");return u===void 0&&h===void 0?i=new Uint8Array(i):h===void 0?i=new Uint8Array(i,u):i=new Uint8Array(i,u,h),f.TYPED_ARRAY_SUPPORT?(e=i,e.__proto__=f.prototype):e=w(e,i),e}function A(e,i){if(f.isBuffer(i)){var u=E(i.length)|0;return e=c(e,u),e.length===0||i.copy(e,0,0,u),e}if(i){if(typeof ArrayBuffer<"u"&&i.buffer instanceof ArrayBuffer||"length"in i)return typeof i.length!="number"||Me(i.length)?c(e,0):w(e,i);if(i.type==="Buffer"&&n(i.data))return w(e,i.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function E(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return e|0}function T(e){return+e!=e&&(e=0),f.alloc(+e)}f.isBuffer=function(e){return!!(e!=null&&e._isBuffer)},f.compare=function(e,i){if(!f.isBuffer(e)||!f.isBuffer(i))throw new TypeError("Arguments must be Buffers");if(e===i)return 0;for(var u=e.length,h=i.length,p=0,v=Math.min(u,h);p<v;++p)if(e[p]!==i[p]){u=e[p],h=i[p];break}return u<h?-1:h<u?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,i){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return f.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<e.length;++u)i+=e[u].length;var h=f.allocUnsafe(i),p=0;for(u=0;u<e.length;++u){var v=e[u];if(!f.isBuffer(v))throw new TypeError('"list" argument must be an Array of Buffers');v.copy(h,p),p+=v.length}return h};function B(e,i){if(f.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var u=e.length;if(u===0)return 0;for(var h=!1;;)switch(i){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":case void 0:return pt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return Nt(e).length;default:if(h)return pt(e).length;i=(""+i).toLowerCase(),h=!0}}f.byteLength=B;function q(e,i,u){var h=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,i>>>=0,u<=i))return"";for(e||(e="utf8");;)switch(e){case"hex":return be(this,i,u);case"utf8":case"utf-8":return ht(this,i,u);case"ascii":return De(this,i,u);case"latin1":case"binary":return Ie(this,i,u);case"base64":return X(this,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,i,u);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),h=!0}}f.prototype._isBuffer=!0;function M(e,i,u){var h=e[i];e[i]=e[u],e[u]=h}f.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<e;i+=2)M(this,i,i+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<e;i+=4)M(this,i,i+3),M(this,i+1,i+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<e;i+=8)M(this,i,i+7),M(this,i+1,i+6),M(this,i+2,i+5),M(this,i+3,i+4);return this},f.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?ht(this,0,e):q.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:f.compare(this,e)===0},f.prototype.inspect=function(){var e="",i=o.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,i,u,h,p){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),u===void 0&&(u=e?e.length:0),h===void 0&&(h=0),p===void 0&&(p=this.length),i<0||u>e.length||h<0||p>this.length)throw new RangeError("out of range index");if(h>=p&&i>=u)return 0;if(h>=p)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,h>>>=0,p>>>=0,this===e)return 0;for(var v=p-h,C=u-i,D=Math.min(v,C),R=this.slice(h,p),b=e.slice(i,u),_=0;_<D;++_)if(R[_]!==b[_]){v=R[_],C=b[_];break}return v<C?-1:C<v?1:0};function Y(e,i,u,h,p){if(e.length===0)return-1;if(typeof u=="string"?(h=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,isNaN(u)&&(u=p?0:e.length-1),u<0&&(u=e.length+u),u>=e.length){if(p)return-1;u=e.length-1}else if(u<0)if(p)u=0;else return-1;if(typeof i=="string"&&(i=f.from(i,h)),f.isBuffer(i))return i.length===0?-1:W(e,i,u,h,p);if(typeof i=="number")return i=i&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,i,u):Uint8Array.prototype.lastIndexOf.call(e,i,u):W(e,[i],u,h,p);throw new TypeError("val must be string, number or Buffer")}function W(e,i,u,h,p){var v=1,C=e.length,D=i.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(e.length<2||i.length<2)return-1;v=2,C/=2,D/=2,u/=2}function R(Kt,Vt){return v===1?Kt[Vt]:Kt.readUInt16BE(Vt*v)}var b;if(p){var _=-1;for(b=u;b<C;b++)if(R(e,b)===R(i,_===-1?0:b-_)){if(_===-1&&(_=b),b-_+1===D)return _*v}else _!==-1&&(b-=b-_),_=-1}else for(u+D>C&&(u=C-D),b=u;b>=0;b--){for(var k=!0,vt=0;vt<D;vt++)if(R(e,b+vt)!==R(i,vt)){k=!1;break}if(k)return b}return-1}f.prototype.includes=function(e,i,u){return this.indexOf(e,i,u)!==-1},f.prototype.indexOf=function(e,i,u){return Y(this,e,i,u,!0)},f.prototype.lastIndexOf=function(e,i,u){return Y(this,e,i,u,!1)};function L(e,i,u,h){u=Number(u)||0;var p=e.length-u;h?(h=Number(h),h>p&&(h=p)):h=p;var v=i.length;if(v%2!==0)throw new TypeError("Invalid hex string");h>v/2&&(h=v/2);for(var C=0;C<h;++C){var D=parseInt(i.substr(C*2,2),16);if(isNaN(D))return C;e[u+C]=D}return C}function x(e,i,u,h){return dt(pt(i,e.length-u),e,u,h)}function j(e,i,u,h){return dt(Be(i),e,u,h)}function Z(e,i,u,h){return j(e,i,u,h)}function G(e,i,u,h){return dt(Nt(i),e,u,h)}function z(e,i,u,h){return dt(Fe(i,e.length-u),e,u,h)}f.prototype.write=function(e,i,u,h){if(i===void 0)h="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")h=i,u=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(u)?(u=u|0,h===void 0&&(h="utf8")):(h=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-i;if((u===void 0||u>p)&&(u=p),e.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");for(var v=!1;;)switch(h){case"hex":return L(this,e,i,u);case"utf8":case"utf-8":return x(this,e,i,u);case"ascii":return j(this,e,i,u);case"latin1":case"binary":return Z(this,e,i,u);case"base64":return G(this,e,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,i,u);default:if(v)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),v=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(e,i,u){return i===0&&u===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(i,u))}function ht(e,i,u){u=Math.min(e.length,u);for(var h=[],p=i;p<u;){var v=e[p],C=null,D=v>239?4:v>223?3:v>191?2:1;if(p+D<=u){var R,b,_,k;switch(D){case 1:v<128&&(C=v);break;case 2:R=e[p+1],(R&192)===128&&(k=(v&31)<<6|R&63,k>127&&(C=k));break;case 3:R=e[p+1],b=e[p+2],(R&192)===128&&(b&192)===128&&(k=(v&15)<<12|(R&63)<<6|b&63,k>2047&&(k<55296||k>57343)&&(C=k));break;case 4:R=e[p+1],b=e[p+2],_=e[p+3],(R&192)===128&&(b&192)===128&&(_&192)===128&&(k=(v&15)<<18|(R&63)<<12|(b&63)<<6|_&63,k>65535&&k<1114112&&(C=k))}}C===null?(C=65533,D=1):C>65535&&(C-=65536,h.push(C>>>10&1023|55296),C=56320|C&1023),h.push(C),p+=D}return Te(h)}var Bt=4096;function Te(e){var i=e.length;if(i<=Bt)return String.fromCharCode.apply(String,e);for(var u="",h=0;h<i;)u+=String.fromCharCode.apply(String,e.slice(h,h+=Bt));return u}function De(e,i,u){var h="";u=Math.min(e.length,u);for(var p=i;p<u;++p)h+=String.fromCharCode(e[p]&127);return h}function Ie(e,i,u){var h="";u=Math.min(e.length,u);for(var p=i;p<u;++p)h+=String.fromCharCode(e[p]);return h}function be(e,i,u){var h=e.length;(!i||i<0)&&(i=0),(!u||u<0||u>h)&&(u=h);for(var p="",v=i;v<u;++v)p+=Oe(e[v]);return p}function _e(e,i,u){for(var h=e.slice(i,u),p="",v=0;v<h.length;v+=2)p+=String.fromCharCode(h[v]+h[v+1]*256);return p}f.prototype.slice=function(e,i){var u=this.length;e=~~e,i=i===void 0?u:~~i,e<0?(e+=u,e<0&&(e=0)):e>u&&(e=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<e&&(i=e);var h;if(f.TYPED_ARRAY_SUPPORT)h=this.subarray(e,i),h.__proto__=f.prototype;else{var p=i-e;h=new f(p,void 0);for(var v=0;v<p;++v)h[v]=this[v+e]}return h};function P(e,i,u){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+i>u)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(e,i,u){e=e|0,i=i|0,u||P(e,i,this.length);for(var h=this[e],p=1,v=0;++v<i&&(p*=256);)h+=this[e+v]*p;return h},f.prototype.readUIntBE=function(e,i,u){e=e|0,i=i|0,u||P(e,i,this.length);for(var h=this[e+--i],p=1;i>0&&(p*=256);)h+=this[e+--i]*p;return h},f.prototype.readUInt8=function(e,i){return i||P(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,i){return i||P(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,i){return i||P(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,i){return i||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},f.prototype.readUInt32BE=function(e,i){return i||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,i,u){e=e|0,i=i|0,u||P(e,i,this.length);for(var h=this[e],p=1,v=0;++v<i&&(p*=256);)h+=this[e+v]*p;return p*=128,h>=p&&(h-=Math.pow(2,8*i)),h},f.prototype.readIntBE=function(e,i,u){e=e|0,i=i|0,u||P(e,i,this.length);for(var h=i,p=1,v=this[e+--h];h>0&&(p*=256);)v+=this[e+--h]*p;return p*=128,v>=p&&(v-=Math.pow(2,8*i)),v},f.prototype.readInt8=function(e,i){return i||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},f.prototype.readInt16LE=function(e,i){i||P(e,2,this.length);var u=this[e]|this[e+1]<<8;return u&32768?u|4294901760:u},f.prototype.readInt16BE=function(e,i){i||P(e,2,this.length);var u=this[e+1]|this[e]<<8;return u&32768?u|4294901760:u},f.prototype.readInt32LE=function(e,i){return i||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,i){return i||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,i){return i||P(e,4,this.length),t.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,i){return i||P(e,4,this.length),t.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,i){return i||P(e,8,this.length),t.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,i){return i||P(e,8,this.length),t.read(this,e,!1,52,8)};function F(e,i,u,h,p,v){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>p||i<v)throw new RangeError('"value" argument is out of bounds');if(u+h>e.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(e,i,u,h){if(e=+e,i=i|0,u=u|0,!h){var p=Math.pow(2,8*u)-1;F(this,e,i,u,p,0)}var v=1,C=0;for(this[i]=e&255;++C<u&&(v*=256);)this[i+C]=e/v&255;return i+u},f.prototype.writeUIntBE=function(e,i,u,h){if(e=+e,i=i|0,u=u|0,!h){var p=Math.pow(2,8*u)-1;F(this,e,i,u,p,0)}var v=u-1,C=1;for(this[i+v]=e&255;--v>=0&&(C*=256);)this[i+v]=e/C&255;return i+u},f.prototype.writeUInt8=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=e&255,i+1};function lt(e,i,u,h){i<0&&(i=65535+i+1);for(var p=0,v=Math.min(e.length-u,2);p<v;++p)e[u+p]=(i&255<<8*(h?p:1-p))>>>(h?p:1-p)*8}f.prototype.writeUInt16LE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[i]=e&255,this[i+1]=e>>>8):lt(this,e,i,!0),i+2},f.prototype.writeUInt16BE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=e&255):lt(this,e,i,!1),i+2};function gt(e,i,u,h){i<0&&(i=4294967295+i+1);for(var p=0,v=Math.min(e.length-u,4);p<v;++p)e[u+p]=i>>>(h?p:3-p)*8&255}f.prototype.writeUInt32LE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=e&255):gt(this,e,i,!0),i+4},f.prototype.writeUInt32BE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=e&255):gt(this,e,i,!1),i+4},f.prototype.writeIntLE=function(e,i,u,h){if(e=+e,i=i|0,!h){var p=Math.pow(2,8*u-1);F(this,e,i,u,p-1,-p)}var v=0,C=1,D=0;for(this[i]=e&255;++v<u&&(C*=256);)e<0&&D===0&&this[i+v-1]!==0&&(D=1),this[i+v]=(e/C>>0)-D&255;return i+u},f.prototype.writeIntBE=function(e,i,u,h){if(e=+e,i=i|0,!h){var p=Math.pow(2,8*u-1);F(this,e,i,u,p-1,-p)}var v=u-1,C=1,D=0;for(this[i+v]=e&255;--v>=0&&(C*=256);)e<0&&D===0&&this[i+v+1]!==0&&(D=1),this[i+v]=(e/C>>0)-D&255;return i+u},f.prototype.writeInt8=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=e&255,i+1},f.prototype.writeInt16LE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[i]=e&255,this[i+1]=e>>>8):lt(this,e,i,!0),i+2},f.prototype.writeInt16BE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=e&255):lt(this,e,i,!1),i+2},f.prototype.writeInt32LE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[i]=e&255,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):gt(this,e,i,!0),i+4},f.prototype.writeInt32BE=function(e,i,u){return e=+e,i=i|0,u||F(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=e&255):gt(this,e,i,!1),i+4};function Ft(e,i,u,h,p,v){if(u+h>e.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Mt(e,i,u,h,p){return p||Ft(e,i,u,4),t.write(e,i,u,h,23,4),u+4}f.prototype.writeFloatLE=function(e,i,u){return Mt(this,e,i,!0,u)},f.prototype.writeFloatBE=function(e,i,u){return Mt(this,e,i,!1,u)};function xt(e,i,u,h,p){return p||Ft(e,i,u,8),t.write(e,i,u,h,52,8),u+8}f.prototype.writeDoubleLE=function(e,i,u){return xt(this,e,i,!0,u)},f.prototype.writeDoubleBE=function(e,i,u){return xt(this,e,i,!1,u)},f.prototype.copy=function(e,i,u,h){if(u||(u=0),!h&&h!==0&&(h=this.length),i>=e.length&&(i=e.length),i||(i=0),h>0&&h<u&&(h=u),h===u||e.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("sourceStart out of bounds");if(h<0)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),e.length-i<h-u&&(h=e.length-i+u);var p=h-u,v;if(this===e&&u<i&&i<h)for(v=p-1;v>=0;--v)e[v+i]=this[v+u];else if(p<1e3||!f.TYPED_ARRAY_SUPPORT)for(v=0;v<p;++v)e[v+i]=this[v+u];else Uint8Array.prototype.set.call(e,this.subarray(u,u+p),i);return p},f.prototype.fill=function(e,i,u,h){if(typeof e=="string"){if(typeof i=="string"?(h=i,i=0,u=this.length):typeof u=="string"&&(h=u,u=this.length),e.length===1){var p=e.charCodeAt(0);p<256&&(e=p)}if(h!==void 0&&typeof h!="string")throw new TypeError("encoding must be a string");if(typeof h=="string"&&!f.isEncoding(h))throw new TypeError("Unknown encoding: "+h)}else typeof e=="number"&&(e=e&255);if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,e||(e=0);var v;if(typeof e=="number")for(v=i;v<u;++v)this[v]=e;else{var C=f.isBuffer(e)?e:pt(new f(e,h).toString()),D=C.length;for(v=0;v<u-i;++v)this[v+i]=C[v%D]}return this};var Pe=/[^+\/0-9A-Za-z-_]/g;function Re(e){if(e=ke(e).replace(Pe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ke(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Oe(e){return e<16?"0"+e.toString(16):e.toString(16)}function pt(e,i){i=i||1/0;for(var u,h=e.length,p=null,v=[],C=0;C<h;++C){if(u=e.charCodeAt(C),u>55295&&u<57344){if(!p){if(u>56319){(i-=3)>-1&&v.push(239,191,189);continue}else if(C+1===h){(i-=3)>-1&&v.push(239,191,189);continue}p=u;continue}if(u<56320){(i-=3)>-1&&v.push(239,191,189),p=u;continue}u=(p-55296<<10|u-56320)+65536}else p&&(i-=3)>-1&&v.push(239,191,189);if(p=null,u<128){if((i-=1)<0)break;v.push(u)}else if(u<2048){if((i-=2)<0)break;v.push(u>>6|192,u&63|128)}else if(u<65536){if((i-=3)<0)break;v.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((i-=4)<0)break;v.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return v}function Be(e){for(var i=[],u=0;u<e.length;++u)i.push(e.charCodeAt(u)&255);return i}function Fe(e,i){for(var u,h,p,v=[],C=0;C<e.length&&!((i-=2)<0);++C)u=e.charCodeAt(C),h=u>>8,p=u%256,v.push(p),v.push(h);return v}function Nt(e){return r.toByteArray(Re(e))}function dt(e,i,u,h){for(var p=0;p<h&&!(p+u>=i.length||p>=e.length);++p)i[p+u]=e[p];return p}function Me(e){return e!==e}})(qt)),qt}var I=Le(),K;typeof window<"u"&&window.crypto&&(K=window.crypto);!K&&typeof window<"u"&&window.msCrypto&&(K=window.msCrypto);!K&&typeof mt<"u"&&mt.crypto&&(K=mt.crypto);if(!K&&typeof Ke=="function")try{K=require("crypto")}catch{}function qe(){if(K){if(typeof K.getRandomValues=="function")try{return K.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof K.randomBytes=="function")try{return K.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function je(o){for(var r=o.words,t=o.sigBytes,n=[],s=0;s<t;s++){var a=r[s>>>2]>>>24-s%4*8&255;n.push((a>>>4).toString(16)),n.push((a&15).toString(16))}return n.join("")}var He=(function(){function o(t,n){t=this.words=t||[],n!=null?this.sigBytes=n:this.sigBytes=t.length*4}var r=o.prototype;return r.random=function(t){for(var n=[],s=0;s<t;s+=4)n.push(qe());return new o(n,t)},r.toString=function(){return je(this)},o})(),Yt={};/*! *****************************************************************************
10
- Copyright (c) Microsoft Corporation.
11
-
12
- Permission to use, copy, modify, and/or distribute this software for any
13
- purpose with or without fee is hereby granted.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
- PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */var Ut=function(o,r){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])},Ut(o,r)};function Ye(o,r){Ut(o,r);function t(){this.constructor=o}o.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Et=function(){return Et=Object.assign||function(o){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])}return o},Et.apply(this,arguments)};function Ge(o,r){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&r.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(o);s<n.length;s++)r.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(o,n[s])&&(t[n[s]]=o[n[s]]);return t}function Je(o,r,t,n){var s=arguments.length,a=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,t,n);else for(var f=o.length-1;f>=0;f--)(c=o[f])&&(a=(s<3?c(a):s>3?c(r,t,a):c(r,t))||a);return s>3&&a&&Object.defineProperty(r,t,a),a}function We(o,r){return function(t,n){r(t,n,o)}}function Ze(o,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,r)}function ze(o,r,t,n){function s(a){return a instanceof t?a:new t(function(c){c(a)})}return new(t||(t=Promise))(function(a,c){function f(d){try{l(n.next(d))}catch(y){c(y)}}function g(d){try{l(n.throw(d))}catch(y){c(y)}}function l(d){d.done?a(d.value):s(d.value).then(f,g)}l((n=n.apply(o,r||[])).next())})}function Xe(o,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(l){return function(d){return g([l,d])}}function g(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(a=l[0]&2?s.return:l[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,l[1])).done)return a;switch(s=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,s=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(o,t)}catch(d){l=[6,d],s=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function $e(o,r,t,n){n===void 0&&(n=t),o[n]=r[t]}function Qe(o,r){for(var t in o)t!=="default"&&!r.hasOwnProperty(t)&&(r[t]=o[t])}function Tt(o){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&o[r],n=0;if(t)return t.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&n>=o.length&&(o=void 0),{value:o&&o[n++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ye(o,r){var t=typeof Symbol=="function"&&o[Symbol.iterator];if(!t)return o;var n=t.call(o),s,a=[],c;try{for(;(r===void 0||r-- >0)&&!(s=n.next()).done;)a.push(s.value)}catch(f){c={error:f}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(c)throw c.error}}return a}function tr(){for(var o=[],r=0;r<arguments.length;r++)o=o.concat(ye(arguments[r]));return o}function er(){for(var o=0,r=0,t=arguments.length;r<t;r++)o+=arguments[r].length;for(var n=Array(o),s=0,r=0;r<t;r++)for(var a=arguments[r],c=0,f=a.length;c<f;c++,s++)n[s]=a[c];return n}function ft(o){return this instanceof ft?(this.v=o,this):new ft(o)}function rr(o,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(o,r||[]),s,a=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(S){n[S]&&(s[S]=function(w){return new Promise(function(U,A){a.push([S,w,U,A])>1||f(S,w)})})}function f(S,w){try{g(n[S](w))}catch(U){y(a[0][3],U)}}function g(S){S.value instanceof ft?Promise.resolve(S.value.v).then(l,d):y(a[0][2],S)}function l(S){f("next",S)}function d(S){f("throw",S)}function y(S,w){S(w),a.shift(),a.length&&f(a[0][0],a[0][1])}}function nr(o){var r,t;return r={},n("next"),n("throw",function(s){throw s}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(s,a){r[s]=o[s]?function(c){return(t=!t)?{value:ft(o[s](c)),done:s==="return"}:a?a(c):c}:a}}function ir(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o[Symbol.asyncIterator],t;return r?r.call(o):(o=typeof Tt=="function"?Tt(o):o[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=o[a]&&function(c){return new Promise(function(f,g){c=o[a](c),s(f,g,c.done,c.value)})}}function s(a,c,f,g){Promise.resolve(g).then(function(l){a({value:l,done:f})},c)}}function sr(o,r){return Object.defineProperty?Object.defineProperty(o,"raw",{value:r}):o.raw=r,o}function or(o){if(o&&o.__esModule)return o;var r={};if(o!=null)for(var t in o)Object.hasOwnProperty.call(o,t)&&(r[t]=o[t]);return r.default=o,r}function ar(o){return o&&o.__esModule?o:{default:o}}function ur(o,r){if(!r.has(o))throw new TypeError("attempted to get private field on non-instance");return r.get(o)}function fr(o,r,t){if(!r.has(o))throw new TypeError("attempted to set private field on non-instance");return r.set(o,t),t}const cr=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Et},__asyncDelegator:nr,__asyncGenerator:rr,__asyncValues:ir,__await:ft,__awaiter:ze,__classPrivateFieldGet:ur,__classPrivateFieldSet:fr,__createBinding:$e,__decorate:Je,__exportStar:Qe,__extends:Ye,__generator:Xe,__importDefault:ar,__importStar:or,__makeTemplateObject:sr,__metadata:Ze,__param:We,__read:ye,__rest:Ge,__spread:tr,__spreadArrays:er,__values:Tt},Symbol.toStringTag,{value:"Module"})),Se=Pt(cr);var rt={},N={},Gt;function me(){return Gt||(Gt=1,Object.defineProperty(N,"__esModule",{value:!0}),N.MAX_HASHABLE_LENGTH=N.INIT=N.KEY=N.DIGEST_LENGTH=N.BLOCK_SIZE=void 0,N.BLOCK_SIZE=64,N.DIGEST_LENGTH=32,N.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),N.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],N.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),N}var nt={},Jt;function hr(){if(Jt)return nt;Jt=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.RawSha256=void 0;var o=me(),r=(function(){function t(){this.state=Int32Array.from(o.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var s=0,a=n.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>o.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=n[s++],a--,this.bufferLength===o.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,s=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(s.setUint8(this.bufferLength++,128),a%o.BLOCK_SIZE>=o.BLOCK_SIZE-8){for(var c=this.bufferLength;c<o.BLOCK_SIZE;c++)s.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<o.BLOCK_SIZE-8;c++)s.setUint8(c,0);s.setUint32(o.BLOCK_SIZE-8,Math.floor(n/4294967296),!0),s.setUint32(o.BLOCK_SIZE-4,n),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(o.DIGEST_LENGTH),c=0;c<8;c++)f[c*4]=this.state[c]>>>24&255,f[c*4+1]=this.state[c]>>>16&255,f[c*4+2]=this.state[c]>>>8&255,f[c*4+3]=this.state[c]>>>0&255;return f},t.prototype.hashBuffer=function(){for(var n=this,s=n.buffer,a=n.state,c=a[0],f=a[1],g=a[2],l=a[3],d=a[4],y=a[5],S=a[6],w=a[7],U=0;U<o.BLOCK_SIZE;U++){if(U<16)this.temp[U]=(s[U*4]&255)<<24|(s[U*4+1]&255)<<16|(s[U*4+2]&255)<<8|s[U*4+3]&255;else{var A=this.temp[U-2],E=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=this.temp[U-15];var T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;this.temp[U]=(E+this.temp[U-7]|0)+(T+this.temp[U-16]|0)}var B=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&y^~d&S)|0)+(w+(o.KEY[U]+this.temp[U]|0)|0)|0,q=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&f^c&g^f&g)|0;w=S,S=y,y=d,d=l+B|0,l=g,g=f,f=c,c=B+q|0}a[0]+=c,a[1]+=f,a[2]+=g,a[3]+=l,a[4]+=d,a[5]+=y,a[6]+=S,a[7]+=w},t})();return nt.RawSha256=r,nt}var Wt={},it={};const lr=o=>{const r=[];for(let t=0,n=o.length;t<n;t++){const s=o.charCodeAt(t);if(s<128)r.push(s);else if(s<2048)r.push(s>>6|192,s&63|128);else if(t+1<o.length&&(s&64512)===55296&&(o.charCodeAt(t+1)&64512)===56320){const a=65536+((s&1023)<<10)+(o.charCodeAt(++t)&1023);r.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else r.push(s>>12|224,s>>6&63|128,s&63|128)}return Uint8Array.from(r)},gr=o=>{let r="";for(let t=0,n=o.length;t<n;t++){const s=o[t];if(s<128)r+=String.fromCharCode(s);else if(192<=s&&s<224){const a=o[++t];r+=String.fromCharCode((s&31)<<6|a&63)}else if(240<=s&&s<365){const a="%"+[s,o[++t],o[++t],o[++t]].map(c=>c.toString(16)).join("%");r+=decodeURIComponent(a)}else r+=String.fromCharCode((s&15)<<12|(o[++t]&63)<<6|o[++t]&63)}return r};function pr(o){return new TextEncoder().encode(o)}function dr(o){return new TextDecoder("utf-8").decode(o)}const vr=o=>typeof TextEncoder=="function"?pr(o):lr(o),yr=o=>typeof TextDecoder=="function"?dr(o):gr(o),Sr=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:vr,toUtf8:yr},Symbol.toStringTag,{value:"Module"})),mr=Pt(Sr);var Zt;function wr(){if(Zt)return it;Zt=1,Object.defineProperty(it,"__esModule",{value:!0}),it.convertToBuffer=void 0;var o=mr,r=typeof wt<"u"&&wt.from?function(n){return wt.from(n,"utf8")}:o.fromUtf8;function t(n){return n instanceof Uint8Array?n:typeof n=="string"?r(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return it.convertToBuffer=t,it}var st={},zt;function Ar(){if(zt)return st;zt=1,Object.defineProperty(st,"__esModule",{value:!0}),st.isEmptyData=void 0;function o(r){return typeof r=="string"?r.length===0:r.byteLength===0}return st.isEmptyData=o,st}var ot={},Xt;function Cr(){if(Xt)return ot;Xt=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.numToUint8=void 0;function o(r){return new Uint8Array([(r&4278190080)>>24,(r&16711680)>>16,(r&65280)>>8,r&255])}return ot.numToUint8=o,ot}var at={},$t;function Ur(){if($t)return at;$t=1,Object.defineProperty(at,"__esModule",{value:!0}),at.uint32ArrayFrom=void 0;function o(r){if(!Array.from){for(var t=new Uint32Array(r.length),n=0;n<r.length;)t[n]=r[n];return t}return Uint32Array.from(r)}return at.uint32ArrayFrom=o,at}var Qt;function Er(){return Qt||(Qt=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.uint32ArrayFrom=o.numToUint8=o.isEmptyData=o.convertToBuffer=void 0;var r=wr();Object.defineProperty(o,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var t=Ar();Object.defineProperty(o,"isEmptyData",{enumerable:!0,get:function(){return t.isEmptyData}});var n=Cr();Object.defineProperty(o,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var s=Ur();Object.defineProperty(o,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})})(Wt)),Wt}var te;function Tr(){if(te)return rt;te=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.Sha256=void 0;var o=Se,r=me(),t=hr(),n=Er(),s=(function(){function c(f){if(this.hash=new t.RawSha256,f){this.outer=new t.RawSha256;var g=a(f),l=new Uint8Array(r.BLOCK_SIZE);l.set(g);for(var d=0;d<r.BLOCK_SIZE;d++)g[d]^=54,l[d]^=92;this.hash.update(g),this.outer.update(l);for(var d=0;d<g.byteLength;d++)g[d]=0}}return c.prototype.update=function(f){if(!((0,n.isEmptyData)(f)||this.error))try{this.hash.update((0,n.convertToBuffer)(f))}catch(g){this.error=g}},c.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},c.prototype.digest=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(f){return[2,this.digestSync()]})})},c})();rt.Sha256=s;function a(c){var f=(0,n.convertToBuffer)(c);if(f.byteLength>r.BLOCK_SIZE){var g=new t.RawSha256;g.update(f),f=g.digest()}var l=new Uint8Array(r.BLOCK_SIZE);return l.set(f),l}return rt}var ee;function Dr(){return ee||(ee=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0});var r=Se;(0,r.__exportStar)(Tr(),o)})(Yt)),Yt}var ut=Dr();function m(o,r){o!=null&&this.fromString(o,r)}function O(){return new m(null)}var H,Ir=0xdeadbeefcafe,re=(Ir&16777215)==15715070;function br(o,r,t,n,s,a){for(;--a>=0;){var c=r*this[o++]+t[n]+s;s=Math.floor(c/67108864),t[n++]=c&67108863}return s}function _r(o,r,t,n,s,a){for(var c=r&32767,f=r>>15;--a>=0;){var g=this[o]&32767,l=this[o++]>>15,d=f*g+l*c;g=c*g+((d&32767)<<15)+t[n]+(s&1073741823),s=(g>>>30)+(d>>>15)+f*l+(s>>>30),t[n++]=g&1073741823}return s}function Pr(o,r,t,n,s,a){for(var c=r&16383,f=r>>14;--a>=0;){var g=this[o]&16383,l=this[o++]>>14,d=f*g+l*c;g=c*g+((d&16383)<<14)+t[n]+s,s=(g>>28)+(d>>14)+f*l,t[n++]=g&268435455}return s}var ne=typeof navigator<"u";ne&&re&&navigator.appName=="Microsoft Internet Explorer"?(m.prototype.am=_r,H=30):ne&&re&&navigator.appName!="Netscape"?(m.prototype.am=br,H=26):(m.prototype.am=Pr,H=28);m.prototype.DB=H;m.prototype.DM=(1<<H)-1;m.prototype.DV=1<<H;var Rt=52;m.prototype.FV=Math.pow(2,Rt);m.prototype.F1=Rt-H;m.prototype.F2=2*H-Rt;var Rr="0123456789abcdefghijklmnopqrstuvwxyz",St=new Array,tt,V;tt=48;for(V=0;V<=9;++V)St[tt++]=V;tt=97;for(V=10;V<36;++V)St[tt++]=V;tt=65;for(V=10;V<36;++V)St[tt++]=V;function ie(o){return Rr.charAt(o)}function kr(o,r){var t=St[o.charCodeAt(r)];return t??-1}function Or(o){for(var r=this.t-1;r>=0;--r)o[r]=this[r];o.t=this.t,o.s=this.s}function Br(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0}function kt(o){var r=O();return r.fromInt(o),r}function Fr(o,r){var t;if(r==16)t=4;else if(r==8)t=3;else if(r==2)t=1;else if(r==32)t=5;else if(r==4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var n=o.length,s=!1,a=0;--n>=0;){var c=kr(o,n);if(c<0){o.charAt(n)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=c:a+t>this.DB?(this[this.t-1]|=(c&(1<<this.DB-a)-1)<<a,this[this.t++]=c>>this.DB-a):this[this.t-1]|=c<<a,a+=t,a>=this.DB&&(a-=this.DB)}this.clamp(),s&&m.ZERO.subTo(this,this)}function Mr(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t}function xr(o){if(this.s<0)return"-"+this.negate().toString(o);var r;if(o==16)r=4;else if(o==8)r=3;else if(o==2)r=1;else if(o==32)r=5;else if(o==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var t=(1<<r)-1,n,s=!1,a="",c=this.t,f=this.DB-c*this.DB%r;if(c-- >0)for(f<this.DB&&(n=this[c]>>f)>0&&(s=!0,a=ie(n));c>=0;)f<r?(n=(this[c]&(1<<f)-1)<<r-f,n|=this[--c]>>(f+=this.DB-r)):(n=this[c]>>(f-=r)&t,f<=0&&(f+=this.DB,--c)),n>0&&(s=!0),s&&(a+=ie(n));return s?a:"0"}function Nr(){var o=O();return m.ZERO.subTo(this,o),o}function Kr(){return this.s<0?this.negate():this}function Vr(o){var r=this.s-o.s;if(r!=0)return r;var t=this.t;if(r=t-o.t,r!=0)return this.s<0?-r:r;for(;--t>=0;)if((r=this[t]-o[t])!=0)return r;return 0}function Ot(o){var r=1,t;return(t=o>>>16)!=0&&(o=t,r+=16),(t=o>>8)!=0&&(o=t,r+=8),(t=o>>4)!=0&&(o=t,r+=4),(t=o>>2)!=0&&(o=t,r+=2),(t=o>>1)!=0&&(o=t,r+=1),r}function Lr(){return this.t<=0?0:this.DB*(this.t-1)+Ot(this[this.t-1]^this.s&this.DM)}function qr(o,r){var t;for(t=this.t-1;t>=0;--t)r[t+o]=this[t];for(t=o-1;t>=0;--t)r[t]=0;r.t=this.t+o,r.s=this.s}function jr(o,r){for(var t=o;t<this.t;++t)r[t-o]=this[t];r.t=Math.max(this.t-o,0),r.s=this.s}function Hr(o,r){var t=o%this.DB,n=this.DB-t,s=(1<<n)-1,a=Math.floor(o/this.DB),c=this.s<<t&this.DM,f;for(f=this.t-1;f>=0;--f)r[f+a+1]=this[f]>>n|c,c=(this[f]&s)<<t;for(f=a-1;f>=0;--f)r[f]=0;r[a]=c,r.t=this.t+a+1,r.s=this.s,r.clamp()}function Yr(o,r){r.s=this.s;var t=Math.floor(o/this.DB);if(t>=this.t){r.t=0;return}var n=o%this.DB,s=this.DB-n,a=(1<<n)-1;r[0]=this[t]>>n;for(var c=t+1;c<this.t;++c)r[c-t-1]|=(this[c]&a)<<s,r[c-t]=this[c]>>n;n>0&&(r[this.t-t-1]|=(this.s&a)<<s),r.t=this.t-t,r.clamp()}function Gr(o,r){for(var t=0,n=0,s=Math.min(o.t,this.t);t<s;)n+=this[t]-o[t],r[t++]=n&this.DM,n>>=this.DB;if(o.t<this.t){for(n-=o.s;t<this.t;)n+=this[t],r[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<o.t;)n-=o[t],r[t++]=n&this.DM,n>>=this.DB;n-=o.s}r.s=n<0?-1:0,n<-1?r[t++]=this.DV+n:n>0&&(r[t++]=n),r.t=t,r.clamp()}function Jr(o,r){var t=this.abs(),n=o.abs(),s=t.t;for(r.t=s+n.t;--s>=0;)r[s]=0;for(s=0;s<n.t;++s)r[s+t.t]=t.am(0,n[s],r,s,0,t.t);r.s=0,r.clamp(),this.s!=o.s&&m.ZERO.subTo(r,r)}function Wr(o){for(var r=this.abs(),t=o.t=2*r.t;--t>=0;)o[t]=0;for(t=0;t<r.t-1;++t){var n=r.am(t,r[t],o,2*t,0,1);(o[t+r.t]+=r.am(t+1,2*r[t],o,2*t+1,n,r.t-t-1))>=r.DV&&(o[t+r.t]-=r.DV,o[t+r.t+1]=1)}o.t>0&&(o[o.t-1]+=r.am(t,r[t],o,2*t,0,1)),o.s=0,o.clamp()}function Zr(o,r,t){var n=o.abs();if(!(n.t<=0)){var s=this.abs();if(s.t<n.t){r?.fromInt(0),t!=null&&this.copyTo(t);return}t==null&&(t=O());var a=O(),c=this.s,f=o.s,g=this.DB-Ot(n[n.t-1]);g>0?(n.lShiftTo(g,a),s.lShiftTo(g,t)):(n.copyTo(a),s.copyTo(t));var l=a.t,d=a[l-1];if(d!=0){var y=d*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),S=this.FV/y,w=(1<<this.F1)/y,U=1<<this.F2,A=t.t,E=A-l,T=r??O();for(a.dlShiftTo(E,T),t.compareTo(T)>=0&&(t[t.t++]=1,t.subTo(T,t)),m.ONE.dlShiftTo(l,T),T.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--E>=0;){var B=t[--A]==d?this.DM:Math.floor(t[A]*S+(t[A-1]+U)*w);if((t[A]+=a.am(0,B,t,E,0,l))<B)for(a.dlShiftTo(E,T),t.subTo(T,t);t[A]<--B;)t.subTo(T,t)}r!=null&&(t.drShiftTo(l,r),c!=f&&m.ZERO.subTo(r,r)),t.t=l,t.clamp(),g>0&&t.rShiftTo(g,t),c<0&&m.ZERO.subTo(t,t)}}}function zr(o){var r=O();return this.abs().divRemTo(o,null,r),this.s<0&&r.compareTo(m.ZERO)>0&&o.subTo(r,r),r}function Xr(){if(this.t<1)return 0;var o=this[0];if((o&1)==0)return 0;var r=o&3;return r=r*(2-(o&15)*r)&15,r=r*(2-(o&255)*r)&255,r=r*(2-((o&65535)*r&65535))&65535,r=r*(2-o*r%this.DV)%this.DV,r>0?this.DV-r:-r}function $r(o){return this.compareTo(o)==0}function Qr(o,r){for(var t=0,n=0,s=Math.min(o.t,this.t);t<s;)n+=this[t]+o[t],r[t++]=n&this.DM,n>>=this.DB;if(o.t<this.t){for(n+=o.s;t<this.t;)n+=this[t],r[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<o.t;)n+=o[t],r[t++]=n&this.DM,n>>=this.DB;n+=o.s}r.s=n<0?-1:0,n>0?r[t++]=n:n<-1&&(r[t++]=this.DV+n),r.t=t,r.clamp()}function tn(o){var r=O();return this.addTo(o,r),r}function en(o){var r=O();return this.subTo(o,r),r}function rn(o){var r=O();return this.multiplyTo(o,r),r}function nn(o){var r=O();return this.divRemTo(o,r,null),r}function et(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}function sn(o){var r=O();return o.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),o.s<0&&r.compareTo(m.ZERO)>0&&this.m.subTo(r,r),r}function on(o){var r=O();return o.copyTo(r),this.reduce(r),r}function an(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var r=0;r<this.m.t;++r){var t=o[r]&32767,n=t*this.mpl+((t*this.mph+(o[r]>>15)*this.mpl&this.um)<<15)&o.DM;for(t=r+this.m.t,o[t]+=this.m.am(0,n,o,r,0,this.m.t);o[t]>=o.DV;)o[t]-=o.DV,o[++t]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)}function un(o,r){o.squareTo(r),this.reduce(r)}function fn(o,r,t){o.multiplyTo(r,t),this.reduce(t)}et.prototype.convert=sn;et.prototype.revert=on;et.prototype.reduce=an;et.prototype.mulTo=fn;et.prototype.sqrTo=un;function cn(o,r,t){var n=o.bitLength(),s,a=kt(1),c=new et(r);if(n<=0)return a;n<18?s=1:n<48?s=3:n<144?s=4:n<768?s=5:s=6;var f=new Array,g=3,l=s-1,d=(1<<s)-1;if(f[1]=c.convert(this),s>1){var y=O();for(c.sqrTo(f[1],y);g<=d;)f[g]=O(),c.mulTo(y,f[g-2],f[g]),g+=2}var S=o.t-1,w,U=!0,A=O(),E;for(n=Ot(o[S])-1;S>=0;){for(n>=l?w=o[S]>>n-l&d:(w=(o[S]&(1<<n+1)-1)<<l-n,S>0&&(w|=o[S-1]>>this.DB+n-l)),g=s;(w&1)==0;)w>>=1,--g;if((n-=g)<0&&(n+=this.DB,--S),U)f[w].copyTo(a),U=!1;else{for(;g>1;)c.sqrTo(a,A),c.sqrTo(A,a),g-=2;g>0?c.sqrTo(a,A):(E=a,a=A,A=E),c.mulTo(A,f[w],a)}for(;S>=0&&(o[S]&1<<n)==0;)c.sqrTo(a,A),E=a,a=A,A=E,--n<0&&(n=this.DB-1,--S)}var T=c.revert(a);return t(null,T),T}m.prototype.copyTo=Or;m.prototype.fromInt=Br;m.prototype.fromString=Fr;m.prototype.clamp=Mr;m.prototype.dlShiftTo=qr;m.prototype.drShiftTo=jr;m.prototype.lShiftTo=Hr;m.prototype.rShiftTo=Yr;m.prototype.subTo=Gr;m.prototype.multiplyTo=Jr;m.prototype.squareTo=Wr;m.prototype.divRemTo=Zr;m.prototype.invDigit=Xr;m.prototype.addTo=Qr;m.prototype.toString=xr;m.prototype.negate=Nr;m.prototype.abs=Kr;m.prototype.compareTo=Vr;m.prototype.bitLength=Lr;m.prototype.mod=zr;m.prototype.equals=$r;m.prototype.add=tn;m.prototype.subtract=en;m.prototype.multiply=rn;m.prototype.divide=nn;m.prototype.modPow=cn;m.ZERO=kt(0);m.ONE=kt(1);/*!
23
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
24
- * SPDX-License-Identifier: Apache-2.0
25
- */function Ct(o){return I.Buffer.from(new He().random(o).toString(),"hex")}var hn=/^[89a-f]/i,ln="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",gn="userAttributes.",$=(function(){function o(t){this.N=new m(ln,16),this.g=new m("2",16),this.k=new m(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=I.Buffer.from("Caldera Derived Key","utf8"),this.poolName=t}var r=o.prototype;return r.getSmallAValue=function(){return this.smallAValue},r.getLargeAValue=function(t){var n=this;this.largeAValue?t(null,this.largeAValue):this.calculateA(this.smallAValue,function(s,a){s&&t(s,null),n.largeAValue=a,t(null,n.largeAValue)})},r.generateRandomSmallA=function(){var t=Ct(128).toString("hex"),n=new m(t,16);return n},r.generateRandomString=function(){return Ct(40).toString("base64")},r.getRandomPassword=function(){return this.randomPassword},r.getSaltDevices=function(){return this.SaltToHashDevices},r.getVerifierDevices=function(){return this.verifierDevices},r.generateHashDevice=function(t,n,s){var a=this;this.randomPassword=this.generateRandomString();var c=""+t+n+":"+this.randomPassword,f=this.hash(c),g=Ct(16).toString("hex");this.SaltToHashDevices=this.padHex(new m(g,16)),this.g.modPow(new m(this.hexHash(this.SaltToHashDevices+f),16),this.N,function(l,d){l&&s(l,null),a.verifierDevices=a.padHex(d),s(null,null)})},r.calculateA=function(t,n){var s=this;this.g.modPow(t,this.N,function(a,c){a&&n(a,null),c.mod(s.N).equals(m.ZERO)&&n(new Error("Illegal paramater. A mod N cannot be 0."),null),n(null,c)})},r.calculateU=function(t,n){this.UHexHash=this.hexHash(this.padHex(t)+this.padHex(n));var s=new m(this.UHexHash,16);return s},r.hash=function(t){var n=new ut.Sha256;n.update(t);var s=n.digestSync(),a=I.Buffer.from(s).toString("hex");return new Array(64-a.length).join("0")+a},r.hexHash=function(t){return this.hash(I.Buffer.from(t,"hex"))},r.computehkdf=function(t,n){var s=I.Buffer.concat([this.infoBits,I.Buffer.from("","utf8")]),a=new ut.Sha256(n);a.update(t);var c=a.digestSync(),f=new ut.Sha256(c);f.update(s);var g=f.digestSync(),l=g,d=l.slice(0,16);return d},r.getPasswordAuthenticationKey=function(t,n,s,a,c){var f=this;if(s.mod(this.N).equals(m.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,s),this.UValue.equals(m.ZERO))throw new Error("U cannot be zero.");var g=""+this.poolName+t+":"+n,l=this.hash(g),d=new m(this.hexHash(this.padHex(a)+l),16);this.calculateS(d,s,function(y,S){y&&c(y,null);var w=f.computehkdf(I.Buffer.from(f.padHex(S),"hex"),I.Buffer.from(f.padHex(f.UValue),"hex"));c(null,w)})},r.calculateS=function(t,n,s){var a=this;this.g.modPow(t,this.N,function(c,f){c&&s(c,null);var g=n.subtract(a.k.multiply(f));g.modPow(a.smallAValue.add(a.UValue.multiply(t)),a.N,function(l,d){l&&s(l,null),s(null,d.mod(a.N))})})},r.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return gn},r.padHex=function(t){if(!(t instanceof m))throw new Error("Not a BigInteger");var n=t.compareTo(m.ZERO)<0,s=t.abs().toString(16);if(s=s.length%2!==0?"0"+s:s,s=hn.test(s)?"00"+s:s,n){var a=s.split("").map(function(f){var g=~parseInt(f,16)&15;return"0123456789ABCDEF".charAt(g)}).join(""),c=new m(a,16).add(m.ONE);s=c.toString(16),s.toUpperCase().startsWith("FF8")&&(s=s.substring(2))}return s},o})();/*!
26
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
27
- * SPDX-License-Identifier: Apache-2.0
28
- */var we=(function(){function o(t){this.jwtToken=t||"",this.payload=this.decodePayload()}var r=o.prototype;return r.getJwtToken=function(){return this.jwtToken},r.getExpiration=function(){return this.payload.exp},r.getIssuedAt=function(){return this.payload.iat},r.decodePayload=function(){var t=this.jwtToken.split(".")[1];try{return JSON.parse(I.Buffer.from(t,"base64").toString("utf8"))}catch{return{}}},o})();function pn(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,Dt(o,r)}function Dt(o,r){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Dt(o,r)}var se=(function(o){function r(t){var n=t===void 0?{}:t,s=n.AccessToken;return o.call(this,s||"")||this}return pn(r,o),r})(we);function dn(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,It(o,r)}function It(o,r){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},It(o,r)}var oe=(function(o){function r(t){var n=t===void 0?{}:t,s=n.IdToken;return o.call(this,s||"")||this}return dn(r,o),r})(we);/*!
29
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
30
- * SPDX-License-Identifier: Apache-2.0
31
- */var ae=(function(){function o(t){var n=t===void 0?{}:t,s=n.RefreshToken;this.token=s||""}var r=o.prototype;return r.getToken=function(){return this.token},o})(),vn="5.0.4";/*!
32
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
- * SPDX-License-Identifier: Apache-2.0
34
- */var yn="aws-amplify/"+vn,Ae={userAgent:yn,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},Sn=function(){return Ae.userAgent};/*!
35
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
36
- * SPDX-License-Identifier: Apache-2.0
37
- */var ue=(function(){function o(t){var n=t===void 0?{}:t,s=n.IdToken,a=n.RefreshToken,c=n.AccessToken,f=n.ClockDrift;if(c==null||s==null)throw new Error("Id token and Access Token must be present.");this.idToken=s,this.refreshToken=a,this.accessToken=c,this.clockDrift=f===void 0?this.calculateClockDrift():f}var r=o.prototype;return r.getIdToken=function(){return this.idToken},r.getRefreshToken=function(){return this.refreshToken},r.getAccessToken=function(){return this.accessToken},r.getClockDrift=function(){return this.clockDrift},r.calculateClockDrift=function(){var t=Math.floor(new Date/1e3),n=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return t-n},r.isValid=function(){var t=Math.floor(new Date/1e3),n=t-this.clockDrift;return n<this.accessToken.getExpiration()&&n<this.idToken.getExpiration()},o})();/*!
38
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
39
- * SPDX-License-Identifier: Apache-2.0
40
- */var mn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fe=(function(){function o(){}var r=o.prototype;return r.getNowString=function(){var t=new Date,n=wn[t.getUTCDay()],s=mn[t.getUTCMonth()],a=t.getUTCDate(),c=t.getUTCHours();c<10&&(c="0"+c);var f=t.getUTCMinutes();f<10&&(f="0"+f);var g=t.getUTCSeconds();g<10&&(g="0"+g);var l=t.getUTCFullYear(),d=n+" "+s+" "+a+" "+c+":"+f+":"+g+" UTC "+l;return d},o})();/*!
41
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
42
- * SPDX-License-Identifier: Apache-2.0
43
- */var An=(function(){function o(t){var n=t===void 0?{}:t,s=n.Name,a=n.Value;this.Name=s||"",this.Value=a||""}var r=o.prototype;return r.getValue=function(){return this.Value},r.setValue=function(t){return this.Value=t,this},r.getName=function(){return this.Name},r.setName=function(t){return this.Name=t,this},r.toString=function(){return JSON.stringify(this)},r.toJSON=function(){return{Name:this.Name,Value:this.Value}},o})();/*!
44
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
45
- * SPDX-License-Identifier: Apache-2.0
46
- */var J={},Cn=(function(){function o(){}return o.setItem=function(r,t){return J[r]=t,J[r]},o.getItem=function(r){return Object.prototype.hasOwnProperty.call(J,r)?J[r]:void 0},o.removeItem=function(r){return delete J[r]},o.clear=function(){return J={},J},o})(),Ce=(function(){function o(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=Cn}}var r=o.prototype;return r.getStorage=function(){return this.storageWindow},o})();/*!
47
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
48
- * SPDX-License-Identifier: Apache-2.0
49
- */var Un=typeof navigator<"u",ce=Un?Ae.isReactNative?"react-native":navigator.userAgent:"nodejs",he=(function(){function o(t){if(t==null||t.Username==null||t.Pool==null)throw new Error("Username and Pool information are required.");this.username=t.Username||"",this.pool=t.Pool,this.Session=null,this.client=t.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=t.Storage||new Ce().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var r=o.prototype;return r.setSignInUserSession=function(t){this.clearCachedUserData(),this.signInUserSession=t,this.cacheTokens()},r.getSignInUserSession=function(){return this.signInUserSession},r.getUsername=function(){return this.username},r.getAuthenticationFlowType=function(){return this.authenticationFlowType},r.setAuthenticationFlowType=function(t){this.authenticationFlowType=t},r.initiateAuth=function(t,n){var s=this,a=t.getAuthParameters();a.USERNAME=this.username;var c=Object.keys(t.getValidationData()).length!==0?t.getValidationData():t.getClientMetadata(),f={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:a,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",f,function(g,l){if(g)return n.onFailure(g);var d=l.ChallengeName,y=l.ChallengeParameters;return d==="CUSTOM_CHALLENGE"?(s.Session=l.Session,n.customChallenge(y)):(s.signInUserSession=s.getCognitoUserSession(l.AuthenticationResult),s.cacheTokens(),n.onSuccess(s.signInUserSession))})},r.authenticateUser=function(t,n){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(t,n):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(t,n):n.onFailure(new Error("Authentication flow type is invalid."))},r.authenticateUserDefaultAuth=function(t,n){var s=this,a=new $(this.pool.getUserPoolName()),c=new fe,f,g,l={};this.deviceKey!=null&&(l.DEVICE_KEY=this.deviceKey),l.USERNAME=this.username,a.getLargeAValue(function(d,y){d&&n.onFailure(d),l.SRP_A=y.toString(16),s.authenticationFlowType==="CUSTOM_AUTH"&&(l.CHALLENGE_NAME="SRP_A");var S=Object.keys(t.getValidationData()).length!==0?t.getValidationData():t.getClientMetadata(),w={AuthFlow:s.authenticationFlowType,ClientId:s.pool.getClientId(),AuthParameters:l,ClientMetadata:S};s.getUserContextData(s.username)&&(w.UserContextData=s.getUserContextData(s.username)),s.client.request("InitiateAuth",w,function(U,A){if(U)return n.onFailure(U);var E=A.ChallengeParameters;s.username=E.USER_ID_FOR_SRP,s.userDataKey=s.keyPrefix+"."+s.username+".userData",f=new m(E.SRP_B,16),g=new m(E.SALT,16),s.getCachedDeviceKeyAndPassword(),a.getPasswordAuthenticationKey(s.username,t.getPassword(),f,g,function(T,B){T&&n.onFailure(T);var q=c.getNowString(),M=I.Buffer.concat([I.Buffer.from(s.pool.getUserPoolName(),"utf8"),I.Buffer.from(s.username,"utf8"),I.Buffer.from(E.SECRET_BLOCK,"base64"),I.Buffer.from(q,"utf8")]),Y=new ut.Sha256(B);Y.update(M);var W=Y.digestSync(),L=I.Buffer.from(W).toString("base64"),x={};x.USERNAME=s.username,x.PASSWORD_CLAIM_SECRET_BLOCK=E.SECRET_BLOCK,x.TIMESTAMP=q,x.PASSWORD_CLAIM_SIGNATURE=L,s.deviceKey!=null&&(x.DEVICE_KEY=s.deviceKey);var j=function(G,z){return s.client.request("RespondToAuthChallenge",G,function(X,ht){return X&&X.code==="ResourceNotFoundException"&&X.message.toLowerCase().indexOf("device")!==-1?(x.DEVICE_KEY=null,s.deviceKey=null,s.randomPassword=null,s.deviceGroupKey=null,s.clearCachedDeviceKeyAndPassword(),j(G,z)):z(X,ht)})},Z={ChallengeName:"PASSWORD_VERIFIER",ClientId:s.pool.getClientId(),ChallengeResponses:x,Session:A.Session,ClientMetadata:S};s.getUserContextData()&&(Z.UserContextData=s.getUserContextData()),j(Z,function(G,z){return G?n.onFailure(G):s.authenticateUserInternal(z,a,n)})})})})},r.authenticateUserPlainUsernamePassword=function(t,n){var s=this,a={};if(a.USERNAME=this.username,a.PASSWORD=t.getPassword(),!a.PASSWORD){n.onFailure(new Error("PASSWORD parameter is required"));return}var c=new $(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(a.DEVICE_KEY=this.deviceKey);var f=Object.keys(t.getValidationData()).length!==0?t.getValidationData():t.getClientMetadata(),g={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:a,ClientMetadata:f};this.getUserContextData(this.username)&&(g.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",g,function(l,d){return l?n.onFailure(l):s.authenticateUserInternal(d,c,n)})},r.authenticateUserInternal=function(t,n,s){var a=this,c=t.ChallengeName,f=t.ChallengeParameters;if(c==="SMS_MFA")return this.Session=t.Session,s.mfaRequired(c,f);if(c==="SELECT_MFA_TYPE")return this.Session=t.Session,s.selectMFAType(c,f);if(c==="MFA_SETUP")return this.Session=t.Session,s.mfaSetup(c,f);if(c==="SOFTWARE_TOKEN_MFA")return this.Session=t.Session,s.totpRequired(c,f);if(c==="CUSTOM_CHALLENGE")return this.Session=t.Session,s.customChallenge(f);if(c==="NEW_PASSWORD_REQUIRED"){this.Session=t.Session;var g=null,l=null,d=[],y=n.getNewPasswordRequiredChallengeUserAttributePrefix();if(f&&(g=JSON.parse(t.ChallengeParameters.userAttributes),l=JSON.parse(t.ChallengeParameters.requiredAttributes)),l)for(var S=0;S<l.length;S++)d[S]=l[S].substr(y.length);return s.newPasswordRequired(g,d)}if(c==="DEVICE_SRP_AUTH"){this.Session=t.Session,this.getDeviceResponse(s);return}this.signInUserSession=this.getCognitoUserSession(t.AuthenticationResult),this.challengeName=c,this.cacheTokens();var w=t.AuthenticationResult.NewDeviceMetadata;if(w==null)return s.onSuccess(this.signInUserSession);n.generateHashDevice(t.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,t.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(U){if(U)return s.onFailure(U);var A={Salt:I.Buffer.from(n.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:I.Buffer.from(n.getVerifierDevices(),"hex").toString("base64")};a.verifierDevices=A.PasswordVerifier,a.deviceGroupKey=w.DeviceGroupKey,a.randomPassword=n.getRandomPassword(),a.client.request("ConfirmDevice",{DeviceKey:w.DeviceKey,AccessToken:a.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:A,DeviceName:ce},function(E,T){return E?s.onFailure(E):(a.deviceKey=t.AuthenticationResult.NewDeviceMetadata.DeviceKey,a.cacheDeviceKeyAndPassword(),T.UserConfirmationNecessary===!0?s.onSuccess(a.signInUserSession,T.UserConfirmationNecessary):s.onSuccess(a.signInUserSession))})})},r.completeNewPasswordChallenge=function(t,n,s,a){var c=this;if(!t)return s.onFailure(new Error("New password is required."));var f=new $(this.pool.getUserPoolName()),g=f.getNewPasswordRequiredChallengeUserAttributePrefix(),l={};n&&Object.keys(n).forEach(function(y){l[g+y]=n[y]}),l.NEW_PASSWORD=t,l.USERNAME=this.username;var d={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:l,Session:this.Session,ClientMetadata:a};this.getUserContextData()&&(d.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",d,function(y,S){return y?s.onFailure(y):c.authenticateUserInternal(S,f,s)})},r.getDeviceResponse=function(t,n){var s=this,a=new $(this.deviceGroupKey),c=new fe,f={};f.USERNAME=this.username,f.DEVICE_KEY=this.deviceKey,a.getLargeAValue(function(g,l){g&&t.onFailure(g),f.SRP_A=l.toString(16);var d={ChallengeName:"DEVICE_SRP_AUTH",ClientId:s.pool.getClientId(),ChallengeResponses:f,ClientMetadata:n,Session:s.Session};s.getUserContextData()&&(d.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",d,function(y,S){if(y)return t.onFailure(y);var w=S.ChallengeParameters,U=new m(w.SRP_B,16),A=new m(w.SALT,16);a.getPasswordAuthenticationKey(s.deviceKey,s.randomPassword,U,A,function(E,T){if(E)return t.onFailure(E);var B=c.getNowString(),q=I.Buffer.concat([I.Buffer.from(s.deviceGroupKey,"utf8"),I.Buffer.from(s.deviceKey,"utf8"),I.Buffer.from(w.SECRET_BLOCK,"base64"),I.Buffer.from(B,"utf8")]),M=new ut.Sha256(T);M.update(q);var Y=M.digestSync(),W=I.Buffer.from(Y).toString("base64"),L={};L.USERNAME=s.username,L.PASSWORD_CLAIM_SECRET_BLOCK=w.SECRET_BLOCK,L.TIMESTAMP=B,L.PASSWORD_CLAIM_SIGNATURE=W,L.DEVICE_KEY=s.deviceKey;var x={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:s.pool.getClientId(),ChallengeResponses:L,Session:S.Session};s.getUserContextData()&&(x.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",x,function(j,Z){return j?t.onFailure(j):(s.signInUserSession=s.getCognitoUserSession(Z.AuthenticationResult),s.cacheTokens(),t.onSuccess(s.signInUserSession))})})})})},r.confirmRegistration=function(t,n,s,a){var c={ClientId:this.pool.getClientId(),ConfirmationCode:t,Username:this.username,ForceAliasCreation:n,ClientMetadata:a};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",c,function(f){return f?s(f,null):s(null,"SUCCESS")})},r.sendCustomChallengeAnswer=function(t,n,s){var a=this,c={};c.USERNAME=this.username,c.ANSWER=t;var f=new $(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(c.DEVICE_KEY=this.deviceKey);var g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:c,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(g.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",g,function(l,d){return l?n.onFailure(l):a.authenticateUserInternal(d,f,n)})},r.sendMFACode=function(t,n,s,a){var c=this,f={};f.USERNAME=this.username,f.SMS_MFA_CODE=t;var g=s||"SMS_MFA";g==="SOFTWARE_TOKEN_MFA"&&(f.SOFTWARE_TOKEN_MFA_CODE=t),this.deviceKey!=null&&(f.DEVICE_KEY=this.deviceKey);var l={ChallengeName:g,ChallengeResponses:f,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:a};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,function(d,y){if(d)return n.onFailure(d);var S=y.ChallengeName;if(S==="DEVICE_SRP_AUTH"){c.getDeviceResponse(n);return}if(c.signInUserSession=c.getCognitoUserSession(y.AuthenticationResult),c.cacheTokens(),y.AuthenticationResult.NewDeviceMetadata==null)return n.onSuccess(c.signInUserSession);var w=new $(c.pool.getUserPoolName());w.generateHashDevice(y.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,y.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(U){if(U)return n.onFailure(U);var A={Salt:I.Buffer.from(w.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:I.Buffer.from(w.getVerifierDevices(),"hex").toString("base64")};c.verifierDevices=A.PasswordVerifier,c.deviceGroupKey=y.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,c.randomPassword=w.getRandomPassword(),c.client.request("ConfirmDevice",{DeviceKey:y.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:c.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:A,DeviceName:ce},function(E,T){return E?n.onFailure(E):(c.deviceKey=y.AuthenticationResult.NewDeviceMetadata.DeviceKey,c.cacheDeviceKeyAndPassword(),T.UserConfirmationNecessary===!0?n.onSuccess(c.signInUserSession,T.UserConfirmationNecessary):n.onSuccess(c.signInUserSession))})})})},r.changePassword=function(t,n,s,a){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return s(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:t,ProposedPassword:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:a},function(c){return c?s(c,null):s(null,"SUCCESS")})},r.enableMFA=function(t){if(this.signInUserSession==null||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);var n=[],s={DeliveryMedium:"SMS",AttributeName:"phone_number"};n.push(s),this.client.request("SetUserSettings",{MFAOptions:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?t(a,null):t(null,"SUCCESS")})},r.setUserMfaPreference=function(t,n,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:t,SoftwareTokenMfaSettings:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?s(a,null):s(null,"SUCCESS")})},r.disableMFA=function(t){if(this.signInUserSession==null||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);var n=[];this.client.request("SetUserSettings",{MFAOptions:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?t(s,null):t(null,"SUCCESS")})},r.deleteUser=function(t,n){var s=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},function(a){return a?t(a,null):(s.clearCachedUser(),t(null,"SUCCESS"))})},r.updateAttributes=function(t,n,s){var a=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:t,ClientMetadata:s},function(c,f){return c?n(c,null):a.getUserData(function(){return n(null,"SUCCESS",f)},{bypassCache:!0})})},r.getUserAttributes=function(t){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return t(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(n,s){if(n)return t(n,null);for(var a=[],c=0;c<s.UserAttributes.length;c++){var f={Name:s.UserAttributes[c].Name,Value:s.UserAttributes[c].Value},g=new An(f);a.push(g)}return t(null,a)})},r.getMFAOptions=function(t){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return t(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(n,s){return n?t(n,null):t(null,s.MFAOptions)})},r.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},r.refreshSessionIfPossible=function(t){var n=this;return t===void 0&&(t={}),new Promise(function(s){var a=n.signInUserSession.getRefreshToken();a&&a.getToken()?n.refreshSession(a,s,t.clientMetadata):s()})},r.getUserData=function(t,n){var s=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),t(new Error("User is not authenticated"),null);var a=this.getUserDataFromCache();if(!a){this.fetchUserData().then(function(c){t(null,c)}).catch(t);return}if(this.isFetchUserDataAndTokenRequired(n)){this.fetchUserData().then(function(c){return s.refreshSessionIfPossible(n).then(function(){return c})}).then(function(c){return t(null,c)}).catch(t);return}try{t(null,JSON.parse(a));return}catch(c){this.clearCachedUserData(),t(c,null);return}},r.getUserDataFromCache=function(){var t=this.storage.getItem(this.userDataKey);return t},r.isFetchUserDataAndTokenRequired=function(t){var n=t||{},s=n.bypassCache,a=s===void 0?!1:s;return a},r.fetchUserData=function(){var t=this;return this.createGetUserRequest().then(function(n){return t.cacheUserData(n),n})},r.deleteAttributes=function(t,n){var s=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return n(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?n(a,null):s.getUserData(function(){return n(null,"SUCCESS")},{bypassCache:!0})})},r.resendConfirmationCode=function(t,n){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:n};this.client.request("ResendConfirmationCode",s,function(a,c){return a?t(a,null):t(null,c)})},r.getSession=function(t,n){if(n===void 0&&(n={}),this.username==null)return t(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return t(null,this.signInUserSession);var s="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=s+".idToken",c=s+".accessToken",f=s+".refreshToken",g=s+".clockDrift";if(this.storage.getItem(a)){var l=new oe({IdToken:this.storage.getItem(a)}),d=new se({AccessToken:this.storage.getItem(c)}),y=new ae({RefreshToken:this.storage.getItem(f)}),S=parseInt(this.storage.getItem(g),0)||0,w={IdToken:l,AccessToken:d,RefreshToken:y,ClockDrift:S},U=new ue(w);if(U.isValid())return this.signInUserSession=U,t(null,this.signInUserSession);if(!y.getToken())return t(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(y,t,n.clientMetadata)}else t(new Error("Local storage is missing an ID Token, Please authenticate"),null)},r.refreshSession=function(t,n,s){var a=this,c=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(n):n,f={};f.REFRESH_TOKEN=t.getToken();var g="CognitoIdentityServiceProvider."+this.pool.getClientId(),l=g+".LastAuthUser";if(this.storage.getItem(l)){this.username=this.storage.getItem(l);var d=g+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(d),f.DEVICE_KEY=this.deviceKey}var y={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:f,ClientMetadata:s};this.getUserContextData()&&(y.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",y,function(S,w){if(S)return S.code==="NotAuthorizedException"&&a.clearCachedUser(),c(S,null);if(w){var U=w.AuthenticationResult;return Object.prototype.hasOwnProperty.call(U,"RefreshToken")||(U.RefreshToken=t.getToken()),a.signInUserSession=a.getCognitoUserSession(U),a.cacheTokens(),c(null,a.signInUserSession)}})},r.cacheTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),n=t+"."+this.username+".idToken",s=t+"."+this.username+".accessToken",a=t+"."+this.username+".refreshToken",c=t+"."+this.username+".clockDrift",f=t+".LastAuthUser";this.storage.setItem(n,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(s,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(a,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(c,""+this.signInUserSession.getClockDrift()),this.storage.setItem(f,this.username)},r.cacheUserData=function(t){this.storage.setItem(this.userDataKey,JSON.stringify(t))},r.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},r.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},r.cacheDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=t+".deviceKey",s=t+".randomPasswordKey",a=t+".deviceGroupKey";this.storage.setItem(n,this.deviceKey),this.storage.setItem(s,this.randomPassword),this.storage.setItem(a,this.deviceGroupKey)},r.getCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=t+".deviceKey",s=t+".randomPasswordKey",a=t+".deviceGroupKey";this.storage.getItem(n)&&(this.deviceKey=this.storage.getItem(n),this.randomPassword=this.storage.getItem(s),this.deviceGroupKey=this.storage.getItem(a))},r.clearCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=t+".deviceKey",s=t+".randomPasswordKey",a=t+".deviceGroupKey";this.storage.removeItem(n),this.storage.removeItem(s),this.storage.removeItem(a)},r.clearCachedTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),n=t+"."+this.username+".idToken",s=t+"."+this.username+".accessToken",a=t+"."+this.username+".refreshToken",c=t+".LastAuthUser",f=t+"."+this.username+".clockDrift";this.storage.removeItem(n),this.storage.removeItem(s),this.storage.removeItem(a),this.storage.removeItem(c),this.storage.removeItem(f)},r.getCognitoUserSession=function(t){var n=new oe(t),s=new se(t),a=new ae(t),c={IdToken:n,AccessToken:s,RefreshToken:a};return new ue(c)},r.forgotPassword=function(t,n){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:n};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",s,function(a,c){return a?t.onFailure(a):typeof t.inputVerificationCode=="function"?t.inputVerificationCode(c):t.onSuccess(c)})},r.confirmPassword=function(t,n,s,a){var c={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:t,Password:n,ClientMetadata:a};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",c,function(f){return f?s.onFailure(f):s.onSuccess("SUCCESS")})},r.getAttributeVerificationCode=function(t,n,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},function(a,c){return a?n.onFailure(a):typeof n.inputVerificationCode=="function"?n.inputVerificationCode(c):n.onSuccess("SUCCESS")})},r.verifyAttribute=function(t,n,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:t,Code:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?s.onFailure(a):s.onSuccess("SUCCESS")})},r.getDevice=function(t){if(this.signInUserSession==null||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(n,s){return n?t.onFailure(n):t.onSuccess(s)})},r.forgetSpecificDevice=function(t,n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:t},function(s){return s?n.onFailure(s):n.onSuccess("SUCCESS")})},r.forgetDevice=function(t){var n=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:t.onFailure,onSuccess:function(s){return n.deviceKey=null,n.deviceGroupKey=null,n.randomPassword=null,n.clearCachedDeviceKeyAndPassword(),t.onSuccess(s)}})},r.setDeviceStatusRemembered=function(t){if(this.signInUserSession==null||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(n){return n?t.onFailure(n):t.onSuccess("SUCCESS")})},r.setDeviceStatusNotRemembered=function(t){if(this.signInUserSession==null||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(n){return n?t.onFailure(n):t.onSuccess("SUCCESS")})},r.listDevices=function(t,n,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));var a={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:t};n&&(a.PaginationToken=n),this.client.request("ListDevices",a,function(c,f){return c?s.onFailure(c):s.onSuccess(f)})},r.globalSignOut=function(t){var n=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?t.onFailure(s):(n.clearCachedUser(),t.onSuccess("SUCCESS"))})},r.signOut=function(t){var n=this;if(!t||typeof t!="function"){this.cleanClientData();return}this.getSession(function(s,a){if(s)return t(s);n.revokeTokens(function(c){n.cleanClientData(),t(c)})})},r.revokeTokens=function(t){if(t===void 0&&(t=function(){}),typeof t!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var n=new Error("User is not authenticated");return t(n)}if(!this.signInUserSession.getAccessToken()){var s=new Error("No Access token available");return t(s)}var a=this.signInUserSession.getRefreshToken().getToken(),c=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(c)&&a)return this.revokeToken({token:a,callback:t});t()},r.isSessionRevocable=function(t){if(t&&typeof t.decodePayload=="function")try{var n=t.decodePayload(),s=n.origin_jti;return!!s}catch{}return!1},r.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},r.revokeToken=function(t){var n=t.token,s=t.callback;this.client.requestWithRetry("RevokeToken",{Token:n,ClientId:this.pool.getClientId()},function(a){if(a)return s(a);s()})},r.sendMFASelectionAnswer=function(t,n){var s=this,a={};a.USERNAME=this.username,a.ANSWER=t;var c={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:a,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",c,function(f,g){if(f)return n.onFailure(f);if(s.Session=g.Session,t==="SMS_MFA")return n.mfaRequired(g.ChallengeName,g.ChallengeParameters);if(t==="SOFTWARE_TOKEN_MFA")return n.totpRequired(g.ChallengeName,g.ChallengeParameters)})},r.getUserContextData=function(){var t=this.pool;return t.getUserContextData(this.username)},r.associateSoftwareToken=function(t){var n=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s,a){return s?t.onFailure(s):t.associateSecretCode(a.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(s,a){return s?t.onFailure(s):(n.Session=a.Session,t.associateSecretCode(a.SecretCode))})},r.verifySoftwareToken=function(t,n,s){var a=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:t,FriendlyDeviceName:n},function(c,f){return c?s.onFailure(c):s.onSuccess(f)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:t,FriendlyDeviceName:n},function(c,f){if(c)return s.onFailure(c);a.Session=f.Session;var g={};g.USERNAME=a.username;var l={ChallengeName:"MFA_SETUP",ClientId:a.pool.getClientId(),ChallengeResponses:g,Session:a.Session};a.getUserContextData()&&(l.UserContextData=a.getUserContextData()),a.client.request("RespondToAuthChallenge",l,function(d,y){return d?s.onFailure(d):(a.signInUserSession=a.getCognitoUserSession(y.AuthenticationResult),a.cacheTokens(),s.onSuccess(a.signInUserSession))})})},o})();function En(o,r){return r=r||{},new Promise(function(t,n){var s=new XMLHttpRequest,a=[],c=[],f={},g=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return a},entries:function(){return c},get:function(d){return f[d.toLowerCase()]},has:function(d){return d.toLowerCase()in f}}}};for(var l in s.open(r.method||"get",o,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,y,S){a.push(y=y.toLowerCase()),c.push([y,S]),f[y]=f[y]?f[y]+","+S:S}),t(g())},s.onerror=n,s.withCredentials=r.credentials=="include",r.headers)s.setRequestHeader(l,r.headers[l]);s.send(r.body||null)})}const Tn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),le=Pt(Tn);var ge,pe;function Dn(){return pe||(pe=1,ge=self.fetch||(self.fetch=le.default||le)),ge}Dn();function Q(){}Q.prototype.userAgent=Sn();var In=function(o){var r=Q.category?" "+Q.category:"",t=Q.framework?" framework/"+Q.framework:"",n=""+Q.prototype.userAgent+r+t;return n};function bn(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,ct(o,r)}function bt(o){var r=typeof Map=="function"?new Map:void 0;return bt=function(t){if(t===null||!Pn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return _n(t,arguments,_t(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ct(n,t)},bt(o)}function _n(o,r,t){if(Ue())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var s=new(o.bind.apply(o,n));return t&&ct(s,t.prototype),s}function Ue(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ue=function(){return!!o})()}function Pn(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}function ct(o,r){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ct(o,r)}function _t(o){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_t(o)}var Rn=(function(o){function r(t,n,s,a){var c;return c=o.call(this,t)||this,c.code=n,c.name=s,c.statusCode=a,c}return bn(r,o),r})(bt(Error)),kn=(function(){function o(t,n,s){this.endpoint=n||"https://cognito-idp."+t+".amazonaws.com/";var a=s||{},c=a.credentials;this.fetchOptions=c?{credentials:c}:{}}var r=o.prototype;return r.promisifyRequest=function(t,n){var s=this;return new Promise(function(a,c){s.request(t,n,function(f,g){f?c(new Rn(f.message,f.code,f.name,f.statusCode)):a(g)})})},r.requestWithRetry=function(t,n,s){var a=this,c=5*1e3;Fn(function(f){return new Promise(function(g,l){a.request(t,f,function(d,y){d?l(d):g(y)})})},[n],c).then(function(f){return s(null,f)}).catch(function(f){return s(f)})},r.request=function(t,n,s){var a={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+t,"X-Amz-User-Agent":In(),"Cache-Control":"no-store"},c=Object.assign({},this.fetchOptions,{headers:a,method:"POST",mode:"cors",body:JSON.stringify(n)}),f;fetch(this.endpoint,c).then(function(g){return f=g,g},function(g){throw g instanceof TypeError?new Error("Network error"):g}).then(function(g){return g.json().catch(function(){return{}})}).then(function(g){if(f.ok)return s(null,g);var l=(g.__type||g.code).split("#").pop(),d=new Error(g.message||g.Message||null);return d.name=l,d.code=l,s(d)}).catch(function(g){if(f&&f.headers&&f.headers.get("x-amzn-errortype"))try{var l=f.headers.get("x-amzn-errortype").split(":")[0],d=new Error(f.status?f.status.toString():null);return d.code=l,d.name=l,d.statusCode=f.status,s(d)}catch{return s(g)}else g instanceof Error&&g.message==="Network error"&&(g.code="NetworkError");return s(g)})},o})(),yt={debug:function(){}},On=function(o){var r="nonRetryable";return o&&o[r]};function Ee(o,r,t,n){if(n===void 0&&(n=1),typeof o!="function")throw Error("functionToRetry must be a function");return yt.debug(o.name+" attempt #"+n+" with args: "+JSON.stringify(r)),o.apply(void 0,r).catch(function(s){if(yt.debug("error on "+o.name,s),On(s))throw yt.debug(o.name+" non retryable error",s),s;var a=t(n,r,s);if(yt.debug(o.name+" retrying in "+a+" ms"),a!==!1)return new Promise(function(c){return setTimeout(c,a)}).then(function(){return Ee(o,r,t,n+1)});throw s})}function Bn(o){var r=100,t=100;return function(n){var s=Math.pow(2,n)*r+t*Math.random();return s>o?!1:s}}function Fn(o,r,t){return Ee(o,r,Bn(t))}/*!
50
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
- * SPDX-License-Identifier: Apache-2.0
52
- */var Mn=55,Hn=(function(){function o(t,n){var s=t||{},a=s.UserPoolId,c=s.ClientId,f=s.endpoint,g=s.fetchOptions,l=s.AdvancedSecurityDataCollectionFlag;if(!a||!c)throw new Error("Both UserPoolId and ClientId are required.");if(a.length>Mn||!/^[\w-]+_[0-9a-zA-Z]+$/.test(a))throw new Error("Invalid UserPoolId format.");var d=a.split("_")[0];this.userPoolId=a,this.clientId=c,this.client=new kn(d,f,g),this.advancedSecurityDataCollectionFlag=l!==!1,this.storage=t.Storage||new Ce().getStorage(),n&&(this.wrapRefreshSessionCallback=n)}var r=o.prototype;return r.getUserPoolId=function(){return this.userPoolId},r.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},r.getClientId=function(){return this.clientId},r.signUp=function(t,n,s,a,c,f){var g=this,l={ClientId:this.clientId,Username:t,Password:n,UserAttributes:s,ValidationData:a,ClientMetadata:f};this.getUserContextData(t)&&(l.UserContextData=this.getUserContextData(t)),this.client.request("SignUp",l,function(d,y){if(d)return c(d,null);var S={Username:t,Pool:g,Storage:g.storage},w={user:new he(S),userConfirmed:y.UserConfirmed,userSub:y.UserSub,codeDeliveryDetails:y.CodeDeliveryDetails};return c(null,w)})},r.getCurrentUser=function(){var t="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",n=this.storage.getItem(t);if(n){var s={Username:n,Pool:this,Storage:this.storage};return new he(s)}return null},r.getUserContextData=function(t){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var n=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var s=n.getData(t,this.userPoolId,this.clientId);if(s){var a={EncodedData:s};return a}}return{}}},o})(),de={exports:{}};/*!
53
- * JavaScript Cookie v2.2.1
54
- * https://github.com/js-cookie/js-cookie
55
- *
56
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
57
- * Released under the MIT license
58
- */var ve;function xn(){return ve||(ve=1,(function(o,r){(function(t){var n;if(o.exports=t(),n=!0,!n){var s=window.Cookies,a=window.Cookies=t();a.noConflict=function(){return window.Cookies=s,a}}})(function(){function t(){for(var a=0,c={};a<arguments.length;a++){var f=arguments[a];for(var g in f)c[g]=f[g]}return c}function n(a){return a.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function s(a){function c(){}function f(l,d,y){if(!(typeof document>"u")){y=t({path:"/"},c.defaults,y),typeof y.expires=="number"&&(y.expires=new Date(new Date*1+y.expires*864e5)),y.expires=y.expires?y.expires.toUTCString():"";try{var S=JSON.stringify(d);/^[\{\[]/.test(S)&&(d=S)}catch{}d=a.write?a.write(d,l):encodeURIComponent(String(d)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),l=encodeURIComponent(String(l)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var w="";for(var U in y)y[U]&&(w+="; "+U,y[U]!==!0&&(w+="="+y[U].split(";")[0]));return document.cookie=l+"="+d+w}}function g(l,d){if(!(typeof document>"u")){for(var y={},S=document.cookie?document.cookie.split("; "):[],w=0;w<S.length;w++){var U=S[w].split("="),A=U.slice(1).join("=");!d&&A.charAt(0)==='"'&&(A=A.slice(1,-1));try{var E=n(U[0]);if(A=(a.read||a)(A,E)||n(A),d)try{A=JSON.parse(A)}catch{}if(y[E]=A,l===E)break}catch{}}return l?y[l]:y}}return c.set=f,c.get=function(l){return g(l,!1)},c.getJSON=function(l){return g(l,!0)},c.remove=function(l,d){f(l,"",t(d,{expires:-1}))},c.defaults={},c.withConverter=s,c}return s(function(){})})})(de)),de.exports}xn();export{jn as AuthenticationDetails,$ as AuthenticationHelper,se as CognitoAccessToken,oe as CognitoIdToken,ae as CognitoRefreshToken,he as CognitoUser,An as CognitoUserAttribute,Hn as CognitoUserPool,ue as CognitoUserSession,fe as DateHelper,He as WordArray};