@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/cjs/index.cjs
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
"use strict";var zt=Object.defineProperty;var xs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var As=Object.prototype.hasOwnProperty;var n=(e,t)=>zt(e,"name",{value:t,configurable:!0});var Es=(e,t)=>{for(var r in t)zt(e,r,{get:t[r],enumerable:!0})},vs=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of bs(t))!As.call(e,s)&&s!==r&&zt(e,s,{get:()=>t[s],enumerable:!(o=xs(t,s))||o.enumerable});return e};var Os=e=>vs(zt({},"__esModule",{value:!0}),e);var vc={};Es(vc,{SMP_HEALTHZ:()=>Cs,SmpAbstractCacheStrategy:()=>Tt,SmpAbstractTtlCacheStrategy:()=>tt,SmpAesCrypt:()=>yt,SmpApiCommonUtils:()=>De,SmpBaseJwtToken:()=>Me,SmpBaseJwtTokenPlain:()=>Fe,SmpBrowserCache:()=>It,SmpCommonUtils:()=>Se,SmpCrypto:()=>at,SmpErrorResponse:()=>L,SmpFilterException:()=>He,SmpFirebaseErrors:()=>Ds,SmpGenericResponse:()=>ut,SmpGiftcardTransaction:()=>te,SmpGiftcardTransactionHashStrategies:()=>ct,SmpGiftcardTransactionOps:()=>j,SmpHttpSessionStorageCache:()=>Ct,SmpHttpStatusCodes:()=>xe,SmpHttpTwoService:()=>je,SmpInMemoryCache:()=>Nt,SmpMarketingCloudValidators:()=>Ms,SmpRegularExpressions:()=>Xe,SmpResponseMessage:()=>N,SmpResponseMessageTypes:()=>et,SmpRestVerbs:()=>Ne,SmpSecureCode:()=>Yt,SmpSid:()=>Ve,SmpSocialSignInKeys:()=>Ps,SmpSocialSignInUxModes:()=>js,VERSION:()=>Ec,smpApplyMixin:()=>Fs,smpIsSmpCachedValue:()=>we,smpNoop:()=>fs.smpNoop});module.exports=Os(vc);var ye=require("ts-luxon");var Tt=class{static{n(this,"SmpAbstractCacheStrategy")}};function we(e){return typeof e=="object"&&e!==null&&"value"in e&&"expiry"in e&&typeof e.expiry=="number"}n(we,"smpIsSmpCachedValue");var tt=class extends Tt{static{n(this,"SmpAbstractTtlCacheStrategy")}flush(){this._flushRaw()}read(t){let r=this._readRaw(t);if(this._isSmpCachedValue(r)){if(r.expiry>=ye.DateTime.now().ts)return r.value;this._removeRaw(t);return}return r}remove(t){this._removeRaw(t)}write(t,r,o){if(isNaN(+o)||+o<=0){this._writeRaw(t,r,o);return}let s=ye.DateTime.now().ts+o*1e3,i={value:r,expiry:s};this._writeRaw(t,i,o)}_isSmpCachedValue(t){return we(t)}};var It=class extends tt{static{n(this,"SmpBrowserCache")}_storage;_prefix;constructor(t,r){super(),this._storage=t,this._prefix=r}_flushRaw(){let t=[],r=-1;for(;++r<this._storage.length;){let o=this._storage.key(r);o&&o.startsWith(this._prefix)&&t.push(o)}for(r=-1;++r<t.length;)this._storage.removeItem(t[r])}_readRaw(t){let r=this._storage.getItem(this._prefix+t);try{return r?JSON.parse(r):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,r){try{this._storage.setItem(this._prefix+t,JSON.stringify(r))}catch(o){console.warn(`${this.constructor.name}: failed to write cache item for key ${this._prefix+t}`,o)}}};var Ct=class extends It{static{n(this,"SmpHttpSessionStorageCache")}constructor(){super(sessionStorage,"smp_rest_cache_")}};var xe=(function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e})({});var Pt=require("class-transformer");var q=require("class-transformer");var be=require("class-transformer");var et=(function(e){return e.INFO="INFO",e.SUCCESS="SUCCESS",e.WARNING="WARNING",e.ERROR="ERROR",e})({});function or(e,t,r,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i}n(or,"_ts_decorate");function kt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(kt,"_ts_metadata");var N=class e{static{n(this,"SmpResponseMessage")}_message;_type;get message(){return this._message}get type(){return this._type}constructor(t,r=et.ERROR){this._message=t,this._type=r}static sanitizeMessages(t){return typeof t=="string"?t.length?[new e(t)]:[]:[t].flat().map(r=>typeof r=="string"?new e(r):r)}};or([(0,be.Expose)(),kt("design:type",String),kt("design:paramtypes",[])],N.prototype,"message",null);or([(0,be.Expose)(),kt("design:type",typeof et>"u"?Object:et),kt("design:paramtypes",[])],N.prototype,"type",null);function Rs(e,t,r,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i}n(Rs,"_ts_decorate");function sr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(sr,"_ts_metadata");var ut=class e{static{n(this,"SmpGenericResponse")}_messages;data;set messages(t){this._messages=N.sanitizeMessages(t)}get messages(){return this._messages}constructor(t=[],r){this._messages=t,this.data=r}static create(t){return new e([t.messages||[]].flat().map(r=>r instanceof N?r:new N(r,t.type||et.SUCCESS)),t.data)}static fromPlain(t){return(0,q.plainToInstance)(e,t)}isError(){return!this.isSuccess()}isSuccess(){return typeof this._errorCode=="number"}serialize(){return(0,q.instanceToPlain)(this,{excludePrefixes:["_"]})}};Rs([(0,q.Expose)(),(0,q.Transform)(({value:e})=>e?.length?e:void 0),sr("design:type",Object),sr("design:paramtypes",[])],ut.prototype,"messages",null);function ir(e,t,r,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i}n(ir,"_ts_decorate");function $t(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n($t,"_ts_metadata");var L=class e extends ut{static{n(this,"SmpErrorResponse")}_errorCode;_status;static get DEFAULT_MESSAGES(){return[new N("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=e.DEFAULT_MESSAGES,r="GENERIC_ERROR",o=500,s){super(t,s),this._errorCode=r,this._status=o}static create({messages:t=e.DEFAULT_MESSAGES,...r}={}){return new e(N.sanitizeMessages(t),r.errorCode,r.status,r.data)}static fromPlain(t){let r=(0,Pt.plainToInstance)(Bs,t,{excludePrefixes:["_"]}),o=new e;return Object.getOwnPropertyNames(r).forEach(s=>{s in o&&(o[s]=r[s])}),o}};ir([(0,Pt.Expose)(),$t("design:type",Object),$t("design:paramtypes",[])],L.prototype,"errorCode",null);ir([(0,Pt.Expose)(),$t("design:type",Number),$t("design:paramtypes",[])],L.prototype,"timestamp",null);var Bs=class extends L{static{n(this,"SmpErrorResponseMutable")}set errorCode(t){this._errorCode=t}set status(t){this._status=t}set timestamp(t){this._timestamp=t}};var V=class{static{n(this,"Hex")}static parse(t){let r=t.length,o=[];for(let s=0;s<r;s+=2)o[s>>>3]|=parseInt(t.substr(s,2),16)<<24-s%8*4;return new _(o,r/2)}static stringify(t){let r=[];for(let o=0;o<t.sigBytes;o++){let s=t.words[o>>>2]>>>24-o%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}};var _=class Ae{static{n(this,"WordArray")}constructor(t,r){this.words=t||[],r!==void 0?this.sigBytes=r:this.sigBytes=this.words.length*4}static random(t){let r=[],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,r.push(a()*4294967296|0)}return new Ae(r,t)}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Ae(this.words.slice(0),this.sigBytes)}concat(t){if(this.clamp(),this.sigBytes%4)for(let r=0;r<t.sigBytes;r++){let o=t.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=o<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<t.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=t.words[r>>>2];return this.sigBytes+=t.sigBytes,this}toString(t){return(t||V).stringify(this)}};var Gt=class{static{n(this,"Latin1")}static parse(t){let r=t.length,o=[];for(let s=0;s<r;s++)o[s>>>2]|=(t.charCodeAt(s)&255)<<24-s%4*8;return new _(o,r)}static stringify(t){let r=[];for(let o=0;o<t.sigBytes;o++){let s=t.words[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(s))}return r.join("")}};var C=class{static{n(this,"Utf8")}static parse(t){return Gt.parse(unescape(encodeURIComponent(t)))}static stringify(t){try{return decodeURIComponent(escape(Gt.stringify(t)))}catch(r){throw console.error("Malformed UTF-8 data",r),new Error("Malformed UTF-8 data")}}};var Wt=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 r in this)Object.prototype.hasOwnProperty.call(this,r)&&(t[r]=this[r]);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 r=this.cfg.blockSize*4,o=this._data.sigBytes/r;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 dt=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 z=class{static{n(this,"Base64")}static parse(t){let r=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&&(r=s)}return this.parseLoop(t,r,this._reverseMap)}static parseLoop(t,r,o){let s=[],i=0;for(let a=0;a<r;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 r=[];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++)r.push(this._map.charAt(h>>>6*(3-f)&63))}let o=this._map.charAt(64);if(o)for(;r.length%4;)r.push(o);return r.join("")}};z._map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";z._reverseMap=void 0;var Kt=class{static{n(this,"OpenSSL")}static parse(t){let r=z.parse(t),o;return r.words[0]===1398893684&&r.words[1]===1701076831&&(o=new _(r.words.slice(2,4)),r.words.splice(0,4),r.sigBytes-=16),new dt({ciphertext:r,salt:o})}static stringify(t){if(!t.ciphertext)throw new Error("missing ciphertext in params");let r=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(r)}else s=r;return s.toString(z)}};var rt=class{static{n(this,"SerializableCipher")}static decrypt(t,r,o,s){let i=Object.assign({},this.cfg,s);if(!i.format)throw new Error("could not determine format");if(r=this._parse(r,i.format),!r.ciphertext)throw new Error("could not determine ciphertext");return t.createDecryptor(o,i).finalize(r.ciphertext)}static encrypt(t,r,o,s){let i=Object.assign({},this.cfg,s),a=t.createEncryptor(o,i),c=a.finalize(r);return new dt({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,r){return typeof t=="string"?r.parse(t):t}};rt.cfg={blockSize:4,iv:new _([]),format:Kt};var I=class extends Wt{static{n(this,"Hasher")}constructor(t){super(Object.assign({blockSize:512/32},t)),this.reset()}static _createHelper(t){function r(o,s){return new t(s).finalize(o)}return n(r,"helper"),r}finalize(t){return t&&this._append(t),this._doFinalize()}update(t){return this._append(t),this._process(),this}};var p=[];for(let e=0;e<64;e++)p[e]=Math.abs(Math.sin(e+1))*4294967296|0;var k=class u extends I{static{n(this,"MD5")}get hash(){return this._hash}static FF(t,r,o,s,i,a,c){let h=t+(r&o|~r&s)+i+c;return(h<<a|h>>>32-a)+r}static GG(t,r,o,s,i,a,c){let h=t+(r&s|o&~s)+i+c;return(h<<a|h>>>32-a)+r}static HH(t,r,o,s,i,a,c){let h=t+(r^o^s)+i+c;return(h<<a|h>>>32-a)+r}static II(t,r,o,s,i,a,c){let h=t+(o^(r|~s))+i+c;return(h<<a|h>>>32-a)+r}reset(){super.reset(),this._hash=new _([1732584193,4023233417,2562383102,271733878])}_doFinalize(){let t=this._nDataBytes*8,r=this._data.sigBytes*8;this._data.words[r>>>5]|=128<<24-r%32;let o=Math.floor(t/4294967296),s=t;this._data.words[(r+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,this._data.words[(r+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,r){for(let h=0;h<16;h++){let f=r+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[r+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 Ee=class nr{static{n(this,"EVPKDF")}constructor(t){this.cfg=Object.assign({keySize:128/32,hasher:k,iterations:1},t)}static execute(t,r,o){return new nr(o).compute(t,r)}compute(t,r){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(r),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 ar=class{static{n(this,"OpenSSLKdf")}static execute(t,r,o,s){s||(s=_.random(64/8));let i=new Ee({keySize:r+o}).compute(t,s),a=new _(i.words.slice(r),o*4);return i.sigBytes=r*4,new dt({key:i,iv:a,salt:s})}};var St=class{static{n(this,"PasswordBasedCipher")}static decrypt(t,r,o,s){let i=Object.assign({},this.cfg,s);if(i.format===void 0)throw new Error("missing format in config");if(r=this._parse(r,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,r.salt);return a.iv!==void 0&&(i.iv=a.iv),rt.decrypt.call(this,t,r,a.key,i)}static encrypt(t,r,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),rt.encrypt.call(this,t,r,a.key,i).extend(a)}static _parse(t,r){return typeof t=="string"?r.parse(t):t}};St.cfg={blockSize:4,iv:new _([]),format:Kt,kdf:ar};var cr=class{static{n(this,"CipherHelper")}constructor(t){this._cipher=t}decrypt(t,r,o){return typeof r=="string"?St.decrypt(this._cipher,t,r,o):rt.decrypt(this._cipher,t,r,o)}encrypt(t,r,o){return typeof r=="string"?St.encrypt(this._cipher,t,r,o):rt.encrypt(this._cipher,t,r,o)}};var mt=class extends Wt{static{n(this,"Cipher")}constructor(t,r,o){super(Object.assign({blockSize:1},o)),this._xformMode=t,this._key=r,this.reset()}static _createHelper(t){return new cr(t)}static createDecryptor(t,r){let o=this;return new o(this._DEC_XFORM_MODE,t,r)}static createEncryptor(t,r){return new this(this._ENC_XFORM_MODE,t,r)}finalize(t){return t&&this._append(t),this._doFinalize()}process(t){return this._append(t),this._process()}};mt.ivSize=4;mt.keySize=4;mt._DEC_XFORM_MODE=2;mt._ENC_XFORM_MODE=1;var ot=class{static{n(this,"BlockCipherModeAlgorithm")}constructor(t,r){this.init(t,r)}init(t,r){this._cipher=t,this._iv=r}};var Ht=class{static{n(this,"BlockCipherMode")}static createDecryptor(t,r){let o=this.Decryptor;return new o(t,r)}static createEncryptor(t,r){let o=this.Encryptor;return new o(t,r)}};Ht.Decryptor=ot;Ht.Encryptor=ot;var hr=class extends ot{static{n(this,"CBCEncryptor")}get prevBlock(){return this._prevBlock}processBlock(t,r){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");this.xorBlock(t,r,this._cipher.cfg.blockSize),this._cipher.encryptBlock(t,r),this._prevBlock=t.slice(r,r+this._cipher.cfg.blockSize)}xorBlock(t,r,o){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<o;i++)t[r+i]^=s[i]}};var lr=class extends ot{static{n(this,"CBCDecryptor")}get prevBlock(){return this._prevBlock}processBlock(t,r){if(this._cipher.cfg.blockSize===void 0)throw new Error("missing blockSize in cipher config");let o=t.slice(r,r+this._cipher.cfg.blockSize);this._cipher.decryptBlock(t,r),this.xorBlock(t,r,this._cipher.cfg.blockSize),this._prevBlock=o}xorBlock(t,r,o){let s;this._iv?(s=this._iv,this._iv=void 0):s=this._prevBlock;for(let i=0;i<o;i++)t[r+i]^=s[i]}};var X=class extends Ht{static{n(this,"CBC")}};X.Decryptor=lr;X.Encryptor=hr;var gt=class{static{n(this,"PKCS7")}static pad(t,r){let o=r*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 r=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=r}};var qt=class extends mt{static{n(this,"BlockCipher")}constructor(t,r,o){super(t,r,Object.assign({blockSize:4,mode:X,padding:gt},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,r){this._mode.processBlock(t,r)}};var l=class U{static{n(this,"X64Word")}constructor(t,r){this.high=t,this.low=r}add(t){let r=this.low+t.low|0,o=r>>>0<this.low>>>0?1:0,s=this.high+t.high+o|0;return new U(s,r)}and(t){return new U(this.high&t.high,this.low&t.low)}not(){return new U(~this.high,~this.low)}or(t){return new U(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 U(this.high<<t|this.low>>>32-t,this.low<<t):new U(this.low<<t-32,0)}shiftR(t){return t<32?new U(this.high>>>t,this.low>>>t|this.high<<32-t):new U(0,this.high>>>t-32)}xor(t){return new U(this.high^t.high,this.low^t.low)}};var fr=class ve{static{n(this,"X64WordArray")}constructor(t=[],r){this.words=t,this.sigBytes=r!==void 0?r:t.length*8}static create(t=[],r){return new ve(t,r)}clone(){let t=this.words.map(r=>new l(r.high,r.low));return new ve(t,this.sigBytes)}toX32(){let t=[];for(let r of this.words)t.push(r.high,r.low);return new _(t,this.sigBytes)}};var P=[],pr=[],ur=[],dr=[],mr=[],gr=[],Oe=[],Re=[],Be=[],Te=[];(function(){let e=[];for(let o=0;o<256;o++)o<128?e[o]=o<<1:e[o]=o<<1^283;let t=0,r=0;for(let o=0;o<256;o++){let s=r^r<<1^r<<2^r<<3^r<<4;s=s>>>8^s&255^99,P[t]=s,pr[s]=t;let i=e[t],a=e[i],c=e[a],h=e[s]*257^s*16843008;ur[t]=h<<24|h>>>8,dr[t]=h<<16|h>>>16,mr[t]=h<<8|h>>>24,gr[t]=h,h=c*16843009^a*65537^i*257^t*16843008,Oe[s]=h<<24|h>>>8,Re[s]=h<<16|h>>>16,Be[s]=h<<8|h>>>24,Te[s]=h,t?(t=i^e[e[e[c^i]]],r^=e[e[r]]):t=r=1}})();var Ts=[0,1,2,4,8,16,32,64,128,27,54],Vt=class extends qt{static{n(this,"AES")}constructor(t,r,o){super(t,r,o),super.reset()}decryptBlock(t,r){let o=t[r+1];t[r+1]=t[r+3],t[r+3]=o,this._doCryptBlock(t,r,this._invKeySchedule,Oe,Re,Be,Te,pr),o=t[r+1],t[r+1]=t[r+3],t[r+3]=o}encryptBlock(t,r){this._doCryptBlock(t,r,this._keySchedule,ur,dr,mr,gr,P)}reset(){if(super.reset(),this._nRounds&&this._keyPriorReset===this._key)return;let t=this._keyPriorReset=this._key,r=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]=r[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^=Ts[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]=Oe[P[f>>>24]]^Re[P[f>>>16&255]]^Be[P[f>>>8&255]]^Te[P[f&255]]}}_doCryptBlock(t,r,o,s,i,a,c,h){let f=t[r]^o[0],g=t[r+1]^o[1],d=t[r+2]^o[2],m=t[r+3]^o[3],w=4;for(let v=1;v<this._nRounds;v++){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++],_e=s[m>>>24]^i[f>>>16&255]^a[g>>>8&255]^c[d&255]^o[w++];f=x,g=b,d=T,m=_e}let y=(h[f>>>24]<<24|h[g>>>16&255]<<16|h[d>>>8&255]<<8|h[m&255])^o[w++],E=(h[g>>>24]<<24|h[d>>>16&255]<<16|h[m>>>8&255]<<8|h[f&255])^o[w++],O=(h[d>>>24]<<24|h[m>>>16&255]<<16|h[f>>>8&255]<<8|h[g&255])^o[w++],R=(h[m>>>24]<<24|h[f>>>16&255]<<16|h[g>>>8&255]<<8|h[d&255])^o[w++];t[r]=y,t[r+1]=E,t[r+2]=O,t[r+3]=R}};Vt.keySize=256/32;var Is=[1732584193,4023233417,2562383102,271733878,3285377520],st=new Array(80),it=class extends I{static{n(this,"SHA1")}get hash(){return this._hash}reset(){super.reset(),this._hash=new _(Is.slice(0))}_doFinalize(){let t=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(r+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,r){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)st[h]=t[r+h]|0;else{let m=st[h-3]^st[h-8]^st[h-14]^st[h-16];st[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+st[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 _r=[],wr=[];(function(){function e(s){let i=Math.sqrt(s);for(let a=2;a<=i;a++)if(!(s%a))return!1;return!0}n(e,"isPrime");function t(s){return(s-(s|0))*4294967296|0}n(t,"getFractionalBits");let r=2,o=0;for(;o<64;)e(r)&&(o<8&&(_r[o]=t(Math.pow(r,1/2))),wr[o]=t(Math.pow(r,1/3)),o++),r++})();var nt=[],jt=class extends I{static{n(this,"SHA256")}constructor(){super()}reset(){super.reset(),this._hash=new _(_r.slice(0))}_doFinalize(){let t=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(r+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,r){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)nt[d]=t[r+d]|0;else{let v=nt[d-15],x=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,b=nt[d-2],T=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;nt[d]=x+nt[d-7]+T+nt[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),E=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),O=g+E+m+wr[d]+nt[d],R=y+w;g=f,f=h,h=c,c=a+O|0,a=i,i=s,s=o,o=O+R|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 Ie=[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)],M=[];(function(){for(let e=0;e<80;e++)M[e]=new l(void 0,void 0)})();var Ce=class extends I{static{n(this,"SHA512")}constructor(){super({blockSize:1024/32})}reset(){super.reset(),this._hash=new fr([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,r=t.words,o=this._nDataBytes*8,s=t.sigBytes*8;return r[s>>>5]|=128<<24-s%32,r[(s+128>>>10<<5)+30]=Math.floor(o/4294967296),r[(s+128>>>10<<5)+31]=o,t.sigBytes=r.length*4,this._process(),this._hash.toX32()}_doProcessBlock(t,r){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,E=this._hash.words[6].high,O=this._hash.words[6].low,R=this._hash.words[7].high,v=this._hash.words[7].low;for(let x=0;x<80;x++){let b,T;if(x<16)T=M[x].high=t[r+x*2]|0,b=M[x].low=t[r+x*2+1]|0;else{let Qe=M[x-15],ft=Qe.high,Rt=Qe.low,ws=(ft>>>1|Rt<<31)^(ft>>>8|Rt<<24)^ft>>>7,tr=(Rt>>>1|ft<<31)^(Rt>>>8|ft<<24)^(Rt>>>7|ft<<25),er=M[x-2],pt=er.high,Bt=er.low,ys=(pt>>>19|Bt<<13)^(pt<<3|Bt>>>29)^pt>>>6,rr=(Bt>>>19|pt<<13)^(Bt<<3|pt>>>29)^(Bt>>>6|pt<<26);b=tr+M[x-7].low,T=ws+M[x-7].high+(b>>>0<tr>>>0?1:0),b=b+rr,T=T+ys+(b>>>0<rr>>>0?1:0),b=b+M[x-16].low,T=T+M[x-16].high+(b>>>0<M[x-16].low>>>0?1:0),M[x].high=T,M[x].low=b}let _e=d&w^~d&E,Ze=m&y^~m&O,ps=o&i^o&c^i&c,us=s&a^s&h^a&h,ds=(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),ms=(d>>>14|m<<18)^(d>>>18|m<<14)^(d<<23|m>>>9),gs=(m>>>14|d<<18)^(m>>>18|d<<14)^(m<<23|d>>>9),D=v+gs,H=R+ms+(D>>>0<v>>>0?1:0);D=D+Ze,H=H+_e+(D>>>0<Ze>>>0?1:0),D=D+Ie[x].low,H=H+Ie[x].high+(D>>>0<Ie[x].low>>>0?1:0),D=D+b,H=H+T+(D>>>0<b>>>0?1:0);let Ye=Je+us,_s=ds+ps+(Ye>>>0<Je>>>0?1:0);R=E,v=O,E=w,O=y,w=d,y=m,m=g+D|0,d=f+H+(m>>>0<g>>>0?1:0)|0,f=c,g=h,c=i,h=a,i=o,a=s,s=D+Ye|0,o=H+_s+(s>>>0<D>>>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+O,this._hash.words[6].high=this._hash.words[6].high+E+(this._hash.words[6].low>>>0<O>>>0?1:0),this._hash.words[7].low=this._hash.words[7].low=this._hash.words[7].low+v,this._hash.words[7].high=this._hash.words[7].high+R+(this._hash.words[7].low>>>0<v>>>0?1:0)}};var yr=class{static{n(this,"HMAC")}constructor(t,r){this._hasher=new t;let o=typeof r=="string"?C.parse(r):r,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 r=this._hasher.finalize(t);return this._hasher.reset(),this._hasher.finalize(this._oKey.clone().concat(r))}reset(){this._hasher.reset(),this._hasher.update(this._iKey)}update(t){return this._hasher.update(t),this}};var Pe=class xr{static{n(this,"PBKDF2")}constructor(t){this.cfg=Object.assign({keySize:128/32,hasher:jt,iterations:25e4},t)}static execute(t,r,o){return new xr(o).compute(t,r)}compute(t,r){let o=this.cfg,s=new yr(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(r).finalize(a);s.reset();let m=d.words,w=m.length,y=d;for(let E=1;E<g;E++){y=s.finalize(y),s.reset();let O=y.words;for(let R=0;R<w;R++)m[R]^=O[R]}i.concat(d),h[0]++}return i.sigBytes=f*4,i}};var Dt=qt._createHelper(Vt);var Xt=n(function(){let e=Date.now().toString(36),t=globalThis.crypto;if(t?.getRandomValues){let r=new Uint8Array(8);t.getRandomValues(r);let o="";for(let s=0;s<r.length;s++){let i=r[s].toString(16);o+=i.length===1?"0"+i:i}return e+"-"+o}return e+"-"+Math.random().toString(36).slice(2,10)},"correlationIdHelper");var _t=I._createHelper(k);var wt=I._createHelper(it);var Zt=I._createHelper(jt);var Jt=I._createHelper(Ce);var at=class{static{n(this,"SmpCrypto")}static base64Decode(t){return C.stringify(z.parse(t))}static base64Encode(t){return z.stringify(C.parse(t))}static generateCorrelationId(){return Xt()}static md5(t){return _t(t).toString()}static sha1(t){return wt(t).toString()}static sha256(t){return Zt(t).toString()}static sha512(t){return Jt(t).toString()}};var Nt=class extends tt{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,r){this._staticSelf._storage.set(t,r)}};var je=class{static{n(this,"SmpHttpTwoService")}static _cacheStrategy=typeof sessionStorage<"u"?new Ct:new Nt;static _errorClass=L;static _mergeParamsFallbackBaseUrl="https://uc-api-nest-common-fe";static _running=new Map;static $http(t){return this._generateAjax(t)}static async _generateAjax(t){let r=this._generateCacheKey(t),o=+(t.ttl||0)>0;if(o){let a=this._cacheStrategy.read(r);if(a)return Promise.resolve(a)}let s=this._running.get(r);if(s)return s;let i=this._generateAjaxBase(t).then(a=>(o&&this._cacheStrategy.write(r,a,t.ttl),a)).finally(()=>{this._running.delete(r)});return this._running.set(r,i),i}static async _generateAjaxBase(t){let r=await this._preprocessRequest(t),o={method:r.method,headers:new Headers({"content-type":"application/json",...r.headers}),body:r.body?JSON.stringify(r.body):null};return r.useCredentials&&(o.credentials="include"),r.url=this.mergeQueryParams(r.url,r.queryParams),fetch(r.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(r.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,r){if(!r||Object.keys(r).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()),...r},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 r=`${t.method}:${t.url}`;return t.queryParams&&Object.keys(t.queryParams).length>0&&(r+=`:${at.md5(JSON.stringify(t.queryParams))}`),t.body&&Object.keys(t.body).length>0?`${r}:${at.md5(JSON.stringify(t.body))}`:r}static async _preprocessRequest(t){return t}static async _preprocessResponse(t,r){return r}};var br=require("@tonysamperi/logger");var De=class{static{n(this,"SmpApiCommonUtils")}static _javascriptVariablePattern="[a-zA-Z_$][a-zA-Z_$0-9]*";static _logger=new br.SmpLoggerMethods;static _pathParamRegex=new RegExp(`\\{(${this._javascriptVariablePattern})\\}`,"g");static credentialsToBasicAuth(t,r){return`Basic ${Buffer.from(`${t}:${r}`).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,r){try{return t.replace(this._pathParamRegex,(o,s)=>{let i=r[s];return i!==void 0?encodeURIComponent(i):o})}catch(o){this._logger.warn(`${this.constructor.name}: couldn't interpolate params`,o)}return t}};var Cs={status:"OK"};var Ne=(function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e})({});var Me=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,r,o){this._access_token=t,this._exp=r,this._iss=o}serialize(){return{access_token:this._access_token,exp:this._exp,iss:this._iss}}};var Fe=class{static{n(this,"SmpBaseJwtTokenPlain")}access_token;exp;iss};var Ps=(function(e){return e.APPLE="APPLE",e.FACEBOOK="FACEBOOK",e.GOOGLE="GOOGLE",e})({});var js=(function(e){return e.POPUP="POPUP",e.REDIRECT="REDIRECT",e})({});var yt=class{static{n(this,"SmpAesCrypt")}_password;_salt;_initVector;_iv;_key;_mode=X;_padding=gt;constructor(t,r,o){this._password=t,this._salt=r,this._initVector=o,this._iv=this._initVector?V.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(t){return Dt.decrypt(t,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(C)}encryptAES(t){return Dt.encrypt(t,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return Pe.execute(this._password,V.parse(this._salt),{keySize:256/32,iterations:1e3,hasher:it})}};var Yt=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,r){if(new this(t).secureCode!==r)throw L.create({messages:"WRONG_SECURE_CODE",errorCode:"WRONG_SECURE_CODE",status:xe.BadRequest})}_encode(){let t=new k;return t.update(C.parse(this._seed+this._baseCode)),t.finalize().toString(V).substring(0,this._crcLength).toUpperCase()}};var Ds=(function(e){return e.DIFFERENT_CREDENTIAL="auth/account-exists-with-different-credential",e.DIFFERENT_CREDENTIAL_APPLE="auth/account-exists-with-different-credential/apple",e.DIFFERENT_CREDENTIAL_FACEBOOK="auth/account-exists-with-different-credential/facebook",e.DIFFERENT_CREDENTIAL_GOOGLE="auth/account-exists-with-different-credential/google",e.EMAIL_EXISTS="auth/email-already-exists",e.INVALID_ACTION_CODE="auth/invalid-action-code",e.POPUP_BLOCKED="auth/popup-blocked",e.POPUP_CLOSED_BY_USER="auth/popup-closed-by-user",e.USER_NOT_FOUND="auth/user-not-found",e.WRONG_PASSWORD="auth/wrong-password",e})({});var xt=require("class-transformer"),Qt=require("ts-luxon");var j=(function(e){return e.ACTIVATE="ACTIVATE",e.BLOCK="BLOCK",e.CHECK="CHECK",e.DIGITAL_ACTIVATE="DIGITAL_ACTIVATE",e.FREEZE="FREEZE",e.PURCHASE="PURCHASE",e.RECHARGE="RECHARGE",e.ROLLBACK="ROLLBACK",e.TRANSACTION="TRANSACTION",e.TRANSACTION_DETAIL="TRANSACTION_DETAIL",e.UNFREEZE="UNFREEZE",e.XREFUND="XREFUND",e})({});var ct=(function(e){return e.MD5="MD5",e.MD5_HMAC="MD5_HMAC",e.SHA1="SHA1",e.SHA1_HMAC="SHA1_HMAC",e})({});function Ns(e,t,r,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i}n(Ns,"_ts_decorate");function Ar(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ar,"_ts_metadata");var te=class e{static{n(this,"SmpGiftcardTransaction")}gc;op;ot;static _AES_ENCODER=new yt("changeme","5f6eae61d2428b99","d92fbf214e16a79fd36f9a5185ae733f");static _OP_CODES={[j.CHECK]:"",[j.TRANSACTION]:"",[j.TRANSACTION_DETAIL]:"",[j.ACTIVATE]:"A",[j.BLOCK]:"B",[j.DIGITAL_ACTIVATE]:"D",[j.FREEZE]:"F",[j.PURCHASE]:"P",[j.RECHARGE]:"G",[j.ROLLBACK]:"R",[j.UNFREEZE]:"U",[j.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={[ct.MD5]:t=>_t(t),[ct.MD5_HMAC]:t=>{let r=new k;return r.update(C.parse(t)),r.finalize()},[ct.SHA1]:t=>wt(t),[ct.SHA1_HMAC]:t=>{let r=new it;return r.update(C.parse(t)),r.finalize()}};_hashStrategy=this._hashStrategies[ct.MD5];constructor(t="ACTIVATION",r,o,s){this.gc=t,this.op=r,this.ot=o,this._dto=typeof s=="number"&&s>=0?Qt.DateTime.fromMillis(+`${s}000`.slice(0,13)):Qt.DateTime.local()}static build({gc:t,op:r,ot:o,dto:s}){return new this(t,r,o,s?.ts)}static explode(t){let r=this.constructor,o=(t||"").split(r._SEP);if(o.length<4)throw new Error(`${this.constructor.name}::explode: invalid transactionId provided => "${t}"`);return this.build({gc:o[1],op:r.prefixToOperation(o[2]),dto:Qt.DateTime.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 r=this._AES_ENCODER.decryptAES(t),o=JSON.parse(r);return(0,xt.plainToInstance)(e,o)}else return this.explode(t)}catch(r){throw console.error(`${this.constructor.name}::parse: failed to parse ${t}`,r),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(0,xt.instanceToPlain)(this,{excludePrefixes:["_"]})}toString(){let t=JSON.stringify(this.serialize());return this.constructor._AES_ENCODER.encryptAES(t)}};Ns([(0,xt.Expose)(),Ar("design:type",Number),Ar("design:paramtypes",[])],te.prototype,"ts",null);var Ms=(function(e){return e.ListDetectiveValidator="ListDetectiveValidator",e.MXValidator="MXValidator",e.SyntaxValidator="SyntaxValidator",e})({});function Fs(e,t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&(o in e.prototype||Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o)))});try{let o=new r;Object.getOwnPropertyNames(o).forEach(s=>{s in e.prototype||Object.defineProperty(e.prototype,s,Object.getOwnPropertyDescriptor(o,s))})}catch{}Object.getOwnPropertyNames(r).forEach(o=>{o!=="prototype"&&o!=="name"&&o!=="length"&&(o in e||Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o)))})})}n(Fs,"smpApplyMixin");function Ls(){this.__data__=[],this.size=0}n(Ls,"listCacheClear");var Er=Ls;function Us(e,t){return e===t||e!==e&&t!==t}n(Us,"eq");var ee=Us;function zs(e,t){for(var r=e.length;r--;)if(ee(e[r][0],t))return r;return-1}n(zs,"assocIndexOf");var Z=zs;var ks=Array.prototype,$s=ks.splice;function Gs(e){var t=this.__data__,r=Z(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():$s.call(t,r,1),--this.size,!0}n(Gs,"listCacheDelete");var vr=Gs;function Ws(e){var t=this.__data__,r=Z(t,e);return r<0?void 0:t[r][1]}n(Ws,"listCacheGet");var Or=Ws;function Ks(e){return Z(this.__data__,e)>-1}n(Ks,"listCacheHas");var Rr=Ks;function Ss(e,t){var r=this.__data__,o=Z(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}n(Ss,"listCacheSet");var Br=Ss;function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}n(bt,"ListCache");bt.prototype.clear=Er;bt.prototype.delete=vr;bt.prototype.get=Or;bt.prototype.has=Rr;bt.prototype.set=Br;var J=bt;function Hs(){this.__data__=new J,this.size=0}n(Hs,"stackClear");var Tr=Hs;function qs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}n(qs,"stackDelete");var Ir=qs;function Vs(e){return this.__data__.get(e)}n(Vs,"stackGet");var Cr=Vs;function Xs(e){return this.__data__.has(e)}n(Xs,"stackHas");var Pr=Xs;var Zs=typeof global=="object"&&global&&global.Object===Object&&global,re=Zs;var Js=typeof self=="object"&&self&&self.Object===Object&&self,Ys=re||Js||Function("return this")(),B=Ys;var Qs=B.Symbol,$=Qs;var jr=Object.prototype,ti=jr.hasOwnProperty,ei=jr.toString,Mt=$?$.toStringTag:void 0;function ri(e){var t=ti.call(e,Mt),r=e[Mt];try{e[Mt]=void 0;var o=!0}catch{}var s=ei.call(e);return o&&(t?e[Mt]=r:delete e[Mt]),s}n(ri,"getRawTag");var Dr=ri;var oi=Object.prototype,si=oi.toString;function ii(e){return si.call(e)}n(ii,"objectToString");var Nr=ii;var ni="[object Null]",ai="[object Undefined]",Mr=$?$.toStringTag:void 0;function ci(e){return e==null?e===void 0?ai:ni:Mr&&Mr in Object(e)?Dr(e):Nr(e)}n(ci,"baseGetTag");var G=ci;function hi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}n(hi,"isObject");var oe=hi;var li="[object AsyncFunction]",fi="[object Function]",pi="[object GeneratorFunction]",ui="[object Proxy]";function di(e){if(!oe(e))return!1;var t=G(e);return t==fi||t==pi||t==li||t==ui}n(di,"isFunction");var se=di;var mi=B["__core-js_shared__"],ie=mi;var Fr=(function(){var e=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function gi(e){return!!Fr&&Fr in e}n(gi,"isMasked");var Lr=gi;var _i=Function.prototype,wi=_i.toString;function yi(e){if(e!=null){try{return wi.call(e)}catch{}try{return e+""}catch{}}return""}n(yi,"toSource");var W=yi;var xi=/[\\^$.*+?()[\]{}|]/g,bi=/^\[object .+?Constructor\]$/,Ai=Function.prototype,Ei=Object.prototype,vi=Ai.toString,Oi=Ei.hasOwnProperty,Ri=RegExp("^"+vi.call(Oi).replace(xi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bi(e){if(!oe(e)||Lr(e))return!1;var t=se(e)?Ri:bi;return t.test(W(e))}n(Bi,"baseIsNative");var Ur=Bi;function Ti(e,t){return e?.[t]}n(Ti,"getValue");var zr=Ti;function Ii(e,t){var r=zr(e,t);return Ur(r)?r:void 0}n(Ii,"getNative");var F=Ii;var Ci=F(B,"Map"),Y=Ci;var Pi=F(Object,"create"),K=Pi;function ji(){this.__data__=K?K(null):{},this.size=0}n(ji,"hashClear");var kr=ji;function Di(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}n(Di,"hashDelete");var $r=Di;var Ni="__lodash_hash_undefined__",Mi=Object.prototype,Fi=Mi.hasOwnProperty;function Li(e){var t=this.__data__;if(K){var r=t[e];return r===Ni?void 0:r}return Fi.call(t,e)?t[e]:void 0}n(Li,"hashGet");var Gr=Li;var Ui=Object.prototype,zi=Ui.hasOwnProperty;function ki(e){var t=this.__data__;return K?t[e]!==void 0:zi.call(t,e)}n(ki,"hashHas");var Wr=ki;var $i="__lodash_hash_undefined__";function Gi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&t===void 0?$i:t,this}n(Gi,"hashSet");var Kr=Gi;function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}n(At,"Hash");At.prototype.clear=kr;At.prototype.delete=$r;At.prototype.get=Gr;At.prototype.has=Wr;At.prototype.set=Kr;var Le=At;function Wi(){this.size=0,this.__data__={hash:new Le,map:new(Y||J),string:new Le}}n(Wi,"mapCacheClear");var Sr=Wi;function Ki(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}n(Ki,"isKeyable");var Hr=Ki;function Si(e,t){var r=e.__data__;return Hr(t)?r[typeof t=="string"?"string":"hash"]:r.map}n(Si,"getMapData");var Q=Si;function Hi(e){var t=Q(this,e).delete(e);return this.size-=t?1:0,t}n(Hi,"mapCacheDelete");var qr=Hi;function qi(e){return Q(this,e).get(e)}n(qi,"mapCacheGet");var Vr=qi;function Vi(e){return Q(this,e).has(e)}n(Vi,"mapCacheHas");var Xr=Vi;function Xi(e,t){var r=Q(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}n(Xi,"mapCacheSet");var Zr=Xi;function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}n(Et,"MapCache");Et.prototype.clear=Sr;Et.prototype.delete=qr;Et.prototype.get=Vr;Et.prototype.has=Xr;Et.prototype.set=Zr;var ne=Et;var Zi=200;function Ji(e,t){var r=this.__data__;if(r instanceof J){var o=r.__data__;if(!Y||o.length<Zi-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new ne(o)}return r.set(e,t),this.size=r.size,this}n(Ji,"stackSet");var Jr=Ji;function vt(e){var t=this.__data__=new J(e);this.size=t.size}n(vt,"Stack");vt.prototype.clear=Tr;vt.prototype.delete=Ir;vt.prototype.get=Cr;vt.prototype.has=Pr;vt.prototype.set=Jr;var ae=vt;var Yi="__lodash_hash_undefined__";function Qi(e){return this.__data__.set(e,Yi),this}n(Qi,"setCacheAdd");var Yr=Qi;function tn(e){return this.__data__.has(e)}n(tn,"setCacheHas");var Qr=tn;function ce(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ne;++t<r;)this.add(e[t])}n(ce,"SetCache");ce.prototype.add=ce.prototype.push=Yr;ce.prototype.has=Qr;var to=ce;function en(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}n(en,"arraySome");var eo=en;function rn(e,t){return e.has(t)}n(rn,"cacheHas");var ro=rn;var on=1,sn=2;function nn(e,t,r,o,s,i){var a=r&on,c=e.length,h=t.length;if(c!=h&&!(a&&h>c))return!1;var f=i.get(e),g=i.get(t);if(f&&g)return f==t&&g==e;var d=-1,m=!0,w=r&sn?new to:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var y=e[d],E=t[d];if(o)var O=a?o(E,y,d,t,e,i):o(y,E,d,e,t,i);if(O!==void 0){if(O)continue;m=!1;break}if(w){if(!eo(t,function(R,v){if(!ro(w,v)&&(y===R||s(y,R,r,o,i)))return w.push(v)})){m=!1;break}}else if(!(y===E||s(y,E,r,o,i))){m=!1;break}}return i.delete(e),i.delete(t),m}n(nn,"equalArrays");var he=nn;var an=B.Uint8Array,Ue=an;function cn(e){var t=-1,r=Array(e.size);return e.forEach(function(o,s){r[++t]=[s,o]}),r}n(cn,"mapToArray");var oo=cn;function hn(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}n(hn,"setToArray");var so=hn;var ln=1,fn=2,pn="[object Boolean]",un="[object Date]",dn="[object Error]",mn="[object Map]",gn="[object Number]",_n="[object RegExp]",wn="[object Set]",yn="[object String]",xn="[object Symbol]",bn="[object ArrayBuffer]",An="[object DataView]",io=$?$.prototype:void 0,ze=io?io.valueOf:void 0;function En(e,t,r,o,s,i,a){switch(r){case An:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case bn:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case pn:case un:case gn:return ee(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case _n:case yn:return e==t+"";case mn:var c=oo;case wn:var h=o&ln;if(c||(c=so),e.size!=t.size&&!h)return!1;var f=a.get(e);if(f)return f==t;o|=fn,a.set(e,t);var g=he(c(e),c(t),o,s,i,a);return a.delete(e),g;case xn:if(ze)return ze.call(e)==ze.call(t)}return!1}n(En,"equalByTag");var no=En;function vn(e,t){for(var r=-1,o=t.length,s=e.length;++r<o;)e[s+r]=t[r];return e}n(vn,"arrayPush");var ao=vn;var On=Array.isArray,ht=On;function Rn(e,t,r){var o=t(e);return ht(e)?o:ao(o,r(e))}n(Rn,"baseGetAllKeys");var co=Rn;function Bn(e,t){for(var r=-1,o=e==null?0:e.length,s=0,i=[];++r<o;){var a=e[r];t(a,r,e)&&(i[s++]=a)}return i}n(Bn,"arrayFilter");var ho=Bn;function Tn(){return[]}n(Tn,"stubArray");var lo=Tn;var In=Object.prototype,Cn=In.propertyIsEnumerable,fo=Object.getOwnPropertySymbols,Pn=fo?function(e){return e==null?[]:(e=Object(e),ho(fo(e),function(t){return Cn.call(e,t)}))}:lo,po=Pn;function jn(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}n(jn,"baseTimes");var uo=jn;function Dn(e){return e!=null&&typeof e=="object"}n(Dn,"isObjectLike");var S=Dn;var Nn="[object Arguments]";function Mn(e){return S(e)&&G(e)==Nn}n(Mn,"baseIsArguments");var ke=Mn;var mo=Object.prototype,Fn=mo.hasOwnProperty,Ln=mo.propertyIsEnumerable,Un=ke((function(){return arguments})())?ke:function(e){return S(e)&&Fn.call(e,"callee")&&!Ln.call(e,"callee")},go=Un;function zn(){return!1}n(zn,"stubFalse");var _o=zn;var xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wo=xo&&typeof module=="object"&&module&&!module.nodeType&&module,kn=wo&&wo.exports===xo,yo=kn?B.Buffer:void 0,$n=yo?yo.isBuffer:void 0,Gn=$n||_o,Ft=Gn;var Wn=9007199254740991,Kn=/^(?:0|[1-9]\d*)$/;function Sn(e,t){var r=typeof e;return t=t??Wn,!!t&&(r=="number"||r!="symbol"&&Kn.test(e))&&e>-1&&e%1==0&&e<t}n(Sn,"isIndex");var bo=Sn;var Hn=9007199254740991;function qn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hn}n(qn,"isLength");var le=qn;var Vn="[object Arguments]",Xn="[object Array]",Zn="[object Boolean]",Jn="[object Date]",Yn="[object Error]",Qn="[object Function]",ta="[object Map]",ea="[object Number]",ra="[object Object]",oa="[object RegExp]",sa="[object Set]",ia="[object String]",na="[object WeakMap]",aa="[object ArrayBuffer]",ca="[object DataView]",ha="[object Float32Array]",la="[object Float64Array]",fa="[object Int8Array]",pa="[object Int16Array]",ua="[object Int32Array]",da="[object Uint8Array]",ma="[object Uint8ClampedArray]",ga="[object Uint16Array]",_a="[object Uint32Array]",A={};A[ha]=A[la]=A[fa]=A[pa]=A[ua]=A[da]=A[ma]=A[ga]=A[_a]=!0;A[Vn]=A[Xn]=A[aa]=A[Zn]=A[ca]=A[Jn]=A[Yn]=A[Qn]=A[ta]=A[ea]=A[ra]=A[oa]=A[sa]=A[ia]=A[na]=!1;function wa(e){return S(e)&&le(e.length)&&!!A[G(e)]}n(wa,"baseIsTypedArray");var Ao=wa;function ya(e){return function(t){return e(t)}}n(ya,"baseUnary");var Eo=ya;var vo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lt=vo&&typeof module=="object"&&module&&!module.nodeType&&module,xa=Lt&&Lt.exports===vo,$e=xa&&re.process,ba=(function(){try{var e=Lt&&Lt.require&&Lt.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch{}})(),Ge=ba;var Oo=Ge&&Ge.isTypedArray,Aa=Oo?Eo(Oo):Ao,fe=Aa;var Ea=Object.prototype,va=Ea.hasOwnProperty;function Oa(e,t){var r=ht(e),o=!r&&go(e),s=!r&&!o&&Ft(e),i=!r&&!o&&!s&&fe(e),a=r||o||s||i,c=a?uo(e.length,String):[],h=c.length;for(var f in e)(t||va.call(e,f))&&!(a&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||bo(f,h)))&&c.push(f);return c}n(Oa,"arrayLikeKeys");var Ro=Oa;var Ra=Object.prototype;function Ba(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ra;return e===r}n(Ba,"isPrototype");var Bo=Ba;function Ta(e,t){return function(r){return e(t(r))}}n(Ta,"overArg");var To=Ta;var Ia=To(Object.keys,Object),Io=Ia;var Ca=Object.prototype,Pa=Ca.hasOwnProperty;function ja(e){if(!Bo(e))return Io(e);var t=[];for(var r in Object(e))Pa.call(e,r)&&r!="constructor"&&t.push(r);return t}n(ja,"baseKeys");var Co=ja;function Da(e){return e!=null&&le(e.length)&&!se(e)}n(Da,"isArrayLike");var Po=Da;function Na(e){return Po(e)?Ro(e):Co(e)}n(Na,"keys");var jo=Na;function Ma(e){return co(e,jo,po)}n(Ma,"getAllKeys");var We=Ma;var Fa=1,La=Object.prototype,Ua=La.hasOwnProperty;function za(e,t,r,o,s,i){var a=r&Fa,c=We(e),h=c.length,f=We(t),g=f.length;if(h!=g&&!a)return!1;for(var d=h;d--;){var m=c[d];if(!(a?m in t:Ua.call(t,m)))return!1}var w=i.get(e),y=i.get(t);if(w&&y)return w==t&&y==e;var E=!0;i.set(e,t),i.set(t,e);for(var O=a;++d<h;){m=c[d];var R=e[m],v=t[m];if(o)var x=a?o(v,R,m,t,e,i):o(R,v,m,e,t,i);if(!(x===void 0?R===v||s(R,v,r,o,i):x)){E=!1;break}O||(O=m=="constructor")}if(E&&!O){var b=e.constructor,T=t.constructor;b!=T&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof T=="function"&&T instanceof T)&&(E=!1)}return i.delete(e),i.delete(t),E}n(za,"equalObjects");var Do=za;var ka=F(B,"DataView"),pe=ka;var $a=F(B,"Promise"),ue=$a;var Ga=F(B,"Set"),de=Ga;var Wa=F(B,"WeakMap"),me=Wa;var No="[object Map]",Ka="[object Object]",Mo="[object Promise]",Fo="[object Set]",Lo="[object WeakMap]",Uo="[object DataView]",Sa=W(pe),Ha=W(Y),qa=W(ue),Va=W(de),Xa=W(me),lt=G;(pe&<(new pe(new ArrayBuffer(1)))!=Uo||Y&<(new Y)!=No||ue&<(ue.resolve())!=Mo||de&<(new de)!=Fo||me&<(new me)!=Lo)&&(lt=n(function(e){var t=G(e),r=t==Ka?e.constructor:void 0,o=r?W(r):"";if(o)switch(o){case Sa:return Uo;case Ha:return No;case qa:return Mo;case Va:return Fo;case Xa:return Lo}return t},"getTag"));var Ke=lt;var Za=1,zo="[object Arguments]",ko="[object Array]",ge="[object Object]",Ja=Object.prototype,$o=Ja.hasOwnProperty;function Ya(e,t,r,o,s,i){var a=ht(e),c=ht(t),h=a?ko:Ke(e),f=c?ko:Ke(t);h=h==zo?ge:h,f=f==zo?ge:f;var g=h==ge,d=f==ge,m=h==f;if(m&&Ft(e)){if(!Ft(t))return!1;a=!0,g=!1}if(m&&!g)return i||(i=new ae),a||fe(e)?he(e,t,r,o,s,i):no(e,t,h,r,o,s,i);if(!(r&Za)){var w=g&&$o.call(e,"__wrapped__"),y=d&&$o.call(t,"__wrapped__");if(w||y){var E=w?e.value():e,O=y?t.value():t;return i||(i=new ae),s(E,O,r,o,i)}}return m?(i||(i=new ae),Do(e,t,r,o,s,i)):!1}n(Ya,"baseIsEqualDeep");var Go=Ya;function Wo(e,t,r,o,s){return e===t?!0:e==null||t==null||!S(e)&&!S(t)?e!==e&&t!==t:Go(e,t,r,o,Wo,s)}n(Wo,"baseIsEqual");var Ko=Wo;function Qa(e,t){return Ko(e,t)}n(Qa,"isEqual");var So=Qa;var tc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ho(e){return e.match(tc)}n(Ho,"smpAsciiWords");var Yo="\\ud800-\\udfff",ec="\\u0300-\\u036f",rc="\\ufe20-\\ufe2f",oc="\\u20d0-\\u20ff",sc="\\u1ab0-\\u1aff",ic="\\u1dc0-\\u1dff",nc=ec+rc+oc+sc+ic,Qo="\\u2700-\\u27bf",ts="a-z\\xdf-\\xf6\\xf8-\\xff",ac="\\xac\\xb1\\xd7\\xf7",cc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hc="\\u2000-\\u206f",lc=" \\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",es="A-Z\\xc0-\\xd6\\xd8-\\xde",fc="\\ufe0e\\ufe0f",rs=ac+cc+hc+lc,os="['\u2019]",qo=`[${rs}]`,pc=`[${nc}]`,ss="\\d",uc=`[${Qo}]`,is=`[${ts}]`,ns=`[^${Yo}${rs+ss+Qo+ts+es}]`,dc="\\ud83c[\\udffb-\\udfff]",mc=`(?:${pc}|${dc})`,gc=`[^${Yo}]`,as="(?:\\ud83c[\\udde6-\\uddff]){2}",cs="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot=`[${es}]`,_c="\\u200d",Vo=`(?:${is}|${ns})`,wc=`(?:${Ot}|${ns})`,Xo=`(?:${os}(?:d|ll|m|re|s|t|ve))?`,Zo=`(?:${os}(?:D|LL|M|RE|S|T|VE))?`,hs=`${mc}?`,ls=`[${fc}]?`,yc=`(?:${_c}(?:${[gc,as,cs].join("|")})${ls+hs})*`,xc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ac=ls+hs+yc,Jo=`(?:${[uc,as,cs].join("|")})${Ac}`,Ut=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([`${Ot}?${is}+${Xo}(?=${[qo,Ot,"$"].join("|")})`,`${wc}+${Zo}(?=${[qo,Ot+Vo,"$"].join("|")})`,`${Ot}?${Vo}+${Xo}`,`${Ot}+${Zo}`,bc,xc,`${ss}+`,Jo].join("|"),"g");static RS_EMOJI=Jo;static unicodeWords(t){return t.match(this.RE_UNICODE_WORDS)}};var Se=class{static{n(this,"SmpCommonUtils")}static arrayRemove(t,r){let o=[],s=t.filter((i,a)=>r(i,a)&&o.push(a));return o.reverse().forEach(i=>t.splice(i,1)),s}static assertIsArray(t,r){if(!Array.isArray(t))throw new Error(r||`${this.constructor.name} => val was not an array`)}static assertIsBoolean(t,r){if(!this.isBoolean(t))throw new Error(r||`${this.constructor.name} => val was not boolean`)}static assertIsFunction(t,r){if(!this.isFunction(t))throw new Error(r||`${this.constructor.name} => entity was not a function`)}static assertIsInstance(t,r,o){if(!(t instanceof r))throw new Error(o||`${this.constructor.name} => val was not instance of class`)}static assertIsNotEmpty(t,r){if(this.isEmpty(t))throw new Error(r||`${this.constructor.name} => entity was empty`)}static assertIsNumber(t,r){if(typeof t!="number")throw new Error(r||`${this.constructor.name} => val was not numeric`)}static assertIsNumeric(t,r){if(!this.isNumeric(t))throw new Error(r||`${this.constructor.name} => val was not numeric`)}static assertIsObject(t,r){if(!this.isObject(t))throw new Error(r||`${this.constructor.name} => val was not an object`)}static assertIsString(t,r){if(!this.isString(t))throw new Error(r||`${this.constructor.name} => val was not a string`)}static assertIsTruthy(t,r){if(!t)throw new Error(r||`${this.constructor.name} => condition wasn't truthy`)}static buildPath(...t){let r=t.filter(o=>!!o).join("/").replace(/(?<!:)\/\/+/g,"/");return r.startsWith("http")&&!r.endsWith("/")?`${r}/`:r}static downloadBlob(t,r){let o=window.URL.createObjectURL(t),s=document.createElement("a");s.href=o,s.setAttribute("download",r),document.body.appendChild(s),s.click()}static fixDecimalPrecision(t,r=2){this.assertIsNumber(t),this.assertIsNumber(r);let s=10**Math.max(0,Math.trunc(r));return Math.round((t+Number.EPSILON)*s)/s}static generateRandomHexString(t=12){let r="0123456789abcdef",o="";for(let s=0;s<t;s++){let i=Math.floor(Math.random()*r.length);o+=r[i]}return o}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}static getDecimalPrecision(t){if(this.assertIsNumeric(t),!isFinite(+t))return 0;let r=1,o=0;for(;Math.round(+t*r)/r!==t;)r*=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 r=new Option().style;return r.color=t,r.color!==""}static isEmpty(t){return!t&&t!==0}static isEqual(t,r){return So(t,r)}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 r=this.getType(t);return r!=="function"&&(r!=="object"||!t)}static isString(t){return typeof t=="string"}static isWindows(){return navigator.userAgent.toLowerCase().includes("win")}static mapObject(t,r){if(this.assertIsFunction(r,`CommonUtils => expected type of iteratee to be Function, got ${typeof r}`),this.isObject(t))return Object.entries(t).reduce((o,[s,i])=>(o.push(r(i,s)),o),[]);if(Array.isArray(t))return t.map(r);throw new Error(`CommonUtils => invalid object provided. Expected Object or Array, got ${typeof r}`)}static mapObjectKeys(t,r){return this.isObject(t)?Object.entries(t).reduce((o,[s,i])=>{let a=r(s,i);return o[a]=i,o},{}):{}}static mapObjectValues(t,r){return this.isObject(t)?Object.entries(t).reduce((o,[s,i])=>(o[s]=r.call(null,i,s),o),{}):{}}static noop(){}static objectHasValue(t,r){return!!~Object.values(t).filter(o=>this.isEqual(o,r))}static omit(t,r){return Object.keys(t).filter(s=>!r.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(r){console.warn(`${this.constructor.name} => couldn't parse json string`,{str:t,error:r});return}}static pick(t,r){return r.reduce((o,s)=>(s in t&&(o[s]=t[s]),o),{})}static runSafely(t,r=null,o=[]){if(this.isFunction(t))return t.apply(r,o)}static sleep(t){return new Promise(r=>setTimeout(r,t))}static sprintf(t,...r){return this.isString(t)&&r.length?this.sprintf(t.replace("%s",String(r.shift())),...r):t}static stripComments(t){return typeof t=="string"?t.replace(/(<!--.*?-->)|(<!--[\S\s]+?-->)|(<!--[\S\s]*?$)/g,""):t}static submitFakeForm({action:t,method:r=Ne.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=r,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((r,o,s)=>(o=o.toLowerCase(),r+(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(/^(.)/,r=>r.toUpperCase())}static toSnakeCase(t){return this.words(t.replace(/['\u2019]/g,"")).join("_").toLowerCase()}static toUpperSnakeCase(t){return this.toSnakeCase(t).toUpperCase()}static words(t,r){return r===void 0?(Ut.HAS_UNICODE_WORD(t)?Ut.unicodeWords(t):Ho(t))||[]:t.match(r)||[]}};var He=class extends Error{static{n(this,"SmpFilterException")}message;data;constructor(t="Filter Exception",r){super(),this.message=t,this.data=r}};var qe=require("ts-luxon");var Ve=class e{static{n(this,"SmpSid")}value;expiry;get active(){return this.value.endsWith(this._controlSuffix)}get expired(){return qe.DateTime.now().ts>this.expiry}get valid(){return!this.expired}_controlSuffix="$1";constructor(t=`sid-xxxx-${+qe.DateTime.now().ts}`,r=0){this.value=t,this.expiry=r}static parse(t){return new e(t.value,t.expiry)}toPlain(){return{value:this.value,expiry:this.expiry}}};var fs=require("@tonysamperi/logger");var Xe=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 Ec="2.0.0-beta.6";0&&(module.exports={SMP_HEALTHZ,SmpAbstractCacheStrategy,SmpAbstractTtlCacheStrategy,SmpAesCrypt,SmpApiCommonUtils,SmpBaseJwtToken,SmpBaseJwtTokenPlain,SmpBrowserCache,SmpCommonUtils,SmpCrypto,SmpErrorResponse,SmpFilterException,SmpFirebaseErrors,SmpGenericResponse,SmpGiftcardTransaction,SmpGiftcardTransactionHashStrategies,SmpGiftcardTransactionOps,SmpHttpSessionStorageCache,SmpHttpStatusCodes,SmpHttpTwoService,SmpInMemoryCache,SmpMarketingCloudValidators,SmpRegularExpressions,SmpResponseMessage,SmpResponseMessageTypes,SmpRestVerbs,SmpSecureCode,SmpSid,SmpSocialSignInKeys,SmpSocialSignInUxModes,VERSION,smpApplyMixin,smpIsSmpCachedValue,smpNoop});
|
|
1
|
+
"use strict";var ho=Object.create;var wr=Object.defineProperty;var po=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,mo=Object.prototype.hasOwnProperty;var c=(t,r)=>wr(t,"name",{value:r,configurable:!0});var go=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),wo=(t,r)=>{for(var e in r)wr(t,e,{get:r[e],enumerable:!0})},Ie=(t,r,e,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of uo(r))!mo.call(t,i)&&i!==e&&wr(t,i,{get:()=>r[i],enumerable:!(o=po(r,i))||o.enumerable});return t};var yo=(t,r,e)=>(e=t!=null?ho(fo(t)):{},Ie(r||!t||!t.__esModule?wr(e,"default",{value:t,enumerable:!0}):e,t)),bo=t=>Ie(wr({},"__esModule",{value:!0}),t);var qt=go((Tt,Xr)=>{"use strict";(function(t){if(typeof r!="function"){var r=c(function(g){return g},"Symbol");r.nonNative=!0}let e=r("plaintext"),o=r("html"),i=r("comment"),s=/<(\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(v){return m(v||"",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,v=y.state,_=y.tag_buffer,E=y.depth,x=y.in_quote_char,R="";for(let $=0,qr=g.length;$<qr;$++){let q=g[$];if(v===e)switch(q){case"<":v=o,_+=q;break;default:R+=q;break}else if(v===o)switch(q){case"<":if(x)break;E++;break;case">":if(x)break;if(E){E--;break}x="",v=e,_+=">",A.has(w(_))?R+=_:R+=B,_="";break;case'"':case"'":q===x?x="":x=x||q,_+=q;break;case"-":_==="<!-"&&(v=i),_+=q;break;case" ":case`
|
|
2
|
+
`:if(_==="<"){v=e,R+="< ",_="";break}_+=q;break;default:_+=q;break}else if(v===i)switch(q){case">":_.slice(-2)=="--"&&(v=e),_="";break;default:_+=q;break}}return y.state=v,y.tag_buffer=_,y.depth=E,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=s.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 Xr=="object"&&Xr.exports?Xr.exports=a:t.striptags=a})(Tt)});var hi={};wo(hi,{SMP_HEALTHZ:()=>Ro,SmpAbstractCacheStrategy:()=>yr,SmpAbstractTtlCacheStrategy:()=>W,SmpAesCrypt:()=>hr,SmpAesCryptV2:()=>Gr,SmpApiCommonUtils:()=>he,SmpBaseJwtToken:()=>fe,SmpBaseJwtTokenPlain:()=>me,SmpBrowserCache:()=>br,SmpCommonUtils:()=>Ae,SmpCrypto:()=>rr,SmpErrorResponse:()=>L,SmpErrorResponseWithStackTrace:()=>pe,SmpFilterException:()=>Re,SmpFirebaseErrors:()=>Do,SmpGenericResponse:()=>sr,SmpGiftcardTransaction:()=>Kr,SmpGiftcardTransactionHashStrategies:()=>er,SmpGiftcardTransactionOps:()=>N,SmpHttpSessionStorageCache:()=>_r,SmpHttpStatusCodes:()=>xr,SmpHttpTwoService:()=>le,SmpInMemoryCache:()=>Br,SmpMarketingCloudValidators:()=>qo,SmpRegularExpressions:()=>De,SmpResponseMessage:()=>T,SmpResponseMessageTypes:()=>K,SmpRestVerbs:()=>ue,SmpSecureCode:()=>$r,SmpSid:()=>Oe,SmpSocialSignInKeys:()=>Bo,SmpSocialSignInUxModes:()=>Oo,VERSION:()=>li,smpApplyMixin:()=>ko,smpIsSmpCachedValue:()=>Jr,smpNoop:()=>to.smpNoop});module.exports=bo(hi);var Yr=require("ts-luxon");var yr=class{static{c(this,"SmpAbstractCacheStrategy")}};function Jr(t){return typeof t=="object"&&t!==null&&"value"in t&&"expiry"in t&&typeof t.expiry=="number"}c(Jr,"smpIsSmpCachedValue");var W=class extends yr{static{c(this,"SmpAbstractTtlCacheStrategy")}flush(){this._flushRaw()}read(r){let e=this._readRaw(r);if(this._isSmpCachedValue(e)){if(e.expiry>=Yr.DateTime.now().ts)return e.value;this._removeRaw(r);return}return e}remove(r){this._removeRaw(r)}write(r,e,o){if(isNaN(+o)||+o<=0){this._writeRaw(r,e,o);return}let i=Yr.DateTime.now().ts+o*1e3,s={value:e,expiry:i};this._writeRaw(r,s,o)}_isSmpCachedValue(r){return Jr(r)}};var br=class extends W{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 o=this._storage.key(e);o&&o.startsWith(this._prefix)&&r.push(o)}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(o){console.warn(`${this.constructor.name}: failed to write cache item for key ${this._prefix+r}`,o)}}};var _r=class extends br{static{c(this,"SmpHttpSessionStorageCache")}constructor(){super(sessionStorage,"smp_rest_cache_")}};var xr=(function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t})({});var Er=require("class-transformer");var ki=require("reflect-metadata"),F=require("class-transformer");var Qr=require("class-transformer");var K=(function(t){return t.INFO="INFO",t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t})({});function Fe(t,r,e,o){var i=arguments.length,s=i<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,r,e,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(r,e,s):n(r,e))||s);return i>3&&s&&Object.defineProperty(r,e,s),s}c(Fe,"_ts_decorate");function kr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}c(kr,"_ts_metadata");var T=class t{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=K.ERROR){this._message=r,this._type=e}static sanitizeMessages(r){return typeof r=="string"?r.length?[new t(r)]:[]:[r].flat().map(e=>typeof e=="string"?new t(e):e)}};Fe([(0,Qr.Expose)(),kr("design:type",String),kr("design:paramtypes",[])],T.prototype,"message",null);Fe([(0,Qr.Expose)(),kr("design:type",typeof K>"u"?Object:K),kr("design:paramtypes",[])],T.prototype,"type",null);function _o(t,r,e,o){var i=arguments.length,s=i<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,r,e,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(r,e,s):n(r,e))||s);return i>3&&s&&Object.defineProperty(r,e,s),s}c(_o,"_ts_decorate");function Pe(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}c(Pe,"_ts_metadata");var sr=class t{static{c(this,"SmpGenericResponse")}_messages;data;set messages(r){this._messages=T.sanitizeMessages(r)}get messages(){return this._messages}constructor(r=[],e){this._messages=r,this.data=e}static create(r){return new t([r.messages||[]].flat().map(e=>e instanceof T?e:new T(e,r.type||K.SUCCESS)),r.data)}static fromPlain(r){return(0,F.plainToInstance)(this,r)}clone(){return this.constructor.fromPlain(this.serialize())}isError(){return!this.isSuccess()}isSuccess(){return typeof this._errorCode=="number"}serialize(){return{...(0,F.instanceToPlain)(this,{excludePrefixes:["_"]}),data:(0,F.instanceToPlain)(this).data}}};_o([(0,F.Expose)(),(0,F.Type)(()=>T),(0,F.Transform)(({value:t})=>t?.length?t:void 0),Pe("design:type",Object),Pe("design:paramtypes",[])],sr.prototype,"messages",null);function Ue(t,r,e,o){var i=arguments.length,s=i<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,r,e,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(r,e,s):n(r,e))||s);return i>3&&s&&Object.defineProperty(r,e,s),s}c(Ue,"_ts_decorate");function Nr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}c(Nr,"_ts_metadata");var L=class t extends sr{static{c(this,"SmpErrorResponse")}_errorCode;_status;static get DEFAULT_MESSAGES(){return[new T("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=t.DEFAULT_MESSAGES,e="GENERIC_ERROR",o=500,i){super(r,i),this._errorCode=e,this._status=o}static create({messages:r=t.DEFAULT_MESSAGES,...e}={}){return new t(T.sanitizeMessages(r),e.errorCode,e.status,e.data)}static fromPlain(r){let e=(0,Er.plainToInstance)(xo,r,{excludePrefixes:["_"]}),o=new t;return Object.getOwnPropertyNames(e).forEach(i=>{i in o&&(o[i]=e[i])}),o}};Ue([(0,Er.Expose)(),Nr("design:type",Object),Nr("design:paramtypes",[])],L.prototype,"errorCode",null);Ue([(0,Er.Expose)(),Nr("design:type",Number),Nr("design:paramtypes",[])],L.prototype,"timestamp",null);var xo=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 P=class{static{c(this,"Hex")}static parse(r){let e=r.length,o=[];for(let i=0;i<e;i+=2)o[i>>>3]|=parseInt(r.substr(i,2),16)<<24-i%8*4;return new b(o,e/2)}static stringify(r){let e=[];for(let o=0;o<r.sigBytes;o++){let i=r.words[o>>>2]>>>24-o%4*8&255;e.push((i>>>4).toString(16)),e.push((i&15).toString(16))}return e.join("")}};var b=class re{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=[],o=c(function(i){let s=987654321,n=4294967295;return function(){s=36969*(s&65535)+(s>>16)&n,i=18e3*(i&65535)+(i>>16)&n;let a=(s<<16)+i&n;return a/=4294967296,a+=.5,a*(Math.random()>.5?1:-1)}},"r");for(let i=0,s;i<r;i+=4){let n=o((s||Math.random())*4294967296);s=n()*987654071,e.push(n()*4294967296|0)}return new re(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 re(this.words.slice(0),this.sigBytes)}concat(r){if(this.clamp(),this.sigBytes%4)for(let e=0;e<r.sigBytes;e++){let o=r.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<r.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=r.words[e>>>2];return this.sigBytes+=r.sigBytes,this}toString(r){return(r||P).stringify(this)}};var Cr=class{static{c(this,"Latin1")}static parse(r){let e=r.length,o=[];for(let i=0;i<e;i++)o[i>>>2]|=(r.charCodeAt(i)&255)<<24-i%4*8;return new b(o,e)}static stringify(r){let e=[];for(let o=0;o<r.sigBytes;o++){let i=r.words[o>>>2]>>>24-o%4*8&255;e.push(String.fromCharCode(i))}return e.join("")}};var O=class{static{c(this,"Utf8")}static parse(r){return Cr.parse(unescape(encodeURIComponent(r)))}static stringify(r){try{return decodeURIComponent(escape(Cr.stringify(r)))}catch(e){throw console.error("Malformed UTF-8 data",e),new Error("Malformed UTF-8 data",{cause:e})}}};var Lr=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=O.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,o=this._data.sigBytes/e;r?o=Math.ceil(o):o=Math.max((o|0)-this._minBufferSize,0);let i=o*this.cfg.blockSize,s=Math.min(i*4,this._data.sigBytes),n;if(i){for(let a=0;a<i;a+=this.cfg.blockSize)this._doProcessBlock(this._data.words,a);n=this._data.words.splice(0,i),this._data.sigBytes-=s}return new b(n,s)}};var nr=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 z=class{static{c(this,"Base64")}static parse(r){let e=r.length;if(this._reverseMap===void 0){this._reverseMap=[];for(let i=0;i<this._map.length;i++)this._reverseMap[this._map.charCodeAt(i)]=i}let o=this._map.charAt(64);if(o){let i=r.indexOf(o);i!==-1&&(e=i)}return this.parseLoop(r,e,this._reverseMap)}static parseLoop(r,e,o){let i=[],s=0;for(let n=0;n<e;n++)if(n%4){let a=o[r.charCodeAt(n-1)]<<n%4*2,l=o[r.charCodeAt(n)]>>>6-n%4*2;i[s>>>2]|=(a|l)<<24-s%4*8,s++}return new b(i,s)}static stringify(r){r.clamp();let e=[];for(let i=0;i<r.sigBytes;i+=3){let s=r.words[i>>>2]>>>24-i%4*8&255,n=r.words[i+1>>>2]>>>24-(i+1)%4*8&255,a=r.words[i+2>>>2]>>>24-(i+2)%4*8&255,l=s<<16|n<<8|a;for(let p=0;p<4&&i+p*.75<r.sigBytes;p++)e.push(this._map.charAt(l>>>6*(3-p)&63))}let o=this._map.charAt(64);if(o)for(;e.length%4;)e.push(o);return e.join("")}};z._map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";z._reverseMap=void 0;var Ir=class{static{c(this,"OpenSSL")}static parse(r){let e=z.parse(r),o;return e.words[0]===1398893684&&e.words[1]===1701076831&&(o=new b(e.words.slice(2,4)),e.words.splice(0,4),e.sigBytes-=16),new nr({ciphertext:e,salt:o})}static stringify(r){if(!r.ciphertext)throw new Error("missing ciphertext in params");let e=r.ciphertext,o=r.salt,i;if(o){if(typeof o=="string")throw new Error("salt is expected to be a WordArray");i=new b([1398893684,1701076831]).concat(o).concat(e)}else i=e;return i.toString(z)}};var H=class{static{c(this,"SerializableCipher")}static decrypt(r,e,o,i){let s=Object.assign({},this.cfg,i);if(!s.format)throw new Error("could not determine format");if(e=this._parse(e,s.format),!e.ciphertext)throw new Error("could not determine ciphertext");return r.createDecryptor(o,s).finalize(e.ciphertext)}static encrypt(r,e,o,i){let s=Object.assign({},this.cfg,i),n=r.createEncryptor(o,s),a=n.finalize(e);return new nr({ciphertext:a,key:o,iv:n.cfg.iv,algorithm:r,mode:n.cfg.mode,padding:n.cfg.padding,blockSize:n.cfg.blockSize,formatter:s.format})}static _parse(r,e){return typeof r=="string"?e.parse(r):r}};H.cfg={blockSize:4,iv:new b([]),format:Ir};var D=class extends Lr{static{c(this,"Hasher")}constructor(r){super(Object.assign({blockSize:512/32},r)),this.reset()}static _createHelper(r){function e(o,i){return new r(i).finalize(o)}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 t=0;t<64;t++)u[t]=Math.abs(Math.sin(t+1))*4294967296|0;var M=class f extends D{static{c(this,"MD5")}get hash(){return this._hash}static FF(r,e,o,i,s,n,a){let l=r+(e&o|~e&i)+s+a;return(l<<n|l>>>32-n)+e}static GG(r,e,o,i,s,n,a){let l=r+(e&i|o&~i)+s+a;return(l<<n|l>>>32-n)+e}static HH(r,e,o,i,s,n,a){let l=r+(e^o^i)+s+a;return(l<<n|l>>>32-n)+e}static II(r,e,o,i,s,n,a){let l=r+(o^(e|~i))+s+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 o=Math.floor(r/4294967296),i=r;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]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,this._data.sigBytes=(this._data.words.length+1)*4,this._process();for(let s=0;s<4;s++)this._hash.words[s]=(this._hash.words[s]<<8|this._hash.words[s]>>>24)&16711935|(this._hash.words[s]<<24|this._hash.words[s]>>>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 o=Array.from({length:16});for(let l=0;l<16;l++)o[l]=r[e+l];let i=this._hash.words[0],s=this._hash.words[1],n=this._hash.words[2],a=this._hash.words[3];i=f.FF(i,s,n,a,o[0],7,u[0]),a=f.FF(a,i,s,n,o[1],12,u[1]),n=f.FF(n,a,i,s,o[2],17,u[2]),s=f.FF(s,n,a,i,o[3],22,u[3]),i=f.FF(i,s,n,a,o[4],7,u[4]),a=f.FF(a,i,s,n,o[5],12,u[5]),n=f.FF(n,a,i,s,o[6],17,u[6]),s=f.FF(s,n,a,i,o[7],22,u[7]),i=f.FF(i,s,n,a,o[8],7,u[8]),a=f.FF(a,i,s,n,o[9],12,u[9]),n=f.FF(n,a,i,s,o[10],17,u[10]),s=f.FF(s,n,a,i,o[11],22,u[11]),i=f.FF(i,s,n,a,o[12],7,u[12]),a=f.FF(a,i,s,n,o[13],12,u[13]),n=f.FF(n,a,i,s,o[14],17,u[14]),s=f.FF(s,n,a,i,o[15],22,u[15]),i=f.GG(i,s,n,a,o[1],5,u[16]),a=f.GG(a,i,s,n,o[6],9,u[17]),n=f.GG(n,a,i,s,o[11],14,u[18]),s=f.GG(s,n,a,i,o[0],20,u[19]),i=f.GG(i,s,n,a,o[5],5,u[20]),a=f.GG(a,i,s,n,o[10],9,u[21]),n=f.GG(n,a,i,s,o[15],14,u[22]),s=f.GG(s,n,a,i,o[4],20,u[23]),i=f.GG(i,s,n,a,o[9],5,u[24]),a=f.GG(a,i,s,n,o[14],9,u[25]),n=f.GG(n,a,i,s,o[3],14,u[26]),s=f.GG(s,n,a,i,o[8],20,u[27]),i=f.GG(i,s,n,a,o[13],5,u[28]),a=f.GG(a,i,s,n,o[2],9,u[29]),n=f.GG(n,a,i,s,o[7],14,u[30]),s=f.GG(s,n,a,i,o[12],20,u[31]),i=f.HH(i,s,n,a,o[5],4,u[32]),a=f.HH(a,i,s,n,o[8],11,u[33]),n=f.HH(n,a,i,s,o[11],16,u[34]),s=f.HH(s,n,a,i,o[14],23,u[35]),i=f.HH(i,s,n,a,o[1],4,u[36]),a=f.HH(a,i,s,n,o[4],11,u[37]),n=f.HH(n,a,i,s,o[7],16,u[38]),s=f.HH(s,n,a,i,o[10],23,u[39]),i=f.HH(i,s,n,a,o[13],4,u[40]),a=f.HH(a,i,s,n,o[0],11,u[41]),n=f.HH(n,a,i,s,o[3],16,u[42]),s=f.HH(s,n,a,i,o[6],23,u[43]),i=f.HH(i,s,n,a,o[9],4,u[44]),a=f.HH(a,i,s,n,o[12],11,u[45]),n=f.HH(n,a,i,s,o[15],16,u[46]),s=f.HH(s,n,a,i,o[2],23,u[47]),i=f.II(i,s,n,a,o[0],6,u[48]),a=f.II(a,i,s,n,o[7],10,u[49]),n=f.II(n,a,i,s,o[14],15,u[50]),s=f.II(s,n,a,i,o[5],21,u[51]),i=f.II(i,s,n,a,o[12],6,u[52]),a=f.II(a,i,s,n,o[3],10,u[53]),n=f.II(n,a,i,s,o[10],15,u[54]),s=f.II(s,n,a,i,o[1],21,u[55]),i=f.II(i,s,n,a,o[8],6,u[56]),a=f.II(a,i,s,n,o[15],10,u[57]),n=f.II(n,a,i,s,o[6],15,u[58]),s=f.II(s,n,a,i,o[13],21,u[59]),i=f.II(i,s,n,a,o[4],6,u[60]),a=f.II(a,i,s,n,o[11],10,u[61]),n=f.II(n,a,i,s,o[2],15,u[62]),s=f.II(s,n,a,i,o[9],21,u[63]),this._hash.words[0]=this._hash.words[0]+i|0,this._hash.words[1]=this._hash.words[1]+s|0,this._hash.words[2]=this._hash.words[2]+n|0,this._hash.words[3]=this._hash.words[3]+a|0}};var ee=class je{static{c(this,"EVPKDF")}constructor(r){this.cfg=Object.assign({keySize:128/32,hasher:M,iterations:1},r)}static execute(r,e,o){return new je(o).compute(r,e)}compute(r,e){let o=new this.cfg.hasher,i=new b,s;for(;i.words.length<this.cfg.keySize;){s&&o.update(s),s=o.update(r).finalize(e),o.reset();for(let n=1;n<this.cfg.iterations;n++)s=o.finalize(s),o.reset();i.concat(s)}return i.sigBytes=this.cfg.keySize*4,i}};var ze=class{static{c(this,"OpenSSLKdf")}static execute(r,e,o,i){i||(i=b.random(64/8));let s=new ee({keySize:e+o}).compute(r,i),n=new b(s.words.slice(e),o*4);return s.sigBytes=e*4,new nr({key:s,iv:n,salt:i})}};var Fr=class{static{c(this,"PasswordBasedCipher")}static decrypt(r,e,o,i){let s=Object.assign({},this.cfg,i);if(s.format===void 0)throw new Error("missing format in config");if(e=this._parse(e,s.format),s.kdf===void 0)throw new Error("the key derivation function must be set");let n=s.kdf.execute(o,r.keySize,r.ivSize,e.salt);return n.iv!==void 0&&(s.iv=n.iv),H.decrypt.call(this,r,e,n.key,s)}static encrypt(r,e,o,i){let s=Object.assign({},this.cfg,i);if(s.kdf===void 0)throw new Error("missing kdf in config");let n=s.kdf.execute(o,r.keySize,r.ivSize);return n.iv!==void 0&&(s.iv=n.iv),H.encrypt.call(this,r,e,n.key,s).extend(n)}static _parse(r,e){return typeof r=="string"?e.parse(r):r}};Fr.cfg={blockSize:4,iv:new b([]),format:Ir,kdf:ze};var Me=class{static{c(this,"CipherHelper")}constructor(r){this._cipher=r}decrypt(r,e,o){return typeof e=="string"?Fr.decrypt(this._cipher,r,e,o):H.decrypt(this._cipher,r,e,o)}encrypt(r,e,o){return typeof e=="string"?Fr.encrypt(this._cipher,r,e,o):H.encrypt(this._cipher,r,e,o)}};var ar=class extends Lr{static{c(this,"Cipher")}constructor(r,e,o){super(Object.assign({blockSize:1},o)),this._xformMode=r,this._key=e,this.reset()}static _createHelper(r){return new Me(r)}static createDecryptor(r,e){let o=this;return new o(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()}};ar.ivSize=4;ar.keySize=4;ar._DEC_XFORM_MODE=2;ar._ENC_XFORM_MODE=1;var X=class{static{c(this,"BlockCipherModeAlgorithm")}constructor(r,e){this.init(r,e)}init(r,e){this._cipher=r,this._iv=e}};var Pr=class{static{c(this,"BlockCipherMode")}static createDecryptor(r,e){let o=this.Decryptor;return new o(r,e)}static createEncryptor(r,e){let o=this.Encryptor;return new o(r,e)}};Pr.Decryptor=X;Pr.Encryptor=X;var Se=class extends X{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,o){let i;this._iv?(i=this._iv,this._iv=void 0):i=this._prevBlock;for(let s=0;s<o;s++)r[e+s]^=i[s]}};var Ve=class extends X{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 o=r.slice(e,e+this._cipher.cfg.blockSize);this._cipher.decryptBlock(r,e),this.xorBlock(r,e,this._cipher.cfg.blockSize),this._prevBlock=o}xorBlock(r,e,o){let i;this._iv?(i=this._iv,this._iv=void 0):i=this._prevBlock;for(let s=0;s<o;s++)r[e+s]^=i[s]}};var U=class extends Pr{static{c(this,"CBC")}};U.Decryptor=Ve;U.Encryptor=Se;var V=class{static{c(this,"PKCS7")}static pad(r,e){let o=e*4,i=o-r.sigBytes%o,s=i<<24|i<<16|i<<8|i,n=[];for(let l=0;l<i;l+=4)n.push(s);let a=new b(n,i);r.concat(a)}static unpad(r){let e=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=e}};var Ur=class extends ar{static{c(this,"BlockCipher")}constructor(r,e,o){super(r,e,Object.assign({blockSize:4,mode:U,padding:V},o))}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 j{static{c(this,"X64Word")}constructor(r,e){this.high=r,this.low=e}add(r){let e=this.low+r.low|0,o=e>>>0<this.low>>>0?1:0,i=this.high+r.high+o|0;return new j(i,e)}and(r){return new j(this.high&r.high,this.low&r.low)}not(){return new j(~this.high,~this.low)}or(r){return new j(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 j(this.high<<r|this.low>>>32-r,this.low<<r):new j(this.low<<r-32,0)}shiftR(r){return r<32?new j(this.high>>>r,this.low>>>r|this.high<<32-r):new j(0,this.high>>>r-32)}xor(r){return new j(this.high^r.high,this.low^r.low)}};var Ge=class te{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 te(r,e)}clone(){let r=this.words.map(e=>new h(e.high,e.low));return new te(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=[],$e=[],We=[],Ke=[],He=[],Xe=[],oe=[],ie=[],se=[],ne=[];(function(){let t=[];for(let o=0;o<256;o++)o<128?t[o]=o<<1:t[o]=o<<1^283;let r=0,e=0;for(let o=0;o<256;o++){let i=e^e<<1^e<<2^e<<3^e<<4;i=i>>>8^i&255^99,k[r]=i,$e[i]=r;let s=t[r],n=t[s],a=t[n],l=t[i]*257^i*16843008;We[r]=l<<24|l>>>8,Ke[r]=l<<16|l>>>16,He[r]=l<<8|l>>>24,Xe[r]=l,l=a*16843009^n*65537^s*257^r*16843008,oe[i]=l<<24|l>>>8,ie[i]=l<<16|l>>>16,se[i]=l<<8|l>>>24,ne[i]=l,r?(r=s^t[t[t[a^s]]],e^=t[t[e]]):r=e=1}})();var Eo=[0,1,2,4,8,16,32,64,128,27,54],jr=class extends Ur{static{c(this,"AES")}constructor(r,e,o){super(r,e,o),super.reset()}decryptBlock(r,e){let o=r[e+1];r[e+1]=r[e+3],r[e+3]=o,this._doCryptBlock(r,e,this._invKeySchedule,oe,ie,se,ne,$e),o=r[e+1],r[e+1]=r[e+3],r[e+3]=o}encryptBlock(r,e){this._doCryptBlock(r,e,this._keySchedule,We,Ke,He,Xe,k)}reset(){if(super.reset(),this._nRounds&&this._keyPriorReset===this._key)return;let r=this._keyPriorReset=this._key,e=r.words,o=r.sigBytes/4,s=((this._nRounds=o+6)+1)*4,n=this._keySchedule=[];for(let a=0;a<s;a++)if(a<o)n[a]=e[a];else{let l=n[a-1];a%o?o>6&&a%o===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^=Eo[a/o|0]<<24),n[a]=n[a-o]^l}this._invKeySchedule=[];for(let a=0;a<s;a++){let l=s-a,p;a%4?p=n[l]:p=n[l-4],a<4||l<=4?this._invKeySchedule[a]=p:this._invKeySchedule[a]=oe[k[p>>>24]]^ie[k[p>>>16&255]]^se[k[p>>>8&255]]^ne[k[p&255]]}}_doCryptBlock(r,e,o,i,s,n,a,l){let p=r[e]^o[0],m=r[e+1]^o[1],d=r[e+2]^o[2],w=r[e+3]^o[3],g=4;for(let _=1;_<this._nRounds;_++){let E=i[p>>>24]^s[m>>>16&255]^n[d>>>8&255]^a[w&255]^o[g++],x=i[m>>>24]^s[d>>>16&255]^n[w>>>8&255]^a[p&255]^o[g++],R=i[d>>>24]^s[w>>>16&255]^n[p>>>8&255]^a[m&255]^o[g++],$=i[w>>>24]^s[p>>>16&255]^n[m>>>8&255]^a[d&255]^o[g++];p=E,m=x,d=R,w=$}let y=(l[p>>>24]<<24|l[m>>>16&255]<<16|l[d>>>8&255]<<8|l[w&255])^o[g++],A=(l[m>>>24]<<24|l[d>>>16&255]<<16|l[w>>>8&255]<<8|l[p&255])^o[g++],B=(l[d>>>24]<<24|l[w>>>16&255]<<16|l[p>>>8&255]<<8|l[m&255])^o[g++],v=(l[w>>>24]<<24|l[p>>>16&255]<<16|l[m>>>8&255]<<8|l[d&255])^o[g];r[e]=y,r[e+1]=A,r[e+2]=B,r[e+3]=v}};jr.keySize=256/32;var vo=[1732584193,4023233417,2562383102,271733878,3285377520],Z=new Array(80),J=class extends D{static{c(this,"SHA1")}get hash(){return this._hash}reset(){super.reset(),this._hash=new b(vo.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 o=this._hash.words[0],i=this._hash.words[1],s=this._hash.words[2],n=this._hash.words[3],a=this._hash.words[4];for(let l=0;l<80;l++){if(l<16)Z[l]=r[e+l]|0;else{let w=Z[l-3]^Z[l-8]^Z[l-14]^Z[l-16];Z[l]=w<<1|w>>>31}let p,m;l<20?(p=i&s|~i&n,m=1518500249):l<40?(p=i^s^n,m=1859775393):l<60?(p=i&s|i&n|s&n,m=2400959708):(p=i^s^n,m=3395469782);let d=(o<<5|o>>>27)+p+a+m+Z[l];a=n,n=s,s=i<<30|i>>>2,i=o,o=d|0}this._hash.words[0]=this._hash.words[0]+o|0,this._hash.words[1]=this._hash.words[1]+i|0,this._hash.words[2]=this._hash.words[2]+s|0,this._hash.words[3]=this._hash.words[3]+n|0,this._hash.words[4]=this._hash.words[4]+a|0}};var Ze=[],Je=[];(function(){function t(i){let s=Math.sqrt(i);for(let n=2;n<=s;n++)if(!(i%n))return!1;return!0}c(t,"isPrime");function r(i){return(i-(i|0))*4294967296|0}c(r,"getFractionalBits");let e=2,o=0;for(;o<64;)t(e)&&(o<8&&(Ze[o]=r(Math.pow(e,1/2))),Je[o]=r(Math.pow(e,1/3)),o++),e++})();var Y=[],Q=class extends D{static{c(this,"SHA256")}constructor(){super()}reset(){super.reset(),this._hash=new b(Ze.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 o=this._hash.words[0],i=this._hash.words[1],s=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)Y[d]=r[e+d]|0;else{let _=Y[d-15],E=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,x=Y[d-2],R=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;Y[d]=E+Y[d-7]+R+Y[d-16]}let w=a&l^~a&p,g=o&i^o&s^i&s,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),A=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),B=m+A+w+Je[d]+Y[d],v=y+g;m=p,p=l,l=a,a=n+B|0,n=s,s=i,i=o,o=B+v|0}this._hash.words[0]=this._hash.words[0]+o|0,this._hash.words[1]=this._hash.words[1]+i|0,this._hash.words[2]=this._hash.words[2]+s|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 ae=[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 t=0;t<80;t++)I[t]=new h(void 0,void 0)})();var ce=class extends D{static{c(this,"SHA512")}constructor(){super({blockSize:1024/32})}reset(){super.reset(),this._hash=new Ge([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,o=this._nDataBytes*8,i=r.sigBytes*8;return e[i>>>5]|=128<<24-i%32,e[(i+128>>>10<<5)+30]=Math.floor(o/4294967296),e[(i+128>>>10<<5)+31]=o,r.sigBytes=e.length*4,this._process(),this._hash.toX32()}_doProcessBlock(r,e){let o=this._hash.words[0].high,i=this._hash.words[0].low,s=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,v=this._hash.words[7].high,_=this._hash.words[7].low;for(let E=0;E<80;E++){let x,R;if(E<16)R=I[E].high=r[e+E*2]|0,x=I[E].low=r[e+E*2+1]|0;else{let ke=I[E-15],or=ke.high,dr=ke.low,co=(or>>>1|dr<<31)^(or>>>8|dr<<24)^or>>>7,Ne=(dr>>>1|or<<31)^(dr>>>8|or<<24)^(dr>>>7|or<<25),Ce=I[E-2],ir=Ce.high,gr=Ce.low,lo=(ir>>>19|gr<<13)^(ir<<3|gr>>>29)^ir>>>6,Le=(gr>>>19|ir<<13)^(gr<<3|ir>>>29)^(gr>>>6|ir<<26);x=Ne+I[E-7].low,R=co+I[E-7].high+(x>>>0<Ne>>>0?1:0),x=x+Le,R=R+lo+(x>>>0<Le>>>0?1:0),x=x+I[E-16].low,R=R+I[E-16].high+(x>>>0<I[E-16].low>>>0?1:0),I[E].high=R,I[E].low=x}let $=d&g^~d&A,qr=w&y^~w&B,q=o&s^o&a^s&a,oo=i&n^i&l^n&l,io=(o>>>28|i<<4)^(o<<30|i>>>2)^(o<<25|i>>>7),Te=(i>>>28|o<<4)^(i<<30|o>>>2)^(i<<25|o>>>7),so=(d>>>14|w<<18)^(d>>>18|w<<14)^(d<<23|w>>>9),no=(w>>>14|d<<18)^(w>>>18|d<<14)^(w<<23|d>>>9),C=_+no,S=v+so+(C>>>0<_>>>0?1:0);C=C+qr,S=S+$+(C>>>0<qr>>>0?1:0),C=C+ae[E].low,S=S+ae[E].high+(C>>>0<ae[E].low>>>0?1:0),C=C+x,S=S+R+(C>>>0<x>>>0?1:0);let qe=Te+oo,ao=io+q+(qe>>>0<Te>>>0?1:0);v=A,_=B,A=g,B=y,g=d,y=w,w=m+C|0,d=p+S+(w>>>0<m>>>0?1:0)|0,p=a,m=l,a=s,l=n,s=o,n=i,i=C+qe|0,o=S+ao+(i>>>0<C>>>0?1:0)|0}this._hash.words[0].low=this._hash.words[0].low=this._hash.words[0].low+i,this._hash.words[0].high=this._hash.words[0].high+o+(this._hash.words[0].low>>>0<i>>>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+s+(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+v+(this._hash.words[7].low>>>0<_>>>0?1:0)}};var Ye=class{static{c(this,"HMAC")}constructor(r,e){this._hasher=new r;let o=typeof e=="string"?O.parse(e):e,i=this._hasher.cfg.blockSize,s=i*4;o.sigBytes>s&&(o=this._hasher.finalize(o)),o.clamp();let n=this._oKey=o.clone(),a=this._iKey=o.clone(),l=n.words,p=a.words;for(let m=0;m<i;m++)l[m]^=1549556828,p[m]^=909522486;n.sigBytes=a.sigBytes=s,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 vr=class Qe{static{c(this,"PBKDF2")}constructor(r){this.cfg=Object.assign({keySize:128/32,hasher:Q,iterations:25e4},r)}static execute(r,e,o){return new Qe(o).compute(r,e)}compute(r,e){let o=this.cfg,i=new Ye(o.hasher,r),s=new b,n=new b([1]),a=s.words,l=n.words,p=o.keySize,m=o.iterations;for(;a.length<p;){let d=i.update(e).finalize(n);i.reset();let w=d.words,g=w.length,y=d;for(let A=1;A<m;A++){y=i.finalize(y),i.reset();let B=y.words;for(let v=0;v<g;v++)w[v]^=B[v]}s.concat(d),l[0]++}return s.sigBytes=p*4,s}};var G=Ur._createHelper(jr);var Ar=null,Rr=0;function Ao(t){(!Ar||Rr+8>Ar.length)&&(Ar=new Uint8Array(new ArrayBuffer(4096)),t.getRandomValues(Ar),Rr=0);let r=Ar.subarray(Rr,Rr+8);return Rr+=8,r}c(Ao,"nextRandomBytes");var zr=c(function(){let t=Date.now().toString(36),r=globalThis.crypto;if(r?.getRandomValues){let e=Ao(r),o="";for(let i=0;i<e.length;i++){let s=e[i].toString(16);o+=s.length===1?"0"+s:s}return t+"-"+o}return t+"-"+Math.random().toString(36).slice(2,10)},"correlationIdHelper");var cr=D._createHelper(M);var lr=D._createHelper(J);var Mr=D._createHelper(Q);var Sr=D._createHelper(ce);var Vr=c(function(){let t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,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 rr=class{static{c(this,"SmpCrypto")}static base64Decode(r){return O.stringify(z.parse(r))}static base64Encode(r){return z.stringify(O.parse(r))}static generateCorrelationId(){return zr()}static generateUuidV4(){return Vr()}static md5(r){return cr(r).toString()}static sha1(r){return lr(r).toString()}static sha256(r){return Mr(r).toString()}static sha512(r){return Sr(r).toString()}};var Br=class extends W{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 le=class{static{c(this,"SmpHttpTwoService")}static _cacheStrategy=typeof sessionStorage<"u"?new _r:new Br;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),o=+(r.ttl||0)>0;if(o){let n=this._cacheStrategy.read(e);if(n)return Promise.resolve(n)}let i=this._running.get(e);if(i)return i;let s=this._generateAjaxBase(r).then(n=>(o&&this._cacheStrategy.write(e,n,r.ttl),n)).finally(()=>{this._running.delete(e)});return this._running.set(e,s),s}static async _generateAjaxBase(r){let e=await this._preprocessRequest(r),o={method:e.method,headers:new Headers({"content-type":"application/json",...e.headers}),body:e.body?JSON.stringify(e.body):null};e.useCredentials&&(o.credentials="include"),e.url=this.mergeQueryParams(e.url,e.queryParams);let i=new AbortController,s;return typeof e.timeout=="number"&&e.timeout>0&&(s=setTimeout(()=>i.abort(),e.timeout)),o.signal=i.signal,fetch(e.url,o).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:xr.RequestTimeout,message:"Request Timeout",body:null}):Promise.reject(n)).finally(()=>{typeof s<"u"&&clearTimeout(s)})}static cacheFlush(){this._cacheStrategy.flush()}static mergeQueryParams(r,e){if(!e||Object.keys(e).length===0)return r;let o=r.startsWith("http"),i=new URL(r,globalThis?.location?.origin||this._mergeParamsFallbackBaseUrl),n={...Object.fromEntries(new URLSearchParams(i.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=i.origin+i.pathname+l;return o?m:m.replace(i.origin,"")}static _generateCacheKey(r){let e=`${r.method}:${r.url}`;return r.queryParams&&Object.keys(r.queryParams).length>0&&(e+=`:${rr.md5(JSON.stringify(r.queryParams))}`),r.body&&Object.keys(r.body).length>0?`${e}:${rr.md5(JSON.stringify(r.body))}`:e}static async _preprocessRequest(r){return r}static async _preprocessResponse(r,e){return e}};var rt=require("@tonysamperi/logger");var he=class{static{c(this,"SmpApiCommonUtils")}static _javascriptVariablePattern="[a-zA-Z_$][a-zA-Z_$0-9]*";static _logger=new rt.SmpLoggerMethods;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,(o,i)=>{let s=e[i];return s!==void 0?encodeURIComponent(s):o})}catch(o){this._logger.warn(`${this.constructor.name}: couldn't interpolate params`,o)}return r}};var pe=class t extends L{static{c(this,"SmpErrorResponseWithStackTrace")}stackTrace;static create({messages:r=L.DEFAULT_MESSAGES,stackTrace:e,...o}={}){let i=new t(T.sanitizeMessages(r),o.errorCode,o.status,o.data);return i.stackTrace=e,i}};var Ro={status:"OK"};var ue=(function(t){return t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.PATCH="PATCH",t})({});var fe=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,o){this._access_token=r,this._exp=e,this._iss=o}serialize(){return{access_token:this._access_token,exp:this._exp,iss:this._iss}}};var me=class{static{c(this,"SmpBaseJwtTokenPlain")}access_token;exp;iss};var Bo=(function(t){return t.APPLE="APPLE",t.FACEBOOK="FACEBOOK",t.GOOGLE="GOOGLE",t})({});var Oo=(function(t){return t.POPUP="POPUP",t.REDIRECT="REDIRECT",t})({});var hr=class{static{c(this,"SmpAesCrypt")}_password;_salt;_initVector;_iv;_key;_mode=U;_padding=V;constructor(r,e,o){this._password=r,this._salt=e,this._initVector=o,this._iv=this._initVector?P.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(r){return G.decrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(O)}encryptAES(r){return G.encrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return vr.execute(this._password,P.parse(this._salt),{keySize:256/32,iterations:1e3,hasher:J})}};var Gr=class t{static{c(this,"SmpAesCryptV2")}_password;_salt;_initVector;static _KEY_SIZE=256/32;static _PBKDF2_ITERATIONS=1e5;_iv;_key;_mode=U;_padding=V;constructor(r,e,o){this._password=r,this._salt=e,this._initVector=o,this._iv=this._initVector?P.parse(this._initVector):void 0,this._key=this._buildKey()}decryptAES(r){return G.decrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString(O)}encryptAES(r){return G.encrypt(r,this._key,{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return vr.execute(this._password,P.parse(this._salt),{keySize:t._KEY_SIZE,iterations:t._PBKDF2_ITERATIONS,hasher:Q})}};var $r=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:xr.BadRequest})}_encode(){let r=new M;return r.update(O.parse(this._seed+this._baseCode)),r.finalize().toString(P).substring(0,this._crcLength).toUpperCase()}};var Do=(function(t){return t.DIFFERENT_CREDENTIAL="auth/account-exists-with-different-credential",t.DIFFERENT_CREDENTIAL_APPLE="auth/account-exists-with-different-credential/apple",t.DIFFERENT_CREDENTIAL_FACEBOOK="auth/account-exists-with-different-credential/facebook",t.DIFFERENT_CREDENTIAL_GOOGLE="auth/account-exists-with-different-credential/google",t.EMAIL_EXISTS="auth/email-already-exists",t.INVALID_ACTION_CODE="auth/invalid-action-code",t.POPUP_BLOCKED="auth/popup-blocked",t.POPUP_CLOSED_BY_USER="auth/popup-closed-by-user",t.USER_NOT_FOUND="auth/user-not-found",t.WRONG_PASSWORD="auth/wrong-password",t})({});var pr=require("class-transformer"),Wr=require("ts-luxon");var N=(function(t){return t.ACTIVATE="ACTIVATE",t.BLOCK="BLOCK",t.CHECK="CHECK",t.DIGITAL_ACTIVATE="DIGITAL_ACTIVATE",t.FREEZE="FREEZE",t.PURCHASE="PURCHASE",t.RECHARGE="RECHARGE",t.ROLLBACK="ROLLBACK",t.TRANSACTION="TRANSACTION",t.TRANSACTION_DETAIL="TRANSACTION_DETAIL",t.UNFREEZE="UNFREEZE",t.XREFUND="XREFUND",t})({});var er=(function(t){return t.MD5="MD5",t.MD5_HMAC="MD5_HMAC",t.SHA1="SHA1",t.SHA1_HMAC="SHA1_HMAC",t})({});function To(t,r,e,o){var i=arguments.length,s=i<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,r,e,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(r,e,s):n(r,e))||s);return i>3&&s&&Object.defineProperty(r,e,s),s}c(To,"_ts_decorate");function et(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}c(et,"_ts_metadata");var Kr=class t{static{c(this,"SmpGiftcardTransaction")}gc;op;ot;static _AES_ENCODER=new hr("changeme","5f6eae61d2428b99","d92fbf214e16a79fd36f9a5185ae733f");static _OP_CODES={[N.CHECK]:"",[N.TRANSACTION]:"",[N.TRANSACTION_DETAIL]:"",[N.ACTIVATE]:"A",[N.BLOCK]:"B",[N.DIGITAL_ACTIVATE]:"D",[N.FREEZE]:"F",[N.PURCHASE]:"P",[N.RECHARGE]:"G",[N.ROLLBACK]:"R",[N.UNFREEZE]:"U",[N.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={[er.MD5]:r=>cr(r),[er.MD5_HMAC]:r=>{let e=new M;return e.update(O.parse(r)),e.finalize()},[er.SHA1]:r=>lr(r),[er.SHA1_HMAC]:r=>{let e=new J;return e.update(O.parse(r)),e.finalize()}};_hashStrategy=this._hashStrategies[er.MD5];constructor(r="ACTIVATION",e,o,i){this.gc=r,this.op=e,this.ot=o,this._dto=typeof i=="number"&&i>=0?Wr.DateTime.fromMillis(+`${i}000`.slice(0,13)):Wr.DateTime.local()}static build({gc:r,op:e,ot:o,dto:i}){return new this(r,e,o,i?.ts)}static explode(r){let e=this.constructor,o=(r||"").split(e._SEP);if(o.length<4)throw new Error(`${this.constructor.name}::explode: invalid transactionId provided => "${r}"`);return this.build({gc:o[1],op:e.prefixToOperation(o[2]),dto:Wr.DateTime.fromSeconds(+o[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),o=JSON.parse(e);return(0,pr.plainToInstance)(t,o)}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(([,o])=>o===r)[0]}serialize(){return(0,pr.instanceToPlain)(this,{excludePrefixes:["_"]})}toString(){let r=JSON.stringify(this.serialize());return this.constructor._AES_ENCODER.encryptAES(r)}};To([(0,pr.Expose)(),et("design:type",Number),et("design:paramtypes",[])],Kr.prototype,"ts",null);var qo=(function(t){return t.ListDetectiveValidator="ListDetectiveValidator",t.MXValidator="MXValidator",t.SyntaxValidator="SyntaxValidator",t})({});function ko(t,r){r.forEach(e=>{Object.getOwnPropertyNames(e.prototype).forEach(o=>{o!=="constructor"&&(o in t.prototype||Object.defineProperty(t.prototype,o,Object.getOwnPropertyDescriptor(e.prototype,o)))});try{let o=new e;Object.getOwnPropertyNames(o).forEach(i=>{i in t.prototype||Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(o,i))})}catch{}Object.getOwnPropertyNames(e).forEach(o=>{o!=="prototype"&&o!=="name"&&o!=="length"&&(o in t||Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o)))})})}c(ko,"smpApplyMixin");var de=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function tt(){}c(tt,"noop");function ge(t){return typeof de.Buffer<"u"&&de.Buffer.isBuffer(t)}c(ge,"isBuffer");function we(t){return Object.getOwnPropertySymbols(t).filter(r=>Object.prototype.propertyIsEnumerable.call(t,r))}c(we,"getSymbols");function ye(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}c(ye,"getTag");var ot="[object RegExp]",it="[object String]",st="[object Number]",nt="[object Boolean]";var at="[object Symbol]",ct="[object Date]",lt="[object Map]",ht="[object Set]",pt="[object Array]",ut="[object Function]",ft="[object ArrayBuffer]",Hr="[object Object]",mt="[object Error]",dt="[object DataView]",gt="[object Uint8Array]",wt="[object Uint8ClampedArray]",yt="[object Uint16Array]",bt="[object Uint32Array]",_t="[object BigUint64Array]",xt="[object Int8Array]",Et="[object Int16Array]",vt="[object Int32Array]",At="[object BigInt64Array]",Rt="[object Float32Array]",Bt="[object Float64Array]";function be(t){if(!t||typeof t!="object")return!1;let r=Object.getPrototypeOf(t);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(t)==="[object Object]":!1}c(be,"isPlainObject");function Ot(t,r){return t===r||Number.isNaN(t)&&Number.isNaN(r)}c(Ot,"eq");function Dt(t,r,e){return Or(t,r,void 0,void 0,void 0,void 0,e)}c(Dt,"isEqualWith");function Or(t,r,e,o,i,s,n){let a=n(t,r,e,o,i,s);if(a!==void 0)return a;if(typeof t==typeof r)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return t===r;case"number":return t===r||Object.is(t,r);case"function":return t===r;case"object":return Dr(t,r,s,n)}return Dr(t,r,s,n)}c(Or,"isEqualWithImpl");function Dr(t,r,e,o){if(Object.is(t,r))return!0;let i=ye(t),s=ye(r);if(i==="[object Arguments]"&&(i=Hr),s==="[object Arguments]"&&(s=Hr),i!==s)return!1;switch(i){case it:return t.toString()===r.toString();case st:{let l=t.valueOf(),p=r.valueOf();return Ot(l,p)}case nt:case ct:case at:return Object.is(t.valueOf(),r.valueOf());case ot:return t.source===r.source&&t.flags===r.flags;case ut:return t===r}e=e??new Map;let n=e.get(t),a=e.get(r);if(n!=null&&a!=null)return n===r;e.set(t,r),e.set(r,t);try{switch(i){case lt:if(t.size!==r.size)return!1;for(let[l,p]of t.entries())if(!r.has(l)||!Or(p,r.get(l),l,t,r,e,o))return!1;return!0;case ht:{if(t.size!==r.size)return!1;let l=Array.from(t.values()),p=Array.from(r.values());for(let m=0;m<l.length;m++){let d=l[m],w=p.findIndex(g=>Or(d,g,void 0,t,r,e,o));if(w===-1)return!1;p.splice(w,1)}return!0}case pt:case gt:case wt:case yt:case bt:case _t:case xt:case Et:case vt:case At:case Rt:case Bt:if(ge(t)!==ge(r)||t.length!==r.length)return!1;for(let l=0;l<t.length;l++)if(!Or(t[l],r[l],l,t,r,e,o))return!1;return!0;case ft:return t.byteLength!==r.byteLength?!1:Dr(new Uint8Array(t),new Uint8Array(r),e,o);case dt:return t.byteLength!==r.byteLength||t.byteOffset!==r.byteOffset?!1:Dr(new Uint8Array(t),new Uint8Array(r),e,o);case mt:return t.name===r.name&&t.message===r.message;case Hr:{if(!(Dr(t.constructor,r.constructor,e,o)||be(t)&&be(r)))return!1;let l=[...Object.keys(t),...we(t)],p=[...Object.keys(r),...we(r)];if(l.length!==p.length)return!1;for(let m=0;m<l.length;m++){let d=l[m],w=t[d];if(!Object.hasOwn(r,d))return!1;let g=r[d];if(!Or(w,g,d,t,r,e,o))return!1}return!0}default:return!1}}finally{e.delete(t),e.delete(r)}}c(Dr,"areObjectsEqual");function _e(t,r){return Dt(t,r,tt)}c(_e,"isEqual");var eo=yo(qt(),1);var ur=function(){return ur=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ur.apply(this,arguments)},No="~",Co="~~";function xe(t,r){for(var e={},o={},i=t.split(Co),s=!1,n=0;i.length>n;n++){for(var a=i[n].split(No),l=0;l<a.length;l+=2){var p=a[l],m=a[l+1],d="&"+p+";";e[d]=m,s&&(e["&"+p]=m),o[m]=d}s=!0}return r?{entities:ur(ur({},e),r.entities),characters:ur(ur({},o),r.characters)}:{entities:e,characters:o}}c(xe,"generateNamedReferences");var Zr={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},tr={};tr.xml=xe(`lt~<~gt~>~quot~"~apos~'~amp~&`);tr.html4=xe(`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~>`);tr.html5=xe('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',tr.html4);var kt={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 Nt=String.fromCodePoint||function(t){return String.fromCharCode(Math.floor((t-65536)/1024)+55296,(t-65536)%1024+56320)},Lo=String.prototype.codePointAt?function(t,r){return t.codePointAt(r)}:function(t,r){return(t.charCodeAt(r)-55296)*1024+t.charCodeAt(r+1)-56320+65536};var fr=function(){return fr=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},fr.apply(this,arguments)},Io=fr(fr({},tr),{all:tr.html5});var Fo={scope:"body",level:"all"},Ee=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,ve=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,Ct={xml:{strict:Ee,attribute:ve,body:Zr.xml},html4:{strict:Ee,attribute:ve,body:Zr.html4},html5:{strict:Ee,attribute:ve,body:Zr.html5}},Po=fr(fr({},Ct),{all:Ct.html5}),Lt=String.fromCharCode,Uo=Lt(65533);function jo(t,r,e,o){var i=t,s=t[t.length-1];if(e&&s==="=")i=t;else if(o&&s!==";")i=t;else{var n=r[t];if(n)i=n;else if(t[0]==="&"&&t[1]==="#"){var a=t[2],l=a=="x"||a=="X"?parseInt(t.substr(3),16):parseInt(t.substr(2));i=l>=1114111?Uo:l>65535?Nt(l):Lt(kt[l]||l)}}return i}c(jo,"getDecodedEntity");function It(t,r){var e=r===void 0?Fo:r,o=e.level,i=o===void 0?"all":o,s=e.scope,n=s===void 0?i==="xml"?"strict":"body":s;if(!t)return"";var a=Po[i][n],l=Io[i].entities,p=n==="attribute",m=n==="strict";return t.replace(a,function(d){return jo(d,l,p,m)})}c(It,"decode");var zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ft(t){return t.match(zo)}c(Ft,"smpAsciiWords");var St="\\ud800-\\udfff",Mo="\\u0300-\\u036f",So="\\ufe20-\\ufe2f",Vo="\\u20d0-\\u20ff",Go="\\u1ab0-\\u1aff",$o="\\u1dc0-\\u1dff",Wo=Mo+So+Vo+Go+$o,Vt="\\u2700-\\u27bf",Gt="a-z\\xdf-\\xf6\\xf8-\\xff",Ko="\\xac\\xb1\\xd7\\xf7",Ho="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xo="\\u2000-\\u206f",Zo=" \\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",$t="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",Wt=Ko+Ho+Xo+Zo,Kt="['\u2019]",Pt=`[${Wt}]`,Yo=`[${Wo}]`,Ht="\\d",Qo=`[${Vt}]`,Xt=`[${Gt}]`,Zt=`[^${St}${Wt+Ht+Vt+Gt+$t}]`,ri="\\ud83c[\\udffb-\\udfff]",ei=`(?:${Yo}|${ri})`,ti=`[^${St}]`,Jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Yt="[\\ud800-\\udbff][\\udc00-\\udfff]",mr=`[${$t}]`,oi="\\u200d",Ut=`(?:${Xt}|${Zt})`,ii=`(?:${mr}|${Zt})`,jt=`(?:${Kt}(?:d|ll|m|re|s|t|ve))?`,zt=`(?:${Kt}(?:D|LL|M|RE|S|T|VE))?`,Qt=`${ei}?`,ro=`[${Jo}]?`,si=`(?:${oi}(?:${[ti,Jt,Yt].join("|")})${ro+Qt})*`,ni="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ai="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ci=ro+Qt+si,Mt=`(?:${[Qo,Jt,Yt].join("|")})${ci}`,Tr=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([`${mr}?${Xt}+${jt}(?=${[Pt,mr,"$"].join("|")})`,`${ii}+${zt}(?=${[Pt,mr+Ut,"$"].join("|")})`,`${mr}?${Ut}+${jt}`,`${mr}+${zt}`,ai,ni,`${Ht}+`,Mt].join("|"),"g");static RS_EMOJI=Mt;static unicodeWords(r){return r.match(this.RE_UNICODE_WORDS)}};var Ae=class{static{c(this,"SmpCommonUtils")}static arrayRemove(r,e){let o=[],i=r.filter((s,n)=>e(s,n)&&o.push(n));return o.reverse().forEach(s=>r.splice(s,1)),i}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,o){if(!(r instanceof e))throw new Error(o||`${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(o=>!!o).join("/").replace(/(?<!:)\/\/+/g,"/");return e.startsWith("http")&&!e.endsWith("/")?`${e}/`:e}static downloadBlob(r,e){let o=window.URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.setAttribute("download",e),document.body.appendChild(i),i.click()}static fixDecimalPrecision(r,e=2){this.assertIsNumber(r),this.assertIsNumber(e);let i=10**Math.max(0,Math.trunc(e));return Math.round((r+Number.EPSILON)*i)/i}static generateRandomHexString(r=12){let e="0123456789abcdef",o="";for(let i=0;i<r;i++){let s=Math.floor(Math.random()*e.length);o+=e[s]}return o}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,o=0;for(;Math.round(+r*e)/e!==r;)e*=10,o++;return o}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 _e(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((o,[i,s])=>(o.push(e(s,i)),o),[]);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((o,[i,s])=>{let n=e(i,s);return o[n]=s,o},{}):{}}static mapObjectValues(r,e){return this.isObject(r)?Object.entries(r).reduce((o,[i,s])=>(o[i]=e.call(null,s,i),o),{}):{}}static noop(){}static objectHasValue(r,e){return!!~Object.values(r).filter(o=>this.isEqual(o,e))}static omit(r,e){return Object.keys(r).filter(i=>!e.includes(i)).reduce((i,s)=>(i[s]=r[s],i),{})}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((o,i)=>(i in r&&(o[i]=r[i]),o),{})}static runSafely(r,e=null,o=[]){if(this.isFunction(r))return r.apply(e,o)}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 o=(0,eo.default)(r);return(e?It(o):o).replace(/\s+/g," ").trim()}static submitFakeForm({action:r,method:e=ue.POST,data:o,target:i}){let s=Object.entries(o||{}).map(([a,l])=>`<input name="${a}" type="hidden" value="${l}" />`),n=document.createElement("form");n.method=e,n.action=r,n.innerHTML=`${s}`,n.target=i||"_self",document.body.append(n),n.submit()}static toCamelCase(r){return this.words(r.replace(/['\u2019]/g,"")).reduce((e,o,i)=>(o=o.toLowerCase(),e+(i?o.charAt(0).toUpperCase()+o.slice(1):o)),"")}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?(Tr.HAS_UNICODE_WORD(r)?Tr.unicodeWords(r):Ft(r))||[]:r.match(e)||[]}};var Re=class extends Error{static{c(this,"SmpFilterException")}message;data;constructor(r="Filter Exception",e){super(),this.message=r,this.data=e}};var Be=require("ts-luxon");var Oe=class t{static{c(this,"SmpSid")}value;expiry;get active(){return this.value.endsWith(this._controlSuffix)}get expired(){return Be.DateTime.now().ts>this.expiry}get valid(){return!this.expired}_controlSuffix="$1";constructor(r=`sid-xxxx-${+Be.DateTime.now().ts}`,e=0){this.value=r,this.expiry=e}static parse(r){return new t(r.value,r.expiry)}toPlain(){return{value:this.value,expiry:this.expiry}}};var to=require("@tonysamperi/logger");var De=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 li="2.1.0";0&&(module.exports={SMP_HEALTHZ,SmpAbstractCacheStrategy,SmpAbstractTtlCacheStrategy,SmpAesCrypt,SmpAesCryptV2,SmpApiCommonUtils,SmpBaseJwtToken,SmpBaseJwtTokenPlain,SmpBrowserCache,SmpCommonUtils,SmpCrypto,SmpErrorResponse,SmpErrorResponseWithStackTrace,SmpFilterException,SmpFirebaseErrors,SmpGenericResponse,SmpGiftcardTransaction,SmpGiftcardTransactionHashStrategies,SmpGiftcardTransactionOps,SmpHttpSessionStorageCache,SmpHttpStatusCodes,SmpHttpTwoService,SmpInMemoryCache,SmpMarketingCloudValidators,SmpRegularExpressions,SmpResponseMessage,SmpResponseMessageTypes,SmpRestVerbs,SmpSecureCode,SmpSid,SmpSocialSignInKeys,SmpSocialSignInUxModes,VERSION,smpApplyMixin,smpIsSmpCachedValue,smpNoop});
|
|
2
3
|
//# sourceMappingURL=index.cjs.map
|