@tonysamperi/ts-mapi-core 2.0.0-beta.6 → 2.1.0
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.
- package/README.md +32 -0
- package/changelog.md +25 -0
- package/dist/cjs/eslint.cjs +2 -0
- package/dist/cjs/eslint.cjs.map +1 -0
- package/dist/cjs/eslint.d.cts +107 -0
- package/dist/cjs/firebase.cjs +1 -1
- package/dist/cjs/firebase.cjs.map +1 -1
- package/dist/cjs/firebase.d.cts +20 -6
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +40 -4
- package/dist/cjs/{smp-generic-response-base.interface-C0On2LBc.d.cts → smp-generic-response-base.interface-BSdPo_xm.d.cts} +2 -0
- package/dist/cjs/zod.cjs +1 -1
- package/dist/cjs/zod.cjs.map +1 -1
- package/dist/cjs/zod.d.cts +2 -1
- package/dist/esm/chunk-7X4DHW36.js +1 -0
- package/dist/esm/{chunk-VBEMFJKM.js → chunk-OVNQKUGW.js} +1 -1
- package/dist/esm/dynamo.js +1 -1
- package/dist/esm/eslint.d.ts +107 -0
- package/dist/esm/eslint.js +1 -0
- package/dist/esm/firebase.d.ts +20 -6
- package/dist/esm/firebase.js +1 -1
- package/dist/esm/index.d.ts +40 -4
- package/dist/esm/index.js +2 -1
- package/dist/esm/rxjs.js +1 -1
- package/dist/esm/{smp-generic-response-base.interface-C0On2LBc.d.ts → smp-generic-response-base.interface-BSdPo_xm.d.ts} +2 -0
- package/dist/esm/zod.d.ts +2 -1
- package/dist/esm/zod.js +1 -1
- package/package.json +32 -12
- package/dist/esm/chunk-EI7MMDWY.js +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{a as mc,b as gc,c as _c}from"./chunk-DIVAYUSN.js";import{a as ze,b as Ue}from"./chunk-VBEMFJKM.js";import{a as ct}from"./chunk-F3OJMKBL.js";import{a as n}from"./chunk-EI7MMDWY.js";import{DateTime as ke}from"ts-luxon";var ht=class extends ze{static{n(this,"SmpAbstractTtlCacheStrategy")}flush(){this._flushRaw()}read(t){let e=this._readRaw(t);if(this._isSmpCachedValue(e)){if(e.expiry>=ke.now().ts)return e.value;this._removeRaw(t);return}return e}remove(t){this._removeRaw(t)}write(t,e,o){if(isNaN(+o)||+o<=0){this._writeRaw(t,e,o);return}let s=ke.now().ts+o*1e3,i={value:e,expiry:s};this._writeRaw(t,i,o)}_isSmpCachedValue(t){return Ue(t)}};var jt=class extends ht{static{n(this,"SmpBrowserCache")}_storage;_prefix;constructor(t,e){super(),this._storage=t,this._prefix=e}_flushRaw(){let t=[],e=-1;for(;++e<this._storage.length;){let o=this._storage.key(e);o&&o.startsWith(this._prefix)&&t.push(o)}for(e=-1;++e<t.length;)this._storage.removeItem(t[e])}_readRaw(t){let e=this._storage.getItem(this._prefix+t);try{return e?JSON.parse(e):void 0}catch{console.warn(`${this.constructor.name}: failed to parse cache item for key ${this._prefix+t}`);return}}_removeRaw(t){this._storage.removeItem(this._prefix+t)}_writeRaw(t,e){try{this._storage.setItem(this._prefix+t,JSON.stringify(e))}catch(o){console.warn(`${this.constructor.name}: failed to write cache item for key ${this._prefix+t}`,o)}}};var Mt=class extends jt{static{n(this,"SmpHttpSessionStorageCache")}constructor(){super(sessionStorage,"smp_rest_cache_")}};var $e=(function(r){return r[r.Continue=100]="Continue",r[r.SwitchingProtocols=101]="SwitchingProtocols",r[r.Processing=102]="Processing",r[r.EarlyHints=103]="EarlyHints",r[r.Ok=200]="Ok",r[r.Created=201]="Created",r[r.Accepted=202]="Accepted",r[r.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",r[r.NoContent=204]="NoContent",r[r.ResetContent=205]="ResetContent",r[r.PartialContent=206]="PartialContent",r[r.MultiStatus=207]="MultiStatus",r[r.AlreadyReported=208]="AlreadyReported",r[r.ImUsed=226]="ImUsed",r[r.MultipleChoices=300]="MultipleChoices",r[r.MovedPermanently=301]="MovedPermanently",r[r.Found=302]="Found",r[r.SeeOther=303]="SeeOther",r[r.NotModified=304]="NotModified",r[r.UseProxy=305]="UseProxy",r[r.Unused=306]="Unused",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",r[r.BadRequest=400]="BadRequest",r[r.Unauthorized=401]="Unauthorized",r[r.PaymentRequired=402]="PaymentRequired",r[r.Forbidden=403]="Forbidden",r[r.NotFound=404]="NotFound",r[r.MethodNotAllowed=405]="MethodNotAllowed",r[r.NotAcceptable=406]="NotAcceptable",r[r.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",r[r.RequestTimeout=408]="RequestTimeout",r[r.Conflict=409]="Conflict",r[r.Gone=410]="Gone",r[r.LengthRequired=411]="LengthRequired",r[r.PreconditionFailed=412]="PreconditionFailed",r[r.PayloadTooLarge=413]="PayloadTooLarge",r[r.UriTooLong=414]="UriTooLong",r[r.UnsupportedMediaType=415]="UnsupportedMediaType",r[r.RangeNotSatisfiable=416]="RangeNotSatisfiable",r[r.ExpectationFailed=417]="ExpectationFailed",r[r.ImATeapot=418]="ImATeapot",r[r.MisdirectedRequest=421]="MisdirectedRequest",r[r.UnprocessableEntity=422]="UnprocessableEntity",r[r.Locked=423]="Locked",r[r.FailedDependency=424]="FailedDependency",r[r.TooEarly=425]="TooEarly",r[r.UpgradeRequired=426]="UpgradeRequired",r[r.PreconditionRequired=428]="PreconditionRequired",r[r.TooManyRequests=429]="TooManyRequests",r[r.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",r[r.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",r[r.InternalServerError=500]="InternalServerError",r[r.NotImplemented=501]="NotImplemented",r[r.BadGateway=502]="BadGateway",r[r.ServiceUnavailable=503]="ServiceUnavailable",r[r.GatewayTimeout=504]="GatewayTimeout",r[r.HttpVersionNotSupported=505]="HttpVersionNotSupported",r[r.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",r[r.InsufficientStorage=507]="InsufficientStorage",r[r.LoopDetected=508]="LoopDetected",r[r.NotExtended=510]="NotExtended",r[r.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",r})({});import{Expose as He,plainToInstance as xs}from"class-transformer";import{Expose as gs,instanceToPlain as _s,plainToInstance as ws,Transform as ys}from"class-transformer";import{Expose as We}from"class-transformer";function Ge(r,t,e,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,o);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(i=(s<3?a(i):s>3?a(t,e,i):a(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}n(Ge,"_ts_decorate");function Dt(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}n(Dt,"_ts_metadata");var F=class r{static{n(this,"SmpResponseMessage")}_message;_type;get message(){return this._message}get type(){return this._type}constructor(t,e=ct.ERROR){this._message=t,this._type=e}static sanitizeMessages(t){return typeof t=="string"?t.length?[new r(t)]:[]:[t].flat().map(e=>typeof e=="string"?new r(e):e)}};Ge([We(),Dt("design:type",String),Dt("design:paramtypes",[])],F.prototype,"message",null);Ge([We(),Dt("design:type",typeof ct>"u"?Object:ct),Dt("design:paramtypes",[])],F.prototype,"type",null);function ms(r,t,e,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,o);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(i=(s<3?a(i):s>3?a(t,e,i):a(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}n(ms,"_ts_decorate");function Ke(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}n(Ke,"_ts_metadata");var Et=class r{static{n(this,"SmpGenericResponse")}_messages;data;set messages(t){this._messages=F.sanitizeMessages(t)}get messages(){return this._messages}constructor(t=[],e){this._messages=t,this.data=e}static create(t){return new r([t.messages||[]].flat().map(e=>e instanceof F?e:new F(e,t.type||ct.SUCCESS)),t.data)}static fromPlain(t){return ws(r,t)}isError(){return!this.isSuccess()}isSuccess(){return typeof this._errorCode=="number"}serialize(){return _s(this,{excludePrefixes:["_"]})}};ms([gs(),ys(({value:r})=>r?.length?r:void 0),Ke("design:type",Object),Ke("design:paramtypes",[])],Et.prototype,"messages",null);function Se(r,t,e,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,o);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(i=(s<3?a(i):s>3?a(t,e,i):a(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}n(Se,"_ts_decorate");function Nt(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}n(Nt,"_ts_metadata");var z=class r extends Et{static{n(this,"SmpErrorResponse")}_errorCode;_status;static get DEFAULT_MESSAGES(){return[new F("GENERIC_ERROR")]}set errorCode(t){this._errorCode=t}get errorCode(){return this._errorCode}get status(){return this._status}set timestamp(t){this._timestamp=t}get timestamp(){return this._timestamp}_timestamp=Date.now();constructor(t=r.DEFAULT_MESSAGES,e="GENERIC_ERROR",o=500,s){super(t,s),this._errorCode=e,this._status=o}static create({messages:t=r.DEFAULT_MESSAGES,...e}={}){return new r(F.sanitizeMessages(t),e.errorCode,e.status,e.data)}static fromPlain(t){let e=xs(bs,t,{excludePrefixes:["_"]}),o=new r;return Object.getOwnPropertyNames(e).forEach(s=>{s in o&&(o[s]=e[s])}),o}};Se([He(),Nt("design:type",Object),Nt("design:paramtypes",[])],z.prototype,"errorCode",null);Se([He(),Nt("design:type",Number),Nt("design:paramtypes",[])],z.prototype,"timestamp",null);var bs=class extends z{static{n(this,"SmpErrorResponseMutable")}set errorCode(t){this._errorCode=t}set status(t){this._status=t}set timestamp(t){this._timestamp=t}};var q=class{static{n(this,"Hex")}static parse(t){let e=t.length,o=[];for(let s=0;s<e;s+=2)o[s>>>3]|=parseInt(t.substr(s,2),16)<<24-s%8*4;return new _(o,e/2)}static stringify(t){let e=[];for(let o=0;o<t.sigBytes;o++){let s=t.words[o>>>2]>>>24-o%4*8&255;e.push((s>>>4).toString(16)),e.push((s&15).toString(16))}return e.join("")}};var _=class le{static{n(this,"WordArray")}constructor(t,e){this.words=t||[],e!==void 0?this.sigBytes=e:this.sigBytes=this.words.length*4}static random(t){let e=[],o=n(function(s){let i=987654321,a=4294967295;return function(){i=36969*(i&65535)+(i>>16)&a,s=18e3*(s&65535)+(s>>16)&a;let c=(i<<16)+s&a;return c/=4294967296,c+=.5,c*(Math.random()>.5?1:-1)}},"r");for(let s=0,i;s<t;s+=4){let a=o((i||Math.random())*4294967296);i=a()*987654071,e.push(a()*4294967296|0)}return new le(e,t)}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new le(this.words.slice(0),this.sigBytes)}concat(t){if(this.clamp(),this.sigBytes%4)for(let e=0;e<t.sigBytes;e++){let o=t.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=o<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<t.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=t.words[e>>>2];return this.sigBytes+=t.sigBytes,this}toString(t){return(t||q).stringify(this)}};var Ft=class{static{n(this,"Latin1")}static parse(t){let e=t.length,o=[];for(let s=0;s<e;s++)o[s>>>2]|=(t.charCodeAt(s)&255)<<24-s%4*8;return new _(o,e)}static stringify(t){let e=[];for(let o=0;o<t.sigBytes;o++){let s=t.words[o>>>2]>>>24-o%4*8&255;e.push(String.fromCharCode(s))}return e.join("")}};var C=class{static{n(this,"Utf8")}static parse(t){return Ft.parse(unescape(encodeURIComponent(t)))}static stringify(t){try{return decodeURIComponent(escape(Ft.stringify(t)))}catch(e){throw console.error("Malformed UTF-8 data",e),new Error("Malformed UTF-8 data")}}};var Lt=class{static{n(this,"BufferedBlockAlgorithm")}constructor(t){this._minBufferSize=0,this.cfg=Object.assign({blockSize:1},t),this._data=new _,this._nDataBytes=0}clone(){let t=this.constructor();for(let e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t[e]=this[e]);return t._data=this._data.clone(),t}reset(){this._data=new _,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=C.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){if(!this.cfg.blockSize)throw new Error("missing blockSize in config");let e=this.cfg.blockSize*4,o=this._data.sigBytes/e;t?o=Math.ceil(o):o=Math.max((o|0)-this._minBufferSize,0);let s=o*this.cfg.blockSize,i=Math.min(s*4,this._data.sigBytes),a;if(s){for(let c=0;c<s;c+=this.cfg.blockSize)this._doProcessBlock(this._data.words,c);a=this._data.words.splice(0,s),this._data.sigBytes-=i}return new _(a,i)}};var lt=class{static{n(this,"CipherParams")}constructor(t){this.ciphertext=t.ciphertext,this.key=t.key,this.iv=t.iv,this.salt=t.salt,this.algorithm=t.algorithm,this.mode=t.mode,this.padding=t.padding,this.blockSize=t.blockSize,this.formatter=t.formatter}extend(t){return t.ciphertext!==void 0&&(this.ciphertext=t.ciphertext),t.key!==void 0&&(this.key=t.key),t.iv!==void 0&&(this.iv=t.iv),t.salt!==void 0&&(this.salt=t.salt),t.algorithm!==void 0&&(this.algorithm=t.algorithm),t.mode!==void 0&&(this.mode=t.mode),t.padding!==void 0&&(this.padding=t.padding),t.blockSize!==void 0&&(this.blockSize=t.blockSize),t.formatter!==void 0&&(this.formatter=t.formatter),this}toString(t){if(t)return t.stringify(this);if(this.formatter)return this.formatter.stringify(this);throw new Error("cipher needs a formatter to be able to convert the result into a string")}};var U=class{static{n(this,"Base64")}static parse(t){let e=t.length;if(this._reverseMap===void 0){this._reverseMap=[];for(let s=0;s<this._map.length;s++)this._reverseMap[this._map.charCodeAt(s)]=s}let o=this._map.charAt(64);if(o){let s=t.indexOf(o);s!==-1&&(e=s)}return this.parseLoop(t,e,this._reverseMap)}static parseLoop(t,e,o){let s=[],i=0;for(let a=0;a<e;a++)if(a%4){let c=o[t.charCodeAt(a-1)]<<a%4*2,h=o[t.charCodeAt(a)]>>>6-a%4*2;s[i>>>2]|=(c|h)<<24-i%4*8,i++}return new _(s,i)}static stringify(t){t.clamp();let e=[];for(let s=0;s<t.sigBytes;s+=3){let i=t.words[s>>>2]>>>24-s%4*8&255,a=t.words[s+1>>>2]>>>24-(s+1)%4*8&255,c=t.words[s+2>>>2]>>>24-(s+2)%4*8&255,h=i<<16|a<<8|c;for(let f=0;f<4&&s+f*.75<t.sigBytes;f++)e.push(this._map.charAt(h>>>6*(3-f)&63))}let o=this._map.charAt(64);if(o)for(;e.length%4;)e.push(o);return e.join("")}};U._map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";U._reverseMap=void 0;var zt=class{static{n(this,"OpenSSL")}static parse(t){let e=U.parse(t),o;return e.words[0]===1398893684&&e.words[1]===1701076831&&(o=new _(e.words.slice(2,4)),e.words.splice(0,4),e.sigBytes-=16),new lt({ciphertext:e,salt:o})}static stringify(t){if(!t.ciphertext)throw new Error("missing ciphertext in params");let e=t.ciphertext,o=t.salt,s;if(o){if(typeof o=="string")throw new Error("salt is expected to be a WordArray");s=new _([1398893684,1701076831]).concat(o).concat(e)}else s=e;return s.toString(U)}};var Q=class{static{n(this,"SerializableCipher")}static decrypt(t,e,o,s){let i=Object.assign({},this.cfg,s);if(!i.format)throw new Error("could not determine format");if(e=this._parse(e,i.format),!e.ciphertext)throw new Error("could not determine ciphertext");return t.createDecryptor(o,i).finalize(e.ciphertext)}static encrypt(t,e,o,s){let i=Object.assign({},this.cfg,s),a=t.createEncryptor(o,i),c=a.finalize(e);return new lt({ciphertext:c,key:o,iv:a.cfg.iv,algorithm:t,mode:a.cfg.mode,padding:a.cfg.padding,blockSize:a.cfg.blockSize,formatter:i.format})}static _parse(t,e){return typeof t=="string"?e.parse(t):t}};Q.cfg={blockSize:4,iv:new _([]),format:zt};var I=class extends Lt{static{n(this,"Hasher")}constructor(t){super(Object.assign({blockSize:512/32},t)),this.reset()}static _createHelper(t){function e(o,s){return new t(s).finalize(o)}return n(e,"helper"),e}finalize(t){return t&&this._append(t),this._doFinalize()}update(t){return this._append(t),this._process(),this}};var p=[];for(let r=0;r<64;r++)p[r]=Math.abs(Math.sin(r+1))*4294967296|0;var k=class u extends I{static{n(this,"MD5")}get hash(){return this._hash}static FF(t,e,o,s,i,a,c){let h=t+(e&o|~e&s)+i+c;return(h<<a|h>>>32-a)+e}static GG(t,e,o,s,i,a,c){let h=t+(e&s|o&~s)+i+c;return(h<<a|h>>>32-a)+e}static HH(t,e,o,s,i,a,c){let h=t+(e^o^s)+i+c;return(h<<a|h>>>32-a)+e}static II(t,e,o,s,i,a,c){let h=t+(o^(e|~s))+i+c;return(h<<a|h>>>32-a)+e}reset(){super.reset(),this._hash=new _([1732584193,4023233417,2562383102,271733878])}_doFinalize(){let t=this._nDataBytes*8,e=this._data.sigBytes*8;this._data.words[e>>>5]|=128<<24-e%32;let o=Math.floor(t/4294967296),s=t;this._data.words[(e+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,this._data.words[(e+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,this._data.sigBytes=(this._data.words.length+1)*4,this._process();for(let i=0;i<4;i++)this._hash.words[i]=(this._hash.words[i]<<8|this._hash.words[i]>>>24)&16711935|(this._hash.words[i]<<24|this._hash.words[i]>>>8)&4278255360;return this._hash}_doProcessBlock(t,e){for(let h=0;h<16;h++){let f=e+h,g=t[f];t[f]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}let o=Array.from({length:16});for(let h=0;h<16;h++)o[h]=t[e+h];let s=this._hash.words[0],i=this._hash.words[1],a=this._hash.words[2],c=this._hash.words[3];s=u.FF(s,i,a,c,o[0],7,p[0]),c=u.FF(c,s,i,a,o[1],12,p[1]),a=u.FF(a,c,s,i,o[2],17,p[2]),i=u.FF(i,a,c,s,o[3],22,p[3]),s=u.FF(s,i,a,c,o[4],7,p[4]),c=u.FF(c,s,i,a,o[5],12,p[5]),a=u.FF(a,c,s,i,o[6],17,p[6]),i=u.FF(i,a,c,s,o[7],22,p[7]),s=u.FF(s,i,a,c,o[8],7,p[8]),c=u.FF(c,s,i,a,o[9],12,p[9]),a=u.FF(a,c,s,i,o[10],17,p[10]),i=u.FF(i,a,c,s,o[11],22,p[11]),s=u.FF(s,i,a,c,o[12],7,p[12]),c=u.FF(c,s,i,a,o[13],12,p[13]),a=u.FF(a,c,s,i,o[14],17,p[14]),i=u.FF(i,a,c,s,o[15],22,p[15]),s=u.GG(s,i,a,c,o[1],5,p[16]),c=u.GG(c,s,i,a,o[6],9,p[17]),a=u.GG(a,c,s,i,o[11],14,p[18]),i=u.GG(i,a,c,s,o[0],20,p[19]),s=u.GG(s,i,a,c,o[5],5,p[20]),c=u.GG(c,s,i,a,o[10],9,p[21]),a=u.GG(a,c,s,i,o[15],14,p[22]),i=u.GG(i,a,c,s,o[4],20,p[23]),s=u.GG(s,i,a,c,o[9],5,p[24]),c=u.GG(c,s,i,a,o[14],9,p[25]),a=u.GG(a,c,s,i,o[3],14,p[26]),i=u.GG(i,a,c,s,o[8],20,p[27]),s=u.GG(s,i,a,c,o[13],5,p[28]),c=u.GG(c,s,i,a,o[2],9,p[29]),a=u.GG(a,c,s,i,o[7],14,p[30]),i=u.GG(i,a,c,s,o[12],20,p[31]),s=u.HH(s,i,a,c,o[5],4,p[32]),c=u.HH(c,s,i,a,o[8],11,p[33]),a=u.HH(a,c,s,i,o[11],16,p[34]),i=u.HH(i,a,c,s,o[14],23,p[35]),s=u.HH(s,i,a,c,o[1],4,p[36]),c=u.HH(c,s,i,a,o[4],11,p[37]),a=u.HH(a,c,s,i,o[7],16,p[38]),i=u.HH(i,a,c,s,o[10],23,p[39]),s=u.HH(s,i,a,c,o[13],4,p[40]),c=u.HH(c,s,i,a,o[0],11,p[41]),a=u.HH(a,c,s,i,o[3],16,p[42]),i=u.HH(i,a,c,s,o[6],23,p[43]),s=u.HH(s,i,a,c,o[9],4,p[44]),c=u.HH(c,s,i,a,o[12],11,p[45]),a=u.HH(a,c,s,i,o[15],16,p[46]),i=u.HH(i,a,c,s,o[2],23,p[47]),s=u.II(s,i,a,c,o[0],6,p[48]),c=u.II(c,s,i,a,o[7],10,p[49]),a=u.II(a,c,s,i,o[14],15,p[50]),i=u.II(i,a,c,s,o[5],21,p[51]),s=u.II(s,i,a,c,o[12],6,p[52]),c=u.II(c,s,i,a,o[3],10,p[53]),a=u.II(a,c,s,i,o[10],15,p[54]),i=u.II(i,a,c,s,o[1],21,p[55]),s=u.II(s,i,a,c,o[8],6,p[56]),c=u.II(c,s,i,a,o[15],10,p[57]),a=u.II(a,c,s,i,o[6],15,p[58]),i=u.II(i,a,c,s,o[13],21,p[59]),s=u.II(s,i,a,c,o[4],6,p[60]),c=u.II(c,s,i,a,o[11],10,p[61]),a=u.II(a,c,s,i,o[2],15,p[62]),i=u.II(i,a,c,s,o[9],21,p[63]),this._hash.words[0]=this._hash.words[0]+s|0,this._hash.words[1]=this._hash.words[1]+i|0,this._hash.words[2]=this._hash.words[2]+a|0,this._hash.words[3]=this._hash.words[3]+c|0}};var fe=class qe{static{n(this,"EVPKDF")}constructor(t){this.cfg=Object.assign({keySize:128/32,hasher:k,iterations:1},t)}static execute(t,e,o){return new qe(o).compute(t,e)}compute(t,e){let o=new this.cfg.hasher,s=new _,i;for(;s.words.length<this.cfg.keySize;){i&&o.update(i),i=o.update(t).finalize(e),o.reset();for(let a=1;a<this.cfg.iterations;a++)i=o.finalize(i),o.reset();s.concat(i)}return s.sigBytes=this.cfg.keySize*4,s}};var Ve=class{static{n(this,"OpenSSLKdf")}static execute(t,e,o,s){s||(s=_.random(64/8));let i=new fe({keySize:e+o}).compute(t,s),a=new _(i.words.slice(e),o*4);return i.sigBytes=e*4,new lt({key:i,iv:a,salt:s})}};var Ut=class{static{n(this,"PasswordBasedCipher")}static decrypt(t,e,o,s){let i=Object.assign({},this.cfg,s);if(i.format===void 0)throw new Error("missing format in config");if(e=this._parse(e,i.format),i.kdf===void 0)throw new Error("the key derivation function must be set");let a=i.kdf.execute(o,t.keySize,t.ivSize,e.salt);return a.iv!==void 0&&(i.iv=a.iv),Q.decrypt.call(this,t,e,a.key,i)}static encrypt(t,e,o,s){let i=Object.assign({},this.cfg,s);if(i.kdf===void 0)throw new Error("missing kdf in config");let a=i.kdf.execute(o,t.keySize,t.ivSize);return a.iv!==void 0&&(i.iv=a.iv),Q.encrypt.call(this,t,e,a.key,i).extend(a)}static _parse(t,e){return typeof t=="string"?e.parse(t):t}};Ut.cfg={blockSize:4,iv:new _([]),format:zt,kdf:Ve};var Xe=class{static{n(this,"CipherHelper")}constructor(t){this._cipher=t}decrypt(t,e,o){return typeof e=="string"?Ut.decrypt(this._cipher,t,e,o):Q.decrypt(this._cipher,t,e,o)}encrypt(t,e,o){return typeof e=="string"?Ut.encrypt(this._cipher,t,e,o):Q.encrypt(this._cipher,t,e,o)}};var ft=class extends Lt{static{n(this,"Cipher")}constructor(t,e,o){super(Object.assign({blockSize:1},o)),this._xformMode=t,this._key=e,this.reset()}static _createHelper(t){return new Xe(t)}static createDecryptor(t,e){let o=this;return new o(this._DEC_XFORM_MODE,t,e)}static createEncryptor(t,e){return new this(this._ENC_XFORM_MODE,t,e)}finalize(t){return t&&this._append(t),this._doFinalize()}process(t){return this._append(t),this._process()}};ft.ivSize=4;ft.keySize=4;ft._DEC_XFORM_MODE=2;ft._ENC_XFORM_MODE=1;var tt=class{static{n(this,"BlockCipherModeAlgorithm")}constructor(t,e){this.init(t,e)}init(t,e){this._cipher=t,this._iv=e}};var kt=class{static{n(this,"BlockCipherMode")}static createDecryptor(t,e){let o=this.Decryptor;return new o(t,e)}static createEncryptor(t,e){let o=this.Encryptor;return new o(t,e)}};kt.Decryptor=tt;kt.Encryptor=tt;var Ze=class extends tt{static{n(this,"CBCEncryptor")}get prevBlock(){return this._prevBlock}processBlock(t,e){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");this.xorBlock(t,e,this._cipher.cfg.blockSize),this._cipher.encryptBlock(t,e),this._prevBlock=t.slice(e,e+this._cipher.cfg.blockSize)}xorBlock(t,e,o){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<o;i++)t[e+i]^=s[i]}};var Je=class extends tt{static{n(this,"CBCDecryptor")}get prevBlock(){return this._prevBlock}processBlock(t,e){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");let o=t.slice(e,e+this._cipher.cfg.blockSize);this._cipher.decryptBlock(t,e),this.xorBlock(t,e,this._cipher.cfg.blockSize),this._prevBlock=o}xorBlock(t,e,o){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<o;i++)t[e+i]^=s[i]}};var V=class extends kt{static{n(this,"CBC")}};V.Decryptor=Je;V.Encryptor=Ze;var pt=class{static{n(this,"PKCS7")}static pad(t,e){let o=e*4,s=o-t.sigBytes%o,i=s<<24|s<<16|s<<8|s,a=[];for(let h=0;h<s;h+=4)a.push(i);let c=new _(a,s);t.concat(c)}static unpad(t){let e=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=e}};var $t=class extends ft{static{n(this,"BlockCipher")}constructor(t,e,o){super(t,e,Object.assign({blockSize:4,mode:V,padding:pt},o))}reset(){if(super.reset(),this.cfg.mode===void 0)throw new Error("missing mode in config");let t;this._xformMode===this.constructor._ENC_XFORM_MODE?t=this.cfg.mode.createEncryptor:(t=this.cfg.mode.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator===t?this._mode.init(this,this.cfg.iv&&this.cfg.iv.words):(this._mode=t.call(this.cfg.mode,this,this.cfg.iv&&this.cfg.iv.words),this._mode.__creator=t)}_doFinalize(){if(this.cfg.padding===void 0)throw new Error("missing padding in config");let t;if(this._xformMode===this.constructor._ENC_XFORM_MODE){if(this.cfg.blockSize===void 0)throw new Error("missing blockSize in config");this.cfg.padding.pad(this._data,this.cfg.blockSize),t=this._process(!0)}else t=this._process(!0),this.cfg.padding.unpad(t);return t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}};var l=class L{static{n(this,"X64Word")}constructor(t,e){this.high=t,this.low=e}add(t){let e=this.low+t.low|0,o=e>>>0<this.low>>>0?1:0,s=this.high+t.high+o|0;return new L(s,e)}and(t){return new L(this.high&t.high,this.low&t.low)}not(){return new L(~this.high,~this.low)}or(t){return new L(this.high|t.high,this.low|t.low)}rotL(t){return this.shiftL(t).or(this.shiftR(64-t))}rotR(t){return this.shiftR(t).or(this.shiftL(64-t))}shiftL(t){return t<32?new L(this.high<<t|this.low>>>32-t,this.low<<t):new L(this.low<<t-32,0)}shiftR(t){return t<32?new L(this.high>>>t,this.low>>>t|this.high<<32-t):new L(0,this.high>>>t-32)}xor(t){return new L(this.high^t.high,this.low^t.low)}};var Ye=class pe{static{n(this,"X64WordArray")}constructor(t=[],e){this.words=t,this.sigBytes=e!==void 0?e:t.length*8}static create(t=[],e){return new pe(t,e)}clone(){let t=this.words.map(e=>new l(e.high,e.low));return new pe(t,this.sigBytes)}toX32(){let t=[];for(let e of this.words)t.push(e.high,e.low);return new _(t,this.sigBytes)}};var P=[],Qe=[],tr=[],er=[],rr=[],or=[],ue=[],de=[],me=[],ge=[];(function(){let r=[];for(let o=0;o<256;o++)o<128?r[o]=o<<1:r[o]=o<<1^283;let t=0,e=0;for(let o=0;o<256;o++){let s=e^e<<1^e<<2^e<<3^e<<4;s=s>>>8^s&255^99,P[t]=s,Qe[s]=t;let i=r[t],a=r[i],c=r[a],h=r[s]*257^s*16843008;tr[t]=h<<24|h>>>8,er[t]=h<<16|h>>>16,rr[t]=h<<8|h>>>24,or[t]=h,h=c*16843009^a*65537^i*257^t*16843008,ue[s]=h<<24|h>>>8,de[s]=h<<16|h>>>16,me[s]=h<<8|h>>>24,ge[s]=h,t?(t=i^r[r[r[c^i]]],e^=r[r[e]]):t=e=1}})();var As=[0,1,2,4,8,16,32,64,128,27,54],Gt=class extends $t{static{n(this,"AES")}constructor(t,e,o){super(t,e,o),super.reset()}decryptBlock(t,e){let o=t[e+1];t[e+1]=t[e+3],t[e+3]=o,this._doCryptBlock(t,e,this._invKeySchedule,ue,de,me,ge,Qe),o=t[e+1],t[e+1]=t[e+3],t[e+3]=o}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,tr,er,rr,or,P)}reset(){if(super.reset(),this._nRounds&&this._keyPriorReset===this._key)return;let t=this._keyPriorReset=this._key,e=t.words,o=t.sigBytes/4,i=((this._nRounds=o+6)+1)*4,a=this._keySchedule=[];for(let c=0;c<i;c++)if(c<o)a[c]=e[c];else{let h=a[c-1];c%o?o>6&&c%o===4&&(h=P[h>>>24]<<24|P[h>>>16&255]<<16|P[h>>>8&255]<<8|P[h&255]):(h=h<<8|h>>>24,h=P[h>>>24]<<24|P[h>>>16&255]<<16|P[h>>>8&255]<<8|P[h&255],h^=As[c/o|0]<<24),a[c]=a[c-o]^h}this._invKeySchedule=[];for(let c=0;c<i;c++){let h=i-c,f;c%4?f=a[h]:f=a[h-4],c<4||h<=4?this._invKeySchedule[c]=f:this._invKeySchedule[c]=ue[P[f>>>24]]^de[P[f>>>16&255]]^me[P[f>>>8&255]]^ge[P[f&255]]}}_doCryptBlock(t,e,o,s,i,a,c,h){let f=t[e]^o[0],g=t[e+1]^o[1],d=t[e+2]^o[2],m=t[e+3]^o[3],w=4;for(let E=1;E<this._nRounds;E++){let x=s[f>>>24]^i[g>>>16&255]^a[d>>>8&255]^c[m&255]^o[w++],b=s[g>>>24]^i[d>>>16&255]^a[m>>>8&255]^c[f&255]^o[w++],T=s[d>>>24]^i[m>>>16&255]^a[f>>>8&255]^c[g&255]^o[w++],he=s[m>>>24]^i[f>>>16&255]^a[g>>>8&255]^c[d&255]^o[w++];f=x,g=b,d=T,m=he}let y=(h[f>>>24]<<24|h[g>>>16&255]<<16|h[d>>>8&255]<<8|h[m&255])^o[w++],v=(h[g>>>24]<<24|h[d>>>16&255]<<16|h[m>>>8&255]<<8|h[f&255])^o[w++],R=(h[d>>>24]<<24|h[m>>>16&255]<<16|h[f>>>8&255]<<8|h[g&255])^o[w++],O=(h[m>>>24]<<24|h[f>>>16&255]<<16|h[g>>>8&255]<<8|h[d&255])^o[w++];t[e]=y,t[e+1]=v,t[e+2]=R,t[e+3]=O}};Gt.keySize=256/32;var vs=[1732584193,4023233417,2562383102,271733878,3285377520],et=new Array(80),rt=class extends I{static{n(this,"SHA1")}get hash(){return this._hash}reset(){super.reset(),this._hash=new _(vs.slice(0))}_doFinalize(){let t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,e){let o=this._hash.words[0],s=this._hash.words[1],i=this._hash.words[2],a=this._hash.words[3],c=this._hash.words[4];for(let h=0;h<80;h++){if(h<16)et[h]=t[e+h]|0;else{let m=et[h-3]^et[h-8]^et[h-14]^et[h-16];et[h]=m<<1|m>>>31}let f,g;h<20?(f=s&i|~s&a,g=1518500249):h<40?(f=s^i^a,g=1859775393):h<60?(f=s&i|s&a|i&a,g=2400959708):(f=s^i^a,g=3395469782);let d=(o<<5|o>>>27)+f+c+g+et[h];c=a,a=i,i=s<<30|s>>>2,s=o,o=d|0}this._hash.words[0]=this._hash.words[0]+o|0,this._hash.words[1]=this._hash.words[1]+s|0,this._hash.words[2]=this._hash.words[2]+i|0,this._hash.words[3]=this._hash.words[3]+a|0,this._hash.words[4]=this._hash.words[4]+c|0}};var sr=[],ir=[];(function(){function r(s){let i=Math.sqrt(s);for(let a=2;a<=i;a++)if(!(s%a))return!1;return!0}n(r,"isPrime");function t(s){return(s-(s|0))*4294967296|0}n(t,"getFractionalBits");let e=2,o=0;for(;o<64;)r(e)&&(o<8&&(sr[o]=t(Math.pow(e,1/2))),ir[o]=t(Math.pow(e,1/3)),o++),e++})();var ot=[],Rt=class extends I{static{n(this,"SHA256")}constructor(){super()}reset(){super.reset(),this._hash=new _(sr.slice(0))}_doFinalize(){let t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,e){let o=this._hash.words[0],s=this._hash.words[1],i=this._hash.words[2],a=this._hash.words[3],c=this._hash.words[4],h=this._hash.words[5],f=this._hash.words[6],g=this._hash.words[7];for(let d=0;d<64;d++){if(d<16)ot[d]=t[e+d]|0;else{let E=ot[d-15],x=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,b=ot[d-2],T=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;ot[d]=x+ot[d-7]+T+ot[d-16]}let m=c&h^~c&f,w=o&s^o&i^s&i,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),v=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),R=g+v+m+ir[d]+ot[d],O=y+w;g=f,f=h,h=c,c=a+R|0,a=i,i=s,s=o,o=R+O|0}this._hash.words[0]=this._hash.words[0]+o|0,this._hash.words[1]=this._hash.words[1]+s|0,this._hash.words[2]=this._hash.words[2]+i|0,this._hash.words[3]=this._hash.words[3]+a|0,this._hash.words[4]=this._hash.words[4]+c|0,this._hash.words[5]=this._hash.words[5]+h|0,this._hash.words[6]=this._hash.words[6]+f|0,this._hash.words[7]=this._hash.words[7]+g|0}};var _e=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)],D=[];(function(){for(let r=0;r<80;r++)D[r]=new l(void 0,void 0)})();var we=class extends I{static{n(this,"SHA512")}constructor(){super({blockSize:1024/32})}reset(){super.reset(),this._hash=new Ye([new l(1779033703,4089235720),new l(3144134277,2227873595),new l(1013904242,4271175723),new l(2773480762,1595750129),new l(1359893119,2917565137),new l(2600822924,725511199),new l(528734635,4215389547),new l(1541459225,327033209)])}_doFinalize(){let t=this._data,e=t.words,o=this._nDataBytes*8,s=t.sigBytes*8;return e[s>>>5]|=128<<24-s%32,e[(s+128>>>10<<5)+30]=Math.floor(o/4294967296),e[(s+128>>>10<<5)+31]=o,t.sigBytes=e.length*4,this._process(),this._hash.toX32()}_doProcessBlock(t,e){let o=this._hash.words[0].high,s=this._hash.words[0].low,i=this._hash.words[1].high,a=this._hash.words[1].low,c=this._hash.words[2].high,h=this._hash.words[2].low,f=this._hash.words[3].high,g=this._hash.words[3].low,d=this._hash.words[4].high,m=this._hash.words[4].low,w=this._hash.words[5].high,y=this._hash.words[5].low,v=this._hash.words[6].high,R=this._hash.words[6].low,O=this._hash.words[7].high,E=this._hash.words[7].low;for(let x=0;x<80;x++){let b,T;if(x<16)T=D[x].high=t[e+x*2]|0,b=D[x].low=t[e+x*2+1]|0;else{let De=D[x-15],nt=De.high,At=De.low,us=(nt>>>1|At<<31)^(nt>>>8|At<<24)^nt>>>7,Ne=(At>>>1|nt<<31)^(At>>>8|nt<<24)^(At>>>7|nt<<25),Fe=D[x-2],at=Fe.high,vt=Fe.low,ds=(at>>>19|vt<<13)^(at<<3|vt>>>29)^at>>>6,Le=(vt>>>19|at<<13)^(vt<<3|at>>>29)^(vt>>>6|at<<26);b=Ne+D[x-7].low,T=us+D[x-7].high+(b>>>0<Ne>>>0?1:0),b=b+Le,T=T+ds+(b>>>0<Le>>>0?1:0),b=b+D[x-16].low,T=T+D[x-16].high+(b>>>0<D[x-16].low>>>0?1:0),D[x].high=T,D[x].low=b}let he=d&w^~d&v,Pe=m&y^~m&R,as=o&i^o&c^i&c,cs=s&a^s&h^a&h,hs=(o>>>28|s<<4)^(o<<30|s>>>2)^(o<<25|s>>>7),je=(s>>>28|o<<4)^(s<<30|o>>>2)^(s<<25|o>>>7),ls=(d>>>14|m<<18)^(d>>>18|m<<14)^(d<<23|m>>>9),fs=(m>>>14|d<<18)^(m>>>18|d<<14)^(m<<23|d>>>9),j=E+fs,H=O+ls+(j>>>0<E>>>0?1:0);j=j+Pe,H=H+he+(j>>>0<Pe>>>0?1:0),j=j+_e[x].low,H=H+_e[x].high+(j>>>0<_e[x].low>>>0?1:0),j=j+b,H=H+T+(j>>>0<b>>>0?1:0);let Me=je+cs,ps=hs+as+(Me>>>0<je>>>0?1:0);O=v,E=R,v=w,R=y,w=d,y=m,m=g+j|0,d=f+H+(m>>>0<g>>>0?1:0)|0,f=c,g=h,c=i,h=a,i=o,a=s,s=j+Me|0,o=H+ps+(s>>>0<j>>>0?1:0)|0}this._hash.words[0].low=this._hash.words[0].low=this._hash.words[0].low+s,this._hash.words[0].high=this._hash.words[0].high+o+(this._hash.words[0].low>>>0<s>>>0?1:0),this._hash.words[1].low=this._hash.words[1].low=this._hash.words[1].low+a,this._hash.words[1].high=this._hash.words[1].high+i+(this._hash.words[1].low>>>0<a>>>0?1:0),this._hash.words[2].low=this._hash.words[2].low=this._hash.words[2].low+h,this._hash.words[2].high=this._hash.words[2].high+c+(this._hash.words[2].low>>>0<h>>>0?1:0),this._hash.words[3].low=this._hash.words[3].low=this._hash.words[3].low+g,this._hash.words[3].high=this._hash.words[3].high+f+(this._hash.words[3].low>>>0<g>>>0?1:0),this._hash.words[4].low=this._hash.words[4].low=this._hash.words[4].low+m,this._hash.words[4].high=this._hash.words[4].high+d+(this._hash.words[4].low>>>0<m>>>0?1:0),this._hash.words[5].low=this._hash.words[5].low=this._hash.words[5].low+y,this._hash.words[5].high=this._hash.words[5].high+w+(this._hash.words[5].low>>>0<y>>>0?1:0),this._hash.words[6].low=this._hash.words[6].low=this._hash.words[6].low+R,this._hash.words[6].high=this._hash.words[6].high+v+(this._hash.words[6].low>>>0<R>>>0?1:0),this._hash.words[7].low=this._hash.words[7].low=this._hash.words[7].low+E,this._hash.words[7].high=this._hash.words[7].high+O+(this._hash.words[7].low>>>0<E>>>0?1:0)}};var nr=class{static{n(this,"HMAC")}constructor(t,e){this._hasher=new t;let o=typeof e=="string"?C.parse(e):e,s=this._hasher.cfg.blockSize,i=s*4;o.sigBytes>i&&(o=this._hasher.finalize(o)),o.clamp();let a=this._oKey=o.clone(),c=this._iKey=o.clone(),h=a.words,f=c.words;for(let g=0;g<s;g++)h[g]^=1549556828,f[g]^=909522486;a.sigBytes=c.sigBytes=i,this.reset()}finalize(t){let e=this._hasher.finalize(t);return this._hasher.reset(),this._hasher.finalize(this._oKey.clone().concat(e))}reset(){this._hasher.reset(),this._hasher.update(this._iKey)}update(t){return this._hasher.update(t),this}};var ye=class ar{static{n(this,"PBKDF2")}constructor(t){this.cfg=Object.assign({keySize:128/32,hasher:Rt,iterations:25e4},t)}static execute(t,e,o){return new ar(o).compute(t,e)}compute(t,e){let o=this.cfg,s=new nr(o.hasher,t),i=new _,a=new _([1]),c=i.words,h=a.words,f=o.keySize,g=o.iterations;for(;c.length<f;){let d=s.update(e).finalize(a);s.reset();let m=d.words,w=m.length,y=d;for(let v=1;v<g;v++){y=s.finalize(y),s.reset();let R=y.words;for(let O=0;O<w;O++)m[O]^=R[O]}i.concat(d),h[0]++}return i.sigBytes=f*4,i}};var Ot=$t._createHelper(Gt);var Wt=n(function(){let r=Date.now().toString(36),t=globalThis.crypto;if(t?.getRandomValues){let e=new Uint8Array(8);t.getRandomValues(e);let o="";for(let s=0;s<e.length;s++){let i=e[s].toString(16);o+=i.length===1?"0"+i:i}return r+"-"+o}return r+"-"+Math.random().toString(36).slice(2,10)},"correlationIdHelper");var ut=I._createHelper(k);var dt=I._createHelper(rt);var Kt=I._createHelper(Rt);var St=I._createHelper(we);var mt=class{static{n(this,"SmpCrypto")}static base64Decode(t){return C.stringify(U.parse(t))}static base64Encode(t){return U.stringify(C.parse(t))}static generateCorrelationId(){return Wt()}static md5(t){return ut(t).toString()}static sha1(t){return dt(t).toString()}static sha256(t){return Kt(t).toString()}static sha512(t){return St(t).toString()}};var Ht=class extends ht{static{n(this,"SmpInMemoryCache")}static _storage=new Map;get _staticSelf(){return this.constructor}_flushRaw(){this._staticSelf._storage.clear()}_readRaw(t){return this._staticSelf._storage.get(t)}_removeRaw(t){this._staticSelf._storage.delete(t)}_writeRaw(t,e){this._staticSelf._storage.set(t,e)}};var cr=class{static{n(this,"SmpHttpTwoService")}static _cacheStrategy=typeof sessionStorage<"u"?new Mt:new Ht;static _errorClass=z;static _mergeParamsFallbackBaseUrl="https://uc-api-nest-common-fe";static _running=new Map;static $http(t){return this._generateAjax(t)}static async _generateAjax(t){let e=this._generateCacheKey(t),o=+(t.ttl||0)>0;if(o){let a=this._cacheStrategy.read(e);if(a)return Promise.resolve(a)}let s=this._running.get(e);if(s)return s;let i=this._generateAjaxBase(t).then(a=>(o&&this._cacheStrategy.write(e,a,t.ttl),a)).finally(()=>{this._running.delete(e)});return this._running.set(e,i),i}static async _generateAjaxBase(t){let e=await this._preprocessRequest(t),o={method:e.method,headers:new Headers({"content-type":"application/json",...e.headers}),body:e.body?JSON.stringify(e.body):null};return e.useCredentials&&(o.credentials="include"),e.url=this.mergeQueryParams(e.url,e.queryParams),fetch(e.url,o).then(s=>this._preprocessResponse(t,s)).then(s=>{if(s.ok){if(s.status===204||s.headers.get("content-length")==="0")return null;switch(e.responseType){case"blob":return s.blob();case"arraybuffer":return s.arrayBuffer();case"text":return s.text();case"json":default:return s.json()}}return s.json().then(i=>{let a=i;try{a=this._errorClass.fromPlain(i)}catch(c){console.debug("http: failed to parse error response into ErrorResponse",c)}return Promise.reject({status:s.status,message:s.statusText,body:a})})})}static cacheFlush(){this._cacheStrategy.flush()}static mergeQueryParams(t,e){if(!e||Object.keys(e).length===0)return t;let o=t.startsWith("http"),s=new URL(t,globalThis?.location?.origin||this._mergeParamsFallbackBaseUrl),a={...Object.fromEntries(new URLSearchParams(s.search).entries()),...e},c=[];for(let[d,m]of Object.entries(a))if(m!=null)if(Array.isArray(m))for(let w of m)c.push(`${encodeURIComponent(d)}=${encodeURIComponent(String(w))}`);else c.push(`${encodeURIComponent(d)}=${encodeURIComponent(String(m))}`);let h=c.length?`?${c.join("&")}`:"",g=s.origin+s.pathname+h;return o?g:g.replace(s.origin,"")}static _generateCacheKey(t){let e=`${t.method}:${t.url}`;return t.queryParams&&Object.keys(t.queryParams).length>0&&(e+=`:${mt.md5(JSON.stringify(t.queryParams))}`),t.body&&Object.keys(t.body).length>0?`${e}:${mt.md5(JSON.stringify(t.body))}`:e}static async _preprocessRequest(t){return t}static async _preprocessResponse(t,e){return e}};import{SmpLoggerMethods as Es}from"@tonysamperi/logger";var hr=class{static{n(this,"SmpApiCommonUtils")}static _javascriptVariablePattern="[a-zA-Z_$][a-zA-Z_$0-9]*";static _logger=new Es;static _pathParamRegex=new RegExp(`\\{(${this._javascriptVariablePattern})\\}`,"g");static credentialsToBasicAuth(t,e){return`Basic ${Buffer.from(`${t}:${e}`).toString("base64")}`}static fromBearer(t=""){return t.split(" ")[1]}static getCountryFromReferer(t){return this.getLocaleFromReferer(t)?.split("-")[0]?.toUpperCase()}static getLanguageFromReferer(t){return this.getLocaleFromReferer(t)?.split("-")[1]}static getLocaleFromReferer(t){return t?.match(/\/([A-Z]{2}-[A-Z]{2})\//i)?.[1]}static interpolateParams(t,e){try{return t.replace(this._pathParamRegex,(o,s)=>{let i=e[s];return i!==void 0?encodeURIComponent(i):o})}catch(o){this._logger.warn(`${this.constructor.name}: couldn't interpolate params`,o)}return t}};var Tp={status:"OK"};var lr=(function(r){return r.GET="GET",r.POST="POST",r.PUT="PUT",r.DELETE="DELETE",r.PATCH="PATCH",r})({});var fr=class{static{n(this,"SmpBaseJwtToken")}_access_token;_exp;_iss;get access_token(){return this._access_token}get exp(){return this._exp}get iss(){return this._iss}constructor(t,e,o){this._access_token=t,this._exp=e,this._iss=o}serialize(){return{access_token:this._access_token,exp:this._exp,iss:this._iss}}};var pr=class{static{n(this,"SmpBaseJwtTokenPlain")}access_token;exp;iss};var Bt=class{static{n(this,"SmpAesCrypt")}_password;_salt;_initVector;_iv;_key;_mode=V;_padding=pt;constructor(t,e,o){this._password=t,this._salt=e,this._initVector=o,this._iv=this._initVector?q.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(t){return Ot.decrypt(t,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(C)}encryptAES(t){return Ot.encrypt(t,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return ye.execute(this._password,q.parse(this._salt),{keySize:256/32,iterations:1e3,hasher:rt})}};var xe=class{static{n(this,"SmpSecureCode")}_baseCode;get baseCode(){return this._baseCode}get secureCode(){return this._encode()}_crcLength=5;_seed="changeme";constructor(t){this._baseCode=t}static check(t,e){if(new this(t).secureCode!==e)throw z.create({messages:"WRONG_SECURE_CODE",errorCode:"WRONG_SECURE_CODE",status:$e.BadRequest})}_encode(){let t=new k;return t.update(C.parse(this._seed+this._baseCode)),t.finalize().toString(q).substring(0,this._crcLength).toUpperCase()}};import{Expose as Os,instanceToPlain as Bs,plainToInstance as Ts}from"class-transformer";import{DateTime as be}from"ts-luxon";var M=(function(r){return r.ACTIVATE="ACTIVATE",r.BLOCK="BLOCK",r.CHECK="CHECK",r.DIGITAL_ACTIVATE="DIGITAL_ACTIVATE",r.FREEZE="FREEZE",r.PURCHASE="PURCHASE",r.RECHARGE="RECHARGE",r.ROLLBACK="ROLLBACK",r.TRANSACTION="TRANSACTION",r.TRANSACTION_DETAIL="TRANSACTION_DETAIL",r.UNFREEZE="UNFREEZE",r.XREFUND="XREFUND",r})({});var gt=(function(r){return r.MD5="MD5",r.MD5_HMAC="MD5_HMAC",r.SHA1="SHA1",r.SHA1_HMAC="SHA1_HMAC",r})({});function Rs(r,t,e,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,o);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(i=(s<3?a(i):s>3?a(t,e,i):a(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}n(Rs,"_ts_decorate");function ur(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}n(ur,"_ts_metadata");var Ae=class r{static{n(this,"SmpGiftcardTransaction")}gc;op;ot;static _AES_ENCODER=new Bt("changeme","5f6eae61d2428b99","d92fbf214e16a79fd36f9a5185ae733f");static _OP_CODES={[M.CHECK]:"",[M.TRANSACTION]:"",[M.TRANSACTION_DETAIL]:"",[M.ACTIVATE]:"A",[M.BLOCK]:"B",[M.DIGITAL_ACTIVATE]:"D",[M.FREEZE]:"F",[M.PURCHASE]:"P",[M.RECHARGE]:"G",[M.ROLLBACK]:"R",[M.UNFREEZE]:"U",[M.XREFUND]:"X"};static _SEP="_";get dto(){return this._dto}get hash(){return this._hashStrategy(this.toString()).toString()}get iso(){return this.dto.toUTC().toISO()}get ts(){return this._dto.ts}_dto;_hashStrategies={[gt.MD5]:t=>ut(t),[gt.MD5_HMAC]:t=>{let e=new k;return e.update(C.parse(t)),e.finalize()},[gt.SHA1]:t=>dt(t),[gt.SHA1_HMAC]:t=>{let e=new rt;return e.update(C.parse(t)),e.finalize()}};_hashStrategy=this._hashStrategies[gt.MD5];constructor(t="ACTIVATION",e,o,s){this.gc=t,this.op=e,this.ot=o,this._dto=typeof s=="number"&&s>=0?be.fromMillis(+`${s}000`.slice(0,13)):be.local()}static build({gc:t,op:e,ot:o,dto:s}){return new this(t,e,o,s?.ts)}static explode(t){let e=this.constructor,o=(t||"").split(e._SEP);if(o.length<4)throw new Error(`${this.constructor.name}::explode: invalid transactionId provided => "${t}"`);return this.build({gc:o[1],op:e.prefixToOperation(o[2]),dto:be.fromSeconds(+o[3])})}static isBase64(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)&&t.length%4===0}static parse(t){console.info(`${this.constructor.name}::parse: trying to parse ${t}`);try{if(this.isBase64(t)){let e=this._AES_ENCODER.decryptAES(t),o=JSON.parse(e);return Ts(r,o)}else return this.explode(t)}catch(e){throw console.error(`${this.constructor.name}::parse: failed to parse ${t}`,e),new Error(`${this.constructor.name}::parse: could not parse transactionId ${t}`)}}static prefixToOperation(t){return Object.entries(this._OP_CODES).find(([,o])=>o===t)[0]}serialize(){return Bs(this,{excludePrefixes:["_"]})}toString(){let t=JSON.stringify(this.serialize());return this.constructor._AES_ENCODER.encryptAES(t)}};Rs([Os(),ur("design:type",Number),ur("design:paramtypes",[])],Ae.prototype,"ts",null);var ou=(function(r){return r.ListDetectiveValidator="ListDetectiveValidator",r.MXValidator="MXValidator",r.SyntaxValidator="SyntaxValidator",r})({});function iu(r,t){t.forEach(e=>{Object.getOwnPropertyNames(e.prototype).forEach(o=>{o!=="constructor"&&(o in r.prototype||Object.defineProperty(r.prototype,o,Object.getOwnPropertyDescriptor(e.prototype,o)))});try{let o=new e;Object.getOwnPropertyNames(o).forEach(s=>{s in r.prototype||Object.defineProperty(r.prototype,s,Object.getOwnPropertyDescriptor(o,s))})}catch{}Object.getOwnPropertyNames(e).forEach(o=>{o!=="prototype"&&o!=="name"&&o!=="length"&&(o in r||Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o)))})})}n(iu,"smpApplyMixin");function Is(){this.__data__=[],this.size=0}n(Is,"listCacheClear");var dr=Is;function Cs(r,t){return r===t||r!==r&&t!==t}n(Cs,"eq");var qt=Cs;function Ps(r,t){for(var e=r.length;e--;)if(qt(r[e][0],t))return e;return-1}n(Ps,"assocIndexOf");var X=Ps;var js=Array.prototype,Ms=js.splice;function Ds(r){var t=this.__data__,e=X(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():Ms.call(t,e,1),--this.size,!0}n(Ds,"listCacheDelete");var mr=Ds;function Ns(r){var t=this.__data__,e=X(t,r);return e<0?void 0:t[e][1]}n(Ns,"listCacheGet");var gr=Ns;function Fs(r){return X(this.__data__,r)>-1}n(Fs,"listCacheHas");var _r=Fs;function Ls(r,t){var e=this.__data__,o=X(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}n(Ls,"listCacheSet");var wr=Ls;function _t(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}n(_t,"ListCache");_t.prototype.clear=dr;_t.prototype.delete=mr;_t.prototype.get=gr;_t.prototype.has=_r;_t.prototype.set=wr;var Z=_t;function zs(){this.__data__=new Z,this.size=0}n(zs,"stackClear");var yr=zs;function Us(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}n(Us,"stackDelete");var xr=Us;function ks(r){return this.__data__.get(r)}n(ks,"stackGet");var br=ks;function $s(r){return this.__data__.has(r)}n($s,"stackHas");var Ar=$s;var Gs=typeof global=="object"&&global&&global.Object===Object&&global,Vt=Gs;var Ws=typeof self=="object"&&self&&self.Object===Object&&self,Ks=Vt||Ws||Function("return this")(),B=Ks;var Ss=B.Symbol,$=Ss;var vr=Object.prototype,Hs=vr.hasOwnProperty,qs=vr.toString,Tt=$?$.toStringTag:void 0;function Vs(r){var t=Hs.call(r,Tt),e=r[Tt];try{r[Tt]=void 0;var o=!0}catch{}var s=qs.call(r);return o&&(t?r[Tt]=e:delete r[Tt]),s}n(Vs,"getRawTag");var Er=Vs;var Xs=Object.prototype,Zs=Xs.toString;function Js(r){return Zs.call(r)}n(Js,"objectToString");var Rr=Js;var Ys="[object Null]",Qs="[object Undefined]",Or=$?$.toStringTag:void 0;function ti(r){return r==null?r===void 0?Qs:Ys:Or&&Or in Object(r)?Er(r):Rr(r)}n(ti,"baseGetTag");var G=ti;function ei(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}n(ei,"isObject");var Xt=ei;var ri="[object AsyncFunction]",oi="[object Function]",si="[object GeneratorFunction]",ii="[object Proxy]";function ni(r){if(!Xt(r))return!1;var t=G(r);return t==oi||t==si||t==ri||t==ii}n(ni,"isFunction");var Zt=ni;var ai=B["__core-js_shared__"],Jt=ai;var Br=(function(){var r=/[^.]+$/.exec(Jt&&Jt.keys&&Jt.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function ci(r){return!!Br&&Br in r}n(ci,"isMasked");var Tr=ci;var hi=Function.prototype,li=hi.toString;function fi(r){if(r!=null){try{return li.call(r)}catch{}try{return r+""}catch{}}return""}n(fi,"toSource");var W=fi;var pi=/[\\^$.*+?()[\]{}|]/g,ui=/^\[object .+?Constructor\]$/,di=Function.prototype,mi=Object.prototype,gi=di.toString,_i=mi.hasOwnProperty,wi=RegExp("^"+gi.call(_i).replace(pi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yi(r){if(!Xt(r)||Tr(r))return!1;var t=Zt(r)?wi:ui;return t.test(W(r))}n(yi,"baseIsNative");var Ir=yi;function xi(r,t){return r?.[t]}n(xi,"getValue");var Cr=xi;function bi(r,t){var e=Cr(r,t);return Ir(e)?e:void 0}n(bi,"getNative");var N=bi;var Ai=N(B,"Map"),J=Ai;var vi=N(Object,"create"),K=vi;function Ei(){this.__data__=K?K(null):{},this.size=0}n(Ei,"hashClear");var Pr=Ei;function Ri(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}n(Ri,"hashDelete");var jr=Ri;var Oi="__lodash_hash_undefined__",Bi=Object.prototype,Ti=Bi.hasOwnProperty;function Ii(r){var t=this.__data__;if(K){var e=t[r];return e===Oi?void 0:e}return Ti.call(t,r)?t[r]:void 0}n(Ii,"hashGet");var Mr=Ii;var Ci=Object.prototype,Pi=Ci.hasOwnProperty;function ji(r){var t=this.__data__;return K?t[r]!==void 0:Pi.call(t,r)}n(ji,"hashHas");var Dr=ji;var Mi="__lodash_hash_undefined__";function Di(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=K&&t===void 0?Mi:t,this}n(Di,"hashSet");var Nr=Di;function wt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}n(wt,"Hash");wt.prototype.clear=Pr;wt.prototype.delete=jr;wt.prototype.get=Mr;wt.prototype.has=Dr;wt.prototype.set=Nr;var ve=wt;function Ni(){this.size=0,this.__data__={hash:new ve,map:new(J||Z),string:new ve}}n(Ni,"mapCacheClear");var Fr=Ni;function Fi(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}n(Fi,"isKeyable");var Lr=Fi;function Li(r,t){var e=r.__data__;return Lr(t)?e[typeof t=="string"?"string":"hash"]:e.map}n(Li,"getMapData");var Y=Li;function zi(r){var t=Y(this,r).delete(r);return this.size-=t?1:0,t}n(zi,"mapCacheDelete");var zr=zi;function Ui(r){return Y(this,r).get(r)}n(Ui,"mapCacheGet");var Ur=Ui;function ki(r){return Y(this,r).has(r)}n(ki,"mapCacheHas");var kr=ki;function $i(r,t){var e=Y(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}n($i,"mapCacheSet");var $r=$i;function yt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}n(yt,"MapCache");yt.prototype.clear=Fr;yt.prototype.delete=zr;yt.prototype.get=Ur;yt.prototype.has=kr;yt.prototype.set=$r;var Yt=yt;var Gi=200;function Wi(r,t){var e=this.__data__;if(e instanceof Z){var o=e.__data__;if(!J||o.length<Gi-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new Yt(o)}return e.set(r,t),this.size=e.size,this}n(Wi,"stackSet");var Gr=Wi;function xt(r){var t=this.__data__=new Z(r);this.size=t.size}n(xt,"Stack");xt.prototype.clear=yr;xt.prototype.delete=xr;xt.prototype.get=br;xt.prototype.has=Ar;xt.prototype.set=Gr;var Qt=xt;var Ki="__lodash_hash_undefined__";function Si(r){return this.__data__.set(r,Ki),this}n(Si,"setCacheAdd");var Wr=Si;function Hi(r){return this.__data__.has(r)}n(Hi,"setCacheHas");var Kr=Hi;function te(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Yt;++t<e;)this.add(r[t])}n(te,"SetCache");te.prototype.add=te.prototype.push=Wr;te.prototype.has=Kr;var Sr=te;function qi(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}n(qi,"arraySome");var Hr=qi;function Vi(r,t){return r.has(t)}n(Vi,"cacheHas");var qr=Vi;var Xi=1,Zi=2;function Ji(r,t,e,o,s,i){var a=e&Xi,c=r.length,h=t.length;if(c!=h&&!(a&&h>c))return!1;var f=i.get(r),g=i.get(t);if(f&&g)return f==t&&g==r;var d=-1,m=!0,w=e&Zi?new Sr:void 0;for(i.set(r,t),i.set(t,r);++d<c;){var y=r[d],v=t[d];if(o)var R=a?o(v,y,d,t,r,i):o(y,v,d,r,t,i);if(R!==void 0){if(R)continue;m=!1;break}if(w){if(!Hr(t,function(O,E){if(!qr(w,E)&&(y===O||s(y,O,e,o,i)))return w.push(E)})){m=!1;break}}else if(!(y===v||s(y,v,e,o,i))){m=!1;break}}return i.delete(r),i.delete(t),m}n(Ji,"equalArrays");var ee=Ji;var Yi=B.Uint8Array,Ee=Yi;function Qi(r){var t=-1,e=Array(r.size);return r.forEach(function(o,s){e[++t]=[s,o]}),e}n(Qi,"mapToArray");var Vr=Qi;function tn(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}n(tn,"setToArray");var Xr=tn;var en=1,rn=2,on="[object Boolean]",sn="[object Date]",nn="[object Error]",an="[object Map]",cn="[object Number]",hn="[object RegExp]",ln="[object Set]",fn="[object String]",pn="[object Symbol]",un="[object ArrayBuffer]",dn="[object DataView]",Zr=$?$.prototype:void 0,Re=Zr?Zr.valueOf:void 0;function mn(r,t,e,o,s,i,a){switch(e){case dn:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case un:return!(r.byteLength!=t.byteLength||!i(new Ee(r),new Ee(t)));case on:case sn:case cn:return qt(+r,+t);case nn:return r.name==t.name&&r.message==t.message;case hn:case fn:return r==t+"";case an:var c=Vr;case ln:var h=o&en;if(c||(c=Xr),r.size!=t.size&&!h)return!1;var f=a.get(r);if(f)return f==t;o|=rn,a.set(r,t);var g=ee(c(r),c(t),o,s,i,a);return a.delete(r),g;case pn:if(Re)return Re.call(r)==Re.call(t)}return!1}n(mn,"equalByTag");var Jr=mn;function gn(r,t){for(var e=-1,o=t.length,s=r.length;++e<o;)r[s+e]=t[e];return r}n(gn,"arrayPush");var Yr=gn;var _n=Array.isArray,st=_n;function wn(r,t,e){var o=t(r);return st(r)?o:Yr(o,e(r))}n(wn,"baseGetAllKeys");var Qr=wn;function yn(r,t){for(var e=-1,o=r==null?0:r.length,s=0,i=[];++e<o;){var a=r[e];t(a,e,r)&&(i[s++]=a)}return i}n(yn,"arrayFilter");var to=yn;function xn(){return[]}n(xn,"stubArray");var eo=xn;var bn=Object.prototype,An=bn.propertyIsEnumerable,ro=Object.getOwnPropertySymbols,vn=ro?function(r){return r==null?[]:(r=Object(r),to(ro(r),function(t){return An.call(r,t)}))}:eo,oo=vn;function En(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}n(En,"baseTimes");var so=En;function Rn(r){return r!=null&&typeof r=="object"}n(Rn,"isObjectLike");var S=Rn;var On="[object Arguments]";function Bn(r){return S(r)&&G(r)==On}n(Bn,"baseIsArguments");var Oe=Bn;var io=Object.prototype,Tn=io.hasOwnProperty,In=io.propertyIsEnumerable,Cn=Oe((function(){return arguments})())?Oe:function(r){return S(r)&&Tn.call(r,"callee")&&!In.call(r,"callee")},no=Cn;function Pn(){return!1}n(Pn,"stubFalse");var ao=Pn;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,co=lo&&typeof module=="object"&&module&&!module.nodeType&&module,jn=co&&co.exports===lo,ho=jn?B.Buffer:void 0,Mn=ho?ho.isBuffer:void 0,Dn=Mn||ao,It=Dn;var Nn=9007199254740991,Fn=/^(?:0|[1-9]\d*)$/;function Ln(r,t){var e=typeof r;return t=t??Nn,!!t&&(e=="number"||e!="symbol"&&Fn.test(r))&&r>-1&&r%1==0&&r<t}n(Ln,"isIndex");var fo=Ln;var zn=9007199254740991;function Un(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=zn}n(Un,"isLength");var re=Un;var kn="[object Arguments]",$n="[object Array]",Gn="[object Boolean]",Wn="[object Date]",Kn="[object Error]",Sn="[object Function]",Hn="[object Map]",qn="[object Number]",Vn="[object Object]",Xn="[object RegExp]",Zn="[object Set]",Jn="[object String]",Yn="[object WeakMap]",Qn="[object ArrayBuffer]",ta="[object DataView]",ea="[object Float32Array]",ra="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",ia="[object Int32Array]",na="[object Uint8Array]",aa="[object Uint8ClampedArray]",ca="[object Uint16Array]",ha="[object Uint32Array]",A={};A[ea]=A[ra]=A[oa]=A[sa]=A[ia]=A[na]=A[aa]=A[ca]=A[ha]=!0;A[kn]=A[$n]=A[Qn]=A[Gn]=A[ta]=A[Wn]=A[Kn]=A[Sn]=A[Hn]=A[qn]=A[Vn]=A[Xn]=A[Zn]=A[Jn]=A[Yn]=!1;function la(r){return S(r)&&re(r.length)&&!!A[G(r)]}n(la,"baseIsTypedArray");var po=la;function fa(r){return function(t){return r(t)}}n(fa,"baseUnary");var uo=fa;var mo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ct=mo&&typeof module=="object"&&module&&!module.nodeType&&module,pa=Ct&&Ct.exports===mo,Be=pa&&Vt.process,ua=(function(){try{var r=Ct&&Ct.require&&Ct.require("util").types;return r||Be&&Be.binding&&Be.binding("util")}catch{}})(),Te=ua;var go=Te&&Te.isTypedArray,da=go?uo(go):po,oe=da;var ma=Object.prototype,ga=ma.hasOwnProperty;function _a(r,t){var e=st(r),o=!e&&no(r),s=!e&&!o&&It(r),i=!e&&!o&&!s&&oe(r),a=e||o||s||i,c=a?so(r.length,String):[],h=c.length;for(var f in r)(t||ga.call(r,f))&&!(a&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||fo(f,h)))&&c.push(f);return c}n(_a,"arrayLikeKeys");var _o=_a;var wa=Object.prototype;function ya(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||wa;return r===e}n(ya,"isPrototype");var wo=ya;function xa(r,t){return function(e){return r(t(e))}}n(xa,"overArg");var yo=xa;var ba=yo(Object.keys,Object),xo=ba;var Aa=Object.prototype,va=Aa.hasOwnProperty;function Ea(r){if(!wo(r))return xo(r);var t=[];for(var e in Object(r))va.call(r,e)&&e!="constructor"&&t.push(e);return t}n(Ea,"baseKeys");var bo=Ea;function Ra(r){return r!=null&&re(r.length)&&!Zt(r)}n(Ra,"isArrayLike");var Ao=Ra;function Oa(r){return Ao(r)?_o(r):bo(r)}n(Oa,"keys");var vo=Oa;function Ba(r){return Qr(r,vo,oo)}n(Ba,"getAllKeys");var Ie=Ba;var Ta=1,Ia=Object.prototype,Ca=Ia.hasOwnProperty;function Pa(r,t,e,o,s,i){var a=e&Ta,c=Ie(r),h=c.length,f=Ie(t),g=f.length;if(h!=g&&!a)return!1;for(var d=h;d--;){var m=c[d];if(!(a?m in t:Ca.call(t,m)))return!1}var w=i.get(r),y=i.get(t);if(w&&y)return w==t&&y==r;var v=!0;i.set(r,t),i.set(t,r);for(var R=a;++d<h;){m=c[d];var O=r[m],E=t[m];if(o)var x=a?o(E,O,m,t,r,i):o(O,E,m,r,t,i);if(!(x===void 0?O===E||s(O,E,e,o,i):x)){v=!1;break}R||(R=m=="constructor")}if(v&&!R){var b=r.constructor,T=t.constructor;b!=T&&"constructor"in r&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof T=="function"&&T instanceof T)&&(v=!1)}return i.delete(r),i.delete(t),v}n(Pa,"equalObjects");var Eo=Pa;var ja=N(B,"DataView"),se=ja;var Ma=N(B,"Promise"),ie=Ma;var Da=N(B,"Set"),ne=Da;var Na=N(B,"WeakMap"),ae=Na;var Ro="[object Map]",Fa="[object Object]",Oo="[object Promise]",Bo="[object Set]",To="[object WeakMap]",Io="[object DataView]",La=W(se),za=W(J),Ua=W(ie),ka=W(ne),$a=W(ae),it=G;(se&&it(new se(new ArrayBuffer(1)))!=Io||J&&it(new J)!=Ro||ie&&it(ie.resolve())!=Oo||ne&&it(new ne)!=Bo||ae&&it(new ae)!=To)&&(it=n(function(r){var t=G(r),e=t==Fa?r.constructor:void 0,o=e?W(e):"";if(o)switch(o){case La:return Io;case za:return Ro;case Ua:return Oo;case ka:return Bo;case $a:return To}return t},"getTag"));var Ce=it;var Ga=1,Co="[object Arguments]",Po="[object Array]",ce="[object Object]",Wa=Object.prototype,jo=Wa.hasOwnProperty;function Ka(r,t,e,o,s,i){var a=st(r),c=st(t),h=a?Po:Ce(r),f=c?Po:Ce(t);h=h==Co?ce:h,f=f==Co?ce:f;var g=h==ce,d=f==ce,m=h==f;if(m&&It(r)){if(!It(t))return!1;a=!0,g=!1}if(m&&!g)return i||(i=new Qt),a||oe(r)?ee(r,t,e,o,s,i):Jr(r,t,h,e,o,s,i);if(!(e&Ga)){var w=g&&jo.call(r,"__wrapped__"),y=d&&jo.call(t,"__wrapped__");if(w||y){var v=w?r.value():r,R=y?t.value():t;return i||(i=new Qt),s(v,R,e,o,i)}}return m?(i||(i=new Qt),Eo(r,t,e,o,s,i)):!1}n(Ka,"baseIsEqualDeep");var Mo=Ka;function Do(r,t,e,o,s){return r===t?!0:r==null||t==null||!S(r)&&!S(t)?r!==r&&t!==t:Mo(r,t,e,o,Do,s)}n(Do,"baseIsEqual");var No=Do;function Sa(r,t){return No(r,t)}n(Sa,"isEqual");var Fo=Sa;var Ha=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Lo(r){return r.match(Ha)}n(Lo,"smpAsciiWords");var Wo="\\ud800-\\udfff",qa="\\u0300-\\u036f",Va="\\ufe20-\\ufe2f",Xa="\\u20d0-\\u20ff",Za="\\u1ab0-\\u1aff",Ja="\\u1dc0-\\u1dff",Ya=qa+Va+Xa+Za+Ja,Ko="\\u2700-\\u27bf",So="a-z\\xdf-\\xf6\\xf8-\\xff",Qa="\\xac\\xb1\\xd7\\xf7",tc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ec="\\u2000-\\u206f",rc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ho="A-Z\\xc0-\\xd6\\xd8-\\xde",oc="\\ufe0e\\ufe0f",qo=Qa+tc+ec+rc,Vo="['\u2019]",zo=`[${qo}]`,sc=`[${Ya}]`,Xo="\\d",ic=`[${Ko}]`,Zo=`[${So}]`,Jo=`[^${Wo}${qo+Xo+Ko+So+Ho}]`,nc="\\ud83c[\\udffb-\\udfff]",ac=`(?:${sc}|${nc})`,cc=`[^${Wo}]`,Yo="(?:\\ud83c[\\udde6-\\uddff]){2}",Qo="[\\ud800-\\udbff][\\udc00-\\udfff]",bt=`[${Ho}]`,hc="\\u200d",Uo=`(?:${Zo}|${Jo})`,lc=`(?:${bt}|${Jo})`,ko=`(?:${Vo}(?:d|ll|m|re|s|t|ve))?`,$o=`(?:${Vo}(?:D|LL|M|RE|S|T|VE))?`,ts=`${ac}?`,es=`[${oc}]?`,fc=`(?:${hc}(?:${[cc,Yo,Qo].join("|")})${es+ts})*`,pc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dc=es+ts+fc,Go=`(?:${[ic,Yo,Qo].join("|")})${dc}`,Pt=class{static{n(this,"SmpUnicodeWords")}static HAS_UNICODE_WORD=RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/);static RE_UNICODE_WORDS=RegExp([`${bt}?${Zo}+${ko}(?=${[zo,bt,"$"].join("|")})`,`${lc}+${$o}(?=${[zo,bt+Uo,"$"].join("|")})`,`${bt}?${Uo}+${ko}`,`${bt}+${$o}`,uc,pc,`${Xo}+`,Go].join("|"),"g");static RS_EMOJI=Go;static unicodeWords(t){return t.match(this.RE_UNICODE_WORDS)}};var rs=class{static{n(this,"SmpCommonUtils")}static arrayRemove(t,e){let o=[],s=t.filter((i,a)=>e(i,a)&&o.push(a));return o.reverse().forEach(i=>t.splice(i,1)),s}static assertIsArray(t,e){if(!Array.isArray(t))throw new Error(e||`${this.constructor.name} => val was not an array`)}static assertIsBoolean(t,e){if(!this.isBoolean(t))throw new Error(e||`${this.constructor.name} => val was not boolean`)}static assertIsFunction(t,e){if(!this.isFunction(t))throw new Error(e||`${this.constructor.name} => entity was not a function`)}static assertIsInstance(t,e,o){if(!(t instanceof e))throw new Error(o||`${this.constructor.name} => val was not instance of class`)}static assertIsNotEmpty(t,e){if(this.isEmpty(t))throw new Error(e||`${this.constructor.name} => entity was empty`)}static assertIsNumber(t,e){if(typeof t!="number")throw new Error(e||`${this.constructor.name} => val was not numeric`)}static assertIsNumeric(t,e){if(!this.isNumeric(t))throw new Error(e||`${this.constructor.name} => val was not numeric`)}static assertIsObject(t,e){if(!this.isObject(t))throw new Error(e||`${this.constructor.name} => val was not an object`)}static assertIsString(t,e){if(!this.isString(t))throw new Error(e||`${this.constructor.name} => val was not a string`)}static assertIsTruthy(t,e){if(!t)throw new Error(e||`${this.constructor.name} => condition wasn't truthy`)}static buildPath(...t){let e=t.filter(o=>!!o).join("/").replace(/(?<!:)\/\/+/g,"/");return e.startsWith("http")&&!e.endsWith("/")?`${e}/`:e}static downloadBlob(t,e){let o=window.URL.createObjectURL(t),s=document.createElement("a");s.href=o,s.setAttribute("download",e),document.body.appendChild(s),s.click()}static fixDecimalPrecision(t,e=2){this.assertIsNumber(t),this.assertIsNumber(e);let s=10**Math.max(0,Math.trunc(e));return Math.round((t+Number.EPSILON)*s)/s}static generateRandomHexString(t=12){let e="0123456789abcdef",o="";for(let s=0;s<t;s++){let i=Math.floor(Math.random()*e.length);o+=e[i]}return o}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}static getDecimalPrecision(t){if(this.assertIsNumeric(t),!isFinite(+t))return 0;let e=1,o=0;for(;Math.round(+t*e)/e!==t;)e*=10,o++;return o}static getType(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}static isBoolean(t){return typeof t=="boolean"}static isColor(t){if(!t||!this.isString(t))return!1;let e=new Option().style;return e.color=t,e.color!==""}static isEmpty(t){return!t&&t!==0}static isEqual(t,e){return Fo(t,e)}static isFormField(t){return/^(?:input|select|textarea|button)$/i.test(t.nodeName)}static isFunction(t){return typeof t==typeof isNaN}static isNotEmpty(t){return!this.isEmpty(t)}static isNumber(t){return typeof t=="number"&&this.isNumeric(t)}static isNumeric(t){return!isNaN(t)}static isObject(t){return!!t&&t===Object(t)&&t.constructor===Object}static isPrimitive(t){let e=this.getType(t);return e!=="function"&&(e!=="object"||!t)}static isString(t){return typeof t=="string"}static isWindows(){return navigator.userAgent.toLowerCase().includes("win")}static mapObject(t,e){if(this.assertIsFunction(e,`CommonUtils => expected type of iteratee to be Function, got ${typeof e}`),this.isObject(t))return Object.entries(t).reduce((o,[s,i])=>(o.push(e(i,s)),o),[]);if(Array.isArray(t))return t.map(e);throw new Error(`CommonUtils => invalid object provided. Expected Object or Array, got ${typeof e}`)}static mapObjectKeys(t,e){return this.isObject(t)?Object.entries(t).reduce((o,[s,i])=>{let a=e(s,i);return o[a]=i,o},{}):{}}static mapObjectValues(t,e){return this.isObject(t)?Object.entries(t).reduce((o,[s,i])=>(o[s]=e.call(null,i,s),o),{}):{}}static noop(){}static objectHasValue(t,e){return!!~Object.values(t).filter(o=>this.isEqual(o,e))}static omit(t,e){return Object.keys(t).filter(s=>!e.includes(s)).reduce((s,i)=>(s[i]=t[i],s),{})}static parseBoolean(t){return t?/^true$/i.test(t):!1}static parseJsonSafely(t){try{return JSON.parse(t)}catch(e){console.warn(`${this.constructor.name} => couldn't parse json string`,{str:t,error:e});return}}static pick(t,e){return e.reduce((o,s)=>(s in t&&(o[s]=t[s]),o),{})}static runSafely(t,e=null,o=[]){if(this.isFunction(t))return t.apply(e,o)}static sleep(t){return new Promise(e=>setTimeout(e,t))}static sprintf(t,...e){return this.isString(t)&&e.length?this.sprintf(t.replace("%s",String(e.shift())),...e):t}static stripComments(t){return typeof t=="string"?t.replace(/(<!--.*?-->)|(<!--[\S\s]+?-->)|(<!--[\S\s]*?$)/g,""):t}static submitFakeForm({action:t,method:e=lr.POST,data:o,target:s}){let i=Object.entries(o||{}).map(([c,h])=>`<input name="${c}" type="hidden" value="${h}" />`),a=document.createElement("form");a.method=e,a.action=t,a.innerHTML=`${i}`,a.target=s||"_self",document.body.append(a),a.submit()}static toCamelCase(t){return this.words(t.replace(/['\u2019]/g,"")).reduce((e,o,s)=>(o=o.toLowerCase(),e+(s?o.charAt(0).toUpperCase()+o.slice(1):o)),"")}static toKebabCase(t){return this.words(t.replace(/['\u2019]/g,"")).join("-").toLowerCase()}static toPascalCase(t){return this.toCamelCase(t).replace(/^(.)/,e=>e.toUpperCase())}static toSnakeCase(t){return this.words(t.replace(/['\u2019]/g,"")).join("_").toLowerCase()}static toUpperSnakeCase(t){return this.toSnakeCase(t).toUpperCase()}static words(t,e){return e===void 0?(Pt.HAS_UNICODE_WORD(t)?Pt.unicodeWords(t):Lo(t))||[]:t.match(e)||[]}};var os=class extends Error{static{n(this,"SmpFilterException")}message;data;constructor(t="Filter Exception",e){super(),this.message=t,this.data=e}};import{DateTime as ss}from"ts-luxon";var is=class r{static{n(this,"SmpSid")}value;expiry;get active(){return this.value.endsWith(this._controlSuffix)}get expired(){return ss.now().ts>this.expiry}get valid(){return!this.expired}_controlSuffix="$1";constructor(t=`sid-xxxx-${+ss.now().ts}`,e=0){this.value=t,this.expiry=e}static parse(t){return new r(t.value,t.expiry)}toPlain(){return{value:this.value,expiry:this.expiry}}};import{smpNoop as Z0}from"@tonysamperi/logger";var ns=class{static{n(this,"SmpRegularExpressions")}static get COUNTRY(){return this._country}static get DOMAIN(){return/^(?!www)(\w)([\w.-])*\.[a-z]{2,6}$/}static get EMAIL(){return/^[^\\|!"£$%&/()='?^€*[\]°#§<>,;:\s]+@[a-z0-9.-]+\.[a-z]{2,6}$/}static get LANGUAGE(){return this._language}static get LATIN_CHARS(){return/^[\u0000-\u024F\u1E00-\u1EFF\u2C60-\u2C7F\uA720-\uA7FF]+/}static get LOCALE(){return new RegExp(`${this._country.source}-${this._language.source}`)}static get NO_EMOJI_NO_PUNCTUATION(){return/[^\p{Emoji_Presentation}|\p{P}]/gu}static get PHONE_NUMBER(){return/^(\+\d{1,4}\s)(\d{4,15})$/}static get PHONE_NUMBER_BY_PREFIX(){return{"+971":{dontStartWithZero:/^(\+\d{3}\s)([1-9])/,typeExactlyNineDigits:/^(\+\d{3}\s)([1-9]\d{8}$)/}}}static get TAXCODE_BY_COUNTRY(){return{ES:{DNI:/^\d{8}[A-Z]$/,NIE:/^[A-Z]\d{7}[A-Z]$/,CIF:/^[A-Z]\d{8}$/}}}static _country=/[a-zA-Z]{2}/;static _language=/[a-z]{2}/};var Q0="2.0.0-beta.6";export{Tp as SMP_HEALTHZ,ze as SmpAbstractCacheStrategy,ht as SmpAbstractTtlCacheStrategy,Bt as SmpAesCrypt,hr as SmpApiCommonUtils,fr as SmpBaseJwtToken,pr as SmpBaseJwtTokenPlain,jt as SmpBrowserCache,rs as SmpCommonUtils,mt as SmpCrypto,z as SmpErrorResponse,os as SmpFilterException,_c as SmpFirebaseErrors,Et as SmpGenericResponse,Ae as SmpGiftcardTransaction,gt as SmpGiftcardTransactionHashStrategies,M as SmpGiftcardTransactionOps,Mt as SmpHttpSessionStorageCache,$e as SmpHttpStatusCodes,cr as SmpHttpTwoService,Ht as SmpInMemoryCache,ou as SmpMarketingCloudValidators,ns as SmpRegularExpressions,F as SmpResponseMessage,ct as SmpResponseMessageTypes,lr as SmpRestVerbs,xe as SmpSecureCode,is as SmpSid,mc as SmpSocialSignInKeys,gc as SmpSocialSignInUxModes,Q0 as VERSION,iu as smpApplyMixin,Ue as smpIsSmpCachedValue,Z0 as smpNoop};
|
|
1
|
+
import{a as rs,b as es,c as ts}from"./chunk-DIVAYUSN.js";import{a as ge,b as we}from"./chunk-OVNQKUGW.js";import{a as rr}from"./chunk-F3OJMKBL.js";import{a as c,b as io,c as no}from"./chunk-7X4DHW36.js";var xt=io((_t,zr)=>{"use strict";(function(o){if(typeof r!="function"){var r=c(function(g){return g},"Symbol");r.nonNative=!0}let e=r("plaintext"),t=r("html"),s=r("comment"),i=/<(\w*)>/g,n=/<\/?([^\s\/>]+)/;function a(g,y,A){g=g||"",y=y||[],A=A||"";let B=p(y,A);return m(g,B)}c(a,"striptags");function l(g,y){g=g||[],y=y||"";let A=p(g,y);return c(function(E){return m(E||"",A)},"striptags_stream")}c(l,"init_striptags_stream"),a.init_streaming_mode=l;function p(g,y){return g=d(g),{allowable_tags:g,tag_replacement:y,state:e,tag_buffer:"",depth:0,in_quote_char:""}}c(p,"init_context");function m(g,y){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let A=y.allowable_tags,B=y.tag_replacement,E=y.state,_=y.tag_buffer,v=y.depth,x=y.in_quote_char,R="";for(let $=0,xr=g.length;$<xr;$++){let D=g[$];if(E===e)switch(D){case"<":E=t,_+=D;break;default:R+=D;break}else if(E===t)switch(D){case"<":if(x)break;v++;break;case">":if(x)break;if(v){v--;break}x="",E=e,_+=">",A.has(w(_))?R+=_:R+=B,_="";break;case'"':case"'":D===x?x="":x=x||D,_+=D;break;case"-":_==="<!-"&&(E=s),_+=D;break;case" ":case`
|
|
2
|
+
`:if(_==="<"){E=e,R+="< ",_="";break}_+=D;break;default:_+=D;break}else if(E===s)switch(D){case">":_.slice(-2)=="--"&&(E=e),_="";break;default:_+=D;break}}return y.state=E,y.tag_buffer=_,y.depth=v,y.in_quote_char=x,R}c(m,"striptags_internal");function d(g){let y=new Set;if(typeof g=="string"){let A;for(;A=i.exec(g);)y.add(A[1])}else!r.nonNative&&typeof g[r.iterator]=="function"?y=new Set(g):typeof g.forEach=="function"&&g.forEach(y.add,y);return y}c(d,"parse_allowable_tags");function w(g){let y=n.exec(g);return y?y[1].toLowerCase():null}c(w,"normalize_tag"),typeof define=="function"&&define.amd?define(c(function(){return a},"module_factory")):typeof zr=="object"&&zr.exports?zr.exports=a:o.striptags=a})(_t)});import{DateTime as ye}from"ts-luxon";var er=class extends ge{static{c(this,"SmpAbstractTtlCacheStrategy")}flush(){this._flushRaw()}read(r){let e=this._readRaw(r);if(this._isSmpCachedValue(e)){if(e.expiry>=ye.now().ts)return e.value;this._removeRaw(r);return}return e}remove(r){this._removeRaw(r)}write(r,e,t){if(isNaN(+t)||+t<=0){this._writeRaw(r,e,t);return}let s=ye.now().ts+t*1e3,i={value:e,expiry:s};this._writeRaw(r,i,t)}_isSmpCachedValue(r){return we(r)}};var vr=class extends er{static{c(this,"SmpBrowserCache")}_storage;_prefix;constructor(r,e){super(),this._storage=r,this._prefix=e}_flushRaw(){let r=[],e=-1;for(;++e<this._storage.length;){let t=this._storage.key(e);t&&t.startsWith(this._prefix)&&r.push(t)}for(e=-1;++e<r.length;)this._storage.removeItem(r[e])}_readRaw(r){let e=this._storage.getItem(this._prefix+r);try{return e?JSON.parse(e):void 0}catch{console.warn(`${this.constructor.name}: failed to parse cache item for key ${this._prefix+r}`);return}}_removeRaw(r){this._storage.removeItem(this._prefix+r)}_writeRaw(r,e){try{this._storage.setItem(this._prefix+r,JSON.stringify(e))}catch(t){console.warn(`${this.constructor.name}: failed to write cache item for key ${this._prefix+r}`,t)}}};var Er=class extends vr{static{c(this,"SmpHttpSessionStorageCache")}constructor(){super(sessionStorage,"smp_rest_cache_")}};var Ar=(function(o){return o[o.Continue=100]="Continue",o[o.SwitchingProtocols=101]="SwitchingProtocols",o[o.Processing=102]="Processing",o[o.EarlyHints=103]="EarlyHints",o[o.Ok=200]="Ok",o[o.Created=201]="Created",o[o.Accepted=202]="Accepted",o[o.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",o[o.NoContent=204]="NoContent",o[o.ResetContent=205]="ResetContent",o[o.PartialContent=206]="PartialContent",o[o.MultiStatus=207]="MultiStatus",o[o.AlreadyReported=208]="AlreadyReported",o[o.ImUsed=226]="ImUsed",o[o.MultipleChoices=300]="MultipleChoices",o[o.MovedPermanently=301]="MovedPermanently",o[o.Found=302]="Found",o[o.SeeOther=303]="SeeOther",o[o.NotModified=304]="NotModified",o[o.UseProxy=305]="UseProxy",o[o.Unused=306]="Unused",o[o.TemporaryRedirect=307]="TemporaryRedirect",o[o.PermanentRedirect=308]="PermanentRedirect",o[o.BadRequest=400]="BadRequest",o[o.Unauthorized=401]="Unauthorized",o[o.PaymentRequired=402]="PaymentRequired",o[o.Forbidden=403]="Forbidden",o[o.NotFound=404]="NotFound",o[o.MethodNotAllowed=405]="MethodNotAllowed",o[o.NotAcceptable=406]="NotAcceptable",o[o.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",o[o.RequestTimeout=408]="RequestTimeout",o[o.Conflict=409]="Conflict",o[o.Gone=410]="Gone",o[o.LengthRequired=411]="LengthRequired",o[o.PreconditionFailed=412]="PreconditionFailed",o[o.PayloadTooLarge=413]="PayloadTooLarge",o[o.UriTooLong=414]="UriTooLong",o[o.UnsupportedMediaType=415]="UnsupportedMediaType",o[o.RangeNotSatisfiable=416]="RangeNotSatisfiable",o[o.ExpectationFailed=417]="ExpectationFailed",o[o.ImATeapot=418]="ImATeapot",o[o.MisdirectedRequest=421]="MisdirectedRequest",o[o.UnprocessableEntity=422]="UnprocessableEntity",o[o.Locked=423]="Locked",o[o.FailedDependency=424]="FailedDependency",o[o.TooEarly=425]="TooEarly",o[o.UpgradeRequired=426]="UpgradeRequired",o[o.PreconditionRequired=428]="PreconditionRequired",o[o.TooManyRequests=429]="TooManyRequests",o[o.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",o[o.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",o[o.InternalServerError=500]="InternalServerError",o[o.NotImplemented=501]="NotImplemented",o[o.BadGateway=502]="BadGateway",o[o.ServiceUnavailable=503]="ServiceUnavailable",o[o.GatewayTimeout=504]="GatewayTimeout",o[o.HttpVersionNotSupported=505]="HttpVersionNotSupported",o[o.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",o[o.InsufficientStorage=507]="InsufficientStorage",o[o.LoopDetected=508]="LoopDetected",o[o.NotExtended=510]="NotExtended",o[o.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",o})({});import{Expose as Ae,plainToInstance as uo}from"class-transformer";import"reflect-metadata";import{Expose as co,instanceToPlain as ve,plainToInstance as lo,Transform as ho,Type as po}from"class-transformer";import{Expose as _e}from"class-transformer";function be(o,r,e,t){var s=arguments.length,i=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,e,t);else for(var a=o.length-1;a>=0;a--)(n=o[a])&&(i=(s<3?n(i):s>3?n(r,e,i):n(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i}c(be,"_ts_decorate");function Rr(o,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,r)}c(Rr,"_ts_metadata");var O=class o{static{c(this,"SmpResponseMessage")}_message;_type;set message(r){this._message=r}get message(){return this._message}set type(r){this._type=r}get type(){return this._type}constructor(r,e=rr.ERROR){this._message=r,this._type=e}static sanitizeMessages(r){return typeof r=="string"?r.length?[new o(r)]:[]:[r].flat().map(e=>typeof e=="string"?new o(e):e)}};be([_e(),Rr("design:type",String),Rr("design:paramtypes",[])],O.prototype,"message",null);be([_e(),Rr("design:type",typeof rr>"u"?Object:rr),Rr("design:paramtypes",[])],O.prototype,"type",null);function ao(o,r,e,t){var s=arguments.length,i=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,e,t);else for(var a=o.length-1;a>=0;a--)(n=o[a])&&(i=(s<3?n(i):s>3?n(r,e,i):n(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i}c(ao,"_ts_decorate");function xe(o,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,r)}c(xe,"_ts_metadata");var fr=class o{static{c(this,"SmpGenericResponse")}_messages;data;set messages(r){this._messages=O.sanitizeMessages(r)}get messages(){return this._messages}constructor(r=[],e){this._messages=r,this.data=e}static create(r){return new o([r.messages||[]].flat().map(e=>e instanceof O?e:new O(e,r.type||rr.SUCCESS)),r.data)}static fromPlain(r){return lo(this,r)}clone(){return this.constructor.fromPlain(this.serialize())}isError(){return!this.isSuccess()}isSuccess(){return typeof this._errorCode=="number"}serialize(){return{...ve(this,{excludePrefixes:["_"]}),data:ve(this).data}}};ao([co(),po(()=>O),ho(({value:o})=>o?.length?o:void 0),xe("design:type",Object),xe("design:paramtypes",[])],fr.prototype,"messages",null);function Ee(o,r,e,t){var s=arguments.length,i=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,e,t);else for(var a=o.length-1;a>=0;a--)(n=o[a])&&(i=(s<3?n(i):s>3?n(r,e,i):n(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i}c(Ee,"_ts_decorate");function Br(o,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,r)}c(Br,"_ts_metadata");var L=class o extends fr{static{c(this,"SmpErrorResponse")}_errorCode;_status;static get DEFAULT_MESSAGES(){return[new O("GENERIC_ERROR")]}set errorCode(r){this._errorCode=r}get errorCode(){return this._errorCode}get status(){return this._status}set timestamp(r){this._timestamp=r}get timestamp(){return this._timestamp}_timestamp=Date.now();constructor(r=o.DEFAULT_MESSAGES,e="GENERIC_ERROR",t=500,s){super(r,s),this._errorCode=e,this._status=t}static create({messages:r=o.DEFAULT_MESSAGES,...e}={}){return new o(O.sanitizeMessages(r),e.errorCode,e.status,e.data)}static fromPlain(r){let e=uo(fo,r,{excludePrefixes:["_"]}),t=new o;return Object.getOwnPropertyNames(e).forEach(s=>{s in t&&(t[s]=e[s])}),t}};Ee([Ae(),Br("design:type",Object),Br("design:paramtypes",[])],L.prototype,"errorCode",null);Ee([Ae(),Br("design:type",Number),Br("design:paramtypes",[])],L.prototype,"timestamp",null);var fo=class extends L{static{c(this,"SmpErrorResponseMutable")}set errorCode(r){this._errorCode=r}set status(r){this._status=r}set timestamp(r){this._timestamp=r}};var F=class{static{c(this,"Hex")}static parse(r){let e=r.length,t=[];for(let s=0;s<e;s+=2)t[s>>>3]|=parseInt(r.substr(s,2),16)<<24-s%8*4;return new b(t,e/2)}static stringify(r){let e=[];for(let t=0;t<r.sigBytes;t++){let s=r.words[t>>>2]>>>24-t%4*8&255;e.push((s>>>4).toString(16)),e.push((s&15).toString(16))}return e.join("")}};var b=class Sr{static{c(this,"WordArray")}constructor(r,e){this.words=r||[],e!==void 0?this.sigBytes=e:this.sigBytes=this.words.length*4}static random(r){let e=[],t=c(function(s){let i=987654321,n=4294967295;return function(){i=36969*(i&65535)+(i>>16)&n,s=18e3*(s&65535)+(s>>16)&n;let a=(i<<16)+s&n;return a/=4294967296,a+=.5,a*(Math.random()>.5?1:-1)}},"r");for(let s=0,i;s<r;s+=4){let n=t((i||Math.random())*4294967296);i=n()*987654071,e.push(n()*4294967296|0)}return new Sr(e,r)}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Sr(this.words.slice(0),this.sigBytes)}concat(r){if(this.clamp(),this.sigBytes%4)for(let e=0;e<r.sigBytes;e++){let t=r.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=t<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<r.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=r.words[e>>>2];return this.sigBytes+=r.sigBytes,this}toString(r){return(r||F).stringify(this)}};var qr=class{static{c(this,"Latin1")}static parse(r){let e=r.length,t=[];for(let s=0;s<e;s++)t[s>>>2]|=(r.charCodeAt(s)&255)<<24-s%4*8;return new b(t,e)}static stringify(r){let e=[];for(let t=0;t<r.sigBytes;t++){let s=r.words[t>>>2]>>>24-t%4*8&255;e.push(String.fromCharCode(s))}return e.join("")}};var q=class{static{c(this,"Utf8")}static parse(r){return qr.parse(unescape(encodeURIComponent(r)))}static stringify(r){try{return decodeURIComponent(escape(qr.stringify(r)))}catch(e){throw console.error("Malformed UTF-8 data",e),new Error("Malformed UTF-8 data",{cause:e})}}};var Tr=class{static{c(this,"BufferedBlockAlgorithm")}constructor(r){this._minBufferSize=0,this.cfg=Object.assign({blockSize:1},r),this._data=new b,this._nDataBytes=0}clone(){let r=this.constructor();for(let e in this)Object.prototype.hasOwnProperty.call(this,e)&&(r[e]=this[e]);return r._data=this._data.clone(),r}reset(){this._data=new b,this._nDataBytes=0}_append(r){typeof r=="string"&&(r=q.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_process(r){if(!this.cfg.blockSize)throw new Error("missing blockSize in config");let e=this.cfg.blockSize*4,t=this._data.sigBytes/e;r?t=Math.ceil(t):t=Math.max((t|0)-this._minBufferSize,0);let s=t*this.cfg.blockSize,i=Math.min(s*4,this._data.sigBytes),n;if(s){for(let a=0;a<s;a+=this.cfg.blockSize)this._doProcessBlock(this._data.words,a);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new b(n,i)}};var tr=class{static{c(this,"CipherParams")}constructor(r){this.ciphertext=r.ciphertext,this.key=r.key,this.iv=r.iv,this.salt=r.salt,this.algorithm=r.algorithm,this.mode=r.mode,this.padding=r.padding,this.blockSize=r.blockSize,this.formatter=r.formatter}extend(r){return r.ciphertext!==void 0&&(this.ciphertext=r.ciphertext),r.key!==void 0&&(this.key=r.key),r.iv!==void 0&&(this.iv=r.iv),r.salt!==void 0&&(this.salt=r.salt),r.algorithm!==void 0&&(this.algorithm=r.algorithm),r.mode!==void 0&&(this.mode=r.mode),r.padding!==void 0&&(this.padding=r.padding),r.blockSize!==void 0&&(this.blockSize=r.blockSize),r.formatter!==void 0&&(this.formatter=r.formatter),this}toString(r){if(r)return r.stringify(this);if(this.formatter)return this.formatter.stringify(this);throw new Error("cipher needs a formatter to be able to convert the result into a string")}};var P=class{static{c(this,"Base64")}static parse(r){let e=r.length;if(this._reverseMap===void 0){this._reverseMap=[];for(let s=0;s<this._map.length;s++)this._reverseMap[this._map.charCodeAt(s)]=s}let t=this._map.charAt(64);if(t){let s=r.indexOf(t);s!==-1&&(e=s)}return this.parseLoop(r,e,this._reverseMap)}static parseLoop(r,e,t){let s=[],i=0;for(let n=0;n<e;n++)if(n%4){let a=t[r.charCodeAt(n-1)]<<n%4*2,l=t[r.charCodeAt(n)]>>>6-n%4*2;s[i>>>2]|=(a|l)<<24-i%4*8,i++}return new b(s,i)}static stringify(r){r.clamp();let e=[];for(let s=0;s<r.sigBytes;s+=3){let i=r.words[s>>>2]>>>24-s%4*8&255,n=r.words[s+1>>>2]>>>24-(s+1)%4*8&255,a=r.words[s+2>>>2]>>>24-(s+2)%4*8&255,l=i<<16|n<<8|a;for(let p=0;p<4&&s+p*.75<r.sigBytes;p++)e.push(this._map.charAt(l>>>6*(3-p)&63))}let t=this._map.charAt(64);if(t)for(;e.length%4;)e.push(t);return e.join("")}};P._map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";P._reverseMap=void 0;var Dr=class{static{c(this,"OpenSSL")}static parse(r){let e=P.parse(r),t;return e.words[0]===1398893684&&e.words[1]===1701076831&&(t=new b(e.words.slice(2,4)),e.words.splice(0,4),e.sigBytes-=16),new tr({ciphertext:e,salt:t})}static stringify(r){if(!r.ciphertext)throw new Error("missing ciphertext in params");let e=r.ciphertext,t=r.salt,s;if(t){if(typeof t=="string")throw new Error("salt is expected to be a WordArray");s=new b([1398893684,1701076831]).concat(t).concat(e)}else s=e;return s.toString(P)}};var G=class{static{c(this,"SerializableCipher")}static decrypt(r,e,t,s){let i=Object.assign({},this.cfg,s);if(!i.format)throw new Error("could not determine format");if(e=this._parse(e,i.format),!e.ciphertext)throw new Error("could not determine ciphertext");return r.createDecryptor(t,i).finalize(e.ciphertext)}static encrypt(r,e,t,s){let i=Object.assign({},this.cfg,s),n=r.createEncryptor(t,i),a=n.finalize(e);return new tr({ciphertext:a,key:t,iv:n.cfg.iv,algorithm:r,mode:n.cfg.mode,padding:n.cfg.padding,blockSize:n.cfg.blockSize,formatter:i.format})}static _parse(r,e){return typeof r=="string"?e.parse(r):r}};G.cfg={blockSize:4,iv:new b([]),format:Dr};var T=class extends Tr{static{c(this,"Hasher")}constructor(r){super(Object.assign({blockSize:512/32},r)),this.reset()}static _createHelper(r){function e(t,s){return new r(s).finalize(t)}return c(e,"helper"),e}finalize(r){return r&&this._append(r),this._doFinalize()}update(r){return this._append(r),this._process(),this}};var u=[];for(let o=0;o<64;o++)u[o]=Math.abs(Math.sin(o+1))*4294967296|0;var z=class f extends T{static{c(this,"MD5")}get hash(){return this._hash}static FF(r,e,t,s,i,n,a){let l=r+(e&t|~e&s)+i+a;return(l<<n|l>>>32-n)+e}static GG(r,e,t,s,i,n,a){let l=r+(e&s|t&~s)+i+a;return(l<<n|l>>>32-n)+e}static HH(r,e,t,s,i,n,a){let l=r+(e^t^s)+i+a;return(l<<n|l>>>32-n)+e}static II(r,e,t,s,i,n,a){let l=r+(t^(e|~s))+i+a;return(l<<n|l>>>32-n)+e}reset(){super.reset(),this._hash=new b([1732584193,4023233417,2562383102,271733878])}_doFinalize(){let r=this._nDataBytes*8,e=this._data.sigBytes*8;this._data.words[e>>>5]|=128<<24-e%32;let t=Math.floor(r/4294967296),s=r;this._data.words[(e+64>>>9<<4)+15]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,this._data.words[(e+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,this._data.sigBytes=(this._data.words.length+1)*4,this._process();for(let i=0;i<4;i++)this._hash.words[i]=(this._hash.words[i]<<8|this._hash.words[i]>>>24)&16711935|(this._hash.words[i]<<24|this._hash.words[i]>>>8)&4278255360;return this._hash}_doProcessBlock(r,e){for(let l=0;l<16;l++){let p=e+l,m=r[p];r[p]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}let t=Array.from({length:16});for(let l=0;l<16;l++)t[l]=r[e+l];let s=this._hash.words[0],i=this._hash.words[1],n=this._hash.words[2],a=this._hash.words[3];s=f.FF(s,i,n,a,t[0],7,u[0]),a=f.FF(a,s,i,n,t[1],12,u[1]),n=f.FF(n,a,s,i,t[2],17,u[2]),i=f.FF(i,n,a,s,t[3],22,u[3]),s=f.FF(s,i,n,a,t[4],7,u[4]),a=f.FF(a,s,i,n,t[5],12,u[5]),n=f.FF(n,a,s,i,t[6],17,u[6]),i=f.FF(i,n,a,s,t[7],22,u[7]),s=f.FF(s,i,n,a,t[8],7,u[8]),a=f.FF(a,s,i,n,t[9],12,u[9]),n=f.FF(n,a,s,i,t[10],17,u[10]),i=f.FF(i,n,a,s,t[11],22,u[11]),s=f.FF(s,i,n,a,t[12],7,u[12]),a=f.FF(a,s,i,n,t[13],12,u[13]),n=f.FF(n,a,s,i,t[14],17,u[14]),i=f.FF(i,n,a,s,t[15],22,u[15]),s=f.GG(s,i,n,a,t[1],5,u[16]),a=f.GG(a,s,i,n,t[6],9,u[17]),n=f.GG(n,a,s,i,t[11],14,u[18]),i=f.GG(i,n,a,s,t[0],20,u[19]),s=f.GG(s,i,n,a,t[5],5,u[20]),a=f.GG(a,s,i,n,t[10],9,u[21]),n=f.GG(n,a,s,i,t[15],14,u[22]),i=f.GG(i,n,a,s,t[4],20,u[23]),s=f.GG(s,i,n,a,t[9],5,u[24]),a=f.GG(a,s,i,n,t[14],9,u[25]),n=f.GG(n,a,s,i,t[3],14,u[26]),i=f.GG(i,n,a,s,t[8],20,u[27]),s=f.GG(s,i,n,a,t[13],5,u[28]),a=f.GG(a,s,i,n,t[2],9,u[29]),n=f.GG(n,a,s,i,t[7],14,u[30]),i=f.GG(i,n,a,s,t[12],20,u[31]),s=f.HH(s,i,n,a,t[5],4,u[32]),a=f.HH(a,s,i,n,t[8],11,u[33]),n=f.HH(n,a,s,i,t[11],16,u[34]),i=f.HH(i,n,a,s,t[14],23,u[35]),s=f.HH(s,i,n,a,t[1],4,u[36]),a=f.HH(a,s,i,n,t[4],11,u[37]),n=f.HH(n,a,s,i,t[7],16,u[38]),i=f.HH(i,n,a,s,t[10],23,u[39]),s=f.HH(s,i,n,a,t[13],4,u[40]),a=f.HH(a,s,i,n,t[0],11,u[41]),n=f.HH(n,a,s,i,t[3],16,u[42]),i=f.HH(i,n,a,s,t[6],23,u[43]),s=f.HH(s,i,n,a,t[9],4,u[44]),a=f.HH(a,s,i,n,t[12],11,u[45]),n=f.HH(n,a,s,i,t[15],16,u[46]),i=f.HH(i,n,a,s,t[2],23,u[47]),s=f.II(s,i,n,a,t[0],6,u[48]),a=f.II(a,s,i,n,t[7],10,u[49]),n=f.II(n,a,s,i,t[14],15,u[50]),i=f.II(i,n,a,s,t[5],21,u[51]),s=f.II(s,i,n,a,t[12],6,u[52]),a=f.II(a,s,i,n,t[3],10,u[53]),n=f.II(n,a,s,i,t[10],15,u[54]),i=f.II(i,n,a,s,t[1],21,u[55]),s=f.II(s,i,n,a,t[8],6,u[56]),a=f.II(a,s,i,n,t[15],10,u[57]),n=f.II(n,a,s,i,t[6],15,u[58]),i=f.II(i,n,a,s,t[13],21,u[59]),s=f.II(s,i,n,a,t[4],6,u[60]),a=f.II(a,s,i,n,t[11],10,u[61]),n=f.II(n,a,s,i,t[2],15,u[62]),i=f.II(i,n,a,s,t[9],21,u[63]),this._hash.words[0]=this._hash.words[0]+s|0,this._hash.words[1]=this._hash.words[1]+i|0,this._hash.words[2]=this._hash.words[2]+n|0,this._hash.words[3]=this._hash.words[3]+a|0}};var Vr=class Re{static{c(this,"EVPKDF")}constructor(r){this.cfg=Object.assign({keySize:128/32,hasher:z,iterations:1},r)}static execute(r,e,t){return new Re(t).compute(r,e)}compute(r,e){let t=new this.cfg.hasher,s=new b,i;for(;s.words.length<this.cfg.keySize;){i&&t.update(i),i=t.update(r).finalize(e),t.reset();for(let n=1;n<this.cfg.iterations;n++)i=t.finalize(i),t.reset();s.concat(i)}return s.sigBytes=this.cfg.keySize*4,s}};var Be=class{static{c(this,"OpenSSLKdf")}static execute(r,e,t,s){s||(s=b.random(64/8));let i=new Vr({keySize:e+t}).compute(r,s),n=new b(i.words.slice(e),t*4);return i.sigBytes=e*4,new tr({key:i,iv:n,salt:s})}};var Or=class{static{c(this,"PasswordBasedCipher")}static decrypt(r,e,t,s){let i=Object.assign({},this.cfg,s);if(i.format===void 0)throw new Error("missing format in config");if(e=this._parse(e,i.format),i.kdf===void 0)throw new Error("the key derivation function must be set");let n=i.kdf.execute(t,r.keySize,r.ivSize,e.salt);return n.iv!==void 0&&(i.iv=n.iv),G.decrypt.call(this,r,e,n.key,i)}static encrypt(r,e,t,s){let i=Object.assign({},this.cfg,s);if(i.kdf===void 0)throw new Error("missing kdf in config");let n=i.kdf.execute(t,r.keySize,r.ivSize);return n.iv!==void 0&&(i.iv=n.iv),G.encrypt.call(this,r,e,n.key,i).extend(n)}static _parse(r,e){return typeof r=="string"?e.parse(r):r}};Or.cfg={blockSize:4,iv:new b([]),format:Dr,kdf:Be};var qe=class{static{c(this,"CipherHelper")}constructor(r){this._cipher=r}decrypt(r,e,t){return typeof e=="string"?Or.decrypt(this._cipher,r,e,t):G.decrypt(this._cipher,r,e,t)}encrypt(r,e,t){return typeof e=="string"?Or.encrypt(this._cipher,r,e,t):G.encrypt(this._cipher,r,e,t)}};var or=class extends Tr{static{c(this,"Cipher")}constructor(r,e,t){super(Object.assign({blockSize:1},t)),this._xformMode=r,this._key=e,this.reset()}static _createHelper(r){return new qe(r)}static createDecryptor(r,e){let t=this;return new t(this._DEC_XFORM_MODE,r,e)}static createEncryptor(r,e){return new this(this._ENC_XFORM_MODE,r,e)}finalize(r){return r&&this._append(r),this._doFinalize()}process(r){return this._append(r),this._process()}};or.ivSize=4;or.keySize=4;or._DEC_XFORM_MODE=2;or._ENC_XFORM_MODE=1;var W=class{static{c(this,"BlockCipherModeAlgorithm")}constructor(r,e){this.init(r,e)}init(r,e){this._cipher=r,this._iv=e}};var kr=class{static{c(this,"BlockCipherMode")}static createDecryptor(r,e){let t=this.Decryptor;return new t(r,e)}static createEncryptor(r,e){let t=this.Encryptor;return new t(r,e)}};kr.Decryptor=W;kr.Encryptor=W;var Te=class extends W{static{c(this,"CBCEncryptor")}get prevBlock(){return this._prevBlock}processBlock(r,e){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");this.xorBlock(r,e,this._cipher.cfg.blockSize),this._cipher.encryptBlock(r,e),this._prevBlock=r.slice(e,e+this._cipher.cfg.blockSize)}xorBlock(r,e,t){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<t;i++)r[e+i]^=s[i]}};var De=class extends W{static{c(this,"CBCDecryptor")}get prevBlock(){return this._prevBlock}processBlock(r,e){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");let t=r.slice(e,e+this._cipher.cfg.blockSize);this._cipher.decryptBlock(r,e),this.xorBlock(r,e,this._cipher.cfg.blockSize),this._prevBlock=t}xorBlock(r,e,t){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<t;i++)r[e+i]^=s[i]}};var j=class extends kr{static{c(this,"CBC")}};j.Decryptor=De;j.Encryptor=Te;var S=class{static{c(this,"PKCS7")}static pad(r,e){let t=e*4,s=t-r.sigBytes%t,i=s<<24|s<<16|s<<8|s,n=[];for(let l=0;l<s;l+=4)n.push(i);let a=new b(n,s);r.concat(a)}static unpad(r){let e=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=e}};var Nr=class extends or{static{c(this,"BlockCipher")}constructor(r,e,t){super(r,e,Object.assign({blockSize:4,mode:j,padding:S},t))}reset(){if(super.reset(),this.cfg.mode===void 0)throw new Error("missing mode in config");let r;this._xformMode===this.constructor._ENC_XFORM_MODE?r=this.cfg.mode.createEncryptor:(r=this.cfg.mode.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator===r?this._mode.init(this,this.cfg.iv&&this.cfg.iv.words):(this._mode=r.call(this.cfg.mode,this,this.cfg.iv&&this.cfg.iv.words),this._mode.__creator=r)}_doFinalize(){if(this.cfg.padding===void 0)throw new Error("missing padding in config");let r;if(this._xformMode===this.constructor._ENC_XFORM_MODE){if(this.cfg.blockSize===void 0)throw new Error("missing blockSize in config");this.cfg.padding.pad(this._data,this.cfg.blockSize),r=this._process(!0)}else r=this._process(!0),this.cfg.padding.unpad(r);return r}_doProcessBlock(r,e){this._mode.processBlock(r,e)}};var h=class U{static{c(this,"X64Word")}constructor(r,e){this.high=r,this.low=e}add(r){let e=this.low+r.low|0,t=e>>>0<this.low>>>0?1:0,s=this.high+r.high+t|0;return new U(s,e)}and(r){return new U(this.high&r.high,this.low&r.low)}not(){return new U(~this.high,~this.low)}or(r){return new U(this.high|r.high,this.low|r.low)}rotL(r){return this.shiftL(r).or(this.shiftR(64-r))}rotR(r){return this.shiftR(r).or(this.shiftL(64-r))}shiftL(r){return r<32?new U(this.high<<r|this.low>>>32-r,this.low<<r):new U(this.low<<r-32,0)}shiftR(r){return r<32?new U(this.high>>>r,this.low>>>r|this.high<<32-r):new U(0,this.high>>>r-32)}xor(r){return new U(this.high^r.high,this.low^r.low)}};var Oe=class $r{static{c(this,"X64WordArray")}constructor(r=[],e){this.words=r,this.sigBytes=e!==void 0?e:r.length*8}static create(r=[],e){return new $r(r,e)}clone(){let r=this.words.map(e=>new h(e.high,e.low));return new $r(r,this.sigBytes)}toX32(){let r=[];for(let e of this.words)r.push(e.high,e.low);return new b(r,this.sigBytes)}};var k=[],ke=[],Ne=[],Ce=[],Le=[],Ie=[],Gr=[],Wr=[],Hr=[],Kr=[];(function(){let o=[];for(let t=0;t<256;t++)t<128?o[t]=t<<1:o[t]=t<<1^283;let r=0,e=0;for(let t=0;t<256;t++){let s=e^e<<1^e<<2^e<<3^e<<4;s=s>>>8^s&255^99,k[r]=s,ke[s]=r;let i=o[r],n=o[i],a=o[n],l=o[s]*257^s*16843008;Ne[r]=l<<24|l>>>8,Ce[r]=l<<16|l>>>16,Le[r]=l<<8|l>>>24,Ie[r]=l,l=a*16843009^n*65537^i*257^r*16843008,Gr[s]=l<<24|l>>>8,Wr[s]=l<<16|l>>>16,Hr[s]=l<<8|l>>>24,Kr[s]=l,r?(r=i^o[o[o[a^i]]],e^=o[o[e]]):r=e=1}})();var mo=[0,1,2,4,8,16,32,64,128,27,54],Cr=class extends Nr{static{c(this,"AES")}constructor(r,e,t){super(r,e,t),super.reset()}decryptBlock(r,e){let t=r[e+1];r[e+1]=r[e+3],r[e+3]=t,this._doCryptBlock(r,e,this._invKeySchedule,Gr,Wr,Hr,Kr,ke),t=r[e+1],r[e+1]=r[e+3],r[e+3]=t}encryptBlock(r,e){this._doCryptBlock(r,e,this._keySchedule,Ne,Ce,Le,Ie,k)}reset(){if(super.reset(),this._nRounds&&this._keyPriorReset===this._key)return;let r=this._keyPriorReset=this._key,e=r.words,t=r.sigBytes/4,i=((this._nRounds=t+6)+1)*4,n=this._keySchedule=[];for(let a=0;a<i;a++)if(a<t)n[a]=e[a];else{let l=n[a-1];a%t?t>6&&a%t===4&&(l=k[l>>>24]<<24|k[l>>>16&255]<<16|k[l>>>8&255]<<8|k[l&255]):(l=l<<8|l>>>24,l=k[l>>>24]<<24|k[l>>>16&255]<<16|k[l>>>8&255]<<8|k[l&255],l^=mo[a/t|0]<<24),n[a]=n[a-t]^l}this._invKeySchedule=[];for(let a=0;a<i;a++){let l=i-a,p;a%4?p=n[l]:p=n[l-4],a<4||l<=4?this._invKeySchedule[a]=p:this._invKeySchedule[a]=Gr[k[p>>>24]]^Wr[k[p>>>16&255]]^Hr[k[p>>>8&255]]^Kr[k[p&255]]}}_doCryptBlock(r,e,t,s,i,n,a,l){let p=r[e]^t[0],m=r[e+1]^t[1],d=r[e+2]^t[2],w=r[e+3]^t[3],g=4;for(let _=1;_<this._nRounds;_++){let v=s[p>>>24]^i[m>>>16&255]^n[d>>>8&255]^a[w&255]^t[g++],x=s[m>>>24]^i[d>>>16&255]^n[w>>>8&255]^a[p&255]^t[g++],R=s[d>>>24]^i[w>>>16&255]^n[p>>>8&255]^a[m&255]^t[g++],$=s[w>>>24]^i[p>>>16&255]^n[m>>>8&255]^a[d&255]^t[g++];p=v,m=x,d=R,w=$}let y=(l[p>>>24]<<24|l[m>>>16&255]<<16|l[d>>>8&255]<<8|l[w&255])^t[g++],A=(l[m>>>24]<<24|l[d>>>16&255]<<16|l[w>>>8&255]<<8|l[p&255])^t[g++],B=(l[d>>>24]<<24|l[w>>>16&255]<<16|l[p>>>8&255]<<8|l[m&255])^t[g++],E=(l[w>>>24]<<24|l[p>>>16&255]<<16|l[m>>>8&255]<<8|l[d&255])^t[g];r[e]=y,r[e+1]=A,r[e+2]=B,r[e+3]=E}};Cr.keySize=256/32;var go=[1732584193,4023233417,2562383102,271733878,3285377520],H=new Array(80),K=class extends T{static{c(this,"SHA1")}get hash(){return this._hash}reset(){super.reset(),this._hash=new b(go.slice(0))}_doFinalize(){let r=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(e+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(r,e){let t=this._hash.words[0],s=this._hash.words[1],i=this._hash.words[2],n=this._hash.words[3],a=this._hash.words[4];for(let l=0;l<80;l++){if(l<16)H[l]=r[e+l]|0;else{let w=H[l-3]^H[l-8]^H[l-14]^H[l-16];H[l]=w<<1|w>>>31}let p,m;l<20?(p=s&i|~s&n,m=1518500249):l<40?(p=s^i^n,m=1859775393):l<60?(p=s&i|s&n|i&n,m=2400959708):(p=s^i^n,m=3395469782);let d=(t<<5|t>>>27)+p+a+m+H[l];a=n,n=i,i=s<<30|s>>>2,s=t,t=d|0}this._hash.words[0]=this._hash.words[0]+t|0,this._hash.words[1]=this._hash.words[1]+s|0,this._hash.words[2]=this._hash.words[2]+i|0,this._hash.words[3]=this._hash.words[3]+n|0,this._hash.words[4]=this._hash.words[4]+a|0}};var Fe=[],je=[];(function(){function o(s){let i=Math.sqrt(s);for(let n=2;n<=i;n++)if(!(s%n))return!1;return!0}c(o,"isPrime");function r(s){return(s-(s|0))*4294967296|0}c(r,"getFractionalBits");let e=2,t=0;for(;t<64;)o(e)&&(t<8&&(Fe[t]=r(Math.pow(e,1/2))),je[t]=r(Math.pow(e,1/3)),t++),e++})();var X=[],Z=class extends T{static{c(this,"SHA256")}constructor(){super()}reset(){super.reset(),this._hash=new b(Fe.slice(0))}_doFinalize(){let r=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(e+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(r,e){let t=this._hash.words[0],s=this._hash.words[1],i=this._hash.words[2],n=this._hash.words[3],a=this._hash.words[4],l=this._hash.words[5],p=this._hash.words[6],m=this._hash.words[7];for(let d=0;d<64;d++){if(d<16)X[d]=r[e+d]|0;else{let _=X[d-15],v=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,x=X[d-2],R=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;X[d]=v+X[d-7]+R+X[d-16]}let w=a&l^~a&p,g=t&s^t&i^s&i,y=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),A=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),B=m+A+w+je[d]+X[d],E=y+g;m=p,p=l,l=a,a=n+B|0,n=i,i=s,s=t,t=B+E|0}this._hash.words[0]=this._hash.words[0]+t|0,this._hash.words[1]=this._hash.words[1]+s|0,this._hash.words[2]=this._hash.words[2]+i|0,this._hash.words[3]=this._hash.words[3]+n|0,this._hash.words[4]=this._hash.words[4]+a|0,this._hash.words[5]=this._hash.words[5]+l|0,this._hash.words[6]=this._hash.words[6]+p|0,this._hash.words[7]=this._hash.words[7]+m|0}};var Xr=[new h(1116352408,3609767458),new h(1899447441,602891725),new h(3049323471,3964484399),new h(3921009573,2173295548),new h(961987163,4081628472),new h(1508970993,3053834265),new h(2453635748,2937671579),new h(2870763221,3664609560),new h(3624381080,2734883394),new h(310598401,1164996542),new h(607225278,1323610764),new h(1426881987,3590304994),new h(1925078388,4068182383),new h(2162078206,991336113),new h(2614888103,633803317),new h(3248222580,3479774868),new h(3835390401,2666613458),new h(4022224774,944711139),new h(264347078,2341262773),new h(604807628,2007800933),new h(770255983,1495990901),new h(1249150122,1856431235),new h(1555081692,3175218132),new h(1996064986,2198950837),new h(2554220882,3999719339),new h(2821834349,766784016),new h(2952996808,2566594879),new h(3210313671,3203337956),new h(3336571891,1034457026),new h(3584528711,2466948901),new h(113926993,3758326383),new h(338241895,168717936),new h(666307205,1188179964),new h(773529912,1546045734),new h(1294757372,1522805485),new h(1396182291,2643833823),new h(1695183700,2343527390),new h(1986661051,1014477480),new h(2177026350,1206759142),new h(2456956037,344077627),new h(2730485921,1290863460),new h(2820302411,3158454273),new h(3259730800,3505952657),new h(3345764771,106217008),new h(3516065817,3606008344),new h(3600352804,1432725776),new h(4094571909,1467031594),new h(275423344,851169720),new h(430227734,3100823752),new h(506948616,1363258195),new h(659060556,3750685593),new h(883997877,3785050280),new h(958139571,3318307427),new h(1322822218,3812723403),new h(1537002063,2003034995),new h(1747873779,3602036899),new h(1955562222,1575990012),new h(2024104815,1125592928),new h(2227730452,2716904306),new h(2361852424,442776044),new h(2428436474,593698344),new h(2756734187,3733110249),new h(3204031479,2999351573),new h(3329325298,3815920427),new h(3391569614,3928383900),new h(3515267271,566280711),new h(3940187606,3454069534),new h(4118630271,4000239992),new h(116418474,1914138554),new h(174292421,2731055270),new h(289380356,3203993006),new h(460393269,320620315),new h(685471733,587496836),new h(852142971,1086792851),new h(1017036298,365543100),new h(1126000580,2618297676),new h(1288033470,3409855158),new h(1501505948,4234509866),new h(1607167915,987167468),new h(1816402316,1246189591)],I=[];(function(){for(let o=0;o<80;o++)I[o]=new h(void 0,void 0)})();var Zr=class extends T{static{c(this,"SHA512")}constructor(){super({blockSize:1024/32})}reset(){super.reset(),this._hash=new Oe([new h(1779033703,4089235720),new h(3144134277,2227873595),new h(1013904242,4271175723),new h(2773480762,1595750129),new h(1359893119,2917565137),new h(2600822924,725511199),new h(528734635,4215389547),new h(1541459225,327033209)])}_doFinalize(){let r=this._data,e=r.words,t=this._nDataBytes*8,s=r.sigBytes*8;return e[s>>>5]|=128<<24-s%32,e[(s+128>>>10<<5)+30]=Math.floor(t/4294967296),e[(s+128>>>10<<5)+31]=t,r.sigBytes=e.length*4,this._process(),this._hash.toX32()}_doProcessBlock(r,e){let t=this._hash.words[0].high,s=this._hash.words[0].low,i=this._hash.words[1].high,n=this._hash.words[1].low,a=this._hash.words[2].high,l=this._hash.words[2].low,p=this._hash.words[3].high,m=this._hash.words[3].low,d=this._hash.words[4].high,w=this._hash.words[4].low,g=this._hash.words[5].high,y=this._hash.words[5].low,A=this._hash.words[6].high,B=this._hash.words[6].low,E=this._hash.words[7].high,_=this._hash.words[7].low;for(let v=0;v<80;v++){let x,R;if(v<16)R=I[v].high=r[e+v*2]|0,x=I[v].low=r[e+v*2+1]|0;else{let ue=I[v-15],Y=ue.high,pr=ue.low,oo=(Y>>>1|pr<<31)^(Y>>>8|pr<<24)^Y>>>7,fe=(pr>>>1|Y<<31)^(pr>>>8|Y<<24)^(pr>>>7|Y<<25),me=I[v-2],Q=me.high,ur=me.low,so=(Q>>>19|ur<<13)^(Q<<3|ur>>>29)^Q>>>6,de=(ur>>>19|Q<<13)^(ur<<3|Q>>>29)^(ur>>>6|Q<<26);x=fe+I[v-7].low,R=oo+I[v-7].high+(x>>>0<fe>>>0?1:0),x=x+de,R=R+so+(x>>>0<de>>>0?1:0),x=x+I[v-16].low,R=R+I[v-16].high+(x>>>0<I[v-16].low>>>0?1:0),I[v].high=R,I[v].low=x}let $=d&g^~d&A,xr=w&y^~w&B,D=t&i^t&a^i&a,Yt=s&n^s&l^n&l,Qt=(t>>>28|s<<4)^(t<<30|s>>>2)^(t<<25|s>>>7),he=(s>>>28|t<<4)^(s<<30|t>>>2)^(s<<25|t>>>7),ro=(d>>>14|w<<18)^(d>>>18|w<<14)^(d<<23|w>>>9),eo=(w>>>14|d<<18)^(w>>>18|d<<14)^(w<<23|d>>>9),N=_+eo,M=E+ro+(N>>>0<_>>>0?1:0);N=N+xr,M=M+$+(N>>>0<xr>>>0?1:0),N=N+Xr[v].low,M=M+Xr[v].high+(N>>>0<Xr[v].low>>>0?1:0),N=N+x,M=M+R+(N>>>0<x>>>0?1:0);let pe=he+Yt,to=Qt+D+(pe>>>0<he>>>0?1:0);E=A,_=B,A=g,B=y,g=d,y=w,w=m+N|0,d=p+M+(w>>>0<m>>>0?1:0)|0,p=a,m=l,a=i,l=n,i=t,n=s,s=N+pe|0,t=M+to+(s>>>0<N>>>0?1:0)|0}this._hash.words[0].low=this._hash.words[0].low=this._hash.words[0].low+s,this._hash.words[0].high=this._hash.words[0].high+t+(this._hash.words[0].low>>>0<s>>>0?1:0),this._hash.words[1].low=this._hash.words[1].low=this._hash.words[1].low+n,this._hash.words[1].high=this._hash.words[1].high+i+(this._hash.words[1].low>>>0<n>>>0?1:0),this._hash.words[2].low=this._hash.words[2].low=this._hash.words[2].low+l,this._hash.words[2].high=this._hash.words[2].high+a+(this._hash.words[2].low>>>0<l>>>0?1:0),this._hash.words[3].low=this._hash.words[3].low=this._hash.words[3].low+m,this._hash.words[3].high=this._hash.words[3].high+p+(this._hash.words[3].low>>>0<m>>>0?1:0),this._hash.words[4].low=this._hash.words[4].low=this._hash.words[4].low+w,this._hash.words[4].high=this._hash.words[4].high+d+(this._hash.words[4].low>>>0<w>>>0?1:0),this._hash.words[5].low=this._hash.words[5].low=this._hash.words[5].low+y,this._hash.words[5].high=this._hash.words[5].high+g+(this._hash.words[5].low>>>0<y>>>0?1:0),this._hash.words[6].low=this._hash.words[6].low=this._hash.words[6].low+B,this._hash.words[6].high=this._hash.words[6].high+A+(this._hash.words[6].low>>>0<B>>>0?1:0),this._hash.words[7].low=this._hash.words[7].low=this._hash.words[7].low+_,this._hash.words[7].high=this._hash.words[7].high+E+(this._hash.words[7].low>>>0<_>>>0?1:0)}};var Ue=class{static{c(this,"HMAC")}constructor(r,e){this._hasher=new r;let t=typeof e=="string"?q.parse(e):e,s=this._hasher.cfg.blockSize,i=s*4;t.sigBytes>i&&(t=this._hasher.finalize(t)),t.clamp();let n=this._oKey=t.clone(),a=this._iKey=t.clone(),l=n.words,p=a.words;for(let m=0;m<s;m++)l[m]^=1549556828,p[m]^=909522486;n.sigBytes=a.sigBytes=i,this.reset()}finalize(r){let e=this._hasher.finalize(r);return this._hasher.reset(),this._hasher.finalize(this._oKey.clone().concat(e))}reset(){this._hasher.reset(),this._hasher.update(this._iKey)}update(r){return this._hasher.update(r),this}};var mr=class Pe{static{c(this,"PBKDF2")}constructor(r){this.cfg=Object.assign({keySize:128/32,hasher:Z,iterations:25e4},r)}static execute(r,e,t){return new Pe(t).compute(r,e)}compute(r,e){let t=this.cfg,s=new Ue(t.hasher,r),i=new b,n=new b([1]),a=i.words,l=n.words,p=t.keySize,m=t.iterations;for(;a.length<p;){let d=s.update(e).finalize(n);s.reset();let w=d.words,g=w.length,y=d;for(let A=1;A<m;A++){y=s.finalize(y),s.reset();let B=y.words;for(let E=0;E<g;E++)w[E]^=B[E]}i.concat(d),l[0]++}return i.sigBytes=p*4,i}};var V=Nr._createHelper(Cr);var dr=null,gr=0;function wo(o){(!dr||gr+8>dr.length)&&(dr=new Uint8Array(new ArrayBuffer(4096)),o.getRandomValues(dr),gr=0);let r=dr.subarray(gr,gr+8);return gr+=8,r}c(wo,"nextRandomBytes");var Lr=c(function(){let o=Date.now().toString(36),r=globalThis.crypto;if(r?.getRandomValues){let e=wo(r),t="";for(let s=0;s<e.length;s++){let i=e[s].toString(16);t+=i.length===1?"0"+i:i}return o+"-"+t}return o+"-"+Math.random().toString(36).slice(2,10)},"correlationIdHelper");var sr=T._createHelper(z);var ir=T._createHelper(K);var Ir=T._createHelper(Z);var Fr=T._createHelper(Zr);var jr=c(function(){let o=new Uint8Array(16);crypto.getRandomValues(o),o[6]=o[6]&15|64,o[8]=o[8]&63|128;let r=Array.from(o,e=>e.toString(16).padStart(2,"0"));return[r.slice(0,4).join(""),r.slice(4,6).join(""),r.slice(6,8).join(""),r.slice(8,10).join(""),r.slice(10,16).join("")].join("-")},"uuidV4Helper");var nr=class{static{c(this,"SmpCrypto")}static base64Decode(r){return q.stringify(P.parse(r))}static base64Encode(r){return P.stringify(q.parse(r))}static generateCorrelationId(){return Lr()}static generateUuidV4(){return jr()}static md5(r){return sr(r).toString()}static sha1(r){return ir(r).toString()}static sha256(r){return Ir(r).toString()}static sha512(r){return Fr(r).toString()}};var Ur=class extends er{static{c(this,"SmpInMemoryCache")}static _storage=new Map;get _staticSelf(){return this.constructor}_flushRaw(){this._staticSelf._storage.clear()}_readRaw(r){return this._staticSelf._storage.get(r)}_removeRaw(r){this._staticSelf._storage.delete(r)}_writeRaw(r,e){this._staticSelf._storage.set(r,e)}};var ze=class{static{c(this,"SmpHttpTwoService")}static _cacheStrategy=typeof sessionStorage<"u"?new Er:new Ur;static _errorClass=L;static _mergeParamsFallbackBaseUrl="https://uc-api-nest-common-fe";static _running=new Map;static $http(r){return this._generateAjax(r)}static async _generateAjax(r){let e=this._generateCacheKey(r),t=+(r.ttl||0)>0;if(t){let n=this._cacheStrategy.read(e);if(n)return Promise.resolve(n)}let s=this._running.get(e);if(s)return s;let i=this._generateAjaxBase(r).then(n=>(t&&this._cacheStrategy.write(e,n,r.ttl),n)).finally(()=>{this._running.delete(e)});return this._running.set(e,i),i}static async _generateAjaxBase(r){let e=await this._preprocessRequest(r),t={method:e.method,headers:new Headers({"content-type":"application/json",...e.headers}),body:e.body?JSON.stringify(e.body):null};e.useCredentials&&(t.credentials="include"),e.url=this.mergeQueryParams(e.url,e.queryParams);let s=new AbortController,i;return typeof e.timeout=="number"&&e.timeout>0&&(i=setTimeout(()=>s.abort(),e.timeout)),t.signal=s.signal,fetch(e.url,t).then(n=>this._preprocessResponse(r,n)).then(n=>{if(n.ok){if(n.status===204||n.headers.get("content-length")==="0")return null;switch(e.responseType){case"blob":return n.blob();case"arraybuffer":return n.arrayBuffer();case"text":return n.text();case"json":default:return n.json()}}return n.json().then(a=>{let l=a;try{l=this._errorClass.fromPlain(a)}catch(p){console.debug("http: failed to parse error response into ErrorResponse",p)}return Promise.reject({status:n.status,message:n.statusText,body:l})})}).catch(n=>n&&(n.name==="AbortError"||n.type==="aborted")?Promise.reject({status:Ar.RequestTimeout,message:"Request Timeout",body:null}):Promise.reject(n)).finally(()=>{typeof i<"u"&&clearTimeout(i)})}static cacheFlush(){this._cacheStrategy.flush()}static mergeQueryParams(r,e){if(!e||Object.keys(e).length===0)return r;let t=r.startsWith("http"),s=new URL(r,globalThis?.location?.origin||this._mergeParamsFallbackBaseUrl),n={...Object.fromEntries(new URLSearchParams(s.search).entries()),...e},a=[];for(let[d,w]of Object.entries(n))if(w!=null)if(Array.isArray(w))for(let g of w)a.push(`${encodeURIComponent(d)}=${encodeURIComponent(String(g))}`);else a.push(`${encodeURIComponent(d)}=${encodeURIComponent(String(w))}`);let l=a.length?`?${a.join("&")}`:"",m=s.origin+s.pathname+l;return t?m:m.replace(s.origin,"")}static _generateCacheKey(r){let e=`${r.method}:${r.url}`;return r.queryParams&&Object.keys(r.queryParams).length>0&&(e+=`:${nr.md5(JSON.stringify(r.queryParams))}`),r.body&&Object.keys(r.body).length>0?`${e}:${nr.md5(JSON.stringify(r.body))}`:e}static async _preprocessRequest(r){return r}static async _preprocessResponse(r,e){return e}};import{SmpLoggerMethods as yo}from"@tonysamperi/logger";var Me=class{static{c(this,"SmpApiCommonUtils")}static _javascriptVariablePattern="[a-zA-Z_$][a-zA-Z_$0-9]*";static _logger=new yo;static _pathParamRegex=new RegExp(`\\{(${this._javascriptVariablePattern})\\}`,"g");static credentialsToBasicAuth(r,e){return`Basic ${Buffer.from(`${r}:${e}`).toString("base64")}`}static fromBearer(r=""){return r.split(" ")[1]}static getCountryFromReferer(r){return this.getLocaleFromReferer(r)?.split("-")[0]?.toUpperCase()}static getLanguageFromReferer(r){return this.getLocaleFromReferer(r)?.split("-")[1]}static getLocaleFromReferer(r){return r?.match(/\/([A-Z]{2}-[A-Z]{2})\//i)?.[1]}static interpolateParams(r,e){try{return r.replace(this._pathParamRegex,(t,s)=>{let i=e[s];return i!==void 0?encodeURIComponent(i):t})}catch(t){this._logger.warn(`${this.constructor.name}: couldn't interpolate params`,t)}return r}};var Se=class o extends L{static{c(this,"SmpErrorResponseWithStackTrace")}stackTrace;static create({messages:r=L.DEFAULT_MESSAGES,stackTrace:e,...t}={}){let s=new o(O.sanitizeMessages(r),t.errorCode,t.status,t.data);return s.stackTrace=e,s}};var vc={status:"OK"};var Ve=(function(o){return o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o.HEAD="HEAD",o.OPTIONS="OPTIONS",o.PATCH="PATCH",o})({});var $e=class{static{c(this,"SmpBaseJwtToken")}_access_token;_exp;_iss;get access_token(){return this._access_token}get exp(){return this._exp}get iss(){return this._iss}constructor(r,e,t){this._access_token=r,this._exp=e,this._iss=t}serialize(){return{access_token:this._access_token,exp:this._exp,iss:this._iss}}};var Ge=class{static{c(this,"SmpBaseJwtTokenPlain")}access_token;exp;iss};var wr=class{static{c(this,"SmpAesCrypt")}_password;_salt;_initVector;_iv;_key;_mode=j;_padding=S;constructor(r,e,t){this._password=r,this._salt=e,this._initVector=t,this._iv=this._initVector?F.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(r){return V.decrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(q)}encryptAES(r){return V.encrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return mr.execute(this._password,F.parse(this._salt),{keySize:256/32,iterations:1e3,hasher:K})}};var Jr=class o{static{c(this,"SmpAesCryptV2")}_password;_salt;_initVector;static _KEY_SIZE=256/32;static _PBKDF2_ITERATIONS=1e5;_iv;_key;_mode=j;_padding=S;constructor(r,e,t){this._password=r,this._salt=e,this._initVector=t,this._iv=this._initVector?F.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(r){return V.decrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(q)}encryptAES(r){return V.encrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return mr.execute(this._password,F.parse(this._salt),{keySize:o._KEY_SIZE,iterations:o._PBKDF2_ITERATIONS,hasher:Z})}};var Yr=class{static{c(this,"SmpSecureCode")}_baseCode;get baseCode(){return this._baseCode}get secureCode(){return this._encode()}_crcLength=5;_seed="changeme";constructor(r){this._baseCode=r}static check(r,e){if(new this(r).secureCode!==e)throw L.create({messages:"WRONG_SECURE_CODE",errorCode:"WRONG_SECURE_CODE",status:Ar.BadRequest})}_encode(){let r=new z;return r.update(q.parse(this._seed+this._baseCode)),r.finalize().toString(F).substring(0,this._crcLength).toUpperCase()}};import{Expose as _o,instanceToPlain as xo,plainToInstance as vo}from"class-transformer";import{DateTime as Qr}from"ts-luxon";var C=(function(o){return o.ACTIVATE="ACTIVATE",o.BLOCK="BLOCK",o.CHECK="CHECK",o.DIGITAL_ACTIVATE="DIGITAL_ACTIVATE",o.FREEZE="FREEZE",o.PURCHASE="PURCHASE",o.RECHARGE="RECHARGE",o.ROLLBACK="ROLLBACK",o.TRANSACTION="TRANSACTION",o.TRANSACTION_DETAIL="TRANSACTION_DETAIL",o.UNFREEZE="UNFREEZE",o.XREFUND="XREFUND",o})({});var ar=(function(o){return o.MD5="MD5",o.MD5_HMAC="MD5_HMAC",o.SHA1="SHA1",o.SHA1_HMAC="SHA1_HMAC",o})({});function bo(o,r,e,t){var s=arguments.length,i=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,e,t);else for(var a=o.length-1;a>=0;a--)(n=o[a])&&(i=(s<3?n(i):s>3?n(r,e,i):n(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i}c(bo,"_ts_decorate");function We(o,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,r)}c(We,"_ts_metadata");var re=class o{static{c(this,"SmpGiftcardTransaction")}gc;op;ot;static _AES_ENCODER=new wr("changeme","5f6eae61d2428b99","d92fbf214e16a79fd36f9a5185ae733f");static _OP_CODES={[C.CHECK]:"",[C.TRANSACTION]:"",[C.TRANSACTION_DETAIL]:"",[C.ACTIVATE]:"A",[C.BLOCK]:"B",[C.DIGITAL_ACTIVATE]:"D",[C.FREEZE]:"F",[C.PURCHASE]:"P",[C.RECHARGE]:"G",[C.ROLLBACK]:"R",[C.UNFREEZE]:"U",[C.XREFUND]:"X"};static _SEP="_";get dto(){return this._dto}get hash(){return this._hashStrategy(this.toString()).toString()}get iso(){return this.dto.toUTC().toISO()}get ts(){return this._dto.ts}_dto;_hashStrategies={[ar.MD5]:r=>sr(r),[ar.MD5_HMAC]:r=>{let e=new z;return e.update(q.parse(r)),e.finalize()},[ar.SHA1]:r=>ir(r),[ar.SHA1_HMAC]:r=>{let e=new K;return e.update(q.parse(r)),e.finalize()}};_hashStrategy=this._hashStrategies[ar.MD5];constructor(r="ACTIVATION",e,t,s){this.gc=r,this.op=e,this.ot=t,this._dto=typeof s=="number"&&s>=0?Qr.fromMillis(+`${s}000`.slice(0,13)):Qr.local()}static build({gc:r,op:e,ot:t,dto:s}){return new this(r,e,t,s?.ts)}static explode(r){let e=this.constructor,t=(r||"").split(e._SEP);if(t.length<4)throw new Error(`${this.constructor.name}::explode: invalid transactionId provided => "${r}"`);return this.build({gc:t[1],op:e.prefixToOperation(t[2]),dto:Qr.fromSeconds(+t[3])})}static isBase64(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)&&r.length%4===0}static parse(r){console.info(`${this.constructor.name}::parse: trying to parse ${r}`);try{if(this.isBase64(r)){let e=this._AES_ENCODER.decryptAES(r),t=JSON.parse(e);return vo(o,t)}else return this.explode(r)}catch(e){throw console.error(`${this.constructor.name}::parse: failed to parse ${r}`,e),new Error(`${this.constructor.name}::parse: could not parse transactionId ${r}`)}}static prefixToOperation(r){return Object.entries(this._OP_CODES).find(([,t])=>t===r)[0]}serialize(){return xo(this,{excludePrefixes:["_"]})}toString(){let r=JSON.stringify(this.serialize());return this.constructor._AES_ENCODER.encryptAES(r)}};bo([_o(),We("design:type",Number),We("design:paramtypes",[])],re.prototype,"ts",null);var el=(function(o){return o.ListDetectiveValidator="ListDetectiveValidator",o.MXValidator="MXValidator",o.SyntaxValidator="SyntaxValidator",o})({});function ol(o,r){r.forEach(e=>{Object.getOwnPropertyNames(e.prototype).forEach(t=>{t!=="constructor"&&(t in o.prototype||Object.defineProperty(o.prototype,t,Object.getOwnPropertyDescriptor(e.prototype,t)))});try{let t=new e;Object.getOwnPropertyNames(t).forEach(s=>{s in o.prototype||Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(t,s))})}catch{}Object.getOwnPropertyNames(e).forEach(t=>{t!=="prototype"&&t!=="name"&&t!=="length"&&(t in o||Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(e,t)))})})}c(ol,"smpApplyMixin");var ee=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function He(){}c(He,"noop");function te(o){return typeof ee.Buffer<"u"&&ee.Buffer.isBuffer(o)}c(te,"isBuffer");function oe(o){return Object.getOwnPropertySymbols(o).filter(r=>Object.prototype.propertyIsEnumerable.call(o,r))}c(oe,"getSymbols");function se(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(o)}c(se,"getTag");var Ke="[object RegExp]",Xe="[object String]",Ze="[object Number]",Je="[object Boolean]";var Ye="[object Symbol]",Qe="[object Date]",rt="[object Map]",et="[object Set]",tt="[object Array]",ot="[object Function]",st="[object ArrayBuffer]",Pr="[object Object]",it="[object Error]",nt="[object DataView]",at="[object Uint8Array]",ct="[object Uint8ClampedArray]",lt="[object Uint16Array]",ht="[object Uint32Array]",pt="[object BigUint64Array]",ut="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",dt="[object BigInt64Array]",gt="[object Float32Array]",wt="[object Float64Array]";function ie(o){if(!o||typeof o!="object")return!1;let r=Object.getPrototypeOf(o);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(o)==="[object Object]":!1}c(ie,"isPlainObject");function yt(o,r){return o===r||Number.isNaN(o)&&Number.isNaN(r)}c(yt,"eq");function bt(o,r,e){return yr(o,r,void 0,void 0,void 0,void 0,e)}c(bt,"isEqualWith");function yr(o,r,e,t,s,i,n){let a=n(o,r,e,t,s,i);if(a!==void 0)return a;if(typeof o==typeof r)switch(typeof o){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return o===r;case"number":return o===r||Object.is(o,r);case"function":return o===r;case"object":return br(o,r,i,n)}return br(o,r,i,n)}c(yr,"isEqualWithImpl");function br(o,r,e,t){if(Object.is(o,r))return!0;let s=se(o),i=se(r);if(s==="[object Arguments]"&&(s=Pr),i==="[object Arguments]"&&(i=Pr),s!==i)return!1;switch(s){case Xe:return o.toString()===r.toString();case Ze:{let l=o.valueOf(),p=r.valueOf();return yt(l,p)}case Je:case Qe:case Ye:return Object.is(o.valueOf(),r.valueOf());case Ke:return o.source===r.source&&o.flags===r.flags;case ot:return o===r}e=e??new Map;let n=e.get(o),a=e.get(r);if(n!=null&&a!=null)return n===r;e.set(o,r),e.set(r,o);try{switch(s){case rt:if(o.size!==r.size)return!1;for(let[l,p]of o.entries())if(!r.has(l)||!yr(p,r.get(l),l,o,r,e,t))return!1;return!0;case et:{if(o.size!==r.size)return!1;let l=Array.from(o.values()),p=Array.from(r.values());for(let m=0;m<l.length;m++){let d=l[m],w=p.findIndex(g=>yr(d,g,void 0,o,r,e,t));if(w===-1)return!1;p.splice(w,1)}return!0}case tt:case at:case ct:case lt:case ht:case pt:case ut:case ft:case mt:case dt:case gt:case wt:if(te(o)!==te(r)||o.length!==r.length)return!1;for(let l=0;l<o.length;l++)if(!yr(o[l],r[l],l,o,r,e,t))return!1;return!0;case st:return o.byteLength!==r.byteLength?!1:br(new Uint8Array(o),new Uint8Array(r),e,t);case nt:return o.byteLength!==r.byteLength||o.byteOffset!==r.byteOffset?!1:br(new Uint8Array(o),new Uint8Array(r),e,t);case it:return o.name===r.name&&o.message===r.message;case Pr:{if(!(br(o.constructor,r.constructor,e,t)||ie(o)&&ie(r)))return!1;let l=[...Object.keys(o),...oe(o)],p=[...Object.keys(r),...oe(r)];if(l.length!==p.length)return!1;for(let m=0;m<l.length;m++){let d=l[m],w=o[d];if(!Object.hasOwn(r,d))return!1;let g=r[d];if(!yr(w,g,d,o,r,e,t))return!1}return!0}default:return!1}}finally{e.delete(o),e.delete(r)}}c(br,"areObjectsEqual");function ne(o,r){return bt(o,r,He)}c(ne,"isEqual");var Ht=no(xt(),1);var cr=function(){return cr=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++){r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])}return o},cr.apply(this,arguments)},Eo="~",Ao="~~";function ae(o,r){for(var e={},t={},s=o.split(Ao),i=!1,n=0;s.length>n;n++){for(var a=s[n].split(Eo),l=0;l<a.length;l+=2){var p=a[l],m=a[l+1],d="&"+p+";";e[d]=m,i&&(e["&"+p]=m),t[m]=d}i=!0}return r?{entities:cr(cr({},e),r.entities),characters:cr(cr({},t),r.characters)}:{entities:e,characters:t}}c(ae,"generateNamedReferences");var Mr={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},J={};J.xml=ae(`lt~<~gt~>~quot~"~apos~'~amp~&`);J.html4=ae(`apos~'~OElig~\u0152~oelig~\u0153~Scaron~\u0160~scaron~\u0161~Yuml~\u0178~circ~\u02C6~tilde~\u02DC~ensp~\u2002~emsp~\u2003~thinsp~\u2009~zwnj~\u200C~zwj~\u200D~lrm~\u200E~rlm~\u200F~ndash~\u2013~mdash~\u2014~lsquo~\u2018~rsquo~\u2019~sbquo~\u201A~ldquo~\u201C~rdquo~\u201D~bdquo~\u201E~dagger~\u2020~Dagger~\u2021~permil~\u2030~lsaquo~\u2039~rsaquo~\u203A~euro~\u20AC~fnof~\u0192~Alpha~\u0391~Beta~\u0392~Gamma~\u0393~Delta~\u0394~Epsilon~\u0395~Zeta~\u0396~Eta~\u0397~Theta~\u0398~Iota~\u0399~Kappa~\u039A~Lambda~\u039B~Mu~\u039C~Nu~\u039D~Xi~\u039E~Omicron~\u039F~Pi~\u03A0~Rho~\u03A1~Sigma~\u03A3~Tau~\u03A4~Upsilon~\u03A5~Phi~\u03A6~Chi~\u03A7~Psi~\u03A8~Omega~\u03A9~alpha~\u03B1~beta~\u03B2~gamma~\u03B3~delta~\u03B4~epsilon~\u03B5~zeta~\u03B6~eta~\u03B7~theta~\u03B8~iota~\u03B9~kappa~\u03BA~lambda~\u03BB~mu~\u03BC~nu~\u03BD~xi~\u03BE~omicron~\u03BF~pi~\u03C0~rho~\u03C1~sigmaf~\u03C2~sigma~\u03C3~tau~\u03C4~upsilon~\u03C5~phi~\u03C6~chi~\u03C7~psi~\u03C8~omega~\u03C9~thetasym~\u03D1~upsih~\u03D2~piv~\u03D6~bull~\u2022~hellip~\u2026~prime~\u2032~Prime~\u2033~oline~\u203E~frasl~\u2044~weierp~\u2118~image~\u2111~real~\u211C~trade~\u2122~alefsym~\u2135~larr~\u2190~uarr~\u2191~rarr~\u2192~darr~\u2193~harr~\u2194~crarr~\u21B5~lArr~\u21D0~uArr~\u21D1~rArr~\u21D2~dArr~\u21D3~hArr~\u21D4~forall~\u2200~part~\u2202~exist~\u2203~empty~\u2205~nabla~\u2207~isin~\u2208~notin~\u2209~ni~\u220B~prod~\u220F~sum~\u2211~minus~\u2212~lowast~\u2217~radic~\u221A~prop~\u221D~infin~\u221E~ang~\u2220~and~\u2227~or~\u2228~cap~\u2229~cup~\u222A~int~\u222B~there4~\u2234~sim~\u223C~cong~\u2245~asymp~\u2248~ne~\u2260~equiv~\u2261~le~\u2264~ge~\u2265~sub~\u2282~sup~\u2283~nsub~\u2284~sube~\u2286~supe~\u2287~oplus~\u2295~otimes~\u2297~perp~\u22A5~sdot~\u22C5~lceil~\u2308~rceil~\u2309~lfloor~\u230A~rfloor~\u230B~lang~\u2329~rang~\u232A~loz~\u25CA~spades~\u2660~clubs~\u2663~hearts~\u2665~diams~\u2666~~nbsp~\xA0~iexcl~\xA1~cent~\xA2~pound~\xA3~curren~\xA4~yen~\xA5~brvbar~\xA6~sect~\xA7~uml~\xA8~copy~\xA9~ordf~\xAA~laquo~\xAB~not~\xAC~shy~\xAD~reg~\xAE~macr~\xAF~deg~\xB0~plusmn~\xB1~sup2~\xB2~sup3~\xB3~acute~\xB4~micro~\xB5~para~\xB6~middot~\xB7~cedil~\xB8~sup1~\xB9~ordm~\xBA~raquo~\xBB~frac14~\xBC~frac12~\xBD~frac34~\xBE~iquest~\xBF~Agrave~\xC0~Aacute~\xC1~Acirc~\xC2~Atilde~\xC3~Auml~\xC4~Aring~\xC5~AElig~\xC6~Ccedil~\xC7~Egrave~\xC8~Eacute~\xC9~Ecirc~\xCA~Euml~\xCB~Igrave~\xCC~Iacute~\xCD~Icirc~\xCE~Iuml~\xCF~ETH~\xD0~Ntilde~\xD1~Ograve~\xD2~Oacute~\xD3~Ocirc~\xD4~Otilde~\xD5~Ouml~\xD6~times~\xD7~Oslash~\xD8~Ugrave~\xD9~Uacute~\xDA~Ucirc~\xDB~Uuml~\xDC~Yacute~\xDD~THORN~\xDE~szlig~\xDF~agrave~\xE0~aacute~\xE1~acirc~\xE2~atilde~\xE3~auml~\xE4~aring~\xE5~aelig~\xE6~ccedil~\xE7~egrave~\xE8~eacute~\xE9~ecirc~\xEA~euml~\xEB~igrave~\xEC~iacute~\xED~icirc~\xEE~iuml~\xEF~eth~\xF0~ntilde~\xF1~ograve~\xF2~oacute~\xF3~ocirc~\xF4~otilde~\xF5~ouml~\xF6~divide~\xF7~oslash~\xF8~ugrave~\xF9~uacute~\xFA~ucirc~\xFB~uuml~\xFC~yacute~\xFD~thorn~\xFE~yuml~\xFF~quot~"~amp~&~lt~<~gt~>`);J.html5=ae('Abreve~\u0102~Acy~\u0410~Afr~\u{1D504}~Amacr~\u0100~And~\u2A53~Aogon~\u0104~Aopf~\u{1D538}~ApplyFunction~\u2061~Ascr~\u{1D49C}~Assign~\u2254~Backslash~\u2216~Barv~\u2AE7~Barwed~\u2306~Bcy~\u0411~Because~\u2235~Bernoullis~\u212C~Bfr~\u{1D505}~Bopf~\u{1D539}~Breve~\u02D8~Bscr~\u212C~Bumpeq~\u224E~CHcy~\u0427~Cacute~\u0106~Cap~\u22D2~CapitalDifferentialD~\u2145~Cayleys~\u212D~Ccaron~\u010C~Ccirc~\u0108~Cconint~\u2230~Cdot~\u010A~Cedilla~\xB8~CenterDot~\xB7~Cfr~\u212D~CircleDot~\u2299~CircleMinus~\u2296~CirclePlus~\u2295~CircleTimes~\u2297~ClockwiseContourIntegral~\u2232~CloseCurlyDoubleQuote~\u201D~CloseCurlyQuote~\u2019~Colon~\u2237~Colone~\u2A74~Congruent~\u2261~Conint~\u222F~ContourIntegral~\u222E~Copf~\u2102~Coproduct~\u2210~CounterClockwiseContourIntegral~\u2233~Cross~\u2A2F~Cscr~\u{1D49E}~Cup~\u22D3~CupCap~\u224D~DD~\u2145~DDotrahd~\u2911~DJcy~\u0402~DScy~\u0405~DZcy~\u040F~Darr~\u21A1~Dashv~\u2AE4~Dcaron~\u010E~Dcy~\u0414~Del~\u2207~Dfr~\u{1D507}~DiacriticalAcute~\xB4~DiacriticalDot~\u02D9~DiacriticalDoubleAcute~\u02DD~DiacriticalGrave~`~DiacriticalTilde~\u02DC~Diamond~\u22C4~DifferentialD~\u2146~Dopf~\u{1D53B}~Dot~\xA8~DotDot~\u20DC~DotEqual~\u2250~DoubleContourIntegral~\u222F~DoubleDot~\xA8~DoubleDownArrow~\u21D3~DoubleLeftArrow~\u21D0~DoubleLeftRightArrow~\u21D4~DoubleLeftTee~\u2AE4~DoubleLongLeftArrow~\u27F8~DoubleLongLeftRightArrow~\u27FA~DoubleLongRightArrow~\u27F9~DoubleRightArrow~\u21D2~DoubleRightTee~\u22A8~DoubleUpArrow~\u21D1~DoubleUpDownArrow~\u21D5~DoubleVerticalBar~\u2225~DownArrow~\u2193~DownArrowBar~\u2913~DownArrowUpArrow~\u21F5~DownBreve~\u0311~DownLeftRightVector~\u2950~DownLeftTeeVector~\u295E~DownLeftVector~\u21BD~DownLeftVectorBar~\u2956~DownRightTeeVector~\u295F~DownRightVector~\u21C1~DownRightVectorBar~\u2957~DownTee~\u22A4~DownTeeArrow~\u21A7~Downarrow~\u21D3~Dscr~\u{1D49F}~Dstrok~\u0110~ENG~\u014A~Ecaron~\u011A~Ecy~\u042D~Edot~\u0116~Efr~\u{1D508}~Element~\u2208~Emacr~\u0112~EmptySmallSquare~\u25FB~EmptyVerySmallSquare~\u25AB~Eogon~\u0118~Eopf~\u{1D53C}~Equal~\u2A75~EqualTilde~\u2242~Equilibrium~\u21CC~Escr~\u2130~Esim~\u2A73~Exists~\u2203~ExponentialE~\u2147~Fcy~\u0424~Ffr~\u{1D509}~FilledSmallSquare~\u25FC~FilledVerySmallSquare~\u25AA~Fopf~\u{1D53D}~ForAll~\u2200~Fouriertrf~\u2131~Fscr~\u2131~GJcy~\u0403~Gammad~\u03DC~Gbreve~\u011E~Gcedil~\u0122~Gcirc~\u011C~Gcy~\u0413~Gdot~\u0120~Gfr~\u{1D50A}~Gg~\u22D9~Gopf~\u{1D53E}~GreaterEqual~\u2265~GreaterEqualLess~\u22DB~GreaterFullEqual~\u2267~GreaterGreater~\u2AA2~GreaterLess~\u2277~GreaterSlantEqual~\u2A7E~GreaterTilde~\u2273~Gscr~\u{1D4A2}~Gt~\u226B~HARDcy~\u042A~Hacek~\u02C7~Hat~^~Hcirc~\u0124~Hfr~\u210C~HilbertSpace~\u210B~Hopf~\u210D~HorizontalLine~\u2500~Hscr~\u210B~Hstrok~\u0126~HumpDownHump~\u224E~HumpEqual~\u224F~IEcy~\u0415~IJlig~\u0132~IOcy~\u0401~Icy~\u0418~Idot~\u0130~Ifr~\u2111~Im~\u2111~Imacr~\u012A~ImaginaryI~\u2148~Implies~\u21D2~Int~\u222C~Integral~\u222B~Intersection~\u22C2~InvisibleComma~\u2063~InvisibleTimes~\u2062~Iogon~\u012E~Iopf~\u{1D540}~Iscr~\u2110~Itilde~\u0128~Iukcy~\u0406~Jcirc~\u0134~Jcy~\u0419~Jfr~\u{1D50D}~Jopf~\u{1D541}~Jscr~\u{1D4A5}~Jsercy~\u0408~Jukcy~\u0404~KHcy~\u0425~KJcy~\u040C~Kcedil~\u0136~Kcy~\u041A~Kfr~\u{1D50E}~Kopf~\u{1D542}~Kscr~\u{1D4A6}~LJcy~\u0409~Lacute~\u0139~Lang~\u27EA~Laplacetrf~\u2112~Larr~\u219E~Lcaron~\u013D~Lcedil~\u013B~Lcy~\u041B~LeftAngleBracket~\u27E8~LeftArrow~\u2190~LeftArrowBar~\u21E4~LeftArrowRightArrow~\u21C6~LeftCeiling~\u2308~LeftDoubleBracket~\u27E6~LeftDownTeeVector~\u2961~LeftDownVector~\u21C3~LeftDownVectorBar~\u2959~LeftFloor~\u230A~LeftRightArrow~\u2194~LeftRightVector~\u294E~LeftTee~\u22A3~LeftTeeArrow~\u21A4~LeftTeeVector~\u295A~LeftTriangle~\u22B2~LeftTriangleBar~\u29CF~LeftTriangleEqual~\u22B4~LeftUpDownVector~\u2951~LeftUpTeeVector~\u2960~LeftUpVector~\u21BF~LeftUpVectorBar~\u2958~LeftVector~\u21BC~LeftVectorBar~\u2952~Leftarrow~\u21D0~Leftrightarrow~\u21D4~LessEqualGreater~\u22DA~LessFullEqual~\u2266~LessGreater~\u2276~LessLess~\u2AA1~LessSlantEqual~\u2A7D~LessTilde~\u2272~Lfr~\u{1D50F}~Ll~\u22D8~Lleftarrow~\u21DA~Lmidot~\u013F~LongLeftArrow~\u27F5~LongLeftRightArrow~\u27F7~LongRightArrow~\u27F6~Longleftarrow~\u27F8~Longleftrightarrow~\u27FA~Longrightarrow~\u27F9~Lopf~\u{1D543}~LowerLeftArrow~\u2199~LowerRightArrow~\u2198~Lscr~\u2112~Lsh~\u21B0~Lstrok~\u0141~Lt~\u226A~Map~\u2905~Mcy~\u041C~MediumSpace~\u205F~Mellintrf~\u2133~Mfr~\u{1D510}~MinusPlus~\u2213~Mopf~\u{1D544}~Mscr~\u2133~NJcy~\u040A~Nacute~\u0143~Ncaron~\u0147~Ncedil~\u0145~Ncy~\u041D~NegativeMediumSpace~\u200B~NegativeThickSpace~\u200B~NegativeThinSpace~\u200B~NegativeVeryThinSpace~\u200B~NestedGreaterGreater~\u226B~NestedLessLess~\u226A~NewLine~\n~Nfr~\u{1D511}~NoBreak~\u2060~NonBreakingSpace~\xA0~Nopf~\u2115~Not~\u2AEC~NotCongruent~\u2262~NotCupCap~\u226D~NotDoubleVerticalBar~\u2226~NotElement~\u2209~NotEqual~\u2260~NotEqualTilde~\u2242\u0338~NotExists~\u2204~NotGreater~\u226F~NotGreaterEqual~\u2271~NotGreaterFullEqual~\u2267\u0338~NotGreaterGreater~\u226B\u0338~NotGreaterLess~\u2279~NotGreaterSlantEqual~\u2A7E\u0338~NotGreaterTilde~\u2275~NotHumpDownHump~\u224E\u0338~NotHumpEqual~\u224F\u0338~NotLeftTriangle~\u22EA~NotLeftTriangleBar~\u29CF\u0338~NotLeftTriangleEqual~\u22EC~NotLess~\u226E~NotLessEqual~\u2270~NotLessGreater~\u2278~NotLessLess~\u226A\u0338~NotLessSlantEqual~\u2A7D\u0338~NotLessTilde~\u2274~NotNestedGreaterGreater~\u2AA2\u0338~NotNestedLessLess~\u2AA1\u0338~NotPrecedes~\u2280~NotPrecedesEqual~\u2AAF\u0338~NotPrecedesSlantEqual~\u22E0~NotReverseElement~\u220C~NotRightTriangle~\u22EB~NotRightTriangleBar~\u29D0\u0338~NotRightTriangleEqual~\u22ED~NotSquareSubset~\u228F\u0338~NotSquareSubsetEqual~\u22E2~NotSquareSuperset~\u2290\u0338~NotSquareSupersetEqual~\u22E3~NotSubset~\u2282\u20D2~NotSubsetEqual~\u2288~NotSucceeds~\u2281~NotSucceedsEqual~\u2AB0\u0338~NotSucceedsSlantEqual~\u22E1~NotSucceedsTilde~\u227F\u0338~NotSuperset~\u2283\u20D2~NotSupersetEqual~\u2289~NotTilde~\u2241~NotTildeEqual~\u2244~NotTildeFullEqual~\u2247~NotTildeTilde~\u2249~NotVerticalBar~\u2224~Nscr~\u{1D4A9}~Ocy~\u041E~Odblac~\u0150~Ofr~\u{1D512}~Omacr~\u014C~Oopf~\u{1D546}~OpenCurlyDoubleQuote~\u201C~OpenCurlyQuote~\u2018~Or~\u2A54~Oscr~\u{1D4AA}~Otimes~\u2A37~OverBar~\u203E~OverBrace~\u23DE~OverBracket~\u23B4~OverParenthesis~\u23DC~PartialD~\u2202~Pcy~\u041F~Pfr~\u{1D513}~PlusMinus~\xB1~Poincareplane~\u210C~Popf~\u2119~Pr~\u2ABB~Precedes~\u227A~PrecedesEqual~\u2AAF~PrecedesSlantEqual~\u227C~PrecedesTilde~\u227E~Product~\u220F~Proportion~\u2237~Proportional~\u221D~Pscr~\u{1D4AB}~Qfr~\u{1D514}~Qopf~\u211A~Qscr~\u{1D4AC}~RBarr~\u2910~Racute~\u0154~Rang~\u27EB~Rarr~\u21A0~Rarrtl~\u2916~Rcaron~\u0158~Rcedil~\u0156~Rcy~\u0420~Re~\u211C~ReverseElement~\u220B~ReverseEquilibrium~\u21CB~ReverseUpEquilibrium~\u296F~Rfr~\u211C~RightAngleBracket~\u27E9~RightArrow~\u2192~RightArrowBar~\u21E5~RightArrowLeftArrow~\u21C4~RightCeiling~\u2309~RightDoubleBracket~\u27E7~RightDownTeeVector~\u295D~RightDownVector~\u21C2~RightDownVectorBar~\u2955~RightFloor~\u230B~RightTee~\u22A2~RightTeeArrow~\u21A6~RightTeeVector~\u295B~RightTriangle~\u22B3~RightTriangleBar~\u29D0~RightTriangleEqual~\u22B5~RightUpDownVector~\u294F~RightUpTeeVector~\u295C~RightUpVector~\u21BE~RightUpVectorBar~\u2954~RightVector~\u21C0~RightVectorBar~\u2953~Rightarrow~\u21D2~Ropf~\u211D~RoundImplies~\u2970~Rrightarrow~\u21DB~Rscr~\u211B~Rsh~\u21B1~RuleDelayed~\u29F4~SHCHcy~\u0429~SHcy~\u0428~SOFTcy~\u042C~Sacute~\u015A~Sc~\u2ABC~Scedil~\u015E~Scirc~\u015C~Scy~\u0421~Sfr~\u{1D516}~ShortDownArrow~\u2193~ShortLeftArrow~\u2190~ShortRightArrow~\u2192~ShortUpArrow~\u2191~SmallCircle~\u2218~Sopf~\u{1D54A}~Sqrt~\u221A~Square~\u25A1~SquareIntersection~\u2293~SquareSubset~\u228F~SquareSubsetEqual~\u2291~SquareSuperset~\u2290~SquareSupersetEqual~\u2292~SquareUnion~\u2294~Sscr~\u{1D4AE}~Star~\u22C6~Sub~\u22D0~Subset~\u22D0~SubsetEqual~\u2286~Succeeds~\u227B~SucceedsEqual~\u2AB0~SucceedsSlantEqual~\u227D~SucceedsTilde~\u227F~SuchThat~\u220B~Sum~\u2211~Sup~\u22D1~Superset~\u2283~SupersetEqual~\u2287~Supset~\u22D1~TRADE~\u2122~TSHcy~\u040B~TScy~\u0426~Tab~ ~Tcaron~\u0164~Tcedil~\u0162~Tcy~\u0422~Tfr~\u{1D517}~Therefore~\u2234~ThickSpace~\u205F\u200A~ThinSpace~\u2009~Tilde~\u223C~TildeEqual~\u2243~TildeFullEqual~\u2245~TildeTilde~\u2248~Topf~\u{1D54B}~TripleDot~\u20DB~Tscr~\u{1D4AF}~Tstrok~\u0166~Uarr~\u219F~Uarrocir~\u2949~Ubrcy~\u040E~Ubreve~\u016C~Ucy~\u0423~Udblac~\u0170~Ufr~\u{1D518}~Umacr~\u016A~UnderBar~_~UnderBrace~\u23DF~UnderBracket~\u23B5~UnderParenthesis~\u23DD~Union~\u22C3~UnionPlus~\u228E~Uogon~\u0172~Uopf~\u{1D54C}~UpArrow~\u2191~UpArrowBar~\u2912~UpArrowDownArrow~\u21C5~UpDownArrow~\u2195~UpEquilibrium~\u296E~UpTee~\u22A5~UpTeeArrow~\u21A5~Uparrow~\u21D1~Updownarrow~\u21D5~UpperLeftArrow~\u2196~UpperRightArrow~\u2197~Upsi~\u03D2~Uring~\u016E~Uscr~\u{1D4B0}~Utilde~\u0168~VDash~\u22AB~Vbar~\u2AEB~Vcy~\u0412~Vdash~\u22A9~Vdashl~\u2AE6~Vee~\u22C1~Verbar~\u2016~Vert~\u2016~VerticalBar~\u2223~VerticalLine~|~VerticalSeparator~\u2758~VerticalTilde~\u2240~VeryThinSpace~\u200A~Vfr~\u{1D519}~Vopf~\u{1D54D}~Vscr~\u{1D4B1}~Vvdash~\u22AA~Wcirc~\u0174~Wedge~\u22C0~Wfr~\u{1D51A}~Wopf~\u{1D54E}~Wscr~\u{1D4B2}~Xfr~\u{1D51B}~Xopf~\u{1D54F}~Xscr~\u{1D4B3}~YAcy~\u042F~YIcy~\u0407~YUcy~\u042E~Ycirc~\u0176~Ycy~\u042B~Yfr~\u{1D51C}~Yopf~\u{1D550}~Yscr~\u{1D4B4}~ZHcy~\u0416~Zacute~\u0179~Zcaron~\u017D~Zcy~\u0417~Zdot~\u017B~ZeroWidthSpace~\u200B~Zfr~\u2128~Zopf~\u2124~Zscr~\u{1D4B5}~abreve~\u0103~ac~\u223E~acE~\u223E\u0333~acd~\u223F~acy~\u0430~af~\u2061~afr~\u{1D51E}~aleph~\u2135~amacr~\u0101~amalg~\u2A3F~andand~\u2A55~andd~\u2A5C~andslope~\u2A58~andv~\u2A5A~ange~\u29A4~angle~\u2220~angmsd~\u2221~angmsdaa~\u29A8~angmsdab~\u29A9~angmsdac~\u29AA~angmsdad~\u29AB~angmsdae~\u29AC~angmsdaf~\u29AD~angmsdag~\u29AE~angmsdah~\u29AF~angrt~\u221F~angrtvb~\u22BE~angrtvbd~\u299D~angsph~\u2222~angst~\xC5~angzarr~\u237C~aogon~\u0105~aopf~\u{1D552}~ap~\u2248~apE~\u2A70~apacir~\u2A6F~ape~\u224A~apid~\u224B~approx~\u2248~approxeq~\u224A~ascr~\u{1D4B6}~ast~*~asympeq~\u224D~awconint~\u2233~awint~\u2A11~bNot~\u2AED~backcong~\u224C~backepsilon~\u03F6~backprime~\u2035~backsim~\u223D~backsimeq~\u22CD~barvee~\u22BD~barwed~\u2305~barwedge~\u2305~bbrk~\u23B5~bbrktbrk~\u23B6~bcong~\u224C~bcy~\u0431~becaus~\u2235~because~\u2235~bemptyv~\u29B0~bepsi~\u03F6~bernou~\u212C~beth~\u2136~between~\u226C~bfr~\u{1D51F}~bigcap~\u22C2~bigcirc~\u25EF~bigcup~\u22C3~bigodot~\u2A00~bigoplus~\u2A01~bigotimes~\u2A02~bigsqcup~\u2A06~bigstar~\u2605~bigtriangledown~\u25BD~bigtriangleup~\u25B3~biguplus~\u2A04~bigvee~\u22C1~bigwedge~\u22C0~bkarow~\u290D~blacklozenge~\u29EB~blacksquare~\u25AA~blacktriangle~\u25B4~blacktriangledown~\u25BE~blacktriangleleft~\u25C2~blacktriangleright~\u25B8~blank~\u2423~blk12~\u2592~blk14~\u2591~blk34~\u2593~block~\u2588~bne~=\u20E5~bnequiv~\u2261\u20E5~bnot~\u2310~bopf~\u{1D553}~bot~\u22A5~bottom~\u22A5~bowtie~\u22C8~boxDL~\u2557~boxDR~\u2554~boxDl~\u2556~boxDr~\u2553~boxH~\u2550~boxHD~\u2566~boxHU~\u2569~boxHd~\u2564~boxHu~\u2567~boxUL~\u255D~boxUR~\u255A~boxUl~\u255C~boxUr~\u2559~boxV~\u2551~boxVH~\u256C~boxVL~\u2563~boxVR~\u2560~boxVh~\u256B~boxVl~\u2562~boxVr~\u255F~boxbox~\u29C9~boxdL~\u2555~boxdR~\u2552~boxdl~\u2510~boxdr~\u250C~boxh~\u2500~boxhD~\u2565~boxhU~\u2568~boxhd~\u252C~boxhu~\u2534~boxminus~\u229F~boxplus~\u229E~boxtimes~\u22A0~boxuL~\u255B~boxuR~\u2558~boxul~\u2518~boxur~\u2514~boxv~\u2502~boxvH~\u256A~boxvL~\u2561~boxvR~\u255E~boxvh~\u253C~boxvl~\u2524~boxvr~\u251C~bprime~\u2035~breve~\u02D8~bscr~\u{1D4B7}~bsemi~\u204F~bsim~\u223D~bsime~\u22CD~bsol~\\~bsolb~\u29C5~bsolhsub~\u27C8~bullet~\u2022~bump~\u224E~bumpE~\u2AAE~bumpe~\u224F~bumpeq~\u224F~cacute~\u0107~capand~\u2A44~capbrcup~\u2A49~capcap~\u2A4B~capcup~\u2A47~capdot~\u2A40~caps~\u2229\uFE00~caret~\u2041~caron~\u02C7~ccaps~\u2A4D~ccaron~\u010D~ccirc~\u0109~ccups~\u2A4C~ccupssm~\u2A50~cdot~\u010B~cemptyv~\u29B2~centerdot~\xB7~cfr~\u{1D520}~chcy~\u0447~check~\u2713~checkmark~\u2713~cir~\u25CB~cirE~\u29C3~circeq~\u2257~circlearrowleft~\u21BA~circlearrowright~\u21BB~circledR~\xAE~circledS~\u24C8~circledast~\u229B~circledcirc~\u229A~circleddash~\u229D~cire~\u2257~cirfnint~\u2A10~cirmid~\u2AEF~cirscir~\u29C2~clubsuit~\u2663~colon~:~colone~\u2254~coloneq~\u2254~comma~,~commat~@~comp~\u2201~compfn~\u2218~complement~\u2201~complexes~\u2102~congdot~\u2A6D~conint~\u222E~copf~\u{1D554}~coprod~\u2210~copysr~\u2117~cross~\u2717~cscr~\u{1D4B8}~csub~\u2ACF~csube~\u2AD1~csup~\u2AD0~csupe~\u2AD2~ctdot~\u22EF~cudarrl~\u2938~cudarrr~\u2935~cuepr~\u22DE~cuesc~\u22DF~cularr~\u21B6~cularrp~\u293D~cupbrcap~\u2A48~cupcap~\u2A46~cupcup~\u2A4A~cupdot~\u228D~cupor~\u2A45~cups~\u222A\uFE00~curarr~\u21B7~curarrm~\u293C~curlyeqprec~\u22DE~curlyeqsucc~\u22DF~curlyvee~\u22CE~curlywedge~\u22CF~curvearrowleft~\u21B6~curvearrowright~\u21B7~cuvee~\u22CE~cuwed~\u22CF~cwconint~\u2232~cwint~\u2231~cylcty~\u232D~dHar~\u2965~daleth~\u2138~dash~\u2010~dashv~\u22A3~dbkarow~\u290F~dblac~\u02DD~dcaron~\u010F~dcy~\u0434~dd~\u2146~ddagger~\u2021~ddarr~\u21CA~ddotseq~\u2A77~demptyv~\u29B1~dfisht~\u297F~dfr~\u{1D521}~dharl~\u21C3~dharr~\u21C2~diam~\u22C4~diamond~\u22C4~diamondsuit~\u2666~die~\xA8~digamma~\u03DD~disin~\u22F2~div~\xF7~divideontimes~\u22C7~divonx~\u22C7~djcy~\u0452~dlcorn~\u231E~dlcrop~\u230D~dollar~$~dopf~\u{1D555}~dot~\u02D9~doteq~\u2250~doteqdot~\u2251~dotminus~\u2238~dotplus~\u2214~dotsquare~\u22A1~doublebarwedge~\u2306~downarrow~\u2193~downdownarrows~\u21CA~downharpoonleft~\u21C3~downharpoonright~\u21C2~drbkarow~\u2910~drcorn~\u231F~drcrop~\u230C~dscr~\u{1D4B9}~dscy~\u0455~dsol~\u29F6~dstrok~\u0111~dtdot~\u22F1~dtri~\u25BF~dtrif~\u25BE~duarr~\u21F5~duhar~\u296F~dwangle~\u29A6~dzcy~\u045F~dzigrarr~\u27FF~eDDot~\u2A77~eDot~\u2251~easter~\u2A6E~ecaron~\u011B~ecir~\u2256~ecolon~\u2255~ecy~\u044D~edot~\u0117~ee~\u2147~efDot~\u2252~efr~\u{1D522}~eg~\u2A9A~egs~\u2A96~egsdot~\u2A98~el~\u2A99~elinters~\u23E7~ell~\u2113~els~\u2A95~elsdot~\u2A97~emacr~\u0113~emptyset~\u2205~emptyv~\u2205~emsp13~\u2004~emsp14~\u2005~eng~\u014B~eogon~\u0119~eopf~\u{1D556}~epar~\u22D5~eparsl~\u29E3~eplus~\u2A71~epsi~\u03B5~epsiv~\u03F5~eqcirc~\u2256~eqcolon~\u2255~eqsim~\u2242~eqslantgtr~\u2A96~eqslantless~\u2A95~equals~=~equest~\u225F~equivDD~\u2A78~eqvparsl~\u29E5~erDot~\u2253~erarr~\u2971~escr~\u212F~esdot~\u2250~esim~\u2242~excl~!~expectation~\u2130~exponentiale~\u2147~fallingdotseq~\u2252~fcy~\u0444~female~\u2640~ffilig~\uFB03~fflig~\uFB00~ffllig~\uFB04~ffr~\u{1D523}~filig~\uFB01~fjlig~fj~flat~\u266D~fllig~\uFB02~fltns~\u25B1~fopf~\u{1D557}~fork~\u22D4~forkv~\u2AD9~fpartint~\u2A0D~frac13~\u2153~frac15~\u2155~frac16~\u2159~frac18~\u215B~frac23~\u2154~frac25~\u2156~frac35~\u2157~frac38~\u215C~frac45~\u2158~frac56~\u215A~frac58~\u215D~frac78~\u215E~frown~\u2322~fscr~\u{1D4BB}~gE~\u2267~gEl~\u2A8C~gacute~\u01F5~gammad~\u03DD~gap~\u2A86~gbreve~\u011F~gcirc~\u011D~gcy~\u0433~gdot~\u0121~gel~\u22DB~geq~\u2265~geqq~\u2267~geqslant~\u2A7E~ges~\u2A7E~gescc~\u2AA9~gesdot~\u2A80~gesdoto~\u2A82~gesdotol~\u2A84~gesl~\u22DB\uFE00~gesles~\u2A94~gfr~\u{1D524}~gg~\u226B~ggg~\u22D9~gimel~\u2137~gjcy~\u0453~gl~\u2277~glE~\u2A92~gla~\u2AA5~glj~\u2AA4~gnE~\u2269~gnap~\u2A8A~gnapprox~\u2A8A~gne~\u2A88~gneq~\u2A88~gneqq~\u2269~gnsim~\u22E7~gopf~\u{1D558}~grave~`~gscr~\u210A~gsim~\u2273~gsime~\u2A8E~gsiml~\u2A90~gtcc~\u2AA7~gtcir~\u2A7A~gtdot~\u22D7~gtlPar~\u2995~gtquest~\u2A7C~gtrapprox~\u2A86~gtrarr~\u2978~gtrdot~\u22D7~gtreqless~\u22DB~gtreqqless~\u2A8C~gtrless~\u2277~gtrsim~\u2273~gvertneqq~\u2269\uFE00~gvnE~\u2269\uFE00~hairsp~\u200A~half~\xBD~hamilt~\u210B~hardcy~\u044A~harrcir~\u2948~harrw~\u21AD~hbar~\u210F~hcirc~\u0125~heartsuit~\u2665~hercon~\u22B9~hfr~\u{1D525}~hksearow~\u2925~hkswarow~\u2926~hoarr~\u21FF~homtht~\u223B~hookleftarrow~\u21A9~hookrightarrow~\u21AA~hopf~\u{1D559}~horbar~\u2015~hscr~\u{1D4BD}~hslash~\u210F~hstrok~\u0127~hybull~\u2043~hyphen~\u2010~ic~\u2063~icy~\u0438~iecy~\u0435~iff~\u21D4~ifr~\u{1D526}~ii~\u2148~iiiint~\u2A0C~iiint~\u222D~iinfin~\u29DC~iiota~\u2129~ijlig~\u0133~imacr~\u012B~imagline~\u2110~imagpart~\u2111~imath~\u0131~imof~\u22B7~imped~\u01B5~in~\u2208~incare~\u2105~infintie~\u29DD~inodot~\u0131~intcal~\u22BA~integers~\u2124~intercal~\u22BA~intlarhk~\u2A17~intprod~\u2A3C~iocy~\u0451~iogon~\u012F~iopf~\u{1D55A}~iprod~\u2A3C~iscr~\u{1D4BE}~isinE~\u22F9~isindot~\u22F5~isins~\u22F4~isinsv~\u22F3~isinv~\u2208~it~\u2062~itilde~\u0129~iukcy~\u0456~jcirc~\u0135~jcy~\u0439~jfr~\u{1D527}~jmath~\u0237~jopf~\u{1D55B}~jscr~\u{1D4BF}~jsercy~\u0458~jukcy~\u0454~kappav~\u03F0~kcedil~\u0137~kcy~\u043A~kfr~\u{1D528}~kgreen~\u0138~khcy~\u0445~kjcy~\u045C~kopf~\u{1D55C}~kscr~\u{1D4C0}~lAarr~\u21DA~lAtail~\u291B~lBarr~\u290E~lE~\u2266~lEg~\u2A8B~lHar~\u2962~lacute~\u013A~laemptyv~\u29B4~lagran~\u2112~langd~\u2991~langle~\u27E8~lap~\u2A85~larrb~\u21E4~larrbfs~\u291F~larrfs~\u291D~larrhk~\u21A9~larrlp~\u21AB~larrpl~\u2939~larrsim~\u2973~larrtl~\u21A2~lat~\u2AAB~latail~\u2919~late~\u2AAD~lates~\u2AAD\uFE00~lbarr~\u290C~lbbrk~\u2772~lbrace~{~lbrack~[~lbrke~\u298B~lbrksld~\u298F~lbrkslu~\u298D~lcaron~\u013E~lcedil~\u013C~lcub~{~lcy~\u043B~ldca~\u2936~ldquor~\u201E~ldrdhar~\u2967~ldrushar~\u294B~ldsh~\u21B2~leftarrow~\u2190~leftarrowtail~\u21A2~leftharpoondown~\u21BD~leftharpoonup~\u21BC~leftleftarrows~\u21C7~leftrightarrow~\u2194~leftrightarrows~\u21C6~leftrightharpoons~\u21CB~leftrightsquigarrow~\u21AD~leftthreetimes~\u22CB~leg~\u22DA~leq~\u2264~leqq~\u2266~leqslant~\u2A7D~les~\u2A7D~lescc~\u2AA8~lesdot~\u2A7F~lesdoto~\u2A81~lesdotor~\u2A83~lesg~\u22DA\uFE00~lesges~\u2A93~lessapprox~\u2A85~lessdot~\u22D6~lesseqgtr~\u22DA~lesseqqgtr~\u2A8B~lessgtr~\u2276~lesssim~\u2272~lfisht~\u297C~lfr~\u{1D529}~lg~\u2276~lgE~\u2A91~lhard~\u21BD~lharu~\u21BC~lharul~\u296A~lhblk~\u2584~ljcy~\u0459~ll~\u226A~llarr~\u21C7~llcorner~\u231E~llhard~\u296B~lltri~\u25FA~lmidot~\u0140~lmoust~\u23B0~lmoustache~\u23B0~lnE~\u2268~lnap~\u2A89~lnapprox~\u2A89~lne~\u2A87~lneq~\u2A87~lneqq~\u2268~lnsim~\u22E6~loang~\u27EC~loarr~\u21FD~lobrk~\u27E6~longleftarrow~\u27F5~longleftrightarrow~\u27F7~longmapsto~\u27FC~longrightarrow~\u27F6~looparrowleft~\u21AB~looparrowright~\u21AC~lopar~\u2985~lopf~\u{1D55D}~loplus~\u2A2D~lotimes~\u2A34~lowbar~_~lozenge~\u25CA~lozf~\u29EB~lpar~(~lparlt~\u2993~lrarr~\u21C6~lrcorner~\u231F~lrhar~\u21CB~lrhard~\u296D~lrtri~\u22BF~lscr~\u{1D4C1}~lsh~\u21B0~lsim~\u2272~lsime~\u2A8D~lsimg~\u2A8F~lsqb~[~lsquor~\u201A~lstrok~\u0142~ltcc~\u2AA6~ltcir~\u2A79~ltdot~\u22D6~lthree~\u22CB~ltimes~\u22C9~ltlarr~\u2976~ltquest~\u2A7B~ltrPar~\u2996~ltri~\u25C3~ltrie~\u22B4~ltrif~\u25C2~lurdshar~\u294A~luruhar~\u2966~lvertneqq~\u2268\uFE00~lvnE~\u2268\uFE00~mDDot~\u223A~male~\u2642~malt~\u2720~maltese~\u2720~map~\u21A6~mapsto~\u21A6~mapstodown~\u21A7~mapstoleft~\u21A4~mapstoup~\u21A5~marker~\u25AE~mcomma~\u2A29~mcy~\u043C~measuredangle~\u2221~mfr~\u{1D52A}~mho~\u2127~mid~\u2223~midast~*~midcir~\u2AF0~minusb~\u229F~minusd~\u2238~minusdu~\u2A2A~mlcp~\u2ADB~mldr~\u2026~mnplus~\u2213~models~\u22A7~mopf~\u{1D55E}~mp~\u2213~mscr~\u{1D4C2}~mstpos~\u223E~multimap~\u22B8~mumap~\u22B8~nGg~\u22D9\u0338~nGt~\u226B\u20D2~nGtv~\u226B\u0338~nLeftarrow~\u21CD~nLeftrightarrow~\u21CE~nLl~\u22D8\u0338~nLt~\u226A\u20D2~nLtv~\u226A\u0338~nRightarrow~\u21CF~nVDash~\u22AF~nVdash~\u22AE~nacute~\u0144~nang~\u2220\u20D2~nap~\u2249~napE~\u2A70\u0338~napid~\u224B\u0338~napos~\u0149~napprox~\u2249~natur~\u266E~natural~\u266E~naturals~\u2115~nbump~\u224E\u0338~nbumpe~\u224F\u0338~ncap~\u2A43~ncaron~\u0148~ncedil~\u0146~ncong~\u2247~ncongdot~\u2A6D\u0338~ncup~\u2A42~ncy~\u043D~neArr~\u21D7~nearhk~\u2924~nearr~\u2197~nearrow~\u2197~nedot~\u2250\u0338~nequiv~\u2262~nesear~\u2928~nesim~\u2242\u0338~nexist~\u2204~nexists~\u2204~nfr~\u{1D52B}~ngE~\u2267\u0338~nge~\u2271~ngeq~\u2271~ngeqq~\u2267\u0338~ngeqslant~\u2A7E\u0338~nges~\u2A7E\u0338~ngsim~\u2275~ngt~\u226F~ngtr~\u226F~nhArr~\u21CE~nharr~\u21AE~nhpar~\u2AF2~nis~\u22FC~nisd~\u22FA~niv~\u220B~njcy~\u045A~nlArr~\u21CD~nlE~\u2266\u0338~nlarr~\u219A~nldr~\u2025~nle~\u2270~nleftarrow~\u219A~nleftrightarrow~\u21AE~nleq~\u2270~nleqq~\u2266\u0338~nleqslant~\u2A7D\u0338~nles~\u2A7D\u0338~nless~\u226E~nlsim~\u2274~nlt~\u226E~nltri~\u22EA~nltrie~\u22EC~nmid~\u2224~nopf~\u{1D55F}~notinE~\u22F9\u0338~notindot~\u22F5\u0338~notinva~\u2209~notinvb~\u22F7~notinvc~\u22F6~notni~\u220C~notniva~\u220C~notnivb~\u22FE~notnivc~\u22FD~npar~\u2226~nparallel~\u2226~nparsl~\u2AFD\u20E5~npart~\u2202\u0338~npolint~\u2A14~npr~\u2280~nprcue~\u22E0~npre~\u2AAF\u0338~nprec~\u2280~npreceq~\u2AAF\u0338~nrArr~\u21CF~nrarr~\u219B~nrarrc~\u2933\u0338~nrarrw~\u219D\u0338~nrightarrow~\u219B~nrtri~\u22EB~nrtrie~\u22ED~nsc~\u2281~nsccue~\u22E1~nsce~\u2AB0\u0338~nscr~\u{1D4C3}~nshortmid~\u2224~nshortparallel~\u2226~nsim~\u2241~nsime~\u2244~nsimeq~\u2244~nsmid~\u2224~nspar~\u2226~nsqsube~\u22E2~nsqsupe~\u22E3~nsubE~\u2AC5\u0338~nsube~\u2288~nsubset~\u2282\u20D2~nsubseteq~\u2288~nsubseteqq~\u2AC5\u0338~nsucc~\u2281~nsucceq~\u2AB0\u0338~nsup~\u2285~nsupE~\u2AC6\u0338~nsupe~\u2289~nsupset~\u2283\u20D2~nsupseteq~\u2289~nsupseteqq~\u2AC6\u0338~ntgl~\u2279~ntlg~\u2278~ntriangleleft~\u22EA~ntrianglelefteq~\u22EC~ntriangleright~\u22EB~ntrianglerighteq~\u22ED~num~#~numero~\u2116~numsp~\u2007~nvDash~\u22AD~nvHarr~\u2904~nvap~\u224D\u20D2~nvdash~\u22AC~nvge~\u2265\u20D2~nvgt~>\u20D2~nvinfin~\u29DE~nvlArr~\u2902~nvle~\u2264\u20D2~nvlt~<\u20D2~nvltrie~\u22B4\u20D2~nvrArr~\u2903~nvrtrie~\u22B5\u20D2~nvsim~\u223C\u20D2~nwArr~\u21D6~nwarhk~\u2923~nwarr~\u2196~nwarrow~\u2196~nwnear~\u2927~oS~\u24C8~oast~\u229B~ocir~\u229A~ocy~\u043E~odash~\u229D~odblac~\u0151~odiv~\u2A38~odot~\u2299~odsold~\u29BC~ofcir~\u29BF~ofr~\u{1D52C}~ogon~\u02DB~ogt~\u29C1~ohbar~\u29B5~ohm~\u03A9~oint~\u222E~olarr~\u21BA~olcir~\u29BE~olcross~\u29BB~olt~\u29C0~omacr~\u014D~omid~\u29B6~ominus~\u2296~oopf~\u{1D560}~opar~\u29B7~operp~\u29B9~orarr~\u21BB~ord~\u2A5D~order~\u2134~orderof~\u2134~origof~\u22B6~oror~\u2A56~orslope~\u2A57~orv~\u2A5B~oscr~\u2134~osol~\u2298~otimesas~\u2A36~ovbar~\u233D~par~\u2225~parallel~\u2225~parsim~\u2AF3~parsl~\u2AFD~pcy~\u043F~percnt~%~period~.~pertenk~\u2031~pfr~\u{1D52D}~phiv~\u03D5~phmmat~\u2133~phone~\u260E~pitchfork~\u22D4~planck~\u210F~planckh~\u210E~plankv~\u210F~plus~+~plusacir~\u2A23~plusb~\u229E~pluscir~\u2A22~plusdo~\u2214~plusdu~\u2A25~pluse~\u2A72~plussim~\u2A26~plustwo~\u2A27~pm~\xB1~pointint~\u2A15~popf~\u{1D561}~pr~\u227A~prE~\u2AB3~prap~\u2AB7~prcue~\u227C~pre~\u2AAF~prec~\u227A~precapprox~\u2AB7~preccurlyeq~\u227C~preceq~\u2AAF~precnapprox~\u2AB9~precneqq~\u2AB5~precnsim~\u22E8~precsim~\u227E~primes~\u2119~prnE~\u2AB5~prnap~\u2AB9~prnsim~\u22E8~profalar~\u232E~profline~\u2312~profsurf~\u2313~propto~\u221D~prsim~\u227E~prurel~\u22B0~pscr~\u{1D4C5}~puncsp~\u2008~qfr~\u{1D52E}~qint~\u2A0C~qopf~\u{1D562}~qprime~\u2057~qscr~\u{1D4C6}~quaternions~\u210D~quatint~\u2A16~quest~?~questeq~\u225F~rAarr~\u21DB~rAtail~\u291C~rBarr~\u290F~rHar~\u2964~race~\u223D\u0331~racute~\u0155~raemptyv~\u29B3~rangd~\u2992~range~\u29A5~rangle~\u27E9~rarrap~\u2975~rarrb~\u21E5~rarrbfs~\u2920~rarrc~\u2933~rarrfs~\u291E~rarrhk~\u21AA~rarrlp~\u21AC~rarrpl~\u2945~rarrsim~\u2974~rarrtl~\u21A3~rarrw~\u219D~ratail~\u291A~ratio~\u2236~rationals~\u211A~rbarr~\u290D~rbbrk~\u2773~rbrace~}~rbrack~]~rbrke~\u298C~rbrksld~\u298E~rbrkslu~\u2990~rcaron~\u0159~rcedil~\u0157~rcub~}~rcy~\u0440~rdca~\u2937~rdldhar~\u2969~rdquor~\u201D~rdsh~\u21B3~realine~\u211B~realpart~\u211C~reals~\u211D~rect~\u25AD~rfisht~\u297D~rfr~\u{1D52F}~rhard~\u21C1~rharu~\u21C0~rharul~\u296C~rhov~\u03F1~rightarrow~\u2192~rightarrowtail~\u21A3~rightharpoondown~\u21C1~rightharpoonup~\u21C0~rightleftarrows~\u21C4~rightleftharpoons~\u21CC~rightrightarrows~\u21C9~rightsquigarrow~\u219D~rightthreetimes~\u22CC~ring~\u02DA~risingdotseq~\u2253~rlarr~\u21C4~rlhar~\u21CC~rmoust~\u23B1~rmoustache~\u23B1~rnmid~\u2AEE~roang~\u27ED~roarr~\u21FE~robrk~\u27E7~ropar~\u2986~ropf~\u{1D563}~roplus~\u2A2E~rotimes~\u2A35~rpar~)~rpargt~\u2994~rppolint~\u2A12~rrarr~\u21C9~rscr~\u{1D4C7}~rsh~\u21B1~rsqb~]~rsquor~\u2019~rthree~\u22CC~rtimes~\u22CA~rtri~\u25B9~rtrie~\u22B5~rtrif~\u25B8~rtriltri~\u29CE~ruluhar~\u2968~rx~\u211E~sacute~\u015B~sc~\u227B~scE~\u2AB4~scap~\u2AB8~sccue~\u227D~sce~\u2AB0~scedil~\u015F~scirc~\u015D~scnE~\u2AB6~scnap~\u2ABA~scnsim~\u22E9~scpolint~\u2A13~scsim~\u227F~scy~\u0441~sdotb~\u22A1~sdote~\u2A66~seArr~\u21D8~searhk~\u2925~searr~\u2198~searrow~\u2198~semi~;~seswar~\u2929~setminus~\u2216~setmn~\u2216~sext~\u2736~sfr~\u{1D530}~sfrown~\u2322~sharp~\u266F~shchcy~\u0449~shcy~\u0448~shortmid~\u2223~shortparallel~\u2225~sigmav~\u03C2~simdot~\u2A6A~sime~\u2243~simeq~\u2243~simg~\u2A9E~simgE~\u2AA0~siml~\u2A9D~simlE~\u2A9F~simne~\u2246~simplus~\u2A24~simrarr~\u2972~slarr~\u2190~smallsetminus~\u2216~smashp~\u2A33~smeparsl~\u29E4~smid~\u2223~smile~\u2323~smt~\u2AAA~smte~\u2AAC~smtes~\u2AAC\uFE00~softcy~\u044C~sol~/~solb~\u29C4~solbar~\u233F~sopf~\u{1D564}~spadesuit~\u2660~spar~\u2225~sqcap~\u2293~sqcaps~\u2293\uFE00~sqcup~\u2294~sqcups~\u2294\uFE00~sqsub~\u228F~sqsube~\u2291~sqsubset~\u228F~sqsubseteq~\u2291~sqsup~\u2290~sqsupe~\u2292~sqsupset~\u2290~sqsupseteq~\u2292~squ~\u25A1~square~\u25A1~squarf~\u25AA~squf~\u25AA~srarr~\u2192~sscr~\u{1D4C8}~ssetmn~\u2216~ssmile~\u2323~sstarf~\u22C6~star~\u2606~starf~\u2605~straightepsilon~\u03F5~straightphi~\u03D5~strns~\xAF~subE~\u2AC5~subdot~\u2ABD~subedot~\u2AC3~submult~\u2AC1~subnE~\u2ACB~subne~\u228A~subplus~\u2ABF~subrarr~\u2979~subset~\u2282~subseteq~\u2286~subseteqq~\u2AC5~subsetneq~\u228A~subsetneqq~\u2ACB~subsim~\u2AC7~subsub~\u2AD5~subsup~\u2AD3~succ~\u227B~succapprox~\u2AB8~succcurlyeq~\u227D~succeq~\u2AB0~succnapprox~\u2ABA~succneqq~\u2AB6~succnsim~\u22E9~succsim~\u227F~sung~\u266A~supE~\u2AC6~supdot~\u2ABE~supdsub~\u2AD8~supedot~\u2AC4~suphsol~\u27C9~suphsub~\u2AD7~suplarr~\u297B~supmult~\u2AC2~supnE~\u2ACC~supne~\u228B~supplus~\u2AC0~supset~\u2283~supseteq~\u2287~supseteqq~\u2AC6~supsetneq~\u228B~supsetneqq~\u2ACC~supsim~\u2AC8~supsub~\u2AD4~supsup~\u2AD6~swArr~\u21D9~swarhk~\u2926~swarr~\u2199~swarrow~\u2199~swnwar~\u292A~target~\u2316~tbrk~\u23B4~tcaron~\u0165~tcedil~\u0163~tcy~\u0442~tdot~\u20DB~telrec~\u2315~tfr~\u{1D531}~therefore~\u2234~thetav~\u03D1~thickapprox~\u2248~thicksim~\u223C~thkap~\u2248~thksim~\u223C~timesb~\u22A0~timesbar~\u2A31~timesd~\u2A30~tint~\u222D~toea~\u2928~top~\u22A4~topbot~\u2336~topcir~\u2AF1~topf~\u{1D565}~topfork~\u2ADA~tosa~\u2929~tprime~\u2034~triangle~\u25B5~triangledown~\u25BF~triangleleft~\u25C3~trianglelefteq~\u22B4~triangleq~\u225C~triangleright~\u25B9~trianglerighteq~\u22B5~tridot~\u25EC~trie~\u225C~triminus~\u2A3A~triplus~\u2A39~trisb~\u29CD~tritime~\u2A3B~trpezium~\u23E2~tscr~\u{1D4C9}~tscy~\u0446~tshcy~\u045B~tstrok~\u0167~twixt~\u226C~twoheadleftarrow~\u219E~twoheadrightarrow~\u21A0~uHar~\u2963~ubrcy~\u045E~ubreve~\u016D~ucy~\u0443~udarr~\u21C5~udblac~\u0171~udhar~\u296E~ufisht~\u297E~ufr~\u{1D532}~uharl~\u21BF~uharr~\u21BE~uhblk~\u2580~ulcorn~\u231C~ulcorner~\u231C~ulcrop~\u230F~ultri~\u25F8~umacr~\u016B~uogon~\u0173~uopf~\u{1D566}~uparrow~\u2191~updownarrow~\u2195~upharpoonleft~\u21BF~upharpoonright~\u21BE~uplus~\u228E~upsi~\u03C5~upuparrows~\u21C8~urcorn~\u231D~urcorner~\u231D~urcrop~\u230E~uring~\u016F~urtri~\u25F9~uscr~\u{1D4CA}~utdot~\u22F0~utilde~\u0169~utri~\u25B5~utrif~\u25B4~uuarr~\u21C8~uwangle~\u29A7~vArr~\u21D5~vBar~\u2AE8~vBarv~\u2AE9~vDash~\u22A8~vangrt~\u299C~varepsilon~\u03F5~varkappa~\u03F0~varnothing~\u2205~varphi~\u03D5~varpi~\u03D6~varpropto~\u221D~varr~\u2195~varrho~\u03F1~varsigma~\u03C2~varsubsetneq~\u228A\uFE00~varsubsetneqq~\u2ACB\uFE00~varsupsetneq~\u228B\uFE00~varsupsetneqq~\u2ACC\uFE00~vartheta~\u03D1~vartriangleleft~\u22B2~vartriangleright~\u22B3~vcy~\u0432~vdash~\u22A2~vee~\u2228~veebar~\u22BB~veeeq~\u225A~vellip~\u22EE~verbar~|~vert~|~vfr~\u{1D533}~vltri~\u22B2~vnsub~\u2282\u20D2~vnsup~\u2283\u20D2~vopf~\u{1D567}~vprop~\u221D~vrtri~\u22B3~vscr~\u{1D4CB}~vsubnE~\u2ACB\uFE00~vsubne~\u228A\uFE00~vsupnE~\u2ACC\uFE00~vsupne~\u228B\uFE00~vzigzag~\u299A~wcirc~\u0175~wedbar~\u2A5F~wedge~\u2227~wedgeq~\u2259~wfr~\u{1D534}~wopf~\u{1D568}~wp~\u2118~wr~\u2240~wreath~\u2240~wscr~\u{1D4CC}~xcap~\u22C2~xcirc~\u25EF~xcup~\u22C3~xdtri~\u25BD~xfr~\u{1D535}~xhArr~\u27FA~xharr~\u27F7~xlArr~\u27F8~xlarr~\u27F5~xmap~\u27FC~xnis~\u22FB~xodot~\u2A00~xopf~\u{1D569}~xoplus~\u2A01~xotime~\u2A02~xrArr~\u27F9~xrarr~\u27F6~xscr~\u{1D4CD}~xsqcup~\u2A06~xuplus~\u2A04~xutri~\u25B3~xvee~\u22C1~xwedge~\u22C0~yacy~\u044F~ycirc~\u0177~ycy~\u044B~yfr~\u{1D536}~yicy~\u0457~yopf~\u{1D56A}~yscr~\u{1D4CE}~yucy~\u044E~zacute~\u017A~zcaron~\u017E~zcy~\u0437~zdot~\u017C~zeetrf~\u2128~zfr~\u{1D537}~zhcy~\u0436~zigrarr~\u21DD~zopf~\u{1D56B}~zscr~\u{1D4CF}~~AMP~&~COPY~\xA9~GT~>~LT~<~QUOT~"~REG~\xAE',J.html4);var vt={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Et=String.fromCodePoint||function(o){return String.fromCharCode(Math.floor((o-65536)/1024)+55296,(o-65536)%1024+56320)},Ro=String.prototype.codePointAt?function(o,r){return o.codePointAt(r)}:function(o,r){return(o.charCodeAt(r)-55296)*1024+o.charCodeAt(r+1)-56320+65536};var lr=function(){return lr=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++){r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])}return o},lr.apply(this,arguments)},Bo=lr(lr({},J),{all:J.html5});var qo={scope:"body",level:"all"},ce=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,le=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,At={xml:{strict:ce,attribute:le,body:Mr.xml},html4:{strict:ce,attribute:le,body:Mr.html4},html5:{strict:ce,attribute:le,body:Mr.html5}},To=lr(lr({},At),{all:At.html5}),Rt=String.fromCharCode,Do=Rt(65533);function Oo(o,r,e,t){var s=o,i=o[o.length-1];if(e&&i==="=")s=o;else if(t&&i!==";")s=o;else{var n=r[o];if(n)s=n;else if(o[0]==="&"&&o[1]==="#"){var a=o[2],l=a=="x"||a=="X"?parseInt(o.substr(3),16):parseInt(o.substr(2));s=l>=1114111?Do:l>65535?Et(l):Rt(vt[l]||l)}}return s}c(Oo,"getDecodedEntity");function Bt(o,r){var e=r===void 0?qo:r,t=e.level,s=t===void 0?"all":t,i=e.scope,n=i===void 0?s==="xml"?"strict":"body":i;if(!o)return"";var a=To[s][n],l=Bo[s].entities,p=n==="attribute",m=n==="strict";return o.replace(a,function(d){return Oo(d,l,p,m)})}c(Bt,"decode");var ko=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function qt(o){return o.match(ko)}c(qt,"smpAsciiWords");var Ct="\\ud800-\\udfff",No="\\u0300-\\u036f",Co="\\ufe20-\\ufe2f",Lo="\\u20d0-\\u20ff",Io="\\u1ab0-\\u1aff",Fo="\\u1dc0-\\u1dff",jo=No+Co+Lo+Io+Fo,Lt="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",Uo="\\xac\\xb1\\xd7\\xf7",Po="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zo="\\u2000-\\u206f",Mo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ft="A-Z\\xc0-\\xd6\\xd8-\\xde",So="\\ufe0e\\ufe0f",jt=Uo+Po+zo+Mo,Ut="['\u2019]",Tt=`[${jt}]`,Vo=`[${jo}]`,Pt="\\d",$o=`[${Lt}]`,zt=`[${It}]`,Mt=`[^${Ct}${jt+Pt+Lt+It+Ft}]`,Go="\\ud83c[\\udffb-\\udfff]",Wo=`(?:${Vo}|${Go})`,Ho=`[^${Ct}]`,St="(?:\\ud83c[\\udde6-\\uddff]){2}",Vt="[\\ud800-\\udbff][\\udc00-\\udfff]",hr=`[${Ft}]`,Ko="\\u200d",Dt=`(?:${zt}|${Mt})`,Xo=`(?:${hr}|${Mt})`,Ot=`(?:${Ut}(?:d|ll|m|re|s|t|ve))?`,kt=`(?:${Ut}(?:D|LL|M|RE|S|T|VE))?`,$t=`${Wo}?`,Gt=`[${So}]?`,Zo=`(?:${Ko}(?:${[Ho,St,Vt].join("|")})${Gt+$t})*`,Jo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qo=Gt+$t+Zo,Nt=`(?:${[$o,St,Vt].join("|")})${Qo}`,_r=class{static{c(this,"SmpUnicodeWords")}static HAS_UNICODE_WORD=RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/);static RE_UNICODE_WORDS=RegExp([`${hr}?${zt}+${Ot}(?=${[Tt,hr,"$"].join("|")})`,`${Xo}+${kt}(?=${[Tt,hr+Dt,"$"].join("|")})`,`${hr}?${Dt}+${Ot}`,`${hr}+${kt}`,Yo,Jo,`${Pt}+`,Nt].join("|"),"g");static RS_EMOJI=Nt;static unicodeWords(r){return r.match(this.RE_UNICODE_WORDS)}};var Wt=class{static{c(this,"SmpCommonUtils")}static arrayRemove(r,e){let t=[],s=r.filter((i,n)=>e(i,n)&&t.push(n));return t.reverse().forEach(i=>r.splice(i,1)),s}static assertIsArray(r,e){if(!Array.isArray(r))throw new Error(e||`${this.constructor.name} => val was not an array`)}static assertIsBoolean(r,e){if(!this.isBoolean(r))throw new Error(e||`${this.constructor.name} => val was not boolean`)}static assertIsFunction(r,e){if(!this.isFunction(r))throw new Error(e||`${this.constructor.name} => entity was not a function`)}static assertIsInstance(r,e,t){if(!(r instanceof e))throw new Error(t||`${this.constructor.name} => val was not instance of class`)}static assertIsNotEmpty(r,e){if(this.isEmpty(r))throw new Error(e||`${this.constructor.name} => entity was empty`)}static assertIsNumber(r,e){if(typeof r!="number")throw new Error(e||`${this.constructor.name} => val was not numeric`)}static assertIsNumeric(r,e){if(!this.isNumeric(r))throw new Error(e||`${this.constructor.name} => val was not numeric`)}static assertIsObject(r,e){if(!this.isObject(r))throw new Error(e||`${this.constructor.name} => val was not an object`)}static assertIsString(r,e){if(!this.isString(r))throw new Error(e||`${this.constructor.name} => val was not a string`)}static assertIsTruthy(r,e){if(!r)throw new Error(e||`${this.constructor.name} => condition wasn't truthy`)}static buildPath(...r){let e=r.filter(t=>!!t).join("/").replace(/(?<!:)\/\/+/g,"/");return e.startsWith("http")&&!e.endsWith("/")?`${e}/`:e}static downloadBlob(r,e){let t=window.URL.createObjectURL(r),s=document.createElement("a");s.href=t,s.setAttribute("download",e),document.body.appendChild(s),s.click()}static fixDecimalPrecision(r,e=2){this.assertIsNumber(r),this.assertIsNumber(e);let s=10**Math.max(0,Math.trunc(e));return Math.round((r+Number.EPSILON)*s)/s}static generateRandomHexString(r=12){let e="0123456789abcdef",t="";for(let s=0;s<r;s++){let i=Math.floor(Math.random()*e.length);t+=e[i]}return t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{let e=Math.random()*16|0;return(r==="x"?e:e&3|8).toString(16)})}static getDecimalPrecision(r){if(this.assertIsNumeric(r),!isFinite(+r))return 0;let e=1,t=0;for(;Math.round(+r*e)/e!==r;)e*=10,t++;return t}static getType(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}static isBoolean(r){return typeof r=="boolean"}static isColor(r){if(!r||!this.isString(r))return!1;let e=new Option().style;return e.color=r,e.color!==""}static isEmpty(r){return!r&&r!==0}static isEqual(r,e){return ne(r,e)}static isFormField(r){return/^(?:input|select|textarea|button)$/i.test(r.nodeName)}static isFunction(r){return typeof r==typeof isNaN}static isNotEmpty(r){return!this.isEmpty(r)}static isNumber(r){return typeof r=="number"&&this.isNumeric(r)}static isNumeric(r){return!isNaN(r)}static isObject(r){return!!r&&r===Object(r)&&r.constructor===Object}static isPrimitive(r){let e=this.getType(r);return e!=="function"&&(e!=="object"||!r)}static isString(r){return typeof r=="string"}static isWindows(){return navigator.userAgent.toLowerCase().includes("win")}static mapObject(r,e){if(this.assertIsFunction(e,`CommonUtils => expected type of iteratee to be Function, got ${typeof e}`),this.isObject(r))return Object.entries(r).reduce((t,[s,i])=>(t.push(e(i,s)),t),[]);if(Array.isArray(r))return r.map(e);throw new Error(`CommonUtils => invalid object provided. Expected Object or Array, got ${typeof e}`)}static mapObjectKeys(r,e){return this.isObject(r)?Object.entries(r).reduce((t,[s,i])=>{let n=e(s,i);return t[n]=i,t},{}):{}}static mapObjectValues(r,e){return this.isObject(r)?Object.entries(r).reduce((t,[s,i])=>(t[s]=e.call(null,i,s),t),{}):{}}static noop(){}static objectHasValue(r,e){return!!~Object.values(r).filter(t=>this.isEqual(t,e))}static omit(r,e){return Object.keys(r).filter(s=>!e.includes(s)).reduce((s,i)=>(s[i]=r[i],s),{})}static parseBoolean(r){return r?/^true$/i.test(r):!1}static parseJsonSafely(r){try{return JSON.parse(r)}catch(e){console.warn(`${this.constructor.name} => couldn't parse json string`,{str:r,error:e});return}}static pick(r,e){return e.reduce((t,s)=>(s in r&&(t[s]=r[s]),t),{})}static runSafely(r,e=null,t=[]){if(this.isFunction(r))return r.apply(e,t)}static sleep(r){return new Promise(e=>setTimeout(e,r))}static sprintf(r,...e){return this.isString(r)&&e.length?this.sprintf(r.replace("%s",String(e.shift())),...e):r}static stripComments(r){return typeof r=="string"?r.replace(/(<!--.*?-->)|(<!--[\S\s]+?-->)|(<!--[\S\s]*?$)/g,""):r}static stripHtml(r,e=!0){this.assertIsString(r);let t=(0,Ht.default)(r);return(e?Bt(t):t).replace(/\s+/g," ").trim()}static submitFakeForm({action:r,method:e=Ve.POST,data:t,target:s}){let i=Object.entries(t||{}).map(([a,l])=>`<input name="${a}" type="hidden" value="${l}" />`),n=document.createElement("form");n.method=e,n.action=r,n.innerHTML=`${i}`,n.target=s||"_self",document.body.append(n),n.submit()}static toCamelCase(r){return this.words(r.replace(/['\u2019]/g,"")).reduce((e,t,s)=>(t=t.toLowerCase(),e+(s?t.charAt(0).toUpperCase()+t.slice(1):t)),"")}static toKebabCase(r){return this.words(r.replace(/['\u2019]/g,"")).join("-").toLowerCase()}static toPascalCase(r){return this.toCamelCase(r).replace(/^(.)/,e=>e.toUpperCase())}static toSnakeCase(r){return this.words(r.replace(/['\u2019]/g,"")).join("_").toLowerCase()}static toUpperSnakeCase(r){return this.toSnakeCase(r).toUpperCase()}static words(r,e){return e===void 0?(_r.HAS_UNICODE_WORD(r)?_r.unicodeWords(r):qt(r))||[]:r.match(e)||[]}};var Kt=class extends Error{static{c(this,"SmpFilterException")}message;data;constructor(r="Filter Exception",e){super(),this.message=r,this.data=e}};import{DateTime as Xt}from"ts-luxon";var Zt=class o{static{c(this,"SmpSid")}value;expiry;get active(){return this.value.endsWith(this._controlSuffix)}get expired(){return Xt.now().ts>this.expiry}get valid(){return!this.expired}_controlSuffix="$1";constructor(r=`sid-xxxx-${+Xt.now().ts}`,e=0){this.value=r,this.expiry=e}static parse(r){return new o(r.value,r.expiry)}toPlain(){return{value:this.value,expiry:this.expiry}}};import{smpNoop as lh}from"@tonysamperi/logger";var Jt=class{static{c(this,"SmpRegularExpressions")}static get COUNTRY(){return this._country}static get DOMAIN(){return/^(?!www)(\w)([\w.-])*\.[a-z]{2,6}$/}static get EMAIL(){return/^[^\\|!"£$%&/()='?^€*[\]°#§<>,;:\s]+@[a-z0-9.-]+\.[a-z]{2,6}$/}static get LANGUAGE(){return this._language}static get LATIN_CHARS(){return/^[\u0000-\u024F\u1E00-\u1EFF\u2C60-\u2C7F\uA720-\uA7FF]+/}static get LOCALE(){return new RegExp(`${this._country.source}-${this._language.source}`)}static get NO_EMOJI_NO_PUNCTUATION(){return/[^\p{Emoji_Presentation}|\p{P}]/gu}static get NO_HTML(){return/^[^<>]*$/u}static get PHONE_NUMBER(){return/^(\+\d{1,4}\s)(\d{4,15})$/}static get PHONE_NUMBER_BY_PREFIX(){return{"+971":{dontStartWithZero:/^(\+\d{3}\s)([1-9])/,typeExactlyNineDigits:/^(\+\d{3}\s)([1-9]\d{8}$)/}}}static get TAXCODE_BY_COUNTRY(){return{ES:{DNI:/^\d{8}[A-Z]$/,NIE:/^[A-Z]\d{7}[A-Z]$/,CIF:/^[A-Z]\d{8}$/}}}static _country=/[a-zA-Z]{2}/;static _language=/[a-z]{2}/};var uh="2.1.0";export{vc as SMP_HEALTHZ,ge as SmpAbstractCacheStrategy,er as SmpAbstractTtlCacheStrategy,wr as SmpAesCrypt,Jr as SmpAesCryptV2,Me as SmpApiCommonUtils,$e as SmpBaseJwtToken,Ge as SmpBaseJwtTokenPlain,vr as SmpBrowserCache,Wt as SmpCommonUtils,nr as SmpCrypto,L as SmpErrorResponse,Se as SmpErrorResponseWithStackTrace,Kt as SmpFilterException,ts as SmpFirebaseErrors,fr as SmpGenericResponse,re as SmpGiftcardTransaction,ar as SmpGiftcardTransactionHashStrategies,C as SmpGiftcardTransactionOps,Er as SmpHttpSessionStorageCache,Ar as SmpHttpStatusCodes,ze as SmpHttpTwoService,Ur as SmpInMemoryCache,el as SmpMarketingCloudValidators,Jt as SmpRegularExpressions,O as SmpResponseMessage,rr as SmpResponseMessageTypes,Ve as SmpRestVerbs,Yr as SmpSecureCode,Zt as SmpSid,rs as SmpSocialSignInKeys,es as SmpSocialSignInUxModes,uh as VERSION,ol as smpApplyMixin,we as smpIsSmpCachedValue,lh as smpNoop};
|
package/dist/esm/rxjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as x}from"./chunk-
|
|
1
|
+
import{a as h,b as x}from"./chunk-OVNQKUGW.js";import{a as s}from"./chunk-7X4DHW36.js";import{map as R}from"rxjs";import{DateTime as l}from"ts-luxon";var p=class extends h{static{s(this,"SmpAbstractRxjsTtlCacheStrategy")}flush(){return this._flushRaw()}read(r){return this._readRaw(r).pipe(R(e=>{if(this._isSmpCachedValue(e)){if(e.expiry>=l.now().ts)return e.value;this._removeRaw(r).subscribe();return}return e}))}remove(r){return this._removeRaw(r)}write(r,e,o){let n;if(isNaN(+o)||+o<=0)n=this._writeRaw(r,e,o);else{let i=l.now().ts+o*1e3,c={value:e,expiry:i};n=this._writeRaw(r,c,o)}return n.subscribe({error:s(i=>console.error(`${this.constructor.name}::write: error occurred`,i),"error")}),n}_isSmpCachedValue(r){return x(r)}};import{catchError as y,throwError as _}from"rxjs";function S(t,r){return e=>e.pipe(y(o=>(typeof t==typeof isNaN?d(t)?j(o,t):t(o):!1)?r(o):_(()=>o)))}s(S,"smpRxjsCatchOnly");function d(t){try{return Reflect.construct(String,[],t),!0}catch{return!1}}s(d,"isConstructor");function j(t,r){return typeof t=="object"&&t!==null&&t.constructor===r}s(j,"isExactInstance");import{defer as m,of as a}from"rxjs";var f=class extends p{static{s(this,"SmpRxjsInMemoryCache")}static _storage=new Map;get _staticSelf(){return this.constructor}_flushRaw(){return m(()=>(this._staticSelf._storage.clear(),a(void 0)))}_readRaw(r){return m(()=>a(this._staticSelf._storage.get(r)))}_removeRaw(r){return m(()=>(this._staticSelf._storage.delete(r),a(void 0)))}_writeRaw(r,e){return this._staticSelf._storage.set(r,e),a(void 0)}};import{map as g,of as C,defer as E,switchMap as b}from"rxjs";function w(t){let r=[];function e(o){return o>=t.length?C(r):E(()=>t[o]()).pipe(b(n=>(r[o]=n,e(o+1))))}return s(e,"runStep"),e(0)}s(w,"smpRxjsSequence");function O(t){if(Array.isArray(t))return w(t);{let r=Object.keys(t),e=r.map(o=>t[o]);return w(e).pipe(g(o=>{let n={};return r.forEach((i,c)=>{n[i]=o[c]}),n}))}}s(O,"smpRxjsQueue");import{concatMap as v,from as T,toArray as A}from"rxjs";function I(t){return T(t).pipe(v(e=>e()),A())}s(I,"smpRxjsSequence");import{map as N}from"rxjs";function u(t=M){return r=>r.pipe(N(e=>{if(~q.indexOf(JSON.stringify(e)))throw t(e);return e}))}s(u,"smpRxjsThrowIfEmpty");var q=[void 0,null,!1,0,"","0",[],{}].map(t=>JSON.stringify(t)),M=s(()=>new Error,"defaultErrorFactory");import{defaultIfEmpty as J,filter as Q}from"rxjs";function V(t,r){return e=>e.pipe(Q(o=>!t(o)),J(!1),u(r))}s(V,"smpRxjsThrowOnCondition");export{p as SmpAbstractRxjsTtlCacheStrategy,f as SmpRxjsInMemoryCache,S as smpRxjsCatchOnly,O as smpRxjsQueue,I as smpRxjsSequence,u as smpRxjsThrowIfEmpty,V as smpRxjsThrowOnCondition};
|
|
@@ -13,7 +13,9 @@ interface SmpResponseMessageBase {
|
|
|
13
13
|
declare class SmpResponseMessage implements SmpResponseMessageBase {
|
|
14
14
|
protected _message: string;
|
|
15
15
|
protected _type: SmpResponseMessageTypes;
|
|
16
|
+
set message(value: string);
|
|
16
17
|
get message(): string;
|
|
18
|
+
set type(value: SmpResponseMessageTypes);
|
|
17
19
|
get type(): SmpResponseMessageTypes;
|
|
18
20
|
constructor(_message: string, _type?: SmpResponseMessageTypes);
|
|
19
21
|
static sanitizeMessages(messages: string | SmpResponseMessage | (SmpResponseMessage | string)[]): SmpResponseMessage[];
|
package/dist/esm/zod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z$1, { z, ZodTypeDef, ParseInput, ParseReturnType } from 'zod';
|
|
2
|
-
import { b as SmpGenericResponseBase, S as SmpResponseMessage } from './smp-generic-response-base.interface-
|
|
2
|
+
import { b as SmpGenericResponseBase, S as SmpResponseMessage } from './smp-generic-response-base.interface-BSdPo_xm.js';
|
|
3
3
|
import { DateTime } from 'ts-luxon';
|
|
4
4
|
|
|
5
5
|
declare const smpGenericResponseSchema: z.ZodObject<Record<keyof SmpGenericResponseBase<any>, z.ZodTypeAny>, "strip", z.ZodTypeAny, {
|
|
@@ -37,6 +37,7 @@ declare class SmpZodDateTime extends z$1.ZodType<DateTime, SmpZodDateTimeDef> {
|
|
|
37
37
|
max(max: DateTime, message?: string): this;
|
|
38
38
|
min(min: DateTime, message?: string): this;
|
|
39
39
|
private _coerceToDateTime;
|
|
40
|
+
private _isValidDateTime;
|
|
40
41
|
}
|
|
41
42
|
declare const smpZodDateTime: (opts?: {
|
|
42
43
|
coerce?: boolean;
|
package/dist/esm/zod.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"./chunk-F3OJMKBL.js";import{a as m}from"./chunk-7X4DHW36.js";import{z as f}from"zod";import{z as c}from"zod";var x=c.object({message:c.string(),type:c.nativeEnum(l)});var M=f.object({data:f.unknown().optional(),messages:f.array(x).optional()});import n,{ZodIssueCode as a,ZodParsedType as d}from"zod";import{DateTime as u}from"ts-luxon";var p=class r extends n.ZodType{static{m(this,"SmpZodDateTime")}constructor(e){super({typeName:"SmpZodDateTime",coerce:e?.coerce??!1,checks:e?.checks??[]})}_parse(e){let i=this._getOrReturnCtx(e),s=i.data;if(this._def.coerce&&(s=this._coerceToDateTime(s),!this._isValidDateTime(s)))return n.addIssueToContext(i,{code:a.invalid_type,expected:d.date,received:d.unknown,message:"Invalid date format"}),n.INVALID;if(!this._isValidDateTime(s)&&!this._def.coerce)return n.addIssueToContext(i,{code:a.invalid_type,expected:d.date,received:d.unknown,message:"Input must be a valid DateTime object"}),n.INVALID;let D={min:m((t,o)=>{if(t.min&&o.toMillis()<t.min.toMillis())return{code:a.too_small,minimum:t.min.toMillis(),type:"date",inclusive:!0,message:t.message??`Date must be \u2265 ${t.min.toISODate()}`}},"min"),max:m((t,o)=>{if(t.max&&o.toMillis()>t.max.toMillis())return{code:a.too_big,maximum:t.max.toMillis(),type:"date",inclusive:!0,message:t.message??`Date must be \u2264 ${t.max.toISODate()}`}},"max"),between:m((t,o)=>{if(t.min&&t.max&&(o.toMillis()<t.min.toMillis()||o.toMillis()>t.max.toMillis()))return{code:a.custom,message:t.message??`Date must be between ${t.min.toISODate()} and ${t.max.toISODate()}`}},"between")};for(let t of this._def.checks)if(this._isValidDateTime(s)){let o=D[t.kind](t,s);o&&n.addIssueToContext(i,o)}return i.common.issues.length>0?n.INVALID:n.OK(s)}between(e,i,s){return new r({...this._def,checks:[...this._def.checks,{kind:"between",min:e.toUTC(),max:i.toUTC(),message:s}]})}coerce(){return new r({...this._def,coerce:!0})}max(e,i){return new r({...this._def,checks:[...this._def.checks,{kind:"max",max:e.toUTC(),message:i}]})}min(e,i){return new r({...this._def,checks:[...this._def.checks,{kind:"min",min:e.toUTC(),message:i}]})}_coerceToDateTime(e){return this._isValidDateTime(e)?e:typeof e=="string"?u.fromISO(e):typeof e=="number"?u.fromMillis(e):e instanceof Date?u.fromJSDate(e).toUTC():null}_isValidDateTime(e){return u.isDateTime(e)&&e.isValid}},C=m((r={})=>new p({coerce:r.coerce??!1,checks:[]}),"smpZodDateTime");export{p as SmpZodDateTime,M as smpGenericResponseSchema,x as smpResponseMessageSchema,C as smpZodDateTime};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonysamperi/ts-mapi-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A set of shared utils to be used at BE or FE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -21,6 +21,16 @@
|
|
|
21
21
|
"default": "./dist/esm/index.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
+
"./eslint": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/esm/eslint.d.ts",
|
|
27
|
+
"default": "./dist/esm/eslint.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/cjs/eslint.d.cts",
|
|
31
|
+
"default": "./dist/cjs/eslint.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
24
34
|
"./dynamo": {
|
|
25
35
|
"import": {
|
|
26
36
|
"types": "./dist/esm/dynamo.d.ts",
|
|
@@ -68,6 +78,9 @@
|
|
|
68
78
|
"": [
|
|
69
79
|
"./dist/cjs/index.d.cts"
|
|
70
80
|
],
|
|
81
|
+
"eslint": [
|
|
82
|
+
"./dist/cjs/eslint.d.cts"
|
|
83
|
+
],
|
|
71
84
|
"dynamo": [
|
|
72
85
|
"./dist/cjs/dynamo.d.cts"
|
|
73
86
|
],
|
|
@@ -91,25 +104,30 @@
|
|
|
91
104
|
"build:dev": "NODE_ENV=development node build.config",
|
|
92
105
|
"build": "NODE_ENV=production node build.config",
|
|
93
106
|
"build:cjs": "webpack --config webpack.cjs.config.cjs --stats verbose",
|
|
107
|
+
"check-alignment": "node scripts/check-alignment.js",
|
|
94
108
|
"check-exports": "node scripts/check-exports.js",
|
|
95
109
|
"lint": "eslint && tsc --noEmit",
|
|
96
110
|
"prepublishOnly": "npm run build && npm run check-exports",
|
|
97
|
-
"release": "npm publish",
|
|
98
|
-
"release:beta": "npm publish --tag beta",
|
|
99
|
-
"release:next": "npm publish --tag next",
|
|
111
|
+
"release": "npm publish --access public --provenance",
|
|
112
|
+
"release:beta": "npm publish --access public --tag beta --provenance",
|
|
113
|
+
"release:next": "npm publish --access public --tag next --provenance",
|
|
100
114
|
"test": "jest"
|
|
101
115
|
},
|
|
102
116
|
"author": "Tony Samperi",
|
|
117
|
+
"repository": {
|
|
118
|
+
"type": "git",
|
|
119
|
+
"url": "https://github.com/tonysamperi/ts-mapi-core"
|
|
120
|
+
},
|
|
103
121
|
"license": "ISC",
|
|
104
122
|
"peerDependencies": {
|
|
105
123
|
"@aws-sdk/client-dynamodb": "^3.758.0",
|
|
106
124
|
"@aws-sdk/util-dynamodb": "^3.758.0",
|
|
107
125
|
"@tonysamperi/logger": "^2.0.0",
|
|
108
126
|
"class-transformer": "^0.5.1",
|
|
109
|
-
"firebase": "^
|
|
127
|
+
"firebase": "^12.9.0",
|
|
110
128
|
"reflect-metadata": "^0.2.2",
|
|
111
129
|
"rxjs": "^7.5.6",
|
|
112
|
-
"ts-luxon": "^6.
|
|
130
|
+
"ts-luxon": "^6.4.0",
|
|
113
131
|
"zod": "^3.24.4"
|
|
114
132
|
},
|
|
115
133
|
"devDependencies": {
|
|
@@ -120,28 +138,30 @@
|
|
|
120
138
|
"@pollyjs/core": "^6.0.6",
|
|
121
139
|
"@pollyjs/persister-fs": "^6.0.6",
|
|
122
140
|
"@swc/core": "^1.13.2",
|
|
123
|
-
"@tonysamperi/krypto": "^1.
|
|
124
|
-
"@tonysamperi/logger": "^2.
|
|
141
|
+
"@tonysamperi/krypto": "^1.2.0",
|
|
142
|
+
"@tonysamperi/logger": "^2.1.1",
|
|
125
143
|
"@types/babel__preset-env": "^7",
|
|
126
144
|
"@types/jest": "~29.5.14",
|
|
127
|
-
"@types/lodash-es": "^4.17.12",
|
|
128
145
|
"@types/node": "^22.13.8",
|
|
129
146
|
"@types/setup-polly-jest": "^0",
|
|
130
147
|
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
131
148
|
"@typescript-eslint/parser": "^8.32.0",
|
|
132
149
|
"babel-jest": "^30.2.0",
|
|
133
150
|
"class-transformer": "^0.5.1",
|
|
151
|
+
"diff": "^9.0.0",
|
|
152
|
+
"es-toolkit": "^1.53.0",
|
|
134
153
|
"eslint": "^9.26.0",
|
|
135
|
-
"firebase": "^
|
|
154
|
+
"firebase": "^12.19.0",
|
|
136
155
|
"glob": "^11.1.0",
|
|
156
|
+
"html-entities": "^2.6.0",
|
|
137
157
|
"jest": "~29.7.0",
|
|
138
|
-
"lodash-es": "^4.17.23",
|
|
139
158
|
"reflect-metadata": "^0.2.2",
|
|
140
159
|
"replace-in-file": "^8.3.0",
|
|
141
160
|
"rxjs": "^7.5.6",
|
|
142
161
|
"setup-polly-jest": "^0.11.0",
|
|
162
|
+
"striptags": "^3.2.0",
|
|
143
163
|
"ts-jest": "^29.2.6",
|
|
144
|
-
"ts-luxon": "^6.
|
|
164
|
+
"ts-luxon": "^6.4.0",
|
|
145
165
|
"tslib": "^2.8.1",
|
|
146
166
|
"tsup": "^8.4.0",
|
|
147
167
|
"typescript": "~5.8.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:!0});export{d as a};
|