@liquidcommercedev/rmn-sdk 1.5.0-beta.45 → 1.5.0-beta.47

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.
@@ -1 +1 @@
1
- !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).LiquidCommerceRmn={})}(this,(function(t){"use strict";var n,e,i,r,o,s;!function(t){t.RB_HOMEPAGE_HERO="rbHomepageHero",t.RB_HOMEPAGE_HERO_THREE_TILE="rbHomepageHeroThreeTile",t.RB_HOMEPAGE_HERO_TWO_TILE="rbHomepageHeroTwoTile",t.RB_HOMEPAGE_HERO_FULL_IMAGE="rbHomepageHeroFullImage",t.RB_LARGE_CATEGORY_IMAGE_TOUT="rbLargeCategoryImageTout",t.RB_SMALL_DISCOVER_TOUT="rbSmallDiscoverTout",t.RB_SMALL_CATEGORY_IMAGE_TOUT="rbSmallCategoryImageTout",t.RB_LONG_TOUT_SHORT="rbLongToutShort",t.RB_LONG_TOUT_TALL="rbLongToutTall",t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK="rbCollectionBannerWithoutTextBlock",t.RB_PRODUCT_UPCS="rbProductUpcs",t.RB_NAVIGATION_BANNER="rbNavigationBanner",t.RB_VIDEO_PLAYER="rbVideoPlayer",t.RB_IN_TEXT="rbInText",t.BILLBOARD="billboard",t.LARGE_RECTANGLE="largeRectangle",t.VERTICAL_RECTANGLE="verticalRectangle",t.SQUARE="square",t.LARGE_LEADERBOARD="largeLeaderboard",t.WIDE_SKYSCRAPER="wideSkyscraper",t.IN_TEXT="inText",t.SMALL_RECTANGLE="smallRectangle",t.MEDIUM_RECTANGLE="mediumRectangle",t.BANNER="banner",t.LEADERBOARD="leaderboard",t.SKYSCRAPER="skyscraper",t.HALF_PAGE="halfPage",t.SMALL_SQUARE="smallSquare",t.VERTICAL_BANNER="verticalBanner",t.BUTTON_2="button2",t.MICRO_BAR="microBar",t.POP_UP="popUp",t.PORTRAIT="portrait",t.SMARTPHONE_BANNER_1="smartphoneBanner1",t.SMARTPHONE_BANNER_2="smartphoneBanner2",t.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",t.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",t.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",t.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",t.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",t.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(n||(n={})),function(t){t.KEYWORDS="keywords",t.PAGE_LOCATION="pageLocation",t.PARENTCO="parentCo",t.BRAND="brand",t.CATEGORY="category",t.TYPE="type",t.CLASSIFICATION="classification",t.HOLIDAY="holiday",t.PUBLISHERS="publishers",t.SECTION="section"}(e||(e={})),function(t){t.LIFECYCLE_STATE="LIFECYCLE_STATE",t.SPOT_EVENT="SPOT_EVENT",t.RENDERED_SPOT_DATA="RENDERED_SPOT_DATA"}(i||(i={})),function(t){t.IMPRESSION="IMPRESSION",t.CLICK="CLICK",t.PURCHASE="PURCHASE",t.ADD_TO_CART="ADD_TO_CART",t.REMOVE_FROM_CART="REMOVE_FROM_CART",t.ADD_TO_CART_FROM_DETAILS="ADD_TO_CART_FROM_DETAILS",t.ADD_TO_WISHLIST="ADD_TO_WISHLIST",t.EXPAND_PRODUCT="EXPAND_PRODUCT",t.BUY_NOW="BUY_NOW"}(r||(r={})),function(t){t.LOCAL="local",t.DEVELOPMENT="development",t.STAGING="staging",t.PRODUCTION="production"}(o||(o={})),function(t){t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t.MIDDLE="middle",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.MIDDLE_LEFT="middle-left",t.MIDDLE_RIGHT="middle-right"}(s||(s={}));const a="X-Liquid-Protected",c="X-Liquid-Timestamp",h="X-Liquid-Api-Env",u={url:{[o.LOCAL]:"http://localhost:8300",[o.DEVELOPMENT]:"https://dev.rmn.liquidcommerce.cloud",[o.STAGING]:"https://staging.rmn.liquidcommerce.cloud",[o.PRODUCTION]:"https://rmn.liquidcommerce.cloud"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{env:o.DEVELOPMENT}};class l{}var d="undefined"!=typeof global?global:"undefined"!=typeof self?self:window;function f(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}var m=f,g=p;function v(t){if(m===setTimeout)return setTimeout(t,0);if((m===f||!m)&&setTimeout)return m=setTimeout,setTimeout(t,0);try{return m(t,0)}catch(n){try{return m.call(null,t,0)}catch(n){return m.call(this,t,0)}}}"function"==typeof d.setTimeout&&(m=setTimeout),"function"==typeof d.clearTimeout&&(g=clearTimeout);var b,w=[],y=!1,x=-1;function _(){y&&b&&(y=!1,b.length?w=b.concat(w):x=-1,w.length&&$())}function $(){if(!y){var t=v(_);y=!0;for(var n=w.length;n;){for(b=w,w=[];++x<n;)b&&b[x].run();x=-1,n=w.length}b=null,y=!1,function(t){if(g===clearTimeout)return clearTimeout(t);if((g===p||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(t);try{return g(t)}catch(n){try{return g.call(null,t)}catch(n){return g.call(this,t)}}}(t)}}function S(t,n){this.fun=t,this.array=n}S.prototype.run=function(){this.fun.apply(null,this.array)};var E=d.performance||{};E.now||E.mozNow||E.msNow||E.oNow||E.webkitNow;var k={nextTick:function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];w.push(new S(t,n)),1!==w.length||y||v($)}};function T(t,n){return function(){return t.apply(n,arguments)}}const{toString:R}=Object.prototype,{getPrototypeOf:A}=Object,C=(I=Object.create(null),t=>{const n=R.call(t);return I[n]||(I[n]=n.slice(8,-1).toLowerCase())});var I;const O=t=>(t=t.toLowerCase(),n=>C(n)===t),z=t=>n=>typeof n===t,{isArray:P}=Array,D=z("undefined"),j=O("ArrayBuffer"),M=z("string"),B=z("function"),H=z("number"),N=t=>null!==t&&"object"==typeof t,U=t=>{if("object"!==C(t))return!1;const n=A(t);return!(null!==n&&n!==Object.prototype&&null!==Object.getPrototypeOf(n)||Symbol.toStringTag in t||Symbol.iterator in t)},L=O("Date"),W=O("File"),J=O("Blob"),F=O("FileList"),K=O("URLSearchParams"),[q,V,Y,X]=["ReadableStream","Request","Response","Headers"].map(O);function G(t,n,{allOwnKeys:e=!1}={}){if(null==t)return;let i,r;if("object"!=typeof t&&(t=[t]),P(t))for(i=0,r=t.length;i<r;i++)n.call(null,t[i],i,t);else{const r=e?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let s;for(i=0;i<o;i++)s=r[i],n.call(null,t[s],s,t)}}function Z(t,n){n=n.toLowerCase();const e=Object.keys(t);let i,r=e.length;for(;r-- >0;)if(i=e[r],n===i.toLowerCase())return i;return null}const Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,tt=t=>!D(t)&&t!==Q,nt=(et="undefined"!=typeof Uint8Array&&A(Uint8Array),t=>et&&t instanceof et);var et;const it=O("HTMLFormElement"),rt=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),ot=O("RegExp"),st=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),i={};G(e,((e,r)=>{let o;!1!==(o=n(e,r,t))&&(i[r]=o||e)})),Object.defineProperties(t,i)},at=O("AsyncFunction"),ct=(ht="function"==typeof setImmediate,ut=B(Q.postMessage),ht?setImmediate:ut?(lt=`axios@${Math.random()}`,dt=[],Q.addEventListener("message",(({source:t,data:n})=>{t===Q&&n===lt&&dt.length&&dt.shift()()}),!1),t=>{dt.push(t),Q.postMessage(lt,"*")}):t=>setTimeout(t));var ht,ut,lt,dt;const ft="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q):k.nextTick||ct;var pt={isArray:P,isArrayBuffer:j,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&B(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||B(t.append)&&("formdata"===(n=C(t))||"object"===n&&B(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let n;return n="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&j(t.buffer),n},isString:M,isNumber:H,isBoolean:t=>!0===t||!1===t,isObject:N,isPlainObject:U,isReadableStream:q,isRequest:V,isResponse:Y,isHeaders:X,isUndefined:D,isDate:L,isFile:W,isBlob:J,isRegExp:ot,isFunction:B,isStream:t=>N(t)&&B(t.pipe),isURLSearchParams:K,isTypedArray:nt,isFileList:F,forEach:G,merge:function t(){const{caseless:n}=tt(this)&&this||{},e={},i=(i,r)=>{const o=n&&Z(e,r)||r;U(e[o])&&U(i)?e[o]=t(e[o],i):U(i)?e[o]=t({},i):P(i)?e[o]=i.slice():e[o]=i};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&G(arguments[t],i);return e},extend:(t,n,e,{allOwnKeys:i}={})=>(G(n,((n,i)=>{e&&B(n)?t[i]=T(n,e):t[i]=n}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,e,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},toFlatObject:(t,n,e,i)=>{let r,o,s;const a={};if(n=n||{},null==t)return n;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],i&&!i(s,t,n)||a[s]||(n[s]=t[s],a[s]=!0);t=!1!==e&&A(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},kindOf:C,kindOfTest:O,endsWith:(t,n,e)=>{t=String(t),(void 0===e||e>t.length)&&(e=t.length),e-=n.length;const i=t.indexOf(n,e);return-1!==i&&i===e},toArray:t=>{if(!t)return null;if(P(t))return t;let n=t.length;if(!H(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},forEachEntry:(t,n)=>{const e=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=e.next())&&!i.done;){const e=i.value;n.call(t,e[0],e[1])}},matchAll:(t,n)=>{let e;const i=[];for(;null!==(e=t.exec(n));)i.push(e);return i},isHTMLForm:it,hasOwnProperty:rt,hasOwnProp:rt,reduceDescriptors:st,freezeMethods:t=>{st(t,((n,e)=>{if(B(t)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const i=t[e];B(i)&&(n.enumerable=!1,"writable"in n?n.writable=!1:n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(t,n)=>{const e={},i=t=>{t.forEach((t=>{e[t]=!0}))};return P(t)?i(t):i(String(t).split(n)),e},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,n,e){return n.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t=+t)?t:n,findKey:Z,global:Q,isContextDefined:tt,isSpecCompliantForm:function(t){return!!(t&&B(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const n=new Array(10),e=(t,i)=>{if(N(t)){if(n.indexOf(t)>=0)return;if(!("toJSON"in t)){n[i]=t;const r=P(t)?[]:{};return G(t,((t,n)=>{const o=e(t,i+1);!D(o)&&(r[n]=o)})),n[i]=void 0,r}}return t};return e(t,0)},isAsyncFn:at,isThenable:t=>t&&(N(t)||B(t))&&B(t.then)&&B(t.catch),setImmediate:ct,asap:ft},mt=[],gt=[],vt="undefined"!=typeof Uint8Array?Uint8Array:Array,bt=!1;function wt(){bt=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0;n<64;++n)mt[n]=t[n],gt[t.charCodeAt(n)]=n;gt["-".charCodeAt(0)]=62,gt["_".charCodeAt(0)]=63}function yt(t,n,e){for(var i,r,o=[],s=n;s<e;s+=3)i=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(mt[(r=i)>>18&63]+mt[r>>12&63]+mt[r>>6&63]+mt[63&r]);return o.join("")}function xt(t){var n;bt||wt();for(var e=t.length,i=e%3,r="",o=[],s=16383,a=0,c=e-i;a<c;a+=s)o.push(yt(t,a,a+s>c?c:a+s));return 1===i?(n=t[e-1],r+=mt[n>>2],r+=mt[n<<4&63],r+="=="):2===i&&(n=(t[e-2]<<8)+t[e-1],r+=mt[n>>10],r+=mt[n>>4&63],r+=mt[n<<2&63],r+="="),o.push(r),o.join("")}function _t(t,n,e,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,h=c>>1,u=-7,l=e?r-1:0,d=e?-1:1,f=t[n+l];for(l+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[n+l],l+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[n+l],l+=d,u-=8);if(0===o)o=1-h;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=h}return(f?-1:1)*s*Math.pow(2,o-i)}function $t(t,n,e,i,r,o){var s,a,c,h=8*o-r-1,u=(1<<h)-1,l=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,s=u):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),(n+=s+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=u?(a=0,s=u):s+l>=1?(a=(n*c-1)*Math.pow(2,r),s+=l):(a=n*Math.pow(2,l-1)*Math.pow(2,r),s=0));r>=8;t[e+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,h+=r;h>0;t[e+f]=255&s,f+=p,s/=256,h-=8);t[e+f-p]|=128*m}var St={}.toString,Et=Array.isArray||function(t){return"[object Array]"==St.call(t)};function kt(){return Rt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tt(t,n){if(kt()<n)throw new RangeError("Invalid typed array length");return Rt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=Rt.prototype:(null===t&&(t=new Rt(n)),t.length=n),t}function Rt(t,n,e){if(!(Rt.TYPED_ARRAY_SUPPORT||this instanceof Rt))return new Rt(t,n,e);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return It(this,t)}return At(this,t,n,e)}function At(t,n,e,i){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,i){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return n=void 0===e&&void 0===i?new Uint8Array(n):void 0===i?new Uint8Array(n,e):new Uint8Array(n,e,i),Rt.TYPED_ARRAY_SUPPORT?(t=n).__proto__=Rt.prototype:t=Ot(t,n),t}(t,n,e,i):"string"==typeof n?function(t,n,e){if("string"==typeof e&&""!==e||(e="utf8"),!Rt.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=0|Dt(n,e),r=(t=Tt(t,i)).write(n,e);return r!==i&&(t=t.slice(0,r)),t}(t,n,e):function(t,n){if(Pt(n)){var e=0|zt(n.length);return 0===(t=Tt(t,e)).length||n.copy(t,0,0,e),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(i=n.length)!=i?Tt(t,0):Ot(t,n);if("Buffer"===n.type&&Et(n.data))return Ot(t,n.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function Ct(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function It(t,n){if(Ct(n),t=Tt(t,n<0?0:0|zt(n)),!Rt.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function Ot(t,n){var e=n.length<0?0:0|zt(n.length);t=Tt(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function zt(t){if(t>=kt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kt().toString(16)+" bytes");return 0|t}function Pt(t){return!(null==t||!t.i)}function Dt(t,n){if(Pt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return cn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return hn(t).length;default:if(i)return cn(t).length;n=(""+n).toLowerCase(),i=!0}}function jt(t,n,e){var i=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Gt(this,n,e);case"utf8":case"utf-8":return qt(this,n,e);case"ascii":return Yt(this,n,e);case"latin1":case"binary":return Xt(this,n,e);case"base64":return Kt(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,n,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function Mt(t,n,e){var i=t[n];t[n]=t[e],t[e]=i}function Bt(t,n,e,i,r){if(0===t.length)return-1;if("string"==typeof e?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=r?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(r)return-1;e=t.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof n&&(n=Rt.from(n,i)),Pt(n))return 0===n.length?-1:Ht(t,n,e,i,r);if("number"==typeof n)return n&=255,Rt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):Ht(t,[n],e,i,r);throw new TypeError("val must be string, number or Buffer")}function Ht(t,n,e,i,r){var o,s=1,a=t.length,c=n.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||n.length<2)return-1;s=2,a/=2,c/=2,e/=2}function h(t,n){return 1===s?t[n]:t.readUInt16BE(n*s)}if(r){var u=-1;for(o=e;o<a;o++)if(h(t,o)===h(n,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(e+c>a&&(e=a-c),o=e;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(h(t,o+d)!==h(n,d)){l=!1;break}if(l)return o}return-1}function Nt(t,n,e,i){e=Number(e)||0;var r=t.length-e;i?(i=Number(i))>r&&(i=r):i=r;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(n.substr(2*s,2),16);if(isNaN(a))return s;t[e+s]=a}return s}function Ut(t,n,e,i){return un(cn(n,t.length-e),t,e,i)}function Lt(t,n,e,i){return un(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,i)}function Wt(t,n,e,i){return Lt(t,n,e,i)}function Jt(t,n,e,i){return un(hn(n),t,e,i)}function Ft(t,n,e,i){return un(function(t,n){for(var e,i,r,o=[],s=0;s<t.length&&!((n-=2)<0);++s)i=(e=t.charCodeAt(s))>>8,r=e%256,o.push(r),o.push(i);return o}(n,t.length-e),t,e,i)}function Kt(t,n,e){return 0===n&&e===t.length?xt(t):xt(t.slice(n,e))}function qt(t,n,e){e=Math.min(t.length,e);for(var i=[],r=n;r<e;){var o,s,a,c,h=t[r],u=null,l=h>239?4:h>223?3:h>191?2:1;if(r+l<=e)switch(l){case 1:h<128&&(u=h);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&h)<<6|63&o)>127&&(u=c);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&(c=(15&h)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,l=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=l}return function(t){var n=t.length;if(n<=Vt)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<n;)e+=String.fromCharCode.apply(String,t.slice(i,i+=Vt));return e}(i)}Rt.TYPED_ARRAY_SUPPORT=void 0===d.TYPED_ARRAY_SUPPORT||d.TYPED_ARRAY_SUPPORT,kt(),Rt.poolSize=8192,Rt.o=function(t){return t.__proto__=Rt.prototype,t},Rt.from=function(t,n,e){return At(null,t,n,e)},Rt.TYPED_ARRAY_SUPPORT&&(Rt.prototype.__proto__=Uint8Array.prototype,Rt.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Rt[Symbol.species]),Rt.alloc=function(t,n,e){return function(t,n,e,i){return Ct(n),n<=0?Tt(t,n):void 0!==e?"string"==typeof i?Tt(t,n).fill(e,i):Tt(t,n).fill(e):Tt(t,n)}(null,t,n,e)},Rt.allocUnsafe=function(t){return It(null,t)},Rt.allocUnsafeSlow=function(t){return It(null,t)},Rt.isBuffer=function(t){return null!=t&&(!!t.i||ln(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ln(t.slice(0,0))}(t))},Rt.compare=function(t,n){if(!Pt(t)||!Pt(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,i=n.length,r=0,o=Math.min(e,i);r<o;++r)if(t[r]!==n[r]){e=t[r],i=n[r];break}return e<i?-1:i<e?1:0},Rt.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Rt.concat=function(t,n){if(!Et(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Rt.alloc(0);var e;if(void 0===n)for(n=0,e=0;e<t.length;++e)n+=t[e].length;var i=Rt.allocUnsafe(n),r=0;for(e=0;e<t.length;++e){var o=t[e];if(!Pt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},Rt.byteLength=Dt,Rt.prototype.i=!0,Rt.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)Mt(this,n,n+1);return this},Rt.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)Mt(this,n,n+3),Mt(this,n+1,n+2);return this},Rt.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)Mt(this,n,n+7),Mt(this,n+1,n+6),Mt(this,n+2,n+5),Mt(this,n+3,n+4);return this},Rt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?qt(this,0,t):jt.apply(this,arguments)},Rt.prototype.equals=function(t){if(!Pt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Rt.compare(this,t)},Rt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Rt.prototype.compare=function(t,n,e,i,r){if(!Pt(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),n<0||e>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&n>=e)return 0;if(i>=r)return-1;if(n>=e)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(e>>>=0)-(n>>>=0),a=Math.min(o,s),c=this.slice(i,r),h=t.slice(n,e),u=0;u<a;++u)if(c[u]!==h[u]){o=c[u],s=h[u];break}return o<s?-1:s<o?1:0},Rt.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},Rt.prototype.indexOf=function(t,n,e){return Bt(this,t,n,e,!0)},Rt.prototype.lastIndexOf=function(t,n,e){return Bt(this,t,n,e,!1)},Rt.prototype.write=function(t,n,e,i){if(void 0===n)i="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)i=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===i&&(i="utf8")):(i=e,e=void 0)}var r=this.length-n;if((void 0===e||e>r)&&(e=r),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Nt(this,t,n,e);case"utf8":case"utf-8":return Ut(this,t,n,e);case"ascii":return Lt(this,t,n,e);case"latin1":case"binary":return Wt(this,t,n,e);case"base64":return Jt(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},Rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.h||this,0)}};var Vt=4096;function Yt(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(127&t[r]);return i}function Xt(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(t[r]);return i}function Gt(t,n,e){var i,r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var o="",s=n;s<e;++s)o+=(i=t[s])<16?"0"+i.toString(16):i.toString(16);return o}function Zt(t,n,e){for(var i=t.slice(n,e),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function Qt(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function tn(t,n,e,i,r,o){if(!Pt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||n<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}function nn(t,n,e,i){n<0&&(n=65535+n+1);for(var r=0,o=Math.min(t.length-e,2);r<o;++r)t[e+r]=(n&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function en(t,n,e,i){n<0&&(n=4294967295+n+1);for(var r=0,o=Math.min(t.length-e,4);r<o;++r)t[e+r]=n>>>8*(i?r:3-r)&255}function rn(t,n,e,i,r,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function on(t,n,e,i,r){return r||rn(t,0,e,4),$t(t,n,e,i,23,4),e+4}function sn(t,n,e,i,r){return r||rn(t,0,e,8),$t(t,n,e,i,52,8),e+8}Rt.prototype.slice=function(t,n){var e,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(n=void 0===n?i:~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<t&&(n=t),Rt.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,n)).__proto__=Rt.prototype;else{var r=n-t;e=new Rt(r,void 0);for(var o=0;o<r;++o)e[o]=this[o+t]}return e},Rt.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i},Rt.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t+--n],r=1;n>0&&(r*=256);)i+=this[t+--n]*r;return i},Rt.prototype.readUInt8=function(t,n){return n||Qt(t,1,this.length),this[t]},Rt.prototype.readUInt16LE=function(t,n){return n||Qt(t,2,this.length),this[t]|this[t+1]<<8},Rt.prototype.readUInt16BE=function(t,n){return n||Qt(t,2,this.length),this[t]<<8|this[t+1]},Rt.prototype.readUInt32LE=function(t,n){return n||Qt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Rt.prototype.readUInt32BE=function(t,n){return n||Qt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Rt.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*n)),i},Rt.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=n,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*n)),o},Rt.prototype.readInt8=function(t,n){return n||Qt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Rt.prototype.readInt16LE=function(t,n){n||Qt(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},Rt.prototype.readInt16BE=function(t,n){n||Qt(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},Rt.prototype.readInt32LE=function(t,n){return n||Qt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Rt.prototype.readInt32BE=function(t,n){return n||Qt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Rt.prototype.readFloatLE=function(t,n){return n||Qt(t,4,this.length),_t(this,t,!0,23,4)},Rt.prototype.readFloatBE=function(t,n){return n||Qt(t,4,this.length),_t(this,t,!1,23,4)},Rt.prototype.readDoubleLE=function(t,n){return n||Qt(t,8,this.length),_t(this,t,!0,52,8)},Rt.prototype.readDoubleBE=function(t,n){return n||Qt(t,8,this.length),_t(this,t,!1,52,8)},Rt.prototype.writeUIntLE=function(t,n,e,i){t=+t,n|=0,e|=0,i||tn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[n]=255&t;++o<e&&(r*=256);)this[n+o]=t/r&255;return n+e},Rt.prototype.writeUIntBE=function(t,n,e,i){t=+t,n|=0,e|=0,i||tn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[n+r]=255&t;--r>=0&&(o*=256);)this[n+r]=t/o&255;return n+e},Rt.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,1,255,0),Rt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},Rt.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,65535,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):nn(this,t,n,!0),n+2},Rt.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,65535,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):nn(this,t,n,!1),n+2},Rt.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,4294967295,0),Rt.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):en(this,t,n,!0),n+4},Rt.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,4294967295,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):en(this,t,n,!1),n+4},Rt.prototype.writeIntLE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);tn(this,t,n,e,r-1,-r)}var o=0,s=1,a=0;for(this[n]=255&t;++o<e&&(s*=256);)t<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Rt.prototype.writeIntBE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);tn(this,t,n,e,r-1,-r)}var o=e-1,s=1,a=0;for(this[n+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Rt.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,1,127,-128),Rt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},Rt.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,32767,-32768),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):nn(this,t,n,!0),n+2},Rt.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,32767,-32768),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):nn(this,t,n,!1),n+2},Rt.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,2147483647,-2147483648),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):en(this,t,n,!0),n+4},Rt.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):en(this,t,n,!1),n+4},Rt.prototype.writeFloatLE=function(t,n,e){return on(this,t,n,!0,e)},Rt.prototype.writeFloatBE=function(t,n,e){return on(this,t,n,!1,e)},Rt.prototype.writeDoubleLE=function(t,n,e){return sn(this,t,n,!0,e)},Rt.prototype.writeDoubleBE=function(t,n,e){return sn(this,t,n,!1,e)},Rt.prototype.copy=function(t,n,e,i){if(e||(e=0),i||0===i||(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-e&&(i=t.length-n+e);var r,o=i-e;if(this===t&&e<n&&n<i)for(r=o-1;r>=0;--r)t[r+n]=this[r+e];else if(o<1e3||!Rt.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+n]=this[r+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},Rt.prototype.fill=function(t,n,e,i){if("string"==typeof t){if("string"==typeof n?(i=n,n=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Rt.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;var o;if(n>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o<e;++o)this[o]=t;else{var s=Pt(t)?t:cn(new Rt(t,i).toString()),a=s.length;for(o=0;o<e-n;++o)this[o+n]=s[o%a]}return this};var an=/[^+\/0-9A-Za-z-_]/g;function cn(t,n){var e;n=n||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((e=t.charCodeAt(s))>55295&&e<57344){if(!r){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(n-=3)>-1&&o.push(239,191,189);continue}r=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(n-=3)>-1&&o.push(239,191,189);if(r=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function hn(t){return function(t){var n,e,i,r,o,s;bt||wt();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new vt(3*a/4-o),i=o>0?a-4:a;var c=0;for(n=0,e=0;n<i;n+=4,e+=3)r=gt[t.charCodeAt(n)]<<18|gt[t.charCodeAt(n+1)]<<12|gt[t.charCodeAt(n+2)]<<6|gt[t.charCodeAt(n+3)],s[c++]=r>>16&255,s[c++]=r>>8&255,s[c++]=255&r;return 2===o?(r=gt[t.charCodeAt(n)]<<2|gt[t.charCodeAt(n+1)]>>4,s[c++]=255&r):1===o&&(r=gt[t.charCodeAt(n)]<<10|gt[t.charCodeAt(n+1)]<<4|gt[t.charCodeAt(n+2)]>>2,s[c++]=r>>8&255,s[c++]=255&r),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(an,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function un(t,n,e,i){for(var r=0;r<i&&!(r+e>=n.length||r>=t.length);++r)n[r+e]=t[r];return r}function ln(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function dn(t,n,e,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",n&&(this.code=n),e&&(this.config=e),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}pt.inherits(dn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pt.toJSONObject(this.config),code:this.code,status:this.status}}});const fn=dn.prototype,pn={};function mn(t){return pt.isPlainObject(t)||pt.isArray(t)}function gn(t){return pt.endsWith(t,"[]")?t.slice(0,-2):t}function vn(t,n,e){return t?t.concat(n).map((function(t,n){return t=gn(t),!e&&n?"["+t+"]":t})).join(e?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{pn[t]={value:t}})),Object.defineProperties(dn,pn),Object.defineProperty(fn,"isAxiosError",{value:!0}),dn.from=(t,n,e,i,r,o)=>{const s=Object.create(fn);return pt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dn.call(s,t.message,n,e,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const bn=pt.toFlatObject(pt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function wn(t,n,e){if(!pt.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;const i=(e=pt.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,n){return!pt.isUndefined(n[t])}))).metaTokens,r=e.visitor||h,o=e.dots,s=e.indexes,a=(e.Blob||"undefined"!=typeof Blob&&Blob)&&pt.isSpecCompliantForm(n);if(!pt.isFunction(r))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(pt.isDate(t))return t.toISOString();if(!a&&pt.isBlob(t))throw new dn("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(t)||pt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Rt.from(t):t}function h(t,e,r){let a=t;if(t&&!r&&"object"==typeof t)if(pt.endsWith(e,"{}"))e=i?e:e.slice(0,-2),t=JSON.stringify(t);else if(pt.isArray(t)&&function(t){return pt.isArray(t)&&!t.some(mn)}(t)||(pt.isFileList(t)||pt.endsWith(e,"[]"))&&(a=pt.toArray(t)))return e=gn(e),a.forEach((function(t,i){!pt.isUndefined(t)&&null!==t&&n.append(!0===s?vn([e],i,o):null===s?e:e+"[]",c(t))})),!1;return!!mn(t)||(n.append(vn(r,e,o),c(t)),!1)}const u=[],l=Object.assign(bn,{defaultVisitor:h,convertValue:c,isVisitable:mn});if(!pt.isObject(t))throw new TypeError("data must be an object");return function t(e,i){if(!pt.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+i.join("."));u.push(e),pt.forEach(e,(function(e,o){!0===(!(pt.isUndefined(e)||null===e)&&r.call(n,e,pt.isString(o)?o.trim():o,i,l))&&t(e,i?i.concat(o):[o])})),u.pop()}}(t),n}function yn(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return n[t]}))}function xn(t,n){this.l=[],t&&wn(t,this,n)}const _n=xn.prototype;function $n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sn(t,n,e){if(!n)return t;const i=e&&e.encode||$n;pt.isFunction(e)&&(e={serialize:e});const r=e&&e.serialize;let o;if(o=r?r(n,e):pt.isURLSearchParams(n)?n.toString():new xn(n,e).toString(i),o){const n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}_n.append=function(t,n){this.l.push([t,n])},_n.toString=function(t){const n=t?function(n){return t.call(this,n,yn)}:yn;return this.l.map((function(t){return n(t[0])+"="+n(t[1])}),"").join("&")};class En{constructor(){this.handlers=[]}use(t,n,e){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pt.forEach(this.handlers,(function(n){null!==n&&t(n)}))}}var kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Rn="undefined"!=typeof document,An="object"==typeof navigator&&navigator||void 0,Cn=Rn&&(!An||["ReactNative","NativeScript","NS"].indexOf(An.product)<0),In="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,On=Rn&&window.location.href||"http://localhost";var zn={...Object.freeze({__proto__:null,hasBrowserEnv:Rn,hasStandardBrowserEnv:Cn,hasStandardBrowserWebWorkerEnv:In,navigator:An,origin:On}),...Tn};function Pn(t){function n(t,e,i,r){let o=t[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=t.length;return o=!o&&pt.isArray(i)?i.length:o,a?(pt.hasOwnProp(i,o)?i[o]=[i[o],e]:i[o]=e,!s):(i[o]&&pt.isObject(i[o])||(i[o]=[]),n(t,e,i[o],r)&&pt.isArray(i[o])&&(i[o]=function(t){const n={},e=Object.keys(t);let i;const r=e.length;let o;for(i=0;i<r;i++)o=e[i],n[o]=t[o];return n}(i[o])),!s)}if(pt.isFormData(t)&&pt.isFunction(t.entries)){const e={};return pt.forEachEntry(t,((t,i)=>{n(function(t){return pt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,e,0)})),e}return null}const Dn={transitional:kn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",i=e.indexOf("application/json")>-1,r=pt.isObject(t);if(r&&pt.isHTMLForm(t)&&(t=new FormData(t)),pt.isFormData(t))return i?JSON.stringify(Pn(t)):t;if(pt.isArrayBuffer(t)||pt.isBuffer(t)||pt.isStream(t)||pt.isFile(t)||pt.isBlob(t)||pt.isReadableStream(t))return t;if(pt.isArrayBufferView(t))return t.buffer;if(pt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(t,n){return wn(t,new zn.classes.URLSearchParams,Object.assign({visitor:function(t,n,e,i){return zn.isNode&&pt.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},n))}(t,this.formSerializer).toString();if((o=pt.isFileList(t))||e.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return wn(o?{"files[]":t}:t,n&&new n,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),function(t){if(pt.isString(t))try{return(0,JSON.parse)(t),pt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const n=this.transitional||Dn.transitional,e=n&&n.forcedJSONParsing,i="json"===this.responseType;if(pt.isResponse(t)||pt.isReadableStream(t))return t;if(t&&pt.isString(t)&&(e&&!this.responseType||i)){const e=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw dn.from(t,dn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zn.classes.FormData,Blob:zn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pt.forEach(["delete","get","head","post","put","patch"],(t=>{Dn.headers[t]={}}));const jn=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mn=Symbol("internals");function Bn(t){return t&&String(t).trim().toLowerCase()}function Hn(t){return!1===t||null==t?t:pt.isArray(t)?t.map(Hn):String(t)}function Nn(t,n,e,i,r){return pt.isFunction(i)?i.call(this,n,e):(r&&(n=e),pt.isString(n)?pt.isString(i)?-1!==n.indexOf(i):pt.isRegExp(i)?i.test(n):void 0:void 0)}let Un=class{constructor(t){t&&this.set(t)}set(t,n,e){const i=this;function r(t,n,e){const r=Bn(n);if(!r)throw new Error("header name must be a non-empty string");const o=pt.findKey(i,r);(!o||void 0===i[o]||!0===e||void 0===e&&!1!==i[o])&&(i[o||n]=Hn(t))}const o=(t,n)=>pt.forEach(t,((t,e)=>r(t,e,n)));if(pt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(pt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const n={};let e,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),e=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!e||n[e]&&jn[e]||("set-cookie"===e?n[e]?n[e].push(i):n[e]=[i]:n[e]=n[e]?n[e]+", "+i:i)})),n})(t),n);else if(pt.isHeaders(t))for(const[n,i]of t.entries())r(i,n,e);else null!=t&&r(n,t,e);return this}get(t,n){if(t=Bn(t)){const e=pt.findKey(this,t);if(e){const t=this[e];if(!n)return t;if(!0===n)return function(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(t);)n[i[1]]=i[2];return n}(t);if(pt.isFunction(n))return n.call(this,t,e);if(pt.isRegExp(n))return n.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bn(t)){const e=pt.findKey(this,t);return!(!e||void 0===this[e]||n&&!Nn(0,this[e],e,n))}return!1}delete(t,n){const e=this;let i=!1;function r(t){if(t=Bn(t)){const r=pt.findKey(e,t);!r||n&&!Nn(0,e[r],r,n)||(delete e[r],i=!0)}}return pt.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let e=n.length,i=!1;for(;e--;){const r=n[e];t&&!Nn(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const n=this,e={};return pt.forEach(this,((i,r)=>{const o=pt.findKey(e,r);if(o)return n[o]=Hn(i),void delete n[r];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,n,e)=>n.toUpperCase()+e))}(r):String(r).trim();s!==r&&delete n[r],n[s]=Hn(i),e[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pt.forEach(this,((e,i)=>{null!=e&&!1!==e&&(n[i]=t&&pt.isArray(e)?e.join(", "):e)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,n])=>t+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach((t=>e.set(t))),e}static accessor(t){const n=(this[Mn]=this[Mn]={accessors:{}}).accessors,e=this.prototype;function i(t){const i=Bn(t);n[i]||(function(t,n){const e=pt.toCamelCase(" "+n);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+e,{value:function(t,e,r){return this[i].call(this,n,t,e,r)},configurable:!0})}))}(e,t),n[i]=!0)}return pt.isArray(t)?t.forEach(i):i(t),this}};function Ln(t,n){const e=this||Dn,i=n||e,r=Un.from(i.headers);let o=i.data;return pt.forEach(t,(function(t){o=t.call(e,o,r.normalize(),n?n.status:void 0)})),r.normalize(),o}function Wn(t){return!(!t||!t.m)}function Jn(t,n,e){dn.call(this,null==t?"canceled":t,dn.ERR_CANCELED,n,e),this.name="CanceledError"}function Fn(t,n,e){const i=e.config.validateStatus;e.status&&i&&!i(e.status)?n(new dn("Request failed with status code "+e.status,[dn.ERR_BAD_REQUEST,dn.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}Un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pt.reduceDescriptors(Un.prototype,(({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[e]=t}}})),pt.freezeMethods(Un),pt.inherits(Jn,dn,{m:!0});const Kn=(t,n,e=3)=>{let i=0;const r=function(t,n){t=t||10;const e=new Array(t),i=new Array(t);let r,o=0,s=0;return n=void 0!==n?n:1e3,function(a){const c=Date.now(),h=i[s];r||(r=c),e[o]=a,i[o]=c;let u=s,l=0;for(;u!==o;)l+=e[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-r<n)return;const d=h&&c-h;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(t,n){let e,i,r=0,o=1e3/n;const s=(n,o=Date.now())=>{r=o,e=null,i&&(clearTimeout(i),i=null),t.apply(null,n)};return[(...t)=>{const n=Date.now(),a=n-r;a>=o?s(t,n):(e=t,i||(i=setTimeout((()=>{i=null,s(e)}),o-a)))},()=>e&&s(e)]}((e=>{const o=e.loaded,s=e.lengthComputable?e.total:void 0,a=o-i,c=r(a);i=o,t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:e,lengthComputable:null!=s,[n?"download":"upload"]:!0})}),e)},qn=(t,n)=>{const e=null!=t;return[i=>n[0]({lengthComputable:e,total:t,loaded:i}),n[1]]},Vn=t=>(...n)=>pt.asap((()=>t(...n)));var Yn=zn.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,zn.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL(zn.origin),zn.navigator&&/(msie|trident)/i.test(zn.navigator.userAgent)):()=>!0,Xn=zn.hasStandardBrowserEnv?{write(t,n,e,i,r,o){const s=[t+"="+encodeURIComponent(n)];pt.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),pt.isString(i)&&s.push("path="+i),pt.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gn(t,n,e){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);return t&&i||0==e?function(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}(t,n):n}const Zn=t=>t instanceof Un?{...t}:t;function Qn(t,n){n=n||{};const e={};function i(t,n,e,i){return pt.isPlainObject(t)&&pt.isPlainObject(n)?pt.merge.call({caseless:i},t,n):pt.isPlainObject(n)?pt.merge({},n):pt.isArray(n)?n.slice():n}function r(t,n,e,r){return pt.isUndefined(n)?pt.isUndefined(t)?void 0:i(void 0,t,0,r):i(t,n,0,r)}function o(t,n){if(!pt.isUndefined(n))return i(void 0,n)}function s(t,n){return pt.isUndefined(n)?pt.isUndefined(t)?void 0:i(void 0,t):i(void 0,n)}function a(e,r,o){return o in n?i(e,r):o in t?i(void 0,e):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,n,e)=>r(Zn(t),Zn(n),0,!0)};return pt.forEach(Object.keys(Object.assign({},t,n)),(function(i){const o=c[i]||r,s=o(t[i],n[i],i);pt.isUndefined(s)&&o!==a||(e[i]=s)})),e}var te=t=>{const n=Qn({},t);let e,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=n;if(n.headers=a=Un.from(a),n.url=Sn(Gn(n.baseURL,n.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pt.isFormData(i))if(zn.hasStandardBrowserEnv||zn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){const[t,...n]=e?e.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...n].join("; "))}if(zn.hasStandardBrowserEnv&&(r&&pt.isFunction(r)&&(r=r(n)),r||!1!==r&&Yn(n.url))){const t=o&&s&&Xn.read(s);t&&a.set(o,t)}return n},ne="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(n,e){const i=te(t);let r=i.data;const o=Un.from(i.headers).normalize();let s,a,c,h,u,{responseType:l,onUploadProgress:d,onDownloadProgress:f}=i;function p(){h&&h(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=Un.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Fn((function(t){n(t),p()}),(function(t){e(t),p()}),{data:l&&"text"!==l&&"json"!==l?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:t,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(e(new dn("Request aborted",dn.ECONNABORTED,t,m)),m=null)},m.onerror=function(){e(new dn("Network Error",dn.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||kn;i.timeoutErrorMessage&&(n=i.timeoutErrorMessage),e(new dn(n,r.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,t,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&pt.forEach(o.toJSON(),(function(t,n){m.setRequestHeader(n,t)})),pt.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&"json"!==l&&(m.responseType=i.responseType),f&&([c,u]=Kn(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,h]=Kn(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(s=n=>{m&&(e(!n||n.type?new Jn(null,t,m):n),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=function(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}(i.url);v&&-1===zn.protocols.indexOf(v)?e(new dn("Unsupported protocol "+v+":",dn.ERR_BAD_REQUEST,t)):m.send(r||null)}))};const ee=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let e,i=new AbortController;const r=function(t){if(!e){e=!0,s();const n=t instanceof Error?t:this.reason;i.abort(n instanceof dn?n:new Jn(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,r(new dn(`timeout ${n} of ms exceeded`,dn.ETIMEDOUT))}),n);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>pt.asap(s),a}},ie=function*(t,n){let e=t.byteLength;if(e<n)return void(yield t);let i,r=0;for(;r<e;)i=r+n,yield t.slice(r,i),r=i},re=(t,n,e,i)=>{const r=async function*(t,n){for await(const e of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const n=t.getReader();try{for(;;){const{done:t,value:e}=await n.read();if(t)break;yield e}}finally{await n.cancel()}}(t))yield*ie(e,n)}(t,n);let o,s=0,a=t=>{o||(o=!0,i&&i(t))};return new ReadableStream({async pull(t){try{const{done:n,value:i}=await r.next();if(n)return a(),void t.close();let o=i.byteLength;if(e){let t=s+=o;e(t)}t.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel:t=>(a(t),r.return())},{highWaterMark:2})},oe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,se=oe&&"function"==typeof ReadableStream,ae=oe&&("function"==typeof TextEncoder?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ce=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},he=se&&ce((()=>{let t=!1;const n=new Request(zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})),ue=se&&ce((()=>pt.isReadableStream(new Response("").body))),le={stream:ue&&(t=>t.body)};var de;oe&&(de=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!le[t]&&(le[t]=pt.isFunction(de[t])?n=>n[t]():(n,e)=>{throw new dn(`Response type '${t}' is not supported`,dn.ERR_NOT_SUPPORT,e)})})));const fe={http:null,xhr:ne,fetch:oe&&(async t=>{let{url:n,method:e,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:h,headers:u,withCredentials:l="same-origin",fetchOptions:d}=te(t);h=h?(h+"").toLowerCase():"text";let f,p=ee([r,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&he&&"get"!==e&&"head"!==e&&0!==(g=await(async(t,n)=>{const e=pt.toFiniteNumber(t.getContentLength());return null==e?(async t=>{if(null==t)return 0;if(pt.isBlob(t))return t.size;if(pt.isSpecCompliantForm(t)){const n=new Request(zn.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return pt.isArrayBufferView(t)||pt.isArrayBuffer(t)?t.byteLength:(pt.isURLSearchParams(t)&&(t+=""),pt.isString(t)?(await ae(t)).byteLength:void 0)})(n):e})(u,i))){let t,e=new Request(n,{method:"POST",body:i,duplex:"half"});if(pt.isFormData(i)&&(t=e.headers.get("content-type"))&&u.setContentType(t),e.body){const[t,n]=qn(g,Kn(Vn(c)));i=re(e.body,65536,t,n)}}pt.isString(l)||(l=l?"include":"omit");const r="credentials"in Request.prototype;f=new Request(n,{...d,signal:p,method:e.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?l:void 0});let o=await fetch(f);const s=ue&&("stream"===h||"response"===h);if(ue&&(a||s&&m)){const t={};["status","statusText","headers"].forEach((n=>{t[n]=o[n]}));const n=pt.toFiniteNumber(o.headers.get("content-length")),[e,i]=a&&qn(n,Kn(Vn(a),!0))||[];o=new Response(re(o.body,65536,e,(()=>{i&&i(),m&&m()})),t)}h=h||"text";let v=await le[pt.findKey(le,h)||"text"](o,t);return!s&&m&&m(),await new Promise(((n,e)=>{Fn(n,e,{data:v,headers:Un.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:f})}))}catch(n){if(m&&m(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new dn("Network Error",dn.ERR_NETWORK,t,f),{cause:n.cause||n});throw dn.from(n,n&&n.code,t,f)}})};pt.forEach(fe,((t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}}));const pe=t=>`- ${t}`,me=t=>pt.isFunction(t)||null===t||!1===t;var ge=t=>{t=pt.isArray(t)?t:[t];const{length:n}=t;let e,i;const r={};for(let o=0;o<n;o++){let n;if(e=t[o],i=e,!me(e)&&(i=fe[(n=String(e)).toLowerCase()],void 0===i))throw new dn(`Unknown adapter '${n}'`);if(i)break;r[n||"#"+o]=i}if(!i){const t=Object.entries(r).map((([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new dn("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(pe).join("\n"):" "+pe(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function ve(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Jn(null,t)}function be(t){return ve(t),t.headers=Un.from(t.headers),t.data=Ln.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ge(t.adapter||Dn.adapter)(t).then((function(n){return ve(t),n.data=Ln.call(t,t.transformResponse,n),n.headers=Un.from(n.headers),n}),(function(n){return Wn(n)||(ve(t),n&&n.response&&(n.response.data=Ln.call(t,t.transformResponse,n.response),n.response.headers=Un.from(n.response.headers))),Promise.reject(n)}))}const we={};["object","boolean","number","function","string","symbol"].forEach(((t,n)=>{we[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}));const ye={};we.transitional=function(t,n,e){function i(t,n){return"[Axios v1.8.2] Transitional option '"+t+"'"+n+(e?". "+e:"")}return(e,r,o)=>{if(!1===t)throw new dn(i(r," has been removed"+(n?" in "+n:"")),dn.ERR_DEPRECATED);return n&&!ye[r]&&(ye[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(e,r,o)}},we.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};var xe={assertOptions:function(t,n,e){if("object"!=typeof t)throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=n[o];if(s){const n=t[o],e=void 0===n||s(n,o,t);if(!0!==e)throw new dn("option "+o+" must be "+e,dn.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new dn("Unknown option "+o,dn.ERR_BAD_OPTION)}},validators:we};const _e=xe.validators;let $e=class{constructor(t){this.defaults=t,this.interceptors={request:new En,response:new En}}async request(t,n){try{return await this.v(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const e=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?e&&!String(t.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+e):t.stack=e}catch(t){}}throw t}}v(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=Qn(this.defaults,n);const{transitional:e,paramsSerializer:i,headers:r}=n;void 0!==e&&xe.assertOptions(e,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=i&&(pt.isFunction(i)?n.paramsSerializer={serialize:i}:xe.assertOptions(i,{encode:_e.function,serialize:_e.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xe.assertOptions(n,{baseUrl:_e.spelling("baseURL"),withXsrfToken:_e.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&pt.merge(r.common,r[n.method]);r&&pt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),n.headers=Un.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(n)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let h;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let u,l=0;if(!a){const t=[be.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),u=t.length,h=Promise.resolve(n);l<u;)h=h.then(t[l++],t[l++]);return h}u=s.length;let d=n;for(l=0;l<u;){const t=s[l++],n=s[l++];try{d=t(d)}catch(t){n.call(this,t);break}}try{h=be.call(this,d)}catch(t){return Promise.reject(t)}for(l=0,u=c.length;l<u;)h=h.then(c[l++],c[l++]);return h}getUri(t){return Sn(Gn((t=Qn(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}};pt.forEach(["delete","get","head","options"],(function(t){$e.prototype[t]=function(n,e){return this.request(Qn(e||{},{method:t,url:n,data:(e||{}).data}))}})),pt.forEach(["post","put","patch"],(function(t){function n(n){return function(e,i,r){return this.request(Qn(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:i}))}}$e.prototype[t]=n(),$e.prototype[t+"Form"]=n(!0)}));const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach((([t,n])=>{Se[n]=t}));const Ee=function t(n){const e=new $e(n),i=T($e.prototype.request,e);return pt.extend(i,$e.prototype,e,{allOwnKeys:!0}),pt.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return t(Qn(n,e))},i}(Dn);Ee.Axios=$e,Ee.CanceledError=Jn,Ee.CancelToken=class t{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(t){n=t}));const e=this;this.promise.then((t=>{if(!e._)return;let n=e._.length;for(;n-- >0;)e._[n](t);e._=null})),this.promise.then=t=>{let n;const i=new Promise((t=>{e.subscribe(t),n=t})).then(t);return i.cancel=function(){e.unsubscribe(n)},i},t((function(t,i,r){e.reason||(e.reason=new Jn(t,i,r),n(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._?this._.push(t):this._=[t]}unsubscribe(t){if(!this._)return;const n=this._.indexOf(t);-1!==n&&this._.splice(n,1)}toAbortSignal(){const t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let n;return{token:new t((function(t){n=t})),cancel:n}}},Ee.isCancel=Wn,Ee.VERSION="1.8.2",Ee.toFormData=wn,Ee.AxiosError=dn,Ee.Cancel=Ee.CanceledError,Ee.all=function(t){return Promise.all(t)},Ee.spread=function(t){return function(n){return t.apply(null,n)}},Ee.isAxiosError=function(t){return pt.isObject(t)&&!0===t.isAxiosError},Ee.mergeConfig=Qn,Ee.AxiosHeaders=Un,Ee.formToJSON=t=>Pn(pt.isHTMLForm(t)?new FormData(t):t),Ee.getAdapter=ge,Ee.HttpStatusCode=Se,Ee.default=Ee;const{Axios:ke,AxiosError:Te,CanceledError:Re,isCancel:Ae,CancelToken:Ce,VERSION:Ie,all:Oe,Cancel:ze,isAxiosError:Pe,spread:De,toFormData:je,AxiosHeaders:Me,HttpStatusCode:Be,formToJSON:He,getAdapter:Ne,mergeConfig:Ue}=Ee,Le={[r.ADD_TO_CART_FROM_DETAILS]:{required:["add","cart"],optional:["details","detail","single","profile","page","pdp"]},[r.BUY_NOW]:{required:["buy","now"]},[r.EXPAND_PRODUCT]:{required:["product"],optional:["details","expand","modal","popup","quickview","view"]},[r.ADD_TO_WISHLIST]:{required:["add","wishlist"]},[r.REMOVE_FROM_CART]:{required:["remove","cart"]},[r.PURCHASE]:{required:["purchase"]},[r.ADD_TO_CART]:{required:["add","cart"]}};function We(t,n){return new RegExp(`^${n}s?$|${n}s?\\W|\\W${n}s?$|\\W${n}s?\\W`).test(` ${t} `)}function Je(t,n,e){return!!n.every((n=>t.some((t=>We(t,n)))))&&(!(null==e?void 0:e.length)||e.some((n=>t.some((t=>We(t,n))))))}function Fe(t){if(!(null==t?void 0:t.trim()))return null;const n=function(t){return t.toLowerCase().replace(/[^a-z0-9\s]+/g," ").split(/\s+/).filter(Boolean)}(t);for(const[t,{required:e,optional:i}]of Object.entries(Le))if(Je(n,e,i))return t;return null}const Ke={"ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"j","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"q","ღ":"g","ყ":"y","შ":"sh","ჩ":"ch","ც":"c","ძ":"dz","წ":"w","ჭ":"ch","ხ":"x","ჯ":"j","ჰ":"h"},qe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","Ÿ":"Y","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","œ":"oe","©":"","℗":"","ⓒ":"","®":"","™":"","℠":"","℟":"","№":"","⚖":"","†":"","‡":"","§":"","¶":"","⁂":"","※":"","‽":"","¤":"","°":"","′":"","″":"","‴":"","⁗":"","•":"","⁃":"","◊":"","⌘":"","⌥":"","⇧":"","⌃":"","⎋":"","¢":"","£":"","€":"","¥":"","₹":"","₽":"","؋":"","₮":"","₩":"","₪":"","←":"","→":"","↑":"","↓":"","✓":"","✔":"","✗":"","✘":"","♪":"","♫":"","☎":"","✉":"","⚡":"","☀":"","☁":"","☂":"","★":"","☆":"","☯":"","☮":"","☢":"","☣":"","⚠":"","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","ğ":"g","ı":"i","İ":"i","ş":"s","Ş":"S","ç":"c","Ç":"C","ü":"u","Ü":"U","ö":"o","Ö":"O","Ğ":"G","ä":"a","ö":"o","ü":"u","ß":"ss","ă":"a","î":"i","ș":"s","ț":"t","â":"a","Ă":"A","Î":"I","Ș":"S","Ț":"T","Â":"A","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z",...Ke,"à":"a","è":"e","é":"e","ì":"i","ò":"o","ù":"u","é":"e","è":"e","ê":"e","ë":"e","à":"a","â":"a","î":"i","ï":"i","ô":"o","û":"u","ù":"u","ç":"c","ã":"a","õ":"o","â":"a","ê":"e","ô":"o","å":"a","æ":"ae","ø":"o","ě":"e","ő":"o","ű":"u","ạ":"a","ả":"a","ấ":"a","ầ":"a","ẩ":"a","ẫ":"a","ậ":"a","đ":"d","đ":"d","ć":"c","č":"c","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","ų":"u","。":".","、":",","?":"?","!":"!",":":":",";":";","(":"(",")":")","《":"<","》":">","á":"a","í":"i","ó":"o","ú":"u","ñ":"n","ü":"u","á":"a","ä":"a","č":"c","ď":"d","é":"e","í":"i","ľ":"l","ĺ":"l","ň":"n","ó":"o","ô":"o","ŕ":"r","š":"s","ť":"t","ú":"u","ý":"y","ž":"z","Á":"a","Ä":"A","Č":"C","Ď":"D","É":"E","Í":"I","Ľ":"L","Ĺ":"L","Ň":"N","Ó":"O","Ô":"O","Ŕ":"R","Š":"S","Ť":"T","Ú":"U","Ý":"Y","Ž":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z","ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"I","Ķ":"K","Ļ":"L","Ņ":"N","Š":"S","Ū":"U","Ž":"Z","أ":"a","ب":"b","ت":"t","ث":"th","ج":"g","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"d","ط":"t","ظ":"th","ع":"aa","غ":"gh","ف":"f","ق":"k","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"o","ي":"y","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U","Ž":"Z","ђ":"dj","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","đ":"dj","Ђ":"Dj","Ј":"j","Љ":"Lj","Њ":"Nj","Ћ":"C","Џ":"Dz","Đ":"Dj","ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U",...Ke,"■":"","□":"","▢":"","▣":"","▤":"","▥":"","▦":"","▧":"","▨":"","▩":"","▪":"","▫":"","▬":"","▭":"","▮":"","▯":"","▰":"","▱":"","▲":"","△":"","▴":"","▵":"","▶":"","▷":"","▸":"","▹":"","►":"","▻":"","▼":"","▽":"","▾":"","▿":"","◀":"","◁":"","◂":"","◃":"","◄":"","◅":"","◆":"","◇":"","◈":"","◉":"","◊":"","○":"","◌":"","◍":"","◎":"","●":"","◐":"","◑":"","◒":"","◓":"","◔":"","◕":"","◖":"","◗":"","◘":"","◙":"","◚":"","◛":"","◜":"","◝":"","◞":"","◟":"","◠":"","◡":"","◢":"","◣":"","◤":"","◥":"","◦":"","◧":"","◨":"","◩":"","◪":"","◫":"","◬":"","◭":"","◮":"","◯":"","◰":"","◱":"","◲":"","◳":"","◴":"","◵":"","◶":"","◷":"","◸":"","◹":"","◺":"","◻":"","◼":"","◽":"","◾":"","◿":"","▀":"","▁":"","▂":"","▃":"","▄":"","▅":"","▆":"","▇":"","█":"","▉":"","▊":"","▋":"","▌":"","▍":"","▎":"","▏":"","▐":"","░":"","▒":"","▓":"","▔":"","▕":"","▖":"","▗":"","▘":"","▙":"","▚":"","▛":"","▜":"","▝":"","▞":"","▟":"","─":"","│":"","┌":"","┐":"","└":"","┘":"","├":"","┤":"","┬":"","┴":"","┼":"","═":"","║":"","╒":"","╓":"","╔":"","╕":"","╖":"","╗":"","╘":"","╙":"","╚":"","╛":"","╜":"","╝":"","╞":"","╟":"","╠":"","╡":"","╢":"","╣":"","╤":"","╥":"","╦":"","╧":"","╨":"","╩":"","╪":"","╫":"","╬":"","⑀":"","⑁":"","⑂":"","⑃":"","⑄":"","⑅":"","⑆":"","⑇":"","⑈":"","⑉":"","⑊":"","␀":"","␁":"","␂":"","␃":"","␄":"","␅":"","␆":"","␇":"","␈":"","␉":"","␊":"","␋":"","␌":"","␍":"","␎":"","␏":"","␐":"","␑":"","␒":"","␓":"","␔":"","␕":"","␖":"","␗":"","␘":"","␙":"","␚":"","␛":"","␜":"","␝":"","␞":"","␟":"","␠":"","␡":"","⌀":"","⌁":"","⌂":"","⌃":"","⌄":"","⌅":"","⌆":"","⌇":"","⌈":"","⌉":"","⌊":"","⌋":"","⌌":"","⌍":"","⌎":"","⌏":"","⌐":"","⌑":"","⌒":"","⌓":"","⌔":"","⌕":"","⌖":"","⌗":"","⌘":"","⌙":"","⌚":"","⌛":"","⌜":"","⌝":"","⌞":"","⌟":"","⌠":"","⌡":"","⌢":"","⌣":"","⌤":"","⌥":"","⌦":"","⌧":"","⌨":"","⌫":"","⌬":"","⌭":"","⌮":"","⌯":"","−":"","∕":"","∖":"","∗":"","∘":"","∙":"","√":"","∛":"","∜":"","∝":"","∞":"","∟":"","∠":"","∥":"","∧":"","∨":"","∩":"","∪":"","∫":"","∬":"","∭":"","∮":"","∯":"","∰":"","∱":"","∲":"","∳":"","∴":"","∵":"","∶":"","∷":"","∸":"","∹":"","∺":"","∻":"","∼":"","∽":"","∾":"","≀":"","≁":"","≂":"","≃":"","≄":"","≅":"","π":"","≆":"","≇":"","≈":"","≉":"","≊":"","≋":"","≌":"","≍":"","≎":"","≏":"","≐":"","≑":"","≒":"","≓":"","≔":"","≕":"","≖":"","≙":"","≚":"","≛":"","≜":"","≝":"","≞":"","≟":"","≠":"","≡":"","≢":"","≣":"","≤":"","≥":"","≦":"","≧":"","≨":"","≩":"","≪":"","≫":"","≬":"","≭":"","≮":"","≯":"","≰":"","≱":"","≲":"","≳":"","≴":"","≵":"","≶":"","≷":"","≸":"","≹":"","≺":"","≻":"","≼":"","≽":"","≾":"","≿":"","⊀":"","⊁":"","⊂":"","⊃":"","⊄":"","⊅":"","⊆":"","⊇":"","⊈":"","⊉":"","⊊":"","⊋":"","⊌":"","⊍":"","⊎":"","⊏":"","⊐":"","⊑":"","⊒":"","⊓":"","⊔":"","⊕":"","⊖":"","⊗":"","⊘":"","⊙":"","⊚":"","⊛":"","⊜":"","⊝":"","⊞":"","⊟":"","⊠":"","⊡":"","⁰":"","¹":"","²":"","³":"","⁴":"","⁵":"","⁶":"","⁷":"","⁸":"","⁹":"","⁺":"","⁻":"","⁼":"","⁽":"","⁾":"","ⁿ":"","₀":"","₁":"","₂":"","₃":"","₄":"","₅":"","₆":"","₇":"","₈":"","₉":"","₊":"","₋":"","₌":"","₍":"","₎":"","⅓":"","⅔":"","⅕":"","⅖":"","⅗":"","⅘":"","⅙":"","⅚":"","⅛":"","⅜":"","⅝":"","⅞":"","⅟":"","℀":"","℁":"","℃":"","℅":"","℆":"","℉":"","№":"","℗":"","℠":"","℡":"","™":"","℮":"","ℯ":"","ℰ":"","ℱ":"","Ⅎ":"","ℳ":"","ℴ":"","ℵ":"","ℶ":"","ℷ":"","ℸ":"","℘":"","₠":"","₡":"","₢":"","₣":"","₤":"","₥":"","₦":"","₧":"","₨":"","₩":"","₪":"","₫":"","€":"","₭":"","₮":"","₯":"","₰":"","₱":"","₲":"","₳":"","₴":"","₵":"","₶":"","₷":"","₸":"","₹":"","₺":"","₻":"","₼":"","₽":"","₾":"","\n":"","\t":"","\r":"","\r\n":""," ":""," ":""," ":"","\0":"","":"","":"","€":"","Ÿ":"","̀":"","́":"","̂":"","̃":"","̄":"","̅":"","̆":"","̇":"","̈":"","̉":"","̊":"","̋":"","̌":"","̍":"","̎":"","̏":"","̐":"","̑":"","̒":"","̓":"","̔":"","̕":"","̖":"","̗":"","̘":"","̙":"","̚":"","̛":"","̜":"","̝":"","̞":"","̟":"","̠":"","̡":"","̢":"","̣":"","̤":"","̥":"","̦":"","̧":"","̨":"","̩":"","̪":"","̫":"","̬":"","̭":"","̮":"","̯":"","̰":"","̱":"","̲":"","̳":"","̴":"","̵":"","̶":"","̷":"","̸":"","̹":"","̺":"","̻":"","̼":"","̽":"","̾":"","̿":"","̀":"","́":"","͂":"","̓":"","̈́":"","ͅ":"","͆":"","͇":"","͈":"","͉":"","͊":"","͋":"","͌":"","͍":"","͎":"","͏":"","–":"","—":"","‘":"","’":"","“":"","”":"","„":"","†":"","‡":"","•":"","‥":"","…":"","‰":"","‱":"","′":"","″":"","‴":"","‵":"","‶":"","‷":"","‹":"","›":"","‼":"","‾":"","⁄":"","⁎":"","⁏":"","⁐":"","⁗":"","Nº":"No"};class Ve{constructor(){this.characterMaps=qe,this.regex=new RegExp(Object.keys(this.characterMaps).join("|"),"g")}static getInstance(){return Ve.instance||(Ve.instance=new Ve),Ve.instance}normalize(t){if(!t)return"";let n=t.replace(this.regex,(t=>this.characterMaps[t]||t));return n=n.replace(/[^a-zA-Z0-9\s]/g,""),n=n.toLowerCase(),n=n.replace(/\s+/g," "),n=n.trim(),n=this.removeLeadingZerosIfNumber(n),n}removeLeadingZerosIfNumber(t){return isNaN(Number(t))?t:/^0+$/.test(t)?"0":t.replace(/^0+/,"")}}class Ye{static getInstance(t,n){this.instances.has(t)||this.instances.set(t,n());const e=this.instances.get(t);if(!e)throw new Error(`RmnSdk: Instance for class ${t} could not be created.`);return e}}Ye.instances=new Map;class Xe{static getInstance(){return Ye.getInstance("ObjectHelper",(()=>new Xe))}merge(t,...n){for(const e of n)this.mergeValue(t,e);return t}values(t){return Object.values(t)}includes(t,n){return n in t}valuesIncludes(t,n){return Object.values(t).includes(n)}hasAllValues(t,n){const e=Object.keys(t);return n.every((t=>e.includes(t)))}isArray(t){return"[object Array]"===Object.prototype.toString.call(t)}mergeValue(t,n){var e;return this.isArray(n)?this.mergeArrayValues(t,n):"object"==typeof n?this.mergeObjectValues(t,n):null!==(e=null!=n?n:t)&&void 0!==e?e:void 0}mergeArrayValues(t,n){if(!this.isArray(t))return[...n];const e=t;for(let t=0,i=n.length;t<i;t++)e[t]=this.mergeValue(e[t],n[t]);return e}mergeObjectValues(t,n){return t&&"object"==typeof t?(this.innerMerge(t,n),t):n?{...n}:n}innerMerge(t,n){for(const e of Object.keys(n))t[e]=this.mergeValue(t[e],n[e])}}function Ge(t){try{return JSON.parse(atob(t))}catch(t){return null}}async function Ze({spotType:t,event:e,eventUrl:i}){const o=()=>{if(e===r.CLICK&&t!==n.RB_VIDEO_PLAYER){const t=function(t){if(!t)return null;try{const n=new URL(t).searchParams.get("p");if(!n)return null;const e=Ge(n);if(!(null==e?void 0:e.u))return null;const i=new URLSearchParams(e.u).get("e");if(!i)return null;const r=Ge(i);return(null==r?void 0:r.ur)||null}catch(t){return console.warn("LiquidCommerce Rmn Sdk: Failed to extract redirect URL from payload."),null}}(i);t&&(window.location.href=t)}};try{if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon)return s=i,null===(a=null===navigator||void 0===navigator?void 0:navigator.sendBeacon)||void 0===a||a.call(navigator,s),void o();if("undefined"!=typeof fetch)return function(t){try{return null===fetch||void 0===fetch||fetch(t,{method:"POST",keepalive:!0}).catch((()=>!1)),!0}catch(t){return!1}}(i),void o();!function(t){try{const n=new XMLHttpRequest;return n.onload=()=>n.status>=200&&n.status<300,n.onerror=()=>!1,n.ontimeout=()=>!1,n.open("POST",t,!0),n.send(),!0}catch(t){return!1}}(i),o()}catch(a){}var s,a}class Qe{static initialize(t=Math.floor(1024*Math.random())){if(t<0||t>=1<<this.nodeBits)throw new Error("Node ID must be between 0 and "+((1<<this.nodeBits)-1));this.nodeId=t}static toBase32(t,n){let e="";for(;t>0;)e=this.base32Chars[Number(t%BigInt(32))]+e,t/=32n;return e.padStart(n,"0")}static getSecureRandom(){if("undefined"!=typeof crypto){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}return Math.floor(4294967295*Math.random())}static waitNextMillis(t){let n=Date.now();for(;n<=t;)n=Date.now();return n}static generate(){void 0===this.nodeId&&this.initialize();let t=Date.now()-this.epoch;if(t<this.lastTimestamp)throw new Error("Clock moved backwards. Refusing to generate ID.");t===this.lastTimestamp?(this.sequence=this.sequence+1&(1<<this.sequenceBits)-1,0===this.sequence&&(t=this.waitNextMillis(this.lastTimestamp))):this.sequence=0,this.lastTimestamp=t;const n=65535&this.getSecureRandom();return`${this.toBase32(BigInt(t),10)}${this.toBase32(BigInt(this.sequence),4)}${this.toBase32(BigInt(this.nodeId),5)}${this.toBase32(BigInt(n),4)}`}static isValid(t){if(!/^[0-9A-HJ-NP-Z]{23}$/.test(t))return!1;try{const n=t.slice(0,10),e=this.decodeBase32(n),i=Date.now()-this.epoch;return e>=0&&e<=i}catch(t){return!1}}static decodeBase32(t){let n=0;for(const e of t)n=32*n+this.base32Chars.indexOf(e);return n}static getTimestamp(t){if(!this.isValid(t))throw new Error("Invalid ID format");const n=t.slice(0,10),e=this.decodeBase32(n);return new Date(e+this.epoch)}}Qe.epoch=15778368e5,Qe.nodeBits=10,Qe.sequenceBits=12,Qe.lastTimestamp=-1,Qe.sequence=0,Qe.base32Chars="0123456789ABCDEFGHJKMNPQRSTVWXYZ";var ti="undefined"!=typeof globalThis?globalThis:window;function ni(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if("function"==typeof n){var e=function t(){return this instanceof t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"$",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var ei,ii={exports:{}},ri={exports:{}},oi=ni(Object.freeze({__proto__:null,default:{}}));function si(){return ei||(ei=1,function(t){var n;t.exports=(n=n||function(t){var n;if(window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==ti&&ti.crypto&&(n=ti.crypto),!n)try{n=oi}catch(t){}var e=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),r={},o=r.lib={},s=o.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var n=this.words,e=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=e[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a<r;a+=4)n[i+a>>>2]=e[a>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(e());return new a.init(n,t)}}),c=r.enc={},h=c.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(e,n/2)}},u=c.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(e,n)}},l=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},d=o.BufferedBlockAlgorithm=s.extend({reset:function(){this.S=new a.init,this.T=0},R:function(t){"string"==typeof t&&(t=l.parse(t)),this.S.concat(t),this.T+=t.sigBytes},A:function(n){var e,i=this.S,r=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),h=(c=n?t.ceil(c):t.max((0|c)-this.C,0))*s,u=t.min(4*h,o);if(h){for(var l=0;l<h;l+=s)this.I(r,l);e=r.splice(0,h),i.sigBytes-=u}return new a.init(e,u)},clone:function(){var t=s.clone.call(this);return t.S=this.S.clone(),t},C:0});o.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this.O()},update:function(t){return this.R(t),this.A(),this},finalize:function(t){return t&&this.R(t),this.P()},blockSize:16,D:function(t){return function(n,e){return new t.init(e).finalize(n)}},j:function(t){return function(n,e){return new f.HMAC.init(t,e).finalize(n)}}});var f=r.algo={};return r}(Math),n)}(ri)),ri.exports}var ai,ci={exports:{}};function hi(){return ai||(ai=1,function(t){var n,e,i,r,o,s;t.exports=(e=(n=s=si()).lib,i=e.Base,r=e.WordArray,(o=n.x64={}).Word=i.extend({init:function(t,n){this.high=t,this.low=n}}),o.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:8*t.length},toX32:function(){for(var t=this.words,n=t.length,e=[],i=0;i<n;i++){var o=t[i];e.push(o.high),e.push(o.low)}return r.create(e,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),n=t.words=this.words.slice(0),e=n.length,r=0;r<e;r++)n[r]=n[r].clone();return t}}),s)}(ci)),ci.exports}var ui,li,di,fi={exports:{}},pi={exports:{}},mi={exports:{}};function gi(){return di||(di=1,function(t){var n,e,i;t.exports=(n=si(),i=(e=n).lib.WordArray,e.enc.Base64={stringify:function(t){var n=t.words,e=t.sigBytes,i=this.M;t.clamp();for(var r=[],o=0;o<e;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<e;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var n=t.length,e=this.M,r=this.B;if(!r){r=this.B=[];for(var o=0;o<e.length;o++)r[e.charCodeAt(o)]=o}var s=e.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(n=a)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,n,r)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}(mi)),mi.exports}var vi,bi={exports:{}};var wi,yi={exports:{}};function xi(){return wi||(wi=1,function(t){var n;t.exports=(n=si(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[];!function(){for(var n=0;n<64;n++)a[n]=4294967296*t.abs(t.sin(n+1))|0}();var c=s.MD5=o.extend({O:function(){this.H=new r.init([1732584193,4023233417,2562383102,271733878])},I:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this.H.words,s=t[n+0],c=t[n+1],f=t[n+2],p=t[n+3],m=t[n+4],g=t[n+5],v=t[n+6],b=t[n+7],w=t[n+8],y=t[n+9],x=t[n+10],_=t[n+11],$=t[n+12],S=t[n+13],E=t[n+14],k=t[n+15],T=o[0],R=o[1],A=o[2],C=o[3];T=h(T,R,A,C,s,7,a[0]),C=h(C,T,R,A,c,12,a[1]),A=h(A,C,T,R,f,17,a[2]),R=h(R,A,C,T,p,22,a[3]),T=h(T,R,A,C,m,7,a[4]),C=h(C,T,R,A,g,12,a[5]),A=h(A,C,T,R,v,17,a[6]),R=h(R,A,C,T,b,22,a[7]),T=h(T,R,A,C,w,7,a[8]),C=h(C,T,R,A,y,12,a[9]),A=h(A,C,T,R,x,17,a[10]),R=h(R,A,C,T,_,22,a[11]),T=h(T,R,A,C,$,7,a[12]),C=h(C,T,R,A,S,12,a[13]),A=h(A,C,T,R,E,17,a[14]),T=u(T,R=h(R,A,C,T,k,22,a[15]),A,C,c,5,a[16]),C=u(C,T,R,A,v,9,a[17]),A=u(A,C,T,R,_,14,a[18]),R=u(R,A,C,T,s,20,a[19]),T=u(T,R,A,C,g,5,a[20]),C=u(C,T,R,A,x,9,a[21]),A=u(A,C,T,R,k,14,a[22]),R=u(R,A,C,T,m,20,a[23]),T=u(T,R,A,C,y,5,a[24]),C=u(C,T,R,A,E,9,a[25]),A=u(A,C,T,R,p,14,a[26]),R=u(R,A,C,T,w,20,a[27]),T=u(T,R,A,C,S,5,a[28]),C=u(C,T,R,A,f,9,a[29]),A=u(A,C,T,R,b,14,a[30]),T=l(T,R=u(R,A,C,T,$,20,a[31]),A,C,g,4,a[32]),C=l(C,T,R,A,w,11,a[33]),A=l(A,C,T,R,_,16,a[34]),R=l(R,A,C,T,E,23,a[35]),T=l(T,R,A,C,c,4,a[36]),C=l(C,T,R,A,m,11,a[37]),A=l(A,C,T,R,b,16,a[38]),R=l(R,A,C,T,x,23,a[39]),T=l(T,R,A,C,S,4,a[40]),C=l(C,T,R,A,s,11,a[41]),A=l(A,C,T,R,p,16,a[42]),R=l(R,A,C,T,v,23,a[43]),T=l(T,R,A,C,y,4,a[44]),C=l(C,T,R,A,$,11,a[45]),A=l(A,C,T,R,k,16,a[46]),T=d(T,R=l(R,A,C,T,f,23,a[47]),A,C,s,6,a[48]),C=d(C,T,R,A,b,10,a[49]),A=d(A,C,T,R,E,15,a[50]),R=d(R,A,C,T,g,21,a[51]),T=d(T,R,A,C,$,6,a[52]),C=d(C,T,R,A,p,10,a[53]),A=d(A,C,T,R,x,15,a[54]),R=d(R,A,C,T,c,21,a[55]),T=d(T,R,A,C,w,6,a[56]),C=d(C,T,R,A,k,10,a[57]),A=d(A,C,T,R,v,15,a[58]),R=d(R,A,C,T,S,21,a[59]),T=d(T,R,A,C,m,6,a[60]),C=d(C,T,R,A,_,10,a[61]),A=d(A,C,T,R,f,15,a[62]),R=d(R,A,C,T,y,21,a[63]),o[0]=o[0]+T|0,o[1]=o[1]+R|0,o[2]=o[2]+A|0,o[3]=o[3]+C|0},P:function(){var n=this.S,e=n.words,i=8*this.T,r=8*n.sigBytes;e[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),s=i;e[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.sigBytes=4*(e.length+1),this.A();for(var a=this.H,c=a.words,h=0;h<4;h++){var u=c[h];c[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=o.clone.call(this);return t.H=this.H.clone(),t}});function h(t,n,e,i,r,o,s){var a=t+(n&e|~n&i)+r+s;return(a<<o|a>>>32-o)+n}function u(t,n,e,i,r,o,s){var a=t+(n&i|e&~i)+r+s;return(a<<o|a>>>32-o)+n}function l(t,n,e,i,r,o,s){var a=t+(n^e^i)+r+s;return(a<<o|a>>>32-o)+n}function d(t,n,e,i,r,o,s){var a=t+(e^(n|~i))+r+s;return(a<<o|a>>>32-o)+n}e.MD5=o.D(c),e.HmacMD5=o.j(c)}(Math),n.MD5)}(yi)),yi.exports}var _i,$i={exports:{}};function Si(){return _i||(_i=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(e=(n=c=si()).lib,i=e.WordArray,r=e.Hasher,o=n.algo,s=[],a=o.SHA1=r.extend({O:function(){this.H=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(t,n){for(var e=this.H.words,i=e[0],r=e[1],o=e[2],a=e[3],c=e[4],h=0;h<80;h++){if(h<16)s[h]=0|t[n+h];else{var u=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=u<<1|u>>>31}var l=(i<<5|i>>>27)+c+s[h];l+=h<20?1518500249+(r&o|~r&a):h<40?1859775393+(r^o^a):h<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,c=a,a=o,o=r<<30|r>>>2,r=i,i=l}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=Math.floor(e/4294967296),n[15+(i+64>>>9<<4)]=e,t.sigBytes=4*n.length,this.A(),this.H},clone:function(){var t=r.clone.call(this);return t.H=this.H.clone(),t}}),n.SHA1=r.D(a),n.HmacSHA1=r.j(a),c.SHA1)}($i)),$i.exports}var Ei,ki={exports:{}};function Ti(){return Ei||(Ei=1,function(t){var n;t.exports=(n=si(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[],c=[];!function(){function n(n){for(var e=t.sqrt(n),i=2;i<=e;i++)if(!(n%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)n(i)&&(r<8&&(a[r]=e(t.pow(i,.5))),c[r]=e(t.pow(i,1/3)),r++),i++}();var h=[],u=s.SHA256=o.extend({O:function(){this.H=new r.init(a.slice(0))},I:function(t,n){for(var e=this.H.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],l=e[6],d=e[7],f=0;f<64;f++){if(f<16)h[f]=0|t[n+f];else{var p=h[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=h[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;h[f]=m+h[f-7]+v+h[f-16]}var b=i&r^i&o^r&o,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&l)+c[f]+h[f];d=l,l=u,u=a,a=s+y|0,s=o,o=r,r=i,i=y+(w+b)|0}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+u|0,e[6]=e[6]+l|0,e[7]=e[7]+d|0},P:function(){var n=this.S,e=n.words,i=8*this.T,r=8*n.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=t.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,n.sigBytes=4*e.length,this.A(),this.H},clone:function(){var t=o.clone.call(this);return t.H=this.H.clone(),t}});e.SHA256=o.D(u),e.HmacSHA256=o.j(u)}(Math),n.SHA256)}(ki)),ki.exports}var Ri,Ai,Ci={exports:{}},Ii={exports:{}};function Oi(){return Ai||(Ai=1,function(t){var n;t.exports=(n=si(),hi(),function(){var t=n,e=t.lib.Hasher,i=t.x64,r=i.Word,o=i.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],h=[];!function(){for(var t=0;t<80;t++)h[t]=a()}();var u=s.SHA512=e.extend({O:function(){this.H=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},I:function(t,n){for(var e=this.H.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],l=e[6],d=e[7],f=i.high,p=i.low,m=r.high,g=r.low,v=o.high,b=o.low,w=s.high,y=s.low,x=a.high,_=a.low,$=u.high,S=u.low,E=l.high,k=l.low,T=d.high,R=d.low,A=f,C=p,I=m,O=g,z=v,P=b,D=w,j=y,M=x,B=_,H=$,N=S,U=E,L=k,W=T,J=R,F=0;F<80;F++){var K,q,V=h[F];if(F<16)q=V.high=0|t[n+2*F],K=V.low=0|t[n+2*F+1];else{var Y=h[F-15],X=Y.high,G=Y.low,Z=(X>>>1|G<<31)^(X>>>8|G<<24)^X>>>7,Q=(G>>>1|X<<31)^(G>>>8|X<<24)^(G>>>7|X<<25),tt=h[F-2],nt=tt.high,et=tt.low,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^nt>>>6,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^(et>>>6|nt<<26),ot=h[F-7],st=ot.high,at=ot.low,ct=h[F-16],ht=ct.high,ut=ct.low;q=(q=(q=Z+st+((K=Q+at)>>>0<Q>>>0?1:0))+it+((K+=rt)>>>0<rt>>>0?1:0))+ht+((K+=ut)>>>0<ut>>>0?1:0),V.high=q,V.low=K}var lt,dt=M&H^~M&U,ft=B&N^~B&L,pt=A&I^A&z^I&z,mt=C&O^C&P^O&P,gt=(A>>>28|C<<4)^(A<<30|C>>>2)^(A<<25|C>>>7),vt=(C>>>28|A<<4)^(C<<30|A>>>2)^(C<<25|A>>>7),bt=(M>>>14|B<<18)^(M>>>18|B<<14)^(M<<23|B>>>9),wt=(B>>>14|M<<18)^(B>>>18|M<<14)^(B<<23|M>>>9),yt=c[F],xt=yt.high,_t=yt.low,$t=W+bt+((lt=J+wt)>>>0<J>>>0?1:0),St=vt+mt;W=U,J=L,U=H,L=N,H=M,N=B,M=D+($t=($t=($t=$t+dt+((lt+=ft)>>>0<ft>>>0?1:0))+xt+((lt+=_t)>>>0<_t>>>0?1:0))+q+((lt+=K)>>>0<K>>>0?1:0))+((B=j+lt|0)>>>0<j>>>0?1:0)|0,D=z,j=P,z=I,P=O,I=A,O=C,A=$t+(gt+pt+(St>>>0<vt>>>0?1:0))+((C=lt+St|0)>>>0<lt>>>0?1:0)|0}p=i.low=p+C,i.high=f+A+(p>>>0<C>>>0?1:0),g=r.low=g+O,r.high=m+I+(g>>>0<O>>>0?1:0),b=o.low=b+P,o.high=v+z+(b>>>0<P>>>0?1:0),y=s.low=y+j,s.high=w+D+(y>>>0<j>>>0?1:0),_=a.low=_+B,a.high=x+M+(_>>>0<B>>>0?1:0),S=u.low=S+N,u.high=$+H+(S>>>0<N>>>0?1:0),k=l.low=k+L,l.high=E+U+(k>>>0<L>>>0?1:0),R=d.low=R+J,d.high=T+W+(R>>>0<J>>>0?1:0)},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[30+(i+128>>>10<<5)]=Math.floor(e/4294967296),n[31+(i+128>>>10<<5)]=e,t.sigBytes=4*n.length,this.A(),this.H.toX32()},clone:function(){var t=e.clone.call(this);return t.H=this.H.clone(),t},blockSize:32});t.SHA512=e.D(u),t.HmacSHA512=e.j(u)}(),n.SHA512)}(Ii)),Ii.exports}var zi,Pi,Di,ji,Mi={exports:{}},Bi={exports:{}},Hi={exports:{}},Ni={exports:{}};function Ui(){return ji||(ji=1,function(t){var n,e,i;t.exports=(e=(n=si()).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=e.extend({init:function(t,n){t=this.N=new t.init,"string"==typeof n&&(n=i.parse(n));var e=t.blockSize,r=4*e;n.sigBytes>r&&(n=t.finalize(n)),n.clamp();for(var o=this.U=n.clone(),s=this.L=n.clone(),a=o.words,c=s.words,h=0;h<e;h++)a[h]^=1549556828,c[h]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var t=this.N;t.reset(),t.update(this.L)},update:function(t){return this.N.update(t),this},finalize:function(t){var n=this.N,e=n.finalize(t);return n.reset(),n.finalize(this.U.clone().concat(e))}})))}(Ni)),Ni.exports}var Li,Wi,Ji={exports:{}},Fi={exports:{}};function Ki(){return Wi||(Wi=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=si(),Si(),Ui(),i=(e=(n=c).lib).Base,r=e.WordArray,s=(o=n.algo).MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,h=i.iterations;a.length<c;){e&&o.update(e),e=o.update(t).finalize(n),o.reset();for(var u=1;u<h;u++)e=o.finalize(e),o.reset();s.concat(e)}return s.sigBytes=4*c,s}}),n.EvpKDF=function(t,n,e){return a.create(e).compute(t,n)},c.EvpKDF)}(Fi)),Fi.exports}var qi,Vi={exports:{}};function Yi(){return qi||(qi=1,function(t){var n;t.exports=(n=si(),Ki(),void(n.lib.Cipher||function(){var t=n,e=t.lib,i=e.Base,r=e.WordArray,o=e.BufferedBlockAlgorithm,s=t.enc;s.Utf8;var a=s.Base64,c=t.algo.EvpKDF,h=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,n){return this.create(this.W,t,n)},createDecryptor:function(t,n){return this.create(this.J,t,n)},init:function(t,n,e){this.cfg=this.cfg.extend(e),this.F=t,this.K=n,this.reset()},reset:function(){o.reset.call(this),this.O()},process:function(t){return this.R(t),this.A()},finalize:function(t){return t&&this.R(t),this.P()},keySize:4,ivSize:4,W:1,J:2,D:function(){function t(t){return"string"==typeof t?b:g}return function(n){return{encrypt:function(e,i,r){return t(i).encrypt(n,e,i,r)},decrypt:function(e,i,r){return t(i).decrypt(n,e,i,r)}}}}()});e.StreamCipher=h.extend({P:function(){return this.A(!0)},blockSize:1});var u=t.mode={},l=e.BlockCipherMode=i.extend({createEncryptor:function(t,n){return this.Encryptor.create(t,n)},createDecryptor:function(t,n){return this.Decryptor.create(t,n)},init:function(t,n){this.V=t,this.Y=n}}),d=u.CBC=function(){var t=l.extend();function n(t,n,e){var i,r=this.Y;r?(i=r,this.Y=void 0):i=this.X;for(var o=0;o<e;o++)t[n+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this.V,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this.X=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this.V,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this.X=o}}),t}(),f=(t.pad={}).Pkcs7={pad:function(t,n){for(var e=4*n,i=e-t.sigBytes%e,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var c=r.create(s,i);t.concat(c)},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}};e.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:f}),reset:function(){var t;h.reset.call(this);var n=this.cfg,e=n.iv,i=n.mode;this.F==this.W?t=i.createEncryptor:(t=i.createDecryptor,this.C=1),this.G&&this.G.Z==t?this.G.init(this,e&&e.words):(this.G=t.call(i,this,e&&e.words),this.G.Z=t)},I:function(t,n){this.G.processBlock(t,n)},P:function(){var t,n=this.cfg.padding;return this.F==this.W?(n.pad(this.S,this.blockSize),t=this.A(!0)):(t=this.A(!0),n.unpad(t)),t},blockSize:4});var p=e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(t){var n=t.ciphertext,e=t.salt;return(e?r.create([1398893684,1701076831]).concat(e).concat(n):n).toString(a)},parse:function(t){var n,e=a.parse(t),i=e.words;return 1398893684==i[0]&&1701076831==i[1]&&(n=r.create(i.slice(2,4)),i.splice(0,4),e.sigBytes-=16),p.create({ciphertext:e,salt:n})}},g=e.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(t,n,e,i){i=this.cfg.extend(i);var r=t.createEncryptor(e,i),o=r.finalize(n),s=r.cfg;return p.create({ciphertext:o,key:e,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,n,e,i){return i=this.cfg.extend(i),n=this.tt(n,i.format),t.createDecryptor(e,i).finalize(n.ciphertext)},tt:function(t,n){return"string"==typeof t?n.parse(t,this):t}}),v=(t.kdf={}).OpenSSL={execute:function(t,n,e,i,o){if(i||(i=r.random(8)),o)s=c.create({keySize:n+e,hasher:o}).compute(t,i);else var s=c.create({keySize:n+e}).compute(t,i);var a=r.create(s.words.slice(n),4*e);return s.sigBytes=4*n,p.create({key:s,iv:a,salt:i})}},b=e.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(t,n,e,i){var r=(i=this.cfg.extend(i)).kdf.execute(e,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=g.encrypt.call(this,t,n,r.key,i);return o.mixIn(r),o},decrypt:function(t,n,e,i){i=this.cfg.extend(i),n=this.tt(n,i.format);var r=i.kdf.execute(e,t.keySize,t.ivSize,n.salt,i.hasher);return i.iv=r.iv,g.decrypt.call(this,t,n,r.key,i)}})}()))}(Vi)),Vi.exports}var Xi,Gi,Zi,Qi={exports:{}},tr={exports:{}},nr={exports:{}};var er,ir,rr,or,sr,ar,cr,hr,ur,lr,dr,fr,pr,mr,gr,vr={exports:{}},br={exports:{}},wr={exports:{}},yr={exports:{}},xr={exports:{}},_r={exports:{}},$r={exports:{}},Sr={exports:{}},Er={exports:{}},kr={exports:{}},Tr={exports:{}},Rr={exports:{}},Ar={exports:{}},Cr={exports:{}};var Ir=(gr||(gr=1,function(t){var n;t.exports=(n=si(),hi(),ui||(ui=1,function(t){var n;t.exports=(n=si(),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,i=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],r=0;r<n;r++)i[r>>>2]|=t[r]<<24-r%4*8;e.call(this,i,n)}else e.apply(this,arguments)};i.prototype=t}}(),n.lib.WordArray)}(fi)),li||(li=1,function(t){var n;t.exports=(n=si(),function(){var t=n,e=t.lib.WordArray,i=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r+=2){var o=n[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return e.create(i,2*n)}},i.Utf16LE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],o=0;o<e;o+=2){var s=r(n[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)}(pi)),gi(),vi||(vi=1,function(t){var n,e,i;t.exports=(n=si(),i=(e=n).lib.WordArray,e.enc.Base64url={stringify:function(t,n){void 0===n&&(n=!0);var e=t.words,i=t.sigBytes,r=n?this.nt:this.M;t.clamp();for(var o=[],s=0;s<i;s+=3)for(var a=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<i;c++)o.push(r.charAt(a>>>6*(3-c)&63));var h=r.charAt(64);if(h)for(;o.length%4;)o.push(h);return o.join("")},parse:function(t,n){void 0===n&&(n=!0);var e=t.length,r=n?this.nt:this.M,o=this.B;if(!o){o=this.B=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(e=c)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,e,o)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nt:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)}(bi)),xi(),Si(),Ti(),Ri||(Ri=1,function(t){var n,e,i,r,o,s;t.exports=(s=si(),Ti(),e=(n=s).lib.WordArray,i=n.algo,r=i.SHA256,o=i.SHA224=r.extend({O:function(){this.H=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},P:function(){var t=r.P.call(this);return t.sigBytes-=4,t}}),n.SHA224=r.D(o),n.HmacSHA224=r.j(o),s.SHA224)}(Ci)),Oi(),zi||(zi=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=si(),hi(),Oi(),e=(n=c).x64,i=e.Word,r=e.WordArray,o=n.algo,s=o.SHA512,a=o.SHA384=s.extend({O:function(){this.H=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},P:function(){var t=s.P.call(this);return t.sigBytes-=16,t}}),n.SHA384=s.D(a),n.HmacSHA384=s.j(a),c.SHA384)}(Mi)),Pi||(Pi=1,function(t){var n;t.exports=(n=si(),hi(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.x64.Word,a=e.algo,c=[],h=[],u=[];!function(){for(var t=1,n=0,e=0;e<24;e++){c[t+5*n]=(e+1)*(e+2)/2%64;var i=(2*t+3*n)%5;t=n%5,n=i}for(t=0;t<5;t++)for(n=0;n<5;n++)h[t+5*n]=n+(2*t+3*n)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,l=0,d=0;d<7;d++){if(1&r){var f=(1<<d)-1;f<32?l^=1<<f:a^=1<<f-32}128&r?r=r<<1^113:r<<=1}u[o]=s.create(a,l)}}();var l=[];!function(){for(var t=0;t<25;t++)l[t]=s.create()}();var d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),O:function(){for(var t=this.et=[],n=0;n<25;n++)t[n]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},I:function(t,n){for(var e=this.et,i=this.blockSize/2,r=0;r<i;r++){var o=t[n+2*r],s=t[n+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(R=e[r]).high^=s,R.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(R=e[d+5*m]).high,p^=R.low;var g=l[d];g.high=f,g.low=p}for(d=0;d<5;d++){var v=l[(d+4)%5],b=l[(d+1)%5],w=b.high,y=b.low;for(f=v.high^(w<<1|y>>>31),p=v.low^(y<<1|w>>>31),m=0;m<5;m++)(R=e[d+5*m]).high^=f,R.low^=p}for(var x=1;x<25;x++){var _=(R=e[x]).high,$=R.low,S=c[x];S<32?(f=_<<S|$>>>32-S,p=$<<S|_>>>32-S):(f=$<<S-32|_>>>64-S,p=_<<S-32|$>>>64-S);var E=l[h[x]];E.high=f,E.low=p}var k=l[0],T=e[0];for(k.high=T.high,k.low=T.low,d=0;d<5;d++)for(m=0;m<5;m++){var R=e[x=d+5*m],A=l[x],C=l[(d+1)%5+5*m],I=l[(d+2)%5+5*m];R.high=A.high^~C.high&I.high,R.low=A.low^~C.low&I.low}R=e[0];var O=u[a];R.high^=O.high,R.low^=O.low}},P:function(){var n=this.S,e=n.words;this.T;var i=8*n.sigBytes,o=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(t.ceil((i+1)/o)*o>>>5)-1]|=128,n.sigBytes=4*e.length,this.A();for(var s=this.et,a=this.cfg.outputLength/8,c=a/8,h=[],u=0;u<c;u++){var l=s[u],d=l.high,f=l.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),h.push(f),h.push(d)}return new r.init(h,a)},clone:function(){for(var t=o.clone.call(this),n=t.et=this.et.slice(0),e=0;e<25;e++)n[e]=n[e].clone();return t}});e.SHA3=o.D(d),e.HmacSHA3=o.j(d)}(Math),n.SHA3)}(Bi)),Di||(Di=1,function(t){var n;t.exports=(n=si(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.Hasher,o=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),l=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=r.extend({O:function(){this.H=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,d,w,y,x,_,$,S,E,k,T,R=this.H.words,A=u.words,C=l.words,I=s.words,O=a.words,z=c.words,P=h.words;for(_=o=R[0],$=d=R[1],S=w=R[2],E=y=R[3],k=x=R[4],e=0;e<80;e+=1)T=o+t[n+I[e]]|0,T+=e<16?f(d,w,y)+A[0]:e<32?p(d,w,y)+A[1]:e<48?m(d,w,y)+A[2]:e<64?g(d,w,y)+A[3]:v(d,w,y)+A[4],T=(T=b(T|=0,z[e]))+x|0,o=x,x=y,y=b(w,10),w=d,d=T,T=_+t[n+O[e]]|0,T+=e<16?v($,S,E)+C[0]:e<32?g($,S,E)+C[1]:e<48?m($,S,E)+C[2]:e<64?p($,S,E)+C[3]:f($,S,E)+C[4],T=(T=b(T|=0,P[e]))+k|0,_=k,k=E,E=b(S,10),S=$,$=T;T=R[1]+w+E|0,R[1]=R[2]+y+k|0,R[2]=R[3]+x+_|0,R[3]=R[4]+o+$|0,R[4]=R[0]+d+S|0,R[0]=T},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(n.length+1),this.A();for(var r=this.H,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=r.clone.call(this);return t.H=this.H.clone(),t}});function f(t,n,e){return t^n^e}function p(t,n,e){return t&n|~t&e}function m(t,n,e){return(t|~n)^e}function g(t,n,e){return t&e|n&~e}function v(t,n,e){return t^(n|~e)}function b(t,n){return t<<n|t>>>32-n}t.RIPEMD160=r.D(d),t.HmacRIPEMD160=r.j(d)}(),n.RIPEMD160)}(Hi)),Ui(),Li||(Li=1,function(t){var n,e,i,r,o,s,a,c,h;t.exports=(h=si(),Ti(),Ui(),i=(e=(n=h).lib).Base,r=e.WordArray,s=(o=n.algo).SHA256,a=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e=this.cfg,i=a.create(e.hasher,t),o=r.create(),s=r.create([1]),c=o.words,h=s.words,u=e.keySize,l=e.iterations;c.length<u;){var d=i.update(n).finalize(s);i.reset();for(var f=d.words,p=f.length,m=d,g=1;g<l;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<p;b++)f[b]^=v[b]}o.concat(d),h[0]++}return o.sigBytes=4*u,o}}),n.PBKDF2=function(t,n,e){return c.create(e).compute(t,n)},h.PBKDF2)}(Ji)),Ki(),Yi(),Xi||(Xi=1,function(t){var n;t.exports=(n=si(),Yi(),n.mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,n,e,i){var r,o=this.Y;o?(r=o.slice(0),this.Y=void 0):r=this.X,i.encryptBlock(r,0);for(var s=0;s<e;s++)t[n+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize;e.call(this,t,n,r,i),this.X=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize,o=t.slice(n,n+r);e.call(this,t,n,r,i),this.X=o}}),t}(),n.mode.CFB)}(Qi)),Gi||(Gi=1,function(t){var n,e,i;t.exports=(i=si(),Yi(),i.mode.CTR=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.V,i=e.blockSize,r=this.Y,o=this.it;r&&(o=this.it=r.slice(0),this.Y=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[n+a]^=s[a]}}),n.Decryptor=e,n),i.mode.CTR)}(tr)),Zi||(Zi=1,function(t){var n;t.exports=(n=si(),Yi(),n.mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var n=t>>16&255,e=t>>8&255,i=255&t;255===n?(n=0,255===e?(e=0,255===i?i=0:++i):++e):++n,t=0,t+=n<<16,t+=e<<8,t+=i}return t}var i=t.Encryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize,o=this.Y,s=this.it;o&&(s=this.it=o.slice(0),this.Y=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)t[n+c]^=a[c]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)}(nr)),er||(er=1,function(t){var n,e,i;t.exports=(i=si(),Yi(),i.mode.OFB=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.V,i=e.blockSize,r=this.Y,o=this.rt;r&&(o=this.rt=r.slice(0),this.Y=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)t[n+s]^=o[s]}}),n.Decryptor=e,n),i.mode.OFB)}(vr)),ir||(ir=1,function(t){var n,e;t.exports=(e=si(),Yi(),e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){this.V.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this.V.decryptBlock(t,n)}}),n),e.mode.ECB)}(br)),rr||(rr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.AnsiX923={pad:function(t,n){var e=t.sigBytes,i=4*n,r=i-e%i,o=e+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Ansix923)}(wr)),or||(or=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.Iso10126={pad:function(t,e){var i=4*e,r=i-t.sigBytes%i;t.concat(n.lib.WordArray.random(r-1)).concat(n.lib.WordArray.create([r<<24],1))},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Iso10126)}(yr)),sr||(sr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)}(xr)),ar||(ar=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.ZeroPadding={pad:function(t,n){var e=4*n;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var n=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(n[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},n.pad.ZeroPadding)}(_r)),cr||(cr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)}($r)),hr||(hr=1,function(t){var n,e,i,r;t.exports=(r=si(),Yi(),e=(n=r).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var n=i.parse(t);return e.create({ciphertext:n})}},r.format.Hex)}(Sr)),ur||(ur=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo,r=[],o=[],s=[],a=[],c=[],h=[],u=[],l=[],d=[],f=[];!function(){for(var t=[],n=0;n<256;n++)t[n]=n<128?n<<1:n<<1^283;var e=0,i=0;for(n=0;n<256;n++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[e]=p,o[p]=e;var m=t[e],g=t[m],v=t[g],b=257*t[p]^16843008*p;s[e]=b<<24|b>>>8,a[e]=b<<16|b>>>16,c[e]=b<<8|b>>>24,h[e]=b,b=16843009*v^65537*g^257*m^16843008*e,u[p]=b<<24|b>>>8,l[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,f[p]=b,e?(e=m^t[t[t[v^m]]],i^=t[t[i]]):e=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=e.extend({O:function(){if(!this.ot||this.st!==this.K){for(var t=this.st=this.K,n=t.words,e=t.sigBytes/4,i=4*((this.ot=e+6)+1),o=this.ct=[],s=0;s<i;s++)s<e?o[s]=n[s]:(h=o[s-1],s%e?e>6&&s%e==4&&(h=r[h>>>24]<<24|r[h>>>16&255]<<16|r[h>>>8&255]<<8|r[255&h]):(h=r[(h=h<<8|h>>>24)>>>24]<<24|r[h>>>16&255]<<16|r[h>>>8&255]<<8|r[255&h],h^=p[s/e|0]<<24),o[s]=o[s-e]^h);for(var a=this.ht=[],c=0;c<i;c++){if(s=i-c,c%4)var h=o[s];else h=o[s-4];a[c]=c<4||s<=4?h:u[r[h>>>24]]^l[r[h>>>16&255]]^d[r[h>>>8&255]]^f[r[255&h]]}}},encryptBlock:function(t,n){this.ut(t,n,this.ct,s,a,c,h,r)},decryptBlock:function(t,n){var e=t[n+1];t[n+1]=t[n+3],t[n+3]=e,this.ut(t,n,this.ht,u,l,d,f,o),e=t[n+1],t[n+1]=t[n+3],t[n+3]=e},ut:function(t,n,e,i,r,o,s,a){for(var c=this.ot,h=t[n]^e[0],u=t[n+1]^e[1],l=t[n+2]^e[2],d=t[n+3]^e[3],f=4,p=1;p<c;p++){var m=i[h>>>24]^r[u>>>16&255]^o[l>>>8&255]^s[255&d]^e[f++],g=i[u>>>24]^r[l>>>16&255]^o[d>>>8&255]^s[255&h]^e[f++],v=i[l>>>24]^r[d>>>16&255]^o[h>>>8&255]^s[255&u]^e[f++],b=i[d>>>24]^r[h>>>16&255]^o[u>>>8&255]^s[255&l]^e[f++];h=m,u=g,l=v,d=b}m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&d])^e[f++],g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^e[f++],v=(a[l>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^e[f++],b=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^e[f++],t[n]=m,t[n+1]=g,t[n+2]=v,t[n+3]=b},keySize:8});t.AES=e.D(m)}(),n.AES)}(Er)),lr||(lr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=r.extend({O:function(){for(var t=this.K.words,n=[],e=0;e<56;e++){var i=s[e]-1;n[e]=t[i>>>5]>>>31-i%32&1}for(var r=this.lt=[],o=0;o<16;o++){var h=r[o]=[],u=c[o];for(e=0;e<24;e++)h[e/6|0]|=n[(a[e]-1+u)%28]<<31-e%6,h[4+(e/6|0)]|=n[28+(a[e+24]-1+u)%28]<<31-e%6;for(h[0]=h[0]<<1|h[0]>>>31,e=1;e<7;e++)h[e]=h[e]>>>4*(e-1)+3;h[7]=h[7]<<5|h[7]>>>27}var l=this.dt=[];for(e=0;e<16;e++)l[e]=r[15-e]},encryptBlock:function(t,n){this.ut(t,n,this.lt)},decryptBlock:function(t,n){this.ut(t,n,this.dt)},ut:function(t,n,e){this.ft=t[n],this.gt=t[n+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=e[i],o=this.ft,s=this.gt,a=0,c=0;c<8;c++)a|=h[c][((s^r[c])&u[c])>>>0];this.ft=s,this.gt=o^a}var l=this.ft;this.ft=this.gt,this.gt=l,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[n]=this.ft,t[n+1]=this.gt},keySize:2,ivSize:2,blockSize:2});function d(t,n){var e=(this.ft>>>t^this.gt)&n;this.gt^=e,this.ft^=e<<t}function f(t,n){var e=(this.gt>>>t^this.ft)&n;this.ft^=e,this.gt^=e<<t}t.DES=r.D(l);var p=o.TripleDES=r.extend({O:function(){var t=this.K.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),e=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this.vt=l.createEncryptor(i.create(n)),this.bt=l.createEncryptor(i.create(e)),this.wt=l.createEncryptor(i.create(r))},encryptBlock:function(t,n){this.vt.encryptBlock(t,n),this.bt.decryptBlock(t,n),this.wt.encryptBlock(t,n)},decryptBlock:function(t,n){this.wt.decryptBlock(t,n),this.bt.encryptBlock(t,n),this.vt.decryptBlock(t,n)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r.D(p)}(),n.TripleDES)}(kr)),dr||(dr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=i.RC4=e.extend({O:function(){for(var t=this.K,n=t.words,e=t.sigBytes,i=this.yt=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%e,a=n[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var c=i[r];i[r]=i[o],i[o]=c}this.xt=this._t=0},I:function(t,n){t[n]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this.yt,n=this.xt,e=this._t,i=0,r=0;r<4;r++){e=(e+t[n=(n+1)%256])%256;var o=t[n];t[n]=t[e],t[e]=o,i|=t[(t[n]+t[e])%256]<<24-8*r}return this.xt=n,this._t=e,i}t.RC4=e.D(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),O:function(){r.O.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e.D(s)}(),n.RC4)}(Tr)),fr||(fr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.Rabbit=e.extend({O:function(){for(var t=this.K.words,n=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);var i=this.$t=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this.Et=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)r[e]^=i[e+4&7];if(n){var o=n.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=h>>>16|4294901760&u,d=u<<16|65535&h;for(r[0]^=h,r[1]^=l,r[2]^=u,r[3]^=d,r[4]^=h,r[5]^=l,r[6]^=u,r[7]^=d,e=0;e<4;e++)c.call(this)}},I:function(t,n){var e=this.$t;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.$t,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.Et|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.Et=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e.D(a)}(),n.Rabbit)}(Rr)),pr||(pr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.RabbitLegacy=e.extend({O:function(){var t=this.K.words,n=this.cfg.iv,e=this.$t=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this.Et=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=e[r+4&7];if(n){var o=n.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=h>>>16|4294901760&u,d=u<<16|65535&h;for(i[0]^=h,i[1]^=l,i[2]^=u,i[3]^=d,i[4]^=h,i[5]^=l,i[6]^=u,i[7]^=d,r=0;r<4;r++)c.call(this)}},I:function(t,n){var e=this.$t;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.$t,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.Et|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.Et=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=e.D(a)}(),n.RabbitLegacy)}(Ar)),mr||(mr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo;const r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function a(t,n){let e=n>>24&255,i=n>>16&255,r=n>>8&255,o=255&n,s=t.sbox[0][e]+t.sbox[1][i];return s^=t.sbox[2][r],s+=t.sbox[3][o],s}function c(t,n,e){let i,r=n,o=e;for(let n=0;n<16;++n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[16],r^=t.pbox[17],{left:r,right:o}}var h=i.Blowfish=e.extend({O:function(){if(this.st!==this.K){var t=this.st=this.K,n=t.words,e=t.sigBytes/4;!function(t,n,e){for(let n=0;n<4;n++){t.sbox[n]=[];for(let e=0;e<256;e++)t.sbox[n][e]=o[n][e]}let i=0;for(let o=0;o<18;o++)t.pbox[o]=r[o]^n[i],i++,i>=e&&(i=0);let s=0,a=0,h=0;for(let n=0;n<18;n+=2)h=c(t,s,a),s=h.left,a=h.right,t.pbox[n]=s,t.pbox[n+1]=a;for(let n=0;n<4;n++)for(let e=0;e<256;e+=2)h=c(t,s,a),s=h.left,a=h.right,t.sbox[n][e]=s,t.sbox[n][e+1]=a}(s,n,e)}},encryptBlock:function(t,n){var e=c(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},decryptBlock:function(t,n){var e=function(t,n,e){let i,r=n,o=e;for(let n=17;n>1;--n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[1],r^=t.pbox[0],{left:r,right:o}}(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e.D(h)}(),n.Blowfish)}(Cr)),n)}(ii)),ii.exports),Or=crypto;const zr=t=>t instanceof CryptoKey,Pr=new TextEncoder,Dr=new TextDecoder;function jr(...t){const n=t.reduce(((t,{length:n})=>t+n),0),e=new Uint8Array(n);let i=0;for(const n of t)e.set(n,i),i+=n.length;return e}const Mr=t=>(t=>{let n=t;"string"==typeof n&&(n=Pr.encode(n));const e=[];for(let t=0;t<n.length;t+=32768)e.push(String.fromCharCode.apply(null,n.subarray(t,t+32768)));return btoa(e.join(""))})(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Br=t=>{let n=t;n instanceof Uint8Array&&(n=Dr.decode(n)),n=n.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return e})(n)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Hr extends Error{constructor(t,n){super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Hr.code="ERR_JOSE_GENERIC";class Nr extends Hr{constructor(t,n,e="unspecified",i="unspecified"){super(t,{cause:{claim:e,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=e,this.reason=i,this.payload=n}}Nr.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class Ur extends Hr{constructor(t,n,e="unspecified",i="unspecified"){super(t,{cause:{claim:e,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=e,this.reason=i,this.payload=n}}Ur.code="ERR_JWT_EXPIRED",class extends Hr{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}.code="ERR_JOSE_ALG_NOT_ALLOWED";class Lr extends Hr{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}Lr.code="ERR_JOSE_NOT_SUPPORTED",class extends Hr{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}.code="ERR_JWE_DECRYPTION_FAILED",class extends Hr{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}.code="ERR_JWE_INVALID";class Wr extends Hr{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}Wr.code="ERR_JWS_INVALID";class Jr extends Hr{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Jr.code="ERR_JWT_INVALID",class extends Hr{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}.code="ERR_JWK_INVALID",class extends Hr{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}.code="ERR_JWKS_INVALID",class extends Hr{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}.code="ERR_JWKS_NO_MATCHING_KEY",class extends Hr{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",class extends Hr{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}.code="ERR_JWKS_TIMEOUT";class Fr extends Hr{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Kr(t,n="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${n} must be ${t}`)}function qr(t,n){return t.name===n}function Vr(t){return parseInt(t.name.slice(4),10)}function Yr(t,n,...e){if((e=e.filter(Boolean)).length>2){const n=e.pop();t+=`one of type ${e.join(", ")}, or ${n}.`}else 2===e.length?t+=`one of type ${e[0]} or ${e[1]}.`:t+=`of type ${e[0]}.`;return null==n?t+=` Received ${n}`:"function"==typeof n&&n.name?t+=` Received function ${n.name}`:"object"==typeof n&&null!=n&&n.constructor?.name&&(t+=` Received an instance of ${n.constructor.name}`),t}Fr.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";var Xr=(t,...n)=>Yr("Key must be ",t,...n);function Gr(t,n,...e){return Yr(`Key for the ${t} algorithm must be `,n,...e)}var Zr=t=>!!zr(t)||"KeyObject"===t?.[Symbol.toStringTag];const Qr=["CryptoKey"],to=(...t)=>{const n=t.filter(Boolean);if(0===n.length||1===n.length)return!0;let e;for(const t of n){const n=Object.keys(t);if(e&&0!==e.size)for(const t of n){if(e.has(t))return!1;e.add(t)}else e=new Set(n)}return!0};function no(t){if("object"!=typeof(n=t)||null===n||"[object Object]"!==Object.prototype.toString.call(t))return!1;var n;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var eo=(t,n)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:e}=n.algorithm;if("number"!=typeof e||e<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}};function io(t){return no(t)&&"string"==typeof t.kty}const ro=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:n,keyUsages:e}=function(t){let n,e;switch(t.kty){case"RSA":switch(t.alg){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},e=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(t.alg){case"ES256":n={name:"ECDSA",namedCurve:"P-256"},e=t.d?["sign"]:["verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},e=t.d?["sign"]:["verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:"ECDH",namedCurve:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(t.alg){case"Ed25519":n={name:"Ed25519"},e=t.d?["sign"]:["verify"];break;case"EdDSA":n={name:t.crv},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Lr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:n,keyUsages:e}}(t),i=[n,t.ext??!1,t.key_ops??e],r={...t};return delete r.alg,delete r.use,Or.subtle.importKey("jwk",r,...i)},oo=t=>Br(t);let so,ao;const co=t=>"KeyObject"===t?.[Symbol.toStringTag],ho=async(t,n,e,i,r=!1)=>{let o=t.get(n);if(o?.[i])return o[i];const s=await ro({...e,alg:i});return r&&Object.freeze(n),o?o[i]=s:t.set(n,{[i]:s}),s},uo=t=>t?.[Symbol.toStringTag],lo=(t,n,e)=>{if(void 0!==n.use&&"sig"!==n.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==n.key_ops&&!0!==n.key_ops.includes?.(e))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${e}`);if(void 0!==n.alg&&n.alg!==t)throw new TypeError(`Invalid key for this operation, when present its alg must be ${t}`);return!0};function fo(t,n,e,i){n.startsWith("HS")||"dir"===n||n.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(n)?((t,n,e,i)=>{if(!(n instanceof Uint8Array)){if(i&&io(n)){if(function(t){return io(t)&&"oct"===t.kty&&"string"==typeof t.k}(n)&&lo(t,n,e))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!Zr(n))throw new TypeError(Gr(t,n,...Qr,"Uint8Array",i?"JSON Web Key":null));if("secret"!==n.type)throw new TypeError(`${uo(n)} instances for symmetric algorithms must be of type "secret"`)}})(n,e,i,t):((t,n,e,i)=>{if(i&&io(n))switch(e){case"sign":if(function(t){return"oct"!==t.kty&&"string"==typeof t.d}(n)&&lo(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(t){return"oct"!==t.kty&&void 0===t.d}(n)&&lo(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!Zr(n))throw new TypeError(Gr(t,n,...Qr,i?"JSON Web Key":null));if("secret"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===e&&"public"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===e&&"public"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm decryption must be of type "private"`);if(n.algorithm&&"verify"===e&&"private"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm verifying must be of type "public"`);if(n.algorithm&&"encrypt"===e&&"private"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm encryption must be of type "public"`)})(n,e,i,t)}fo.bind(void 0,!1);const po=fo.bind(void 0,!0);function mo(t,n,e,i,r){if(void 0!==r.crit&&void 0===i?.crit)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some((t=>"string"!=typeof t||0===t.length)))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;o=void 0!==e?new Map([...Object.entries(e),...n.entries()]):n;for(const n of i.crit){if(!o.has(n))throw new Lr(`Extension Header Parameter "${n}" is not recognized`);if(void 0===r[n])throw new t(`Extension Header Parameter "${n}" is missing`);if(o.get(n)&&void 0===i[n])throw new t(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}function go(t,n){const e=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:e,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:e,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:e,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:e,name:"ECDSA",namedCurve:n.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:n.name};default:throw new Lr(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}async function vo(t,n,e){if("sign"===e&&(n=await((t,n)=>{if(co(t)){let e=t.export({format:"jwk"});return e.k?oo(e.k):(so||(so=new WeakMap),ho(so,t,e,n))}return io(t)?t.k?Br(t.k):(so||(so=new WeakMap),ho(so,t,t,n,!0)):t})(n,t)),"verify"===e&&(n=await((t,n)=>{if(co(t)){let e=t.export({format:"jwk"});return delete e.d,delete e.dp,delete e.dq,delete e.p,delete e.q,delete e.qi,e.k?oo(e.k):(ao||(ao=new WeakMap),ho(ao,t,e,n))}return io(t)?t.k?Br(t.k):(ao||(ao=new WeakMap),ho(ao,t,t,n,!0)):t})(n,t)),zr(n))return function(t,n,...e){switch(n){case"HS256":case"HS384":case"HS512":{if(!qr(t.algorithm,"HMAC"))throw Kr("HMAC");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!qr(t.algorithm,"RSASSA-PKCS1-v1_5"))throw Kr("RSASSA-PKCS1-v1_5");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!qr(t.algorithm,"RSA-PSS"))throw Kr("RSA-PSS");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==t.algorithm.name&&"Ed448"!==t.algorithm.name)throw Kr("Ed25519 or Ed448");break;case"Ed25519":if(!qr(t.algorithm,"Ed25519"))throw Kr("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!qr(t.algorithm,"ECDSA"))throw Kr("ECDSA");const e=function(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(n);if(t.algorithm.namedCurve!==e)throw Kr(e,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(t,n){if(n.length&&!n.some((n=>t.usages.includes(n)))){let t="CryptoKey does not support this operation, its usages must include ";if(n.length>2){const e=n.pop();t+=`one of ${n.join(", ")}, or ${e}.`}else 2===n.length?t+=`one of ${n[0]} or ${n[1]}.`:t+=`${n[0]}.`;throw new TypeError(t)}}(t,e)}(n,t,e),n;if(n instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError(Xr(n,...Qr));return Or.subtle.importKey("raw",n,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[e])}throw new TypeError(Xr(n,...Qr,"Uint8Array","JSON Web Key"))}var bo=t=>Math.floor(t.getTime()/1e3);const wo=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var yo=t=>{const n=wo.exec(t);if(!n||n[4]&&n[1])throw new TypeError("Invalid time period format");const e=parseFloat(n[2]);let i;switch(n[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(e);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(60*e);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(3600*e);break;case"day":case"days":case"d":i=Math.round(86400*e);break;case"week":case"weeks":case"w":i=Math.round(604800*e);break;default:i=Math.round(31557600*e)}return"-"===n[1]||"ago"===n[4]?-i:i};const xo=t=>t.toLowerCase().replace(/^application\//,"");var _o=(t,n,e={})=>{let i;try{i=JSON.parse(Dr.decode(n))}catch{}if(!no(i))throw new Jr("JWT Claims Set must be a top-level JSON object");const{typ:r}=e;if(r&&("string"!=typeof t.typ||xo(t.typ)!==xo(r)))throw new Nr('unexpected "typ" JWT header value',i,"typ","check_failed");const{requiredClaims:o=[],issuer:s,subject:a,audience:c,maxTokenAge:h}=e,u=[...o];void 0!==h&&u.push("iat"),void 0!==c&&u.push("aud"),void 0!==a&&u.push("sub"),void 0!==s&&u.push("iss");for(const t of new Set(u.reverse()))if(!(t in i))throw new Nr(`missing required "${t}" claim`,i,t,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new Nr('unexpected "iss" claim value',i,"iss","check_failed");if(a&&i.sub!==a)throw new Nr('unexpected "sub" claim value',i,"sub","check_failed");if(c&&(d="string"==typeof c?[c]:c,!("string"==typeof(l=i.aud)?d.includes(l):Array.isArray(l)&&d.some(Set.prototype.has.bind(new Set(l))))))throw new Nr('unexpected "aud" claim value',i,"aud","check_failed");var l,d;let f;switch(typeof e.clockTolerance){case"string":f=yo(e.clockTolerance);break;case"number":f=e.clockTolerance;break;case"undefined":f=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=e,m=bo(p||new Date);if((void 0!==i.iat||h)&&"number"!=typeof i.iat)throw new Nr('"iat" claim must be a number',i,"iat","invalid");if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new Nr('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>m+f)throw new Nr('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new Nr('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=m-f)throw new Ur('"exp" claim timestamp check failed',i,"exp","check_failed")}if(h){const t=m-i.iat;if(t-f>("number"==typeof h?h:yo(h)))throw new Ur('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(t<0-f)throw new Nr('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};class $o{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this.kt=t}setProtectedHeader(t){if(this.Tt)throw new TypeError("setProtectedHeader can only be called once");return this.Tt=t,this}setUnprotectedHeader(t){if(this.Rt)throw new TypeError("setUnprotectedHeader can only be called once");return this.Rt=t,this}async sign(t,n){if(!this.Tt&&!this.Rt)throw new Wr("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!to(this.Tt,this.Rt))throw new Wr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const e={...this.Tt,...this.Rt};let i=!0;if(mo(Wr,new Map([["b64",!0]]),n?.crit,this.Tt,e).has("b64")&&(i=this.Tt.b64,"boolean"!=typeof i))throw new Wr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:r}=e;if("string"!=typeof r||!r)throw new Wr('JWS "alg" (Algorithm) Header Parameter missing or invalid');po(r,t,"sign");let o,s=this.kt;i&&(s=Pr.encode(Mr(s))),o=this.Tt?Pr.encode(Mr(JSON.stringify(this.Tt))):Pr.encode("");const a=jr(o,Pr.encode("."),s),c=await(async(t,n,e)=>{const i=await vo(t,n,"sign");eo(t,i);const r=await Or.subtle.sign(go(t,i.algorithm),i,e);return new Uint8Array(r)})(r,t,a),h={signature:Mr(c),payload:""};return i&&(h.payload=Dr.decode(s)),this.Rt&&(h.header=this.Rt),this.Tt&&(h.protected=Dr.decode(o)),h}}class So{constructor(t){this.At=new $o(t)}setProtectedHeader(t){return this.At.setProtectedHeader(t),this}async sign(t,n){const e=await this.At.sign(t,n);if(void 0===e.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${e.protected}.${e.payload}.${e.signature}`}}function Eo(t,n){if(!Number.isFinite(n))throw new TypeError(`Invalid ${t} input`);return n}class ko{constructor(t={}){if(!no(t))throw new TypeError("JWT Claims Set MUST be an object");this.kt=t}setIssuer(t){return this.kt={...this.kt,iss:t},this}setSubject(t){return this.kt={...this.kt,sub:t},this}setAudience(t){return this.kt={...this.kt,aud:t},this}setJti(t){return this.kt={...this.kt,jti:t},this}setNotBefore(t){return"number"==typeof t?this.kt={...this.kt,nbf:Eo("setNotBefore",t)}:t instanceof Date?this.kt={...this.kt,nbf:Eo("setNotBefore",bo(t))}:this.kt={...this.kt,nbf:bo(new Date)+yo(t)},this}setExpirationTime(t){return"number"==typeof t?this.kt={...this.kt,exp:Eo("setExpirationTime",t)}:t instanceof Date?this.kt={...this.kt,exp:Eo("setExpirationTime",bo(t))}:this.kt={...this.kt,exp:bo(new Date)+yo(t)},this}setIssuedAt(t){return void 0===t?this.kt={...this.kt,iat:bo(new Date)}:t instanceof Date?this.kt={...this.kt,iat:Eo("setIssuedAt",bo(t))}:this.kt="string"==typeof t?{...this.kt,iat:Eo("setIssuedAt",bo(new Date)+yo(t))}:{...this.kt,iat:Eo("setIssuedAt",t)},this}}class To extends ko{setProtectedHeader(t){return this.Tt=t,this}async sign(t,n){const e=new So(Pr.encode(JSON.stringify(this.kt)));if(e.setProtectedHeader(this.Tt),Array.isArray(this.Tt?.crit)&&this.Tt.crit.includes("b64")&&!1===this.Tt.b64)throw new Jr("JWTs MUST NOT use unencoded payload");return e.sign(t,n)}}class Ro{constructor(t){var n,e,i,r,o,s,a;const c=t;this.cause=null!==(r=null!==(e=null===(n=null==c?void 0:c.response)||void 0===n?void 0:n.data.statusCode)&&void 0!==e?e:null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.status)&&void 0!==r?r:0,this.errorMessage=null!==(a=null!==(s=null===(o=null==c?void 0:c.response)||void 0===o?void 0:o.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class Ao{constructor(t){this.apiKey=t}static getInstance(t){return Ye.getInstance("EncryptedApi",(()=>new Ao(t)))}async handleEncryption(t,n){const e=this.getKey(n);try{return this.joseEncrypt(t,e,this.forwardInMinutes(30,n))}catch(t){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(t,n){const e=this.getKey(n);return this.joseDecrypt(t,e)}getKey(t){return this.apiKey.slice(Number(`${t}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(t,n){const e=new Date(n);return e.setMinutes(e.getMinutes()+t)}async joseDecrypt(t,n){return async function(t,n,e){const i=await async function(t,n,e){if(t instanceof Uint8Array&&(t=Dr.decode(t)),"string"!=typeof t)throw new Wr("Compact JWS must be a string or Uint8Array");const{0:i,1:r,2:o,length:s}=t.split(".");if(3!==s)throw new Wr("Invalid Compact JWS");const a=await async function(t,n,e){if(!no(t))throw new Wr("Flattened JWS must be an object");if(void 0===t.protected&&void 0===t.header)throw new Wr('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==t.protected&&"string"!=typeof t.protected)throw new Wr("JWS Protected Header incorrect type");if(void 0===t.payload)throw new Wr("JWS Payload missing");if("string"!=typeof t.signature)throw new Wr("JWS Signature missing or incorrect type");if(void 0!==t.header&&!no(t.header))throw new Wr("JWS Unprotected Header incorrect type");let i={};if(t.protected)try{const n=Br(t.protected);i=JSON.parse(Dr.decode(n))}catch{throw new Wr("JWS Protected Header is invalid")}if(!to(i,t.header))throw new Wr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...i,...t.header};let o=!0;if(mo(Wr,new Map([["b64",!0]]),e?.crit,i,r).has("b64")&&(o=i.b64,"boolean"!=typeof o))throw new Wr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=r;if("string"!=typeof s||!s)throw new Wr('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(o){if("string"!=typeof t.payload)throw new Wr("JWS Payload must be a string")}else if("string"!=typeof t.payload&&!(t.payload instanceof Uint8Array))throw new Wr("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof n?(n=await n(i,t),a=!0,po(s,n,"verify"),io(n)&&(n=await async function(t,n){if(!no(t))throw new TypeError("JWK must be an object");switch(n||(n=t.alg),t.kty){case"oct":if("string"!=typeof t.k||!t.k)throw new TypeError('missing "k" (Key Value) Parameter value');return Br(t.k);case"RSA":if("oth"in t&&void 0!==t.oth)throw new Lr('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return ro({...t,alg:n});default:throw new Lr('Unsupported "kty" (Key Type) Parameter value')}}(n,s))):po(s,n,"verify");const c=jr(Pr.encode(t.protected??""),Pr.encode("."),"string"==typeof t.payload?Pr.encode(t.payload):t.payload);let h;try{h=Br(t.signature)}catch{throw new Wr("Failed to base64url decode the signature")}const u=await(async(t,n,e,i)=>{const r=await vo(t,n,"verify");eo(t,r);const o=go(t,r.algorithm);try{return await Or.subtle.verify(o,r,e,i)}catch{return!1}})(s,n,h,c);if(!u)throw new Fr;let l;if(o)try{l=Br(t.payload)}catch{throw new Wr("Failed to base64url decode the payload")}else l="string"==typeof t.payload?Pr.encode(t.payload):t.payload;const d={payload:l};return void 0!==t.protected&&(d.protectedHeader=i),void 0!==t.header&&(d.unprotectedHeader=t.header),a?{...d,key:n}:d}({payload:r,protected:i,signature:o},n,e),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof n?{...c,key:a.key}:c}(t,n,e);if(i.protectedHeader.crit?.includes("b64")&&!1===i.protectedHeader.b64)throw new Jr("JWTs MUST NOT use unencoded payload");const r={payload:_o(i.protectedHeader,i.payload,e),protectedHeader:i.protectedHeader};return"function"==typeof n?{...r,key:i.key}:r}(Ir.AES.decrypt(t,n).toString(Ir.enc.Utf8),Rt.from(n))}async joseEncrypt(t,n,e){const i=new Date,r=new To(t).setProtectedHeader({alg:"HS256"}).setIssuedAt(i.getTime()).setExpirationTime(e),o=await r.sign(Rt.from(n));return Ir.AES.encrypt(o,n).toString()}handleError(t){throw new Ro(t)}}class Co extends l{constructor(t){var n;super(),this.authInfo=t,this.encryptedApi=Ao.getInstance(this.authInfo.apiKey),this.objectHelper=Xe.getInstance(),this.baseUrl=null!==(n=u.url[this.authInfo.env])&&void 0!==n?n:u.url.development;const e={[u.accessHeader]:`Bearer ${this.authInfo.token}`},i=this.getPartnerSite(),r=null==i?void 0:i.startsWith("http");i&&r&&(e["X-Liquid-Partner-Site"]=i),this.client=Ee.create({baseURL:this.baseUrl,...this.getConfig(e)})}getPartnerSite(){return window.location?window.location.origin:null}getConfig(t){return{headers:{"Content-Type":"application/json",[h]:this.authInfo.env,...t}}}async get(t,n){return this.createRequest(t,n,this.client.get)}async post(t,n,e){let i=n;if(![o.LOCAL,o.DEVELOPMENT].includes(this.authInfo.env)){const t=(new Date).getTime();e={...e,headers:{...null==e?void 0:e.headers,[a]:"true",[c]:t,[u.apiHeader]:this.authInfo.apiKey}},i={t:await this.encryptedApi.handleEncryption(n,t)}}return this.createRequest(t,e,((t,n)=>this.client.post(t,i,n)))}async createRequest(t,n,e){try{const i=this.createURL(t),r=this.createFullConfig(n),o=await this.sendRequest(i,r,e);return await this.getResponse(o)}catch(t){return{isOk:!1,val:null,isErr:new Ro(t)}}}createFullConfig(t){return this.objectHelper.merge(this.getConfig(),null!=t?t:{})}async sendRequest(t,n,e){return e(t,n)}async getResponse(t){var n,e,i,r,o,s,h;let u=(null==t?void 0:t.data)?t.data:null,l=!1,d=0;if((null==t?void 0:t.headers)&&(null===(n=null==t?void 0:t.headers)||void 0===n?void 0:n.has)&&(null===(e=null==t?void 0:t.headers)||void 0===e?void 0:e.has(a))&&(null===(i=null==t?void 0:t.headers)||void 0===i?void 0:i.has(c))&&(null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r.get)&&(l="true"===(null===(o=null==t?void 0:t.headers)||void 0===o?void 0:o.get(a)),d=(null===(s=null==t?void 0:t.headers)||void 0===s?void 0:s.get(c))?Number(null===(h=null==t?void 0:t.headers)||void 0===h?void 0:h.get(c)):0),u&&l&&this.objectHelper.includes(u,"t")&&d>0){const{t:t}=u,n=await this.encryptedApi.handleDecryption(t,d);(null==n?void 0:n.payload)&&(delete n.payload.exp,delete n.payload.iat,u=n.payload)}return{isOk:!0,val:u,isErr:!1}}createURL(t){const n=t&&"/"!==t[0]?`/${t}`:t;return`${this.baseUrl}/api${n}`}}class Io extends Co{constructor(t,n){super({authenticated:!1,apiKey:t,token:"",env:n})}static getInstance(t,n){return Ye.getInstance("AuthService",(()=>new Io(t,n)))}async initialize(){const{isOk:t,isErr:n,val:e}=await this.get("/auth",{headers:{[u.apiHeader]:this.authInfo.apiKey}});if(n)throw new Error(`There was an error during authentication: (${null==n?void 0:n.errorMessage})`);if(!t||!(null==e?void 0:e.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=e.data.token,this.authInfo.authenticated=!0,this.authInfo}}const Oo="spot-carousel",zo="spot-skeleton",Po={[n.RB_HOMEPAGE_HERO]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_THREE_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{width:1140,height:640},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{width:468,height:410},[n.RB_SMALL_DISCOVER_TOUT]:{width:224,height:378},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{width:224,height:410},[n.RB_LONG_TOUT_SHORT]:{width:1200,height:250},[n.RB_LONG_TOUT_TALL]:{width:1200,height:400},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{width:887,height:344},[n.RB_PRODUCT_UPCS]:{width:1,height:1},[n.RB_NAVIGATION_BANNER]:{width:440,height:220},[n.RB_VIDEO_PLAYER]:{width:1280,height:720},[n.RB_IN_TEXT]:{width:1,height:1},[n.SMALL_RECTANGLE]:{width:180,height:150},[n.MEDIUM_RECTANGLE]:{width:300,height:250},[n.LARGE_RECTANGLE]:{width:336,height:280},[n.VERTICAL_RECTANGLE]:{width:240,height:400},[n.BANNER]:{width:468,height:60},[n.LEADERBOARD]:{width:728,height:90},[n.LARGE_LEADERBOARD]:{width:970,height:90},[n.BILLBOARD]:{width:970,height:250},[n.SKYSCRAPER]:{width:120,height:600},[n.WIDE_SKYSCRAPER]:{width:160,height:600},[n.HALF_PAGE]:{width:300,height:600},[n.SMALL_SQUARE]:{width:200,height:200},[n.SQUARE]:{width:250,height:250},[n.VERTICAL_BANNER]:{width:120,height:240},[n.BUTTON_2]:{width:120,height:60},[n.MICRO_BAR]:{width:88,height:31},[n.POP_UP]:{width:550,height:480},[n.PORTRAIT]:{width:300,height:1050},[n.SMARTPHONE_BANNER_1]:{width:300,height:50},[n.SMARTPHONE_BANNER_2]:{width:320,height:50},[n.MOBILE_PHONE_INTERSTITIAL_1]:{width:640,height:1136},[n.MOBILE_PHONE_INTERSTITIAL_2]:{width:750,height:1334},[n.MOBILE_PHONE_INTERSTITIAL_3]:{width:1080,height:1920},[n.FEATURE_PHONE_SMALL_BANNER]:{width:120,height:20},[n.FEATURE_PHONE_MEDIUM_BANNER]:{width:168,height:28},[n.FEATURE_PHONE_LARGE_BANNER]:{width:216,height:36},[n.IN_TEXT]:{width:1,height:1}},Do=void 0!==window.document,jo=Do?HTMLElement:class{constructor(){this.shadowRoot=null,this.tagName="div",this.innerHTML=""}attachShadow(t){throw new Error("Liquid Commerce Rmn Sdk: attachShadow is not supported in non-browser environment")}appendChild(t){return t}};class Mo extends jo{constructor(){super(),this.initialized=!1,this.dataInitialized=!1,this.reRenderOnDeviceChange=!1,this.Ct=!0}initializeData(t,n){if(this.dataInitialized)throw new Error("Data can only be initialized once");this.S=Object.freeze(t),this.It=Object.freeze(n),this.dataInitialized=!0,this.initialized&&this.render()}render(){if(!this.initialized||!this.dataInitialized||!Do)return;this.Ot=this.It.useShadowDom?this.shadowRoot||this.attachShadow({mode:"open"}):this,this.Ot.innerHTML="";const t=document.createElement("style");t.textContent=this.baseStyles()+this.styles(),this.Ot.appendChild(t);const n=this.template();"string"==typeof n?this.Ot.innerHTML+=n:this.Ot.appendChild(n)}baseStyles(){const t=this.S,n=this.It;return`\n ${n.useShadowDom?":host":this.tagName.toLowerCase()} {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n container-type: inline-size;\n width: ${n.fluid?"100%":`${t.width}px`};\n height: ${n.fluid?"100%":`${t.height}px`};\n -webkit-font-smoothing: auto;\n -moz-osx-font-smoothing: auto;\n }\n `}setupDeviceDetection(){if(!Do)return;const t=window.matchMedia("(max-width: 639.98px)"),n=t=>{var n;const e=t.matches;this.Ct!==e&&(this.Ct=e,null===(n=this.onDeviceChange)||void 0===n||n.call(this,this.Ct),this.reRenderOnDeviceChange&&this.render())};t.addEventListener("change",n),n(t)}connectedCallback(){var t;Do&&(this.initialized=!0,this.dataInitialized&&(this.render(),this.setupDeviceDetection()),null===(t=this.connected)||void 0===t||t.call(this))}disconnectedCallback(){var t;Do&&(null===(t=this.disconnected)||void 0===t||t.call(this))}}var Bo;!function(t){t[t.PLACEMENT_ID=0]="PLACEMENT_ID",t[t.SPOT_ID=1]="SPOT_ID",t[t.SPOT_TYPE=2]="SPOT_TYPE",t[t.EVENTS=3]="EVENTS",t[t.FIRED_EVENTS=4]="FIRED_EVENTS",t[t.PRODUCT_IDS=5]="PRODUCT_IDS",t[t.CREATED_AT=6]="CREATED_AT"}(Bo||(Bo={}));const Ho={[r.IMPRESSION]:0,[r.CLICK]:1,[r.PURCHASE]:2,[r.ADD_TO_CART]:3,[r.REMOVE_FROM_CART]:4,[r.ADD_TO_CART_FROM_DETAILS]:5,[r.ADD_TO_WISHLIST]:6,[r.EXPAND_PRODUCT]:7,[r.BUY_NOW]:8};class No{constructor(){void 0===window.localStorage&&console.warn("LiquidCommerce Rmn Sdk: Local storage is not supported in this environment."),this.setUserId(),this.spots=new Map,this.syncLocalStorage(),this.removeExpiredSpots()}static getInstance(){return Ye.getInstance("LocalStorageService",(()=>new No))}setSpot(t,n){var e,i,r,o,s;n.createdAt=Date.now(),(null===(e=this.spots)||void 0===e?void 0:e.has(t))&&(n.firedEvents=null!==(o=null===(r=null===(i=this.spots)||void 0===i?void 0:i.get(t))||void 0===r?void 0:r.firedEvents)&&void 0!==o?o:[]),null===(s=this.spots)||void 0===s||s.set(t,n),this.updateLocalStorage()}getSpots(){if(this.spots)return this.mapToObject(this.spots)}getUserId(){const t=No.localStorageKey;return t||this.setUserId(),t.replace(`${No.localStorageKeyPrefix}_`,"")}setUserId(){var t;const n=No.localStorageKeyPrefix,e=Object.keys(null!==(t=window.localStorage)&&void 0!==t?t:{}).filter((t=>t.startsWith(n))),i=()=>{var t;const e=Qe.generate(),i=`${n}_${e}`;null===(t=window.localStorage)||void 0===t||t.setItem(i,""),No.localStorageKey=i};if(0===e.length)i();else{const t=e.find((t=>Qe.isValid(t.replace(`${n}_`,""))));e.forEach((n=>{var e;n!==t&&(null===(e=window.localStorage)||void 0===e||e.removeItem(n))})),t?No.localStorageKey=t:i()}}syncLocalStorage(){var t;const n=null===(t=window.localStorage)||void 0===t?void 0:t.getItem(No.localStorageKey);if(n)try{const t=this.decryptData(n),e=JSON.parse(t);if(Array.isArray(e)){const t=Object.fromEntries(e.map((t=>[t[Bo.SPOT_ID],this.spotArrayToObject(t)])));this.spots=this.objectToMap(t)}else this.clearLocalStorage()}catch(t){this.clearLocalStorage()}}updateLocalStorage(){var t;if(!this.spots)return;const n=this.mapToObject(this.spots),e=Object.values(n).map((t=>this.spotObjectToArray(t)));try{const n=this.encryptData(JSON.stringify(e));null===(t=window.localStorage)||void 0===t||t.setItem(No.localStorageKey,n)}catch(t){this.clearLocalStorage()}}clearLocalStorage(){var t;null===(t=window.localStorage)||void 0===t||t.removeItem(No.localStorageKey)}removeExpiredSpots(){var t;const n=Date.now();null===(t=this.spots)||void 0===t||t.forEach(((t,e)=>{var i,r;n-(null!==(i=t.createdAt)&&void 0!==i?i:0)>No.spotExpirationTime&&(null===(r=this.spots)||void 0===r||r.delete(e))})),this.updateLocalStorage()}mapToObject(t){return Object.fromEntries(t)}objectToMap(t){return new Map(Object.entries(t))}spotEventObjectToArray(t){return Object.keys(Ho).map((n=>{const e=t.find((t=>t.event===n));return e&&e.event===n?e.url:""}))}spotEventArrayToObject(t){return Object.keys(Ho).map((n=>({event:n,url:t[Ho[n]]})))}spotObjectToArray(t){var n,e,i;return[t.placementId,t.spotId,t.spotType,this.spotEventObjectToArray(t.events),null!==(e=null===(n=t.firedEvents)||void 0===n?void 0:n.map((t=>[t.productId,t.event])))&&void 0!==e?e:[],t.productIds,null!==(i=t.createdAt)&&void 0!==i?i:0]}spotArrayToObject(t){return{placementId:t[Bo.PLACEMENT_ID],spotId:t[Bo.SPOT_ID],spotType:t[Bo.SPOT_TYPE],events:this.spotEventArrayToObject(t[Bo.EVENTS]),firedEvents:t[Bo.FIRED_EVENTS].map((t=>({productId:t[0],event:t[1]}))),productIds:t[Bo.PRODUCT_IDS],createdAt:t[Bo.CREATED_AT]}}unicodeEncode(t){return btoa(Array.from((new TextEncoder).encode(t)).map((t=>String.fromCharCode(t))).join(""))}unicodeDecode(t){return(new TextDecoder).decode(Uint8Array.from(atob(t),(t=>t.charCodeAt(0))))}encryptData(t){return No.encryptData?this.unicodeEncode(t):t}decryptData(t){return No.encryptData?this.unicodeDecode(t):t}}No.localStorageKeyPrefix="lc_rmn",No.localStorageKey="",No.spotExpirationTime=6048e5,No.encryptData=!0;class Uo{constructor(t,n,e={}){var i,r;this.maxGroupSize=20,this.targetIds=new Set(t),this.processedIds=new Set,this.callback=n,this.proximityThreshold=null!==(i=e.proximityThreshold)&&void 0!==i?i:500,this.intersectionMargin=null!==(r=e.intersectionMargin)&&void 0!==r?r:"2000px",this.initializeObservers(),this.observeExistingElements()}initializeObservers(){var t;this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this),{rootMargin:this.intersectionMargin}),this.mutationObserver=new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&(t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(this.checkElement(t),t.querySelectorAll("*").forEach((t=>{t instanceof HTMLElement&&this.checkElement(t)})))})),t.removedNodes.forEach((t=>{t instanceof HTMLElement&&(this.handleRemovedElement(t),t.querySelectorAll("*").forEach((t=>{t instanceof HTMLElement&&this.handleRemovedElement(t)})))})))}))})),document.body&&(null===(t=this.mutationObserver)||void 0===t||t.observe(document.body,{childList:!0,subtree:!0}))}handleRemovedElement(t){var n;t.id&&this.processedIds.has(t.id)&&(this.processedIds.delete(t.id),null===(n=this.intersectionObserver)||void 0===n||n.unobserve(t))}checkElement(t){var n;t.id&&this.targetIds.has(t.id)&&!this.processedIds.has(t.id)&&(null===(n=this.intersectionObserver)||void 0===n||n.observe(t))}findNearbyTargetIds(t){const n=this.getElementCenter(t),e=[];for(const i of this.targetIds){if(this.processedIds.has(i))continue;if(i===t.id)continue;const r=document.getElementById(i);if(!r)continue;const o=this.getElementCenter(r),s=this.calculateDistance(n,o);if(s<=this.proximityThreshold&&(e.push({id:i,distance:s}),e.length>=this.maxGroupSize))break}return e.sort(((t,n)=>t.distance-n.distance)).map((t=>t.id))}handleIntersection(t){t.forEach((t=>{if(!t.isIntersecting)return;const n=t.target;if(!n.id||this.processedIds.has(n.id))return;const e=[n.id,...this.findNearbyTargetIds(n)].slice(0,this.maxGroupSize);e.forEach((t=>{var n;this.processedIds.add(t);const e=document.getElementById(t);e&&(null===(n=this.intersectionObserver)||void 0===n||n.unobserve(e))})),this.callback(e)}))}getElementCenter(t){const n=t.getBoundingClientRect();return{x:n.left+n.width/2,y:n.top+n.height/2}}calculateDistance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}observeExistingElements(){this.targetIds.forEach((t=>{const n=document.getElementById(t);n&&this.checkElement(n)}))}}class Lo{constructor(){this.subscribers={}}static getInstance(){return Ye.getInstance("PubsubService",(()=>new Lo))}subscribe(t,n){return this.subscribers[t]||(this.subscribers[t]=[]),this.subscribers[t].push(n),()=>{this.subscribers[t]=this.subscribers[t].filter((t=>t!==n))}}publish(t,n){this.subscribers[t]&&this.subscribers[t].forEach((t=>t(n)))}}class Wo{constructor({element:t,maxSize:n,minScale:e}){var i;if("undefined"==typeof ResizeObserver&&console.warn("RmnSdk: ResizeObserver is not supported in this browser"),this.element=t,!t.parentElement)throw new Error("RmnSdk: Spot element must have a parent container.");this.container=t.parentElement,this.setDimensions(n,e),this.resizeObserver=new ResizeObserver((()=>this.updateElementSize())),null===(i=this.resizeObserver)||void 0===i||i.observe(this.container),this.updateElementSize()}setDimensions(t,n){if(n<=0||n>1)throw new Error("RmnSdk: Invalid minScale value");const e={width:t.width*n,height:t.height*n};if(t.width<=0||t.height<=0||e.width<=0||e.height<=0)throw new Error("RmnSdk: Invalid dimensions");if(e.width>t.width||e.height>t.height)throw new Error("RmnSdk: Minimum size cannot be greater than maximum size");this.maxSize=t,this.minSize=e,this.aspectRatio=this.maxSize.width/this.maxSize.height}updateElementSize(){const{clientWidth:t,clientHeight:n}=this.container;let e,i;e=Math.min(t,this.maxSize.width),i=e/this.aspectRatio,e>t&&(e=t,i=n*this.aspectRatio),e=Math.max(e,this.minSize.width),i=Math.max(i,this.minSize.height),this.element.style.width=`${e}px`,this.element.style.height=`${i}px`;const r=e/this.maxSize.width,o=i/this.maxSize.height,s=Math.min(r,o);this.element.dispatchEvent(new CustomEvent("spotSizeChanged",{detail:{width:this.maxSize.width,height:this.maxSize.height,newWidth:e,newHeight:i,scale:s}}))}disconnect(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}}const Jo='\n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n',Fo='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',Ko='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',qo={preconnect:Jo,sourceSans:Fo,cormorant:Ko};function Vo(t,n=1){const e=t.replace("#","");return`rgba(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}, ${n})`}function Yo(t,n=""){if(!t)return n;const{size:e,opacity:i,color:r}=t,o={small:10,base:30,large:50}[e],s={light:.1,medium:.4,dark:.6}[i],a=Vo(r,1),c=Vo(r,0);return`${a} 0%, ${Vo(r,s)} ${o}%, ${c} 100%`}function Xo(...t){const n=0===t.length?["sourceSans","cormorant"]:t;return[qo.preconnect,...n.map((t=>qo[t]))].join("")}function Go(t,n,e){return(null==e?void 0:e.trim())?`<${t} class="${n}">${e}</${t}>`:""}class Zo extends Mo{constructor(){super(),this.originalFontSizes=new Map}connected(){this.setupResizeObserver()}disconnected(){var t;this.removeEventListener("spotSizeChanged",this.handleSpotSizeChanged),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}setupResizeObserver(){this.It.fluid||(this.resizeObserver=new Wo({element:this,maxSize:{width:this.S.width,height:this.S.height},minScale:.25}),this.addEventListener("spotSizeChanged",this.handleSpotSizeChanged.bind(this)))}handleSpotSizeChanged(t){this.adjustFontSize(t.detail.scale)}adjustFontSize(t){var n;const e=["h2","p","span"].join(", "),i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll(e);if(!i)return;const r=function(t){const n=1+.35*(Math.sqrt(t)-1);return Math.max(.35,Math.min(1.5,n))}(t);i.forEach((t=>{if(t instanceof HTMLElement){if(!this.originalFontSizes.has(t)){const n=parseFloat(window.getComputedStyle(t).fontSize);this.originalFontSizes.set(t,n)}const n=this.originalFontSizes.get(t)*r;t.style.fontSize=`${n}px`}}))}template(){const t=this.It.prefix,{preHeader:n,header:e,description:i,ctaText:r}=this.S;return`\n ${Jo}\n ${Fo}\n ${Ko}\n <div class="${t}">\n <div class="${t}__text">\n ${n?`<h2 class="${t}__pre-header">${n}</h2>`:""}\n ${e?`<h2 class="${t}__header">${e}</h2>`:""}\n ${i?`<p class="${t}__description">${i}</p>`:""}\n ${r?`<span class="${t}__cta-button">${r}</span>`:""}\n </div>\n </div>\n `}styles(){const t=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:n="#ffffff",ctaTextColor:e=n,ctaBorderColor:i=e,primaryImage:r,mobilePrimaryImage:o=r}=this.S,s=this.It.prefix;return`\n .${s} {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(to top, ${t}), url("${o}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${n};\n cursor: pointer;\n }\n\n .${s}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${s}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${s}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${s}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${s}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${i};\n display: inline-block;\n padding: 7px 20px;\n color: ${e};\n transition: background-color 0.3s ease;\n }\n\n .${s}:hover .cta-button {\n background-color: ${7===i.length?`${i}15`:`${i}`};\n }\n\n @container (min-width: 640px) {\n .${s} {\n background-image: linear-gradient(to top, ${t}), url("${r}");\n }\n\n .${s}__text {\n width: 70%;\n }\n }\n\n @container (min-width: 768px) {\n .${s}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${s}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${s}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${s}__description {\n font-size: 12px;\n }\n\n .${s}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${s}__header {\n font-size: 26px;\n }\n\n .${s}__description {\n font-size: 13px;\n }\n\n .${s}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${s}__header {\n font-size: 28px;\n }\n\n .${s}__description {\n font-size: 14px;\n }\n\n .${s}__cta-button {\n font-size: 14px;\n }\n }\n `}}class Qo extends Mo{constructor(){super()}template(){return`\n <div class="${this.It.prefix}"></div>\n `}styles(){const{primaryImage:t,mobilePrimaryImage:n=t}=this.S,e=this.It.prefix;return`\n .${e} {\n display: block;\n width: 100%;\n height: 100%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n container-type: inline-size;\n }\n\n @container (min-width: 640px) {\n .${e} {\n background-image: url("${t}");\n }\n }\n `}}class ts extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:a,ctaText:c,mobileCtaText:h,textBlockPosition:u=s.BOTTOM_LEFT,mobileTextBlockPosition:l=u,enableMobileTexts:d=!1}=this.S,f=this.Ct&&d?{preHeader:e,header:r,description:a,ctaText:h}:{preHeader:n,header:i,description:o,ctaText:c};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const p=[Go("h2",`${t}__pre-header`,f.preHeader),Go("h2",`${t}__header`,f.header),Go("p",`${t}__description`,f.description),Go("span",`${t}__cta-button`,f.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${u} ${t}__text-block-mobile--${l}">\n ${p.join("")}\n </div>\n </div>\n `}styles(){const{textBlockPosition:t=s.BOTTOM_LEFT,mobileTextBlockPosition:n=t}=this.S,e=this.getGradientDirection(t),i=this.getGradientDirection(n),r=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:o="#ffffff",ctaTextColor:a=o,ctaBorderColor:c=a,primaryImage:h,mobilePrimaryImage:u=h}=this.S,l=this.It.prefix;return`\n .${l} {\n display: flex;\n width: 100%;\n height: 100%;\n ${this.hasContent?`background-image: linear-gradient(${i}, ${r}), url("${u}");`:`background-image: url("${u}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-sizing: border-box;\n color: ${o};\n cursor: pointer;\n position: relative;\n }\n\n .${l}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n }\n\n @container (max-width: 639px) {\n .${l}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${l}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${l}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${c};\n display: inline-block;\n padding: 7px 20px;\n color: ${a};\n transition: background-color 0.3s ease;\n }\n\n .${l}:hover .cta-button {\n background-color: ${7===c.length?`${c}15`:`${c}`};\n }\n\n @container (min-width: 640px) {\n .${l} {\n ${this.hasContent?`background-image: linear-gradient(${e}, ${r}), url("${h}");`:`background-image: url("${h}");`}\n }\n\n .${l}__text {\n width: 70%;\n }\n\n .${l}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 768px) {\n .${l}__description {\n font-size: 12px;\n }\n\n .${l}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${l}__header {\n font-size: 26px;\n }\n\n .${l}__description {\n font-size: 13px;\n }\n\n .${l}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${l}__header {\n font-size: 28px;\n }\n\n .${l}__description {\n font-size: 14px;\n }\n\n .${l}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class ns extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,mobileTextBlockPosition:h=c,enableMobileTexts:u=!1}=this.S,l=this.Ct&&u?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o},d=this.hasContent?[Go("h2",`${t}__header`,l.header),Go("p",`${t}__description`,l.description),Go("span",`${t}__cta-button`,l.ctaText)]:[];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__content ${t}__text-block--${c} ${t}__text-block-mobile--${h}">\n <div class="${t}__main">\n <div class="${t}__secondary-image"></div>\n <div class="${t}__text">\n ${d.join("")}\n </div>\n </div>\n <div class="${t}__primary-image"></div>\n </div>\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i,secondaryImage:o,mobileSecondaryImage:a=o}=this.S,c=this.It.prefix;return`\n .${c} {\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n }\n\n .${c}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n gap: 6px;\n color: inherit;\n cursor: pointer;\n }\n\n .${c}__primary-image {\n width: 100%;\n height: 60%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${c}__main {\n width: 100%;\n height: 40%;\n display: flex;\n flex-direction: row;\n gap: 6px;\n }\n\n @container (max-width: 767px) {\n .${c}__text-block-mobile--${s.RIGHT} .${c}__main {\n flex-direction: row;\n }\n\n .${c}__text-block-mobile--${s.LEFT} .${c}__main {\n flex-direction: row-reverse;\n }\n }\n\n .${c}__secondary-image {\n width: 50%;\n height: 100%;\n background-image: url("${a}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${c}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 50%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${c}__header {\n color: inherit;\n margin: 0;\n font-size: 18px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${c}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${c}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${c}__content:hover .${c}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${c}__primary-image {\n background-image: url("${i}");\n }\n\n .${c}__secondary-image {\n background-image: url("${o}");\n }\n }\n\n @container (min-width: 768px) {\n .${c}__content {\n flex-direction: row;\n }\n\n .${c}__text-block--${s.LEFT} {\n flex-direction: row;\n }\n\n .${c}__text-block--${s.RIGHT} {\n flex-direction: row-reverse;\n }\n\n .${c}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${c}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${c}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${c}__text {\n width: 100%;\n height: 50%;\n }\n\n .${c}__header {\n font-size: 22px;\n }\n\n .${c}__description {\n font-size: 12px;\n }\n\n .${c}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${c}__header {\n font-size: 24px;\n }\n .${c}__description {\n font-size: 13px;\n }\n .${c}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${c}__header {\n font-size: 28px;\n }\n .${c}__description {\n font-size: 14px;\n }\n .${c}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class es extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,mobileTextBlockPosition:h=s.TOP,enableMobileTexts:u=!1}=this.S,l=this.Ct&&u?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o},d=this.hasContent?[Go("h2",`${t}__header`,l.header),Go("p",`${t}__description`,l.description),Go("span",`${t}__cta-button`,l.ctaText)]:[];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__content ${t}__text-block--${c} ${t}__text-block-mobile--${h}">\n <div class="${t}__text">\n ${d.join("")}\n </div>\n <div class="${t}__image"></div>\n </div>\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=this.It.prefix;return`\n .${o} {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n position: relative;\n }\n\n .${o}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n background-color: transparent;\n gap: 6px;\n }\n\n .${o}__image {\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${o}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n @container (max-width: 767px) {\n .${o}__text-block-mobile--${s.BOTTOM} {\n flex-direction: column-reverse;\n }\n\n .${o}__text-block-mobile--${s.TOP} {\n flex-direction: column;\n }\n }\n\n .${o}__header {\n font-size: 18px;\n margin: 0;\n color: inherit;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${o}__content:hover .${o}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${o}__image {\n background-image: url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__content {\n flex-direction: row;\n }\n\n .${o}__text-block--${s.LEFT} {\n flex-direction: row;\n }\n\n .${o}__text-block--${s.RIGHT} {\n flex-direction: row-reverse;\n }\n\n .${o}__image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__text {\n width: 33.33333%;\n height: 100%;\n }\n\n .${o}__header {\n font-size: 22px;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 24px;\n }\n .${o}__description {\n font-size: 13px;\n }\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n .${o}__description {\n font-size: 14px;\n }\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class is extends Mo{constructor(){super()}template(){const t=this.It.prefix,{header:n}=this.S;return`\n <div class="${t}">\n ${n?`<h2 class="${t}__header">${n}</h2>`:""}\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="transparent"}=this.S,e=this.It.prefix;return`\n .${e} {\n display: block;\n cursor: pointer;\n max-width: fit-content;\n padding: 0;\n background-color: ${n};\n }\n .${e}__header {\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 400;\n color: ${t};\n font-family: "Source Sans 3", system-ui;\n margin: 0;\n }\n .${e}__header:hover {\n color: #b5914a;\n }\n `}}class rs extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,enableMobileTexts:h=!1}=this.S,u=this.Ct&&h?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const l=[Go("h2",`${t}__header`,u.header),Go("p",`${t}__description`,u.description),Go("span",`${t}__cta-button`,u.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${c}">\n ${l.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),a=this.It.prefix;return`\n .${a} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n ${this.hasContent?`background-image: linear-gradient(to top, ${o}), url("${r}");`:`background-image: url("${r}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n color: ${t};\n position: relative;\n }\n\n .${a}__text {\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 10px;\n position: absolute;\n bottom: 0;\n width: 100%;\n max-width: 50%;\n }\n\n .${a}__text-block--${s.LEFT} {\n left: 0;\n text-align: left;\n align-items: flex-start;\n }\n\n .${a}__text-block--${s.RIGHT} {\n right: 0;\n text-align: right;\n align-items: flex-end;\n }\n\n .${a}__header {\n color: inherit;\n margin: 0;\n font-size: 20px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${a}__description {\n color: inherit;\n font-size: 12px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n .${a}__cta-button {\n width: fit-content;\n display: inline-block;\n padding: 7px 20px;\n border: 0.5px solid ${e};\n border-radius: 5px;\n color: ${n};\n font-size: 8px;\n transition: background-color 0.3s ease;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${a}:hover .${a}__cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${a} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${o}), url("${i}");`:`background-image: url("${i}");`}\n }\n }\n\n @container (min-width: 768px) {\n .${a}__text {\n padding: 25px;\n }\n\n .${a}__header {\n font-size: 24px;\n }\n\n .${a}__description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .${a}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${a}__text {\n padding: 30px;\n }\n\n .${a}__header {\n font-size: 28px;\n }\n\n .${a}__description {\n font-size: 14px;\n }\n\n .${a}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${a}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class os extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:s,ctaText:a,mobileCtaText:c,enableMobileTexts:h=!1}=this.S,u=this.Ct&&h?{preHeader:e,header:r,description:s,ctaText:c}:{preHeader:n,header:i,description:o,ctaText:a};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const l=[Go("h2",`${t}__pre-header`,u.preHeader),Go("h2",`${t}__header`,u.header),Go("p",`${t}__description`,u.description),Go("span",`${t}__cta-button`,u.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text">\n ${l.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=this.It.prefix;return`\n .${o} {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: flex-end;\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${t};\n cursor: pointer;\n }\n\n .${o}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${o}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${o}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${e};\n display: inline-block;\n padding: 7px 20px;\n color: ${n};\n transition: background-color 0.3s ease;\n }\n\n .${o}:hover .cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: url("${i}");\n }\n\n .${o}__text {\n width: 50%;\n }\n }\n\n @container (min-width: 768px) {\n .${o}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${o}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 26px;\n }\n\n .${o}__description {\n font-size: 13px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class ss extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:a,ctaText:c,mobileCtaText:h,textBlockPosition:u=s.MIDDLE_LEFT,mobileTextBlockPosition:l=u,enableMobileTexts:d=!1}=this.S,f=this.Ct&&d?{preHeader:e,header:r,description:a,ctaText:h}:{preHeader:n,header:i,description:o,ctaText:c};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const p=[Go("h2",`${t}__pre-header`,f.preHeader),Go("h2",`${t}__header`,f.header),Go("p",`${t}__description`,f.description),Go("span",`${t}__cta-button`,f.ctaText)];return`\n ${Jo}\n ${Fo}\n ${Ko}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${u} ${t}__text-block-mobile--${l}">\n ${p.join("")}\n </div>\n </div>\n `}styles(){const{textBlockPosition:t=s.MIDDLE_LEFT,mobileTextBlockPosition:n=t}=this.S,e=this.getGradientDirection(t),i=this.getGradientDirection(n),r=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:o="#ffffff",ctaTextColor:a=o,ctaBorderColor:c=a,primaryImage:h,mobilePrimaryImage:u=h}=this.S,l=this.It.prefix;return`\n .${l} {\n display: flex;\n width: 100%;\n height: 100%;\n ${this.hasContent?`background-image: linear-gradient(${i}, ${r}), url("${u}");`:`background-image: url("${u}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-sizing: border-box;\n color: ${o};\n cursor: pointer;\n position: relative;\n }\n\n .${l}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n }\n\n @container (max-width: 639px) {\n .${l}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 640px) {\n .${l} {\n ${this.hasContent?`background-image: linear-gradient(${e}, ${r}), url("${h}");`:`background-image: url("${h}");`}\n }\n\n .${l}__text {\n width: 70%;\n }\n\n .${l}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${l}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${l}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${c};\n display: inline-block;\n padding: 7px 20px;\n color: ${a};\n transition: background-color 0.3s ease;\n }\n\n .${l}:hover .cta-button {\n background-color: ${7===c.length?`${c}15`:`${c}`};\n }\n\n @container (min-width: 768px) {\n .${l}__description {\n font-size: 12px;\n }\n\n .${l}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${l}__header {\n font-size: 26px;\n }\n\n .${l}__description {\n font-size: 13px;\n }\n\n .${l}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${l}__header {\n font-size: 28px;\n }\n\n .${l}__description {\n font-size: 14px;\n }\n\n .${l}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class as extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=this.Ct&&i?{header:e}:{header:n};if(!this.hasContent)return`\n ${Xo("sourceSans")}\n <div class="${t}"></div>\n `;const o=[Go("h2",`${t}__header`,r.header)];return`\n ${Xo("sourceSans")}\n <div class="${t}">\n ${o.join("")}\n </div>\n `}styles(){const{textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n}=this.S,i=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${e}");`:`background-image: url("${e}");`}\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: relative;\n }\n\n .${r}__header {\n font-size: 16px;\n color: ${t};\n line-height: 20px;\n font-weight: 400;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n margin: 0;\n padding: 15px 10%;\n }\n\n @container (min-width: 640px) {\n .${r} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${n}");`:`background-image: url("${n}");`}\n }\n }\n\n @container (min-width: 768px) {\n .${r}__header {\n font-size: 22px;\n }\n }\n\n @container (min-width: 1024px) {\n .${r}__header {\n font-size: 24px;\n }\n }\n\n @container (min-width: 1280px) {\n .${r}__header {\n font-size: 28px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,enableMobileTexts:e=!1}=this.S,i=this.Ct&&e?{header:n}:{header:t};return Object.values(i).some(Boolean)}}class cs extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=this.Ct&&i?{header:e}:{header:n};if(!this.hasContent)return`\n ${Xo("cormorant")}\n <div class="${t}"></div>\n `;const o=[Go("h2",`${t}__header`,r.header)];return`\n ${Xo("cormorant")}\n <div class="${t}">\n ${o.join("")}\n </div>\n `}styles(){const{textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n}=this.S,i=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${e}");`:`background-image: url("${e}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${t};\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n padding: 10px;\n }\n\n @container (min-width: 640px) {\n .${r} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${n}");`:`background-image: url("${n}");`}\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,enableMobileTexts:e=!1}=this.S,i=this.Ct&&e?{header:n}:{header:t};return Object.values(i).some(Boolean)}}class hs extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=[Go("h2",`${t}__header`,(this.Ct&&i?{header:e}:{header:n}).header)];return`\n ${Xo("sourceSans")}\n <div class="${t}">\n <div class="${t}__image"></div>\n <div class="${t}__text">\n ${r.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#000000",backgroundColor:n="transparent",primaryImage:e,mobilePrimaryImage:i=e}=this.S,r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n background-color: ${n};\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n\n .${r}__image {\n width: 100%;\n height: 100%;\n background-image: url("${i}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n }\n\n .${r}__text {\n text-align: left;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n width: 100%;\n height: fit-content;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${t};\n padding-top: 5px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n @container (min-width: 640px) {\n .${r}__image {\n background-image: url("${e}");\n }\n }\n `}}class us extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0,this.videoSelector=()=>`.${this.It.prefix}__video-element`,this.muteButtonSelector=()=>`.${this.It.prefix}__mute-button`,this.video=null,this.bindEventHandlers()}bindEventHandlers(){this.handleMuteToggle=this.handleMuteToggle.bind(this)}updateMuteIcon(t){const n=this.Ot.querySelector(`.${this.It.prefix}__mute-icon`);n&&(n.innerHTML=t?this.getMuteIcon():this.getUnmuteIcon())}handleMuteToggle(t){t.preventDefault(),this.video&&(this.video.muted=!this.video.muted,this.updateMuteIcon(this.video.muted))}getMuteIcon(){return'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M11 5L6 9H2v6h4l5 4V5z"/>\n <line x1="23" y1="9" x2="17" y2="15"/>\n <line x1="17" y1="9" x2="23" y2="15"/>\n </svg>\n '}getUnmuteIcon(){return'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M11 5L6 9H2v6h4l5 4V5z"/>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/>\n </svg>\n '}connected(){this.initializeElements(),this.attachEventListeners()}disconnected(){this.removeEventListeners()}initializeElements(){this.video=this.Ot.querySelector(this.videoSelector())}attachEventListeners(){if(!this.video)return;const t=this.Ot.querySelector(this.muteButtonSelector());null==t||t.addEventListener("click",this.handleMuteToggle)}removeEventListeners(){if(!this.video)return;const t=this.Ot.querySelector(this.muteButtonSelector());null==t||t.removeEventListener("click",this.handleMuteToggle)}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,enableMobileTexts:r=!1}=this.S,o=this.Ct&&r?{header:n,description:i}:{header:t,description:e};return Object.values(o).some(Boolean)}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,textBlockPosition:o=s.BOTTOM_LEFT,mobileTextBlockPosition:a=o,enableMobileTexts:c=!1}=this.S,{url:h,mobileUrl:u=h,mute:l=!0,showMute:d=!0}=this.S.video;return h?`\n ${Xo()}\n <div class="${t}">\n ${(()=>{if(!this.hasContent)return"";const s=this.Ct&&c?{header:e,description:r}:{header:n,description:i},h=[Go("h2",`${t}__header`,s.header),Go("p",`${t}__description`,s.description)];return`\n <div class="${t}__text ${t}__text-block--${o} ${t}__text-block-mobile--${a}">\n ${h.join("")}\n </div>\n `})()}\n ${(()=>`\n <div class="${t}__video-wrapper">\n <div class="${t}__video-container">\n <video\n class="${t}__video-element"\n src="${this.Ct?u:h}"\n autoplay\n ${l?"muted":""}\n loop\n preload="metadata"\n playsinline\n >\n Your browser doesn't support HTML5 video playback.\n </video>\n </div>\n </div>\n `)()}\n ${d?`\n <div class="${t}__controls">\n ${(()=>d?`\n <button type="button" class="${t}__mute-button">\n <span class="${t}__mute-icon">\n ${this.getMuteIcon()}\n </span>\n </button>\n `:"")()}\n </div>\n `:""}\n </div>\n `:"<p>Please provide a video source</p>"}styles(){const t=this.It.prefix,{width:n,height:e,textBlockPosition:i=s.BOTTOM_LEFT,mobileTextBlockPosition:r=i,textColor:o="#ffffff"}=this.S,{aspectRatio:a="16:9"}=this.S.video,c=this.getGradientDirection(i),h=this.getGradientDirection(r),u=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%");return`\n ${this.It.useShadowDom?":host":this.tagName.toLowerCase()} {\n width: 100%;\n height: 100%;\n max-width: ${n}px;\n max-height: ${e}px};\n }\n\n .${t} {\n width: 100%;\n height: 100%;\n background: #fff;\n overflow: hidden;\n position: relative;\n }\n\n .${t}::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1;\n pointer-events: none;\n }\n\n .${t}__video-wrapper {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n\n .${t}__video-container {\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: ${a.replace(":","/")};\n }\n\n .${t}__video-element {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n\n @media (max-aspect-ratio: 16/9) {\n .${t}__video-element {\n width: 100%;\n height: auto;\n }\n }\n\n @media (min-aspect-ratio: 16/9) {\n .${t}__video-element {\n width: auto;\n height: 100%;\n }\n }\n\n .${t}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n color: ${o};\n z-index: 10;\n }\n\n @container (max-width: 639px) {\n .${t}::before {\n ${this.hasContent?`background: linear-gradient(${h}, ${u});`:""}\n }\n\n .${t}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 640px) {\n .${t}::before {\n ${this.hasContent?`background: linear-gradient(${c}, ${u});`:""}\n }\n\n .${t}__text {\n width: 70%;\n }\n\n .${t}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${t}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${t}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${t}__controls {\n position: absolute;\n bottom: 5px;\n right: 5px;\n background: rgba(0, 0, 0, 0.5);\n padding: 8px;\n display: flex;\n align-items: center;\n opacity: 0;\n transition: opacity 0.3s;\n z-index: 100;\n width: fit-content;\n border-radius: 50%;\n }\n\n .${t}:hover .${t}__controls {\n opacity: 1;\n }\n\n .${t}__mute-button {\n background: none;\n border: none;\n color: white;\n cursor: pointer;\n width: 32px;\n height: 32px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .${t}__mute-icon svg {\n width: 20px;\n height: 20px;\n }\n\n .${t}__mute-button:hover {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${t}__text {\n width: 70%;\n }\n }\n\n @container (min-width: 768px) {\n .${t}__description {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${t}__header {\n font-size: 26px;\n }\n\n .${t}__description {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${t}__header {\n font-size: 28px;\n }\n\n .${t}__description {\n font-size: 14px;\n }\n }\n `}}class ls{constructor(){this.rbTemplates=this.initializeRbTemplates(),this.iabTemplates=this.initializeIabTemplates()}static getInstance(){return Ye.getInstance("SpotTemplateService",(()=>new ls))}getTemplateCustomElementClass(t,n){var e;const i=this.isRbSpot(t)?this.rbTemplates:this.iabTemplates;return i&&(null===(e=i[t])||void 0===e?void 0:e[n])||null}isRbSpot(t){return t.startsWith("rb")}initializeRbTemplates(){return{[n.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:ns},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{rbHomepageHeroTwoTile:es},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:ts},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:rs},[n.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:hs},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:cs},[n.RB_LONG_TOUT_SHORT]:{rbLongToutShort:os},[n.RB_LONG_TOUT_TALL]:{rbLongToutTall:ss},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:Qo},[n.RB_NAVIGATION_BANNER]:{rbNavigationBanner:as},[n.RB_IN_TEXT]:{rbInText:is},[n.RB_VIDEO_PLAYER]:{rbVideoPlayer:us}}}initializeIabTemplates(){return{[n.BILLBOARD]:{billboardV1:Zo}}}}let ds,fs;if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.state={currentSlide:0,autoplayInterval:null,isAutoplayPaused:!1,useDots:!1,useButtons:!1,autoplay:!0,interval:t.defaultConfigs.interval,dots:{...t.defaultConfigs.dots},buttons:{...t.defaultConfigs.buttons},isDragging:!1,startX:0,currentX:0,dragStartTime:0,dragDistance:0,containerWidth:0,isTransitioning:!1,realIndex:0,virtualIndex:1,isVirtualizing:!1},this.elements={slidesContainer:null,dots:[],prevButton:null,nextButton:null},this.cloneToOriginalMap=new WeakMap,this.attachShadow({mode:"open"}),this.handleTransitionEnd=this.handleTransitionEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.updateContainerWidth=this.updateContainerWidth.bind(this)}connectedCallback(){this.initializeState(),this.render(),this.setupCarousel(),this.setupTouchEvents(),this.startAutoplayIfEnabled(),this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth.bind(this)),this.setupResizeObserver()}disconnectedCallback(){var t;this.cleanupEventListeners(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Wo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}))}initializeState(){var n,e,i,r,o,s,a,c;this.state.useDots=Boolean(null===(n=this.data)||void 0===n?void 0:n.useDots),this.state.useButtons=Boolean(null===(e=this.data)||void 0===e?void 0:e.useButtons),this.state.autoplay=null===(r=null===(i=this.data)||void 0===i?void 0:i.autoplay)||void 0===r||r,this.state.interval=null!==(s=null===(o=this.data)||void 0===o?void 0:o.interval)&&void 0!==s?s:t.defaultConfigs.interval,"object"==typeof(null===(a=this.data)||void 0===a?void 0:a.useDots)&&(this.state.dots={...this.state.dots,...this.data.useDots}),"object"==typeof(null===(c=this.data)||void 0===c?void 0:c.useButtons)&&(this.state.buttons={...this.state.buttons,...this.data.useButtons}),this.validateConfiguration()}validateConfiguration(){this.validatePosition(this.state.dots.position,"dotsPosition","bottom-center"),this.validateButtonsPosition()}validatePosition(n,e,i){t.validPositions.has(n)||(console.warn(`LiquidCommerce Rmn Sdk: Invalid ${e}: ${n}. Defaulting to '${i}'.`),"dotsPosition"===e?this.state.dots.position=i:"buttonsPosition"===e&&(this.state.buttons.position=i))}render(){if(!this.shadowRoot)return;const t=document.createElement("style");t.textContent=(({width:t,height:n,fluid:e})=>`\n :host {\n position: relative;\n display: inline-block;\n margin: 0;\n overflow: hidden;\n width: ${e?"100%":`${t}px`};\n height: ${e?"100%":`${n}px`};\n }\n\n .container {\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .slides {\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n transition: transform 0.5s ease-in-out;\n }\n\n .slide {\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n\n .slide.active {\n display: flex;\n }\n\n .dots {\n position: absolute;\n display: flex;\n align-items: center;\n gap: 8px;\n opacity: var(--opacity, 1);\n }\n\n .dots.small .dot {\n width: 8px;\n height: 8px;\n }\n\n .dots.base .dot {\n width: 12px;\n height: 12px;\n }\n\n .dots.large .dot {\n width: 16px;\n height: 16px;\n }\n\n .dots .dot {\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.3s ease;\n }\n\n .dots.top-left,\n .dots.bottom-left {\n left: 10px;\n }\n\n .dots.top-center,\n .dots.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .dots.top-right,\n .dots.bottom-right {\n right: 10px;\n }\n\n .dots.top-left,\n .dots.top-center,\n .dots.top-right {\n top: 10px;\n }\n\n .dots.bottom-left,\n .dots.bottom-center,\n .dots.bottom-right {\n bottom: 10px;\n }\n\n .dots.middle-left {\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .dots.middle-right {\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons {\n opacity: var(--opacity, 1);\n }\n\n .buttons button {\n background-color: #00000080;\n color: #fff;\n border: none;\n padding: 10px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n }\n\n .buttons.small button {\n padding: 6px;\n }\n\n .buttons.base button {\n padding: 10px;\n }\n\n .buttons.large button {\n padding: 14px;\n }\n\n .buttons button:hover {\n background-color: #000000b3;\n }\n\n .buttons.buttons-separate button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .buttons.buttons-separate .prev-button {\n left: 10px;\n }\n\n .buttons.buttons-separate .next-button {\n right: 10px;\n }\n\n .buttons.buttons-together {\n position: absolute;\n display: flex;\n gap: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.bottom-left {\n left: 10px;\n }\n\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .buttons.buttons-together.top-right,\n .buttons.buttons-together.bottom-right {\n right: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.top-right {\n top: 10px;\n }\n\n .buttons.buttons-together.bottom-left,\n .buttons.buttons-together.bottom-center,\n .buttons.buttons-together.bottom-right {\n bottom: 10px;\n }\n\n .buttons.buttons-together.middle-left,\n .buttons.buttons-together.middle-right {\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons.buttons-together.middle-left {\n left: 10px;\n }\n\n .buttons.buttons-together.middle-right {\n right: 10px;\n }\n\n @media (max-width: 768px) {\n .buttons button {\n padding: 8px 12px;\n font-size: 14px;\n }\n }\n`)(this.data),this.shadowRoot.appendChild(t);const n=document.createElement("div");n.className="container";const e=this.createSlides();if(n.appendChild(e),this.state.useDots){const t=this.createDots();n.appendChild(t)}if(this.state.useButtons){const t=this.createButtons();n.appendChild(t)}this.shadowRoot.appendChild(n),this.cacheElements()}createSlides(){const t=document.createElement("div");return t.className="slides",this.appendSlide(t,this.slides.length-1),this.slides.forEach(((n,e)=>{this.appendSlide(t,e)})),this.appendSlide(t,0),t.style.transform="translateX(-100%)",t}appendSlide(t,n){const e=document.createElement("div");if(e.className="slide",this.slides[n]instanceof HTMLElement){const t=this.slides[n],i=new(0,t.constructor);i.initializeData(t.S,t.It),this.cloneToOriginalMap.set(i,t);let r=!1;e.addEventListener("mousedown",(()=>r=!1)),e.addEventListener("mousemove",(()=>r=!0)),["click","mouseenter","mouseleave","mouseover","mouseout","focus","blur"].forEach((n=>{i.addEventListener(n,(e=>{if("click"===n&&r)return void e.stopPropagation();const i=new Event(e.type,{bubbles:e.bubbles,cancelable:e.cancelable});t.dispatchEvent(i)}))})),e.appendChild(i)}t.appendChild(e)}createDots(){const{position:t,size:n,opacity:e,color:i}=this.state.dots,r=document.createElement("div");return r.className=`dots ${t} ${n}`,r.style.setProperty("--opacity",e.toString()),this.slides.forEach(((t,n)=>{const e=document.createElement("span");e.className="dot "+(n===this.state.currentSlide?"active":""),e.style.backgroundColor=i,r.appendChild(e)})),r}createButtons(){const{together:t,position:n,size:e,opacity:i}=this.state.buttons,r=document.createElement("div"),o=t?`buttons-together ${n}`:"buttons-separate";return r.className=`buttons ${o} ${e}`,r.style.setProperty("--opacity",i.toString()),this.elements.prevButton=this.createButton("prev-button",this.state.buttons.prev),this.elements.nextButton=this.createButton("next-button",this.state.buttons.next),r.appendChild(this.elements.prevButton),r.appendChild(this.elements.nextButton),r}createButton(t,n){const{textColor:e,backgroundColor:i,borderRadius:r}=this.state.buttons,o=document.createElement("button");return o.className=t,o.textContent=n,o.style.color=e,o.style.backgroundColor=i,o.style.borderRadius=r,o}cacheElements(){this.shadowRoot&&(this.elements.slidesContainer=this.shadowRoot.querySelector(".slides"),this.elements.dots=Array.from(this.shadowRoot.querySelectorAll(".dot")),this.elements.prevButton=this.shadowRoot.querySelector(".prev-button"),this.elements.nextButton=this.shadowRoot.querySelector(".next-button"))}setupCarousel(){this.setupEventListeners(),this.elements.slidesContainer&&this.elements.slidesContainer.addEventListener("transitionend",this.handleTransitionEnd),this.updateCarousel(!1)}setupTouchEvents(){this.elements.slidesContainer&&(this.elements.slidesContainer.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),this.elements.slidesContainer.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.elements.slidesContainer.addEventListener("touchend",this.handleTouchEnd),this.elements.slidesContainer.addEventListener("mousedown",this.handleDragStart),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd))}removeEventListeners(){this.elements.dots.forEach((t=>{t.replaceWith(t.cloneNode(!0))})),this.elements.prevButton&&this.elements.prevButton.replaceWith(this.elements.prevButton.cloneNode(!0)),this.elements.nextButton&&this.elements.nextButton.replaceWith(this.elements.nextButton.cloneNode(!0))}removeTouchEvents(){this.elements.slidesContainer&&(this.elements.slidesContainer.removeEventListener("touchstart",this.handleTouchStart),this.elements.slidesContainer.removeEventListener("touchmove",this.handleTouchMove),this.elements.slidesContainer.removeEventListener("touchend",this.handleTouchEnd),this.elements.slidesContainer.removeEventListener("mousedown",this.handleDragStart),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd))}handleTouchStart(t){this.state.isTransitioning||(this.pauseAutoplay(),this.state.startX=t.touches[0].clientX,this.state.dragStartTime=Date.now(),this.state.isDragging=!0,this.state.dragDistance=0)}handleTouchMove(t){if(!this.state.isDragging||this.state.isTransitioning)return;t.preventDefault();const n=t.touches[0].clientX;this.state.dragDistance=this.state.startX-n,this.updateDragPosition()}handleTouchEnd(){if(!this.state.isDragging)return;const t=Date.now()-this.state.dragStartTime,n=Math.abs(this.state.dragDistance)/t>.5;this.handleDragComplete(n),setTimeout((()=>this.resumeAutoplay()),100)}handleDragStart(t){this.state.isTransitioning||(this.pauseAutoplay(),this.state.startX=t.clientX,this.state.dragStartTime=Date.now(),this.state.isDragging=!0,this.state.dragDistance=0,t.preventDefault())}handleDrag(t){if(!this.state.isDragging||this.state.isTransitioning)return;const n=t.clientX;this.state.dragDistance=this.state.startX-n,this.updateDragPosition()}handleDragEnd(){if(!this.state.isDragging)return;const t=Date.now()-this.state.dragStartTime,n=Math.abs(this.state.dragDistance)/t>.5;this.handleDragComplete(n),setTimeout((()=>this.resumeAutoplay()),100)}handleNavigation(t){if(this.state.isTransitioning)return;const n=this.slides.length;"next"===t?(this.state.realIndex=(this.state.realIndex+1)%n,this.state.virtualIndex++):(this.state.realIndex=(this.state.realIndex-1+n)%n,this.state.virtualIndex--),this.updateCarousel(!0)}handleDotClick(t){const n=this.state.realIndex,e=this.slides.length;let i=t-n;Math.abs(i)>e/2&&(i=i>0?i-e:i+e),this.state.realIndex=t,this.state.virtualIndex+=i,this.updateCarousel(!0),this.resetAutoplay()}handleDragComplete(n){if(this.state.isDragging=!1,!this.elements.slidesContainer)return;const e=this.state.dragDistance/this.state.containerWidth,i=n?.1:t.defaultConfigs.dragThreshold;Math.abs(e)>i?this.state.dragDistance>0?this.handleNavigation("next"):this.handleNavigation("prev"):this.updateCarousel(!0),this.state.dragDistance=0}updateDragPosition(){if(!this.elements.slidesContainer||this.state.isTransitioning)return;const t=100*-this.state.virtualIndex-this.state.dragDistance/this.state.containerWidth*100;this.elements.slidesContainer.style.transform=`translateX(${t}%)`,this.elements.slidesContainer.style.transition="none"}goToSlide(t){this.state.isTransitioning||(this.state.currentSlide=t,this.updateCarousel(!0))}updateCarousel(t=!0){if(!this.elements.slidesContainer)return;const n=this.slides.length,e=100*-this.state.virtualIndex;t?(this.state.isTransitioning=!0,this.elements.slidesContainer.style.transition="transform 0.3s ease-out"):this.elements.slidesContainer.style.transition="none",this.elements.slidesContainer.style.transform=`translateX(${e}%)`,this.updateDots(),(this.state.virtualIndex<=0||this.state.virtualIndex>=n+1)&&(this.state.isVirtualizing=!0)}handleTransitionEnd(t){t.target===this.elements.slidesContainer&&"transform"===t.propertyName&&(this.state.isTransitioning=!1,this.state.isVirtualizing&&this.resetVirtualPosition(),this.elements.slidesContainer&&(this.elements.slidesContainer.style.transition="none"))}resetVirtualPosition(){var t;const n=this.slides.length;this.state.virtualIndex<=0?this.state.virtualIndex=n:this.state.virtualIndex>=n+1&&(this.state.virtualIndex=1),this.elements.slidesContainer&&(this.elements.slidesContainer.style.transition="none",this.elements.slidesContainer.style.transform=`translateX(${100*-this.state.virtualIndex}%)`),this.state.isVirtualizing=!1,null===(t=this.elements.slidesContainer)||void 0===t||t.offsetHeight}updateDots(){this.state.useDots&&this.elements.dots.forEach(((t,n)=>{const e=n===this.state.realIndex;t.classList.toggle("active",e),t.style.backgroundColor=e?this.state.dots.activeColor:this.state.dots.color}))}startAutoplayIfEnabled(){this.state.autoplay&&!this.state.isAutoplayPaused&&this.startAutoplay()}startAutoplay(){this.stopAutoplay(),!this.state.isAutoplayPaused&&this.state.autoplay&&(this.state.autoplayInterval=window.setInterval((()=>this.handleNavigation("next")),this.state.interval))}pauseAutoplay(){this.state.isAutoplayPaused=!0,this.stopAutoplay()}resumeAutoplay(){this.state.isAutoplayPaused=!1,this.state.autoplay&&this.startAutoplay()}stopAutoplay(){null!==this.state.autoplayInterval&&(window.clearInterval(this.state.autoplayInterval),this.state.autoplayInterval=null)}resetAutoplay(){!this.state.isDragging&&this.state.autoplay&&(this.stopAutoplay(),this.startAutoplay())}updateContainerWidth(){this.elements.slidesContainer&&(this.state.containerWidth=this.elements.slidesContainer.offsetWidth)}cleanupEventListeners(){this.stopAutoplay(),this.removeEventListeners(),this.removeTouchEvents(),this.elements.slidesContainer&&this.elements.slidesContainer.removeEventListener("transitionend",this.handleTransitionEnd),window.removeEventListener("resize",this.updateContainerWidth)}setupEventListeners(){var t,n;this.state.useDots&&this.elements.dots.forEach(((t,n)=>{t.addEventListener("click",(()=>this.handleDotClick(n)))})),this.state.useButtons&&(null===(t=this.elements.prevButton)||void 0===t||t.addEventListener("click",(()=>this.handleNavigation("prev"))),null===(n=this.elements.nextButton)||void 0===n||n.addEventListener("click",(()=>this.handleNavigation("next"))))}validateButtonsPosition(){this.state.useButtons&&!this.state.buttons.together&&"middle-sides"!==this.state.buttons.position&&(console.warn('LiquidCommerce Rmn Sdk: When buttons are not together, only "middle-sides" is allowed. Defaulting to "middle-sides".'),this.state.buttons.position="middle-sides")}}t.defaultConfigs={interval:5e3,touchThreshold:50,dragThreshold:.2,dots:{position:"bottom-center",color:"#d9d9d9",activeColor:"#b5914a",size:"base",opacity:1},buttons:{together:!1,position:"middle-sides",textColor:"#000000",backgroundColor:"#ffffff",borderRadius:"50%",prev:"Prev",next:"Next",size:"base",opacity:1}},t.validPositions=new Set(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","middle-left","middle-right","middle-sides"]),ds=t}if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot||!this.data)return;const{fluid:t,width:e,height:i,spotType:r}=this.data,o=r===n.RB_IN_TEXT;this.shadowRoot.innerHTML=`\n <style>\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${t?"100%":`${e}px`};\n height: ${t?"100%":`${i}px`};\n background: #ffffff;\n padding: ${o?"0":"1rem"};\n border-radius: 5px;\n }\n\n .line {\n width: 100%;\n height: 100%;\n min-height: 15px;\n background: #f0f0f0;\n border-radius: 5px;\n position: relative;\n overflow: hidden;\n }\n\n .line::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 50%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 1.5s infinite;\n }\n\n @keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n </style>\n\n <div class="line"></div>\n `}}fs=t}class ps{constructor(){this.spotTemplateService=ls.getInstance(),this.defineCustomElements()}static getInstance(){return Ye.getInstance("ElementService",(()=>new ps))}createSpotElement(t){const n=this.spotTemplateService.getTemplateCustomElementClass(t.spot.spot,t.spot.variant);if(!n)return null;const e="s"+Qe.generate().toLowerCase(),i=`spot-${e}`;this.defineSpotCustomElement(i,n);const r=document.createElement(i);return r.initializeData(t.spot,{...t.config,prefix:e}),r}createCarouselElement(t){const n=document.createElement(Oo);return n.data=t.config,n.slides=t.slides,n}createSkeletonElement(t){const n=document.createElement(zo),e=Po[t.spotType];return n.data={spotType:t.spotType,fluid:void 0!==(null==t?void 0:t.fluid)&&t.fluid,...e},n}defineSpotCustomElement(t,n){window.customElements.define(t,class extends n{template(){return n.prototype.template.call(this)}styles(){return n.prototype.styles.call(this)}})}defineCustomElements(){window.customElements.get(Oo)||window.customElements.define(Oo,ds),window.customElements.get(zo)||window.customElements.define(zo,fs)}}var ms;!function(t){t.GoogleAnalytics="google-analytics",t.GoogleTagManager="google-tag-manager",t.Other="Other"}(ms||(ms={}));class gs{constructor(){window.dataLayer&&(this.originalPush=window.dataLayer.push)}static getInstance(){return Ye.getInstance("DataLayerMonitor",(()=>new gs))}setListener(t){this.listener=t}start(){window.dataLayer.push=(...t)=>{const n=this.originalPush.apply(window.dataLayer,t);if(!this.listener||!Array.isArray(t)||0===t.length)return n;for(const n of t){const t=Fe(n.event);if(!t)continue;const e=this.extractProductData(n),i={event:t,products:e};e&&this.listener(i)}return n}}extractProductData(t){var n,e,i,r,o,s,a,c,h,u,l,d,f,p,m;return((null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.items)||(null===(e=null==t?void 0:t.ecommerce)||void 0===e?void 0:e.items)||(null===(i=null==t?void 0:t.ecommerce)||void 0===i?void 0:i.products)||(null===(o=null===(r=null==t?void 0:t.ecommerce)||void 0===r?void 0:r.detail)||void 0===o?void 0:o.products)||(null===(a=null===(s=null==t?void 0:t.ecommerce)||void 0===s?void 0:s.checkout)||void 0===a?void 0:a.products)||(null===(h=null===(c=null==t?void 0:t.ecommerce)||void 0===c?void 0:c.purchase)||void 0===h?void 0:h.products)||(null===(l=null===(u=null==t?void 0:t.ecommerce)||void 0===u?void 0:u.add)||void 0===l?void 0:l.products)||(null===(f=null===(d=null==t?void 0:t.ecommerce)||void 0===d?void 0:d.remove)||void 0===f?void 0:f.products)||(null===(m=null===(p=null==t?void 0:t.ecommerce)||void 0===p?void 0:p.click)||void 0===m?void 0:m.products)||(null==t?void 0:t.products)||[]).map((t=>{const n={id:t.item_id||t.id||"",name:t.item_name||t.name||"",brand:t.item_brand||t.brand||"",variant:t.item_variant||t.variant||"",price:Number(t.price)||0,quantity:Number(t.quantity)||1,discount:Number(t.discount)||0};return n.id?n:null}))}stop(){this.originalPush&&(window.dataLayer.push=this.originalPush),this.listener=void 0}}class vs{constructor(){const t=this.detectAnalyticsTool();switch(t){case ms.GoogleAnalytics:case ms.GoogleTagManager:this.implementedMonitor=gs.getInstance();break;case ms.Other:default:console.warn("LiquidCommerce Rmn Sdk: This site uses an unsupported analytics tool.")}t!==ms.Other&&(this.pubSubService=Lo.getInstance(),this.localStorageService=No.getInstance(),this.normalizeStringHelper=Ve.getInstance())}static getInstance(){return Ye.getInstance("MonitorService",(()=>new vs))}start(){this.implementedMonitor&&(this.implementedMonitor.setListener((async t=>{var n;await this.matchAndFireEvent(t,null===(n=this.localStorageService)||void 0===n?void 0:n.getSpots())})),this.implementedMonitor.start())}async matchAndFireEvent(t,n){var e,i,o,s,a;if(n)for(const c of Object.values(n))if(c.productIds.length)for(const n of t.products){if(!Object.values(r).includes(t.event))continue;const h=c.firedEvents||[],u=null===(e=this.normalizeStringHelper)||void 0===e?void 0:e.normalize(String(n.id));if(h.some((n=>n.productId===u&&n.event===t.event)))continue;const l=new Set(c.productIds.map((t=>{var n;return null===(n=this.normalizeStringHelper)||void 0===n?void 0:n.normalize(String(t))}))),d=null===(i=this.normalizeStringHelper)||void 0===i?void 0:i.normalize(String(n.brand)),f=null===(o=this.normalizeStringHelper)||void 0===o?void 0:o.normalize(String(n.variant));if(![u,d,f].some((t=>l.has(t))))continue;const p=c.events.findIndex((n=>n.event===t.event));if(-1===p)continue;const m=c.events[p].url;let g="";if(t.event===r.PURCHASE){const t=n.price&&n.quantity?n.price*n.quantity:void 0;a={override:t,gmv:t},g=Object.entries(null!=a?a:{}).map((([t,n])=>null==n?"":`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).filter(Boolean).join("&")}await this.fireAndPublishSpotEvent({spotEvent:t.event,eventUrl:`${m}${g?`&${g}`:""}`,placementId:c.placementId,spotId:c.spotId,spotType:c.spotType}),h.push({productId:u,event:t.event}),null===(s=this.localStorageService)||void 0===s||s.setSpot(c.spotId,{placementId:c.placementId,spotId:c.spotId,spotType:c.spotType,events:c.events,firedEvents:h,productIds:c.productIds})}}async fireAndPublishSpotEvent({spotEvent:t,eventUrl:n,placementId:e,spotId:r,spotType:o}){await Ze({spotType:o,event:t,eventUrl:n}),this.pubSubService&&this.pubSubService.publish(i.SPOT_EVENT,{eventType:t,placementId:e,spotId:r})}detectAnalyticsTool(){return window&&document?void 0!==window.google_tag_manager||void 0!==window.dataLayer?ms.GoogleTagManager:void 0!==window.ga||void 0!==window.gtag?ms.GoogleAnalytics:ms.Other:ms.Other}}class bs extends Co{constructor(t){super(t)}static getInstance(t){return Ye.getInstance("SelectionService",(()=>new bs(t)))}async spotSelection(t){void 0===t.userId&&(t.userId=this.getUserId());const{isOk:n,val:e,isErr:i}=await this.post("/spots/selection",t,{});return i?{error:`There was an error during spot selection: (${null==i?void 0:i.errorMessage})`}:n&&e&&e.data&&(null==e?void 0:e.refresh.token)?(this.authInfo.authenticated=!0,this.authInfo.token=e.refresh.token,e.data.spots):{error:"Spot selection response was not successful"}}getUserId(){return No.getInstance().getUserId()}}class ws{constructor(){this.pubSubService=Lo.getInstance(),this.localStorageService=No.getInstance(),this.spotLifecyleState=new Map}static getInstance(){return Ye.getInstance("SpotManagerService",(()=>new ws))}subscribe(t,n){return this.pubSubService.subscribe(t,n)}publish(t,n){this.pubSubService.publish(t,n)}registerSpot(t){const{placementId:n,spot:e,spotElement:i}=t;this.handleImpressionEvent(n,e),i.addEventListener("click",(async()=>{await this.handleClickEvent(t),this.saveSpotDataToLocalStorage(n,e)}))}unregisterSpot(t){const n=t.replace("#",""),e=document.getElementById(n);e?(this.updateSpotLifecycleState(n,{dom:{spotElement:void 0,visibleOnViewport:!1},state:{unmounted:!0,mounted:!1,loading:!1}}),e.innerHTML=""):this.updateSpotLifecycleState(n,{state:{error:`Placement element with id ${n} not found.`}})}updateSpotLifecycleState(t,n,e=!0){let r=this.spotLifecyleState.get(t);r||(r={identifier:{placementId:t,spotId:"",spotType:""},dom:{spotElement:void 0,visibleOnViewport:!1},state:{mounted:!1,unmounted:!1,loading:!1,error:void 0},displayConfig:{isCarousel:!1,isCarouselItem:!1,isSingleItem:!1}});const o=this.deepMerge(r,n);this.spotLifecyleState.set(t,o),e&&this.pubSubService.publish(i.LIFECYCLE_STATE,o)}saveSpotDataToLocalStorage(t,n){var e;this.localStorageService.setSpot(n.id,{placementId:t,spotId:n.id,spotType:n.spot,events:n.events,productIds:null!==(e=n.productIds)&&void 0!==e?e:[]})}async handleClickEvent({placementId:t,spot:n}){var e,o;this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.CLICK,placementId:t,spotId:n.id}),await Ze({spotType:n.spot,event:r.CLICK,eventUrl:null!==(o=null===(e=n.events.find((t=>t.event===r.CLICK)))||void 0===e?void 0:e.url)&&void 0!==o?o:""})}handleImpressionEvent(t,n){this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.IMPRESSION,placementId:t,spotId:n.id}),(async()=>{var t,e;await Ze({spotType:n.spot,event:r.IMPRESSION,eventUrl:null!==(e=null===(t=n.events.find((t=>t.event===r.IMPRESSION)))||void 0===t?void 0:t.url)&&void 0!==e?e:""})})()}deepMerge(t,n){return{identifier:n.identifier?{...t.identifier,...n.identifier}:t.identifier,dom:n.dom?{...t.dom,...n.dom}:t.dom,state:n.state?{...t.state,...n.state}:t.state,displayConfig:n.displayConfig?{...t.displayConfig,...n.displayConfig}:t.displayConfig}}}function ys(t){var n;null===(n=document.getElementById(t))||void 0===n||n.replaceChildren()}function xs(t){t.removeAttribute("style"),t.removeAttribute("class"),Object.assign(t.style,{width:"100%",height:"100%",display:"flex",justifyContent:"center"})}function _s(t,n){if(!n)return t;const{textColor:e,backgroundColor:i,ctaTextColor:r,ctaBorderColor:o}=n;return{...t,textColor:null!=e?e:t.textColor,backgroundColor:null!=i?i:t.backgroundColor,ctaTextColor:null!=r?r:t.ctaTextColor,ctaBorderColor:null!=o?o:t.ctaBorderColor}}class $s{constructor(t){this.selectionService=bs.getInstance(t),this.elementService=ps.getInstance(),this.spotManagerService=ws.getInstance(),vs.getInstance().start()}async spotSelection(t){return this.selectionService.spotSelection(t)}publishSpotToRmn(t,n){this.spotManagerService.saveSpotDataToLocalStorage(t,n)}async injectSpotElement(t){if(!t.inject.length)return void this.spotManagerService.updateSpotLifecycleState("all",{state:{error:"No spot elements provided for injection."}});t.inject=function(t){const e=ws.getInstance(),i=new Set,r=new Set(Object.values(n)),o=[];for(const n of t){const t=n.placementId.replace("#","");i.has(t)?e.updateSpotLifecycleState(t,{state:{error:`Duplicate placement id (${t}) found. Please provide a unique placement id for each spot element.`}}):r.has(n.spotType)?(i.add(t),o.push(n)):e.updateSpotLifecycleState(t,{state:{error:`Invalid spot type (${n.spotType}) found. Please provide a valid spot type for each spot element.`}})}return o}(t.inject);const e=t.inject.map((t=>t.placementId));new Uo(e,(async n=>{await this.processPlacements(t,n)}),{proximityThreshold:500,intersectionMargin:"2000px"})}async processPlacements(t,n){var e,i;const r=t.config,o=new Map(t.inject.map((t=>[t.placementId,t]))),s=new Map;for(const t of n){const n=document.getElementById(t),a=o.get(t);if(!n||!a){this.spotManagerService.updateSpotLifecycleState(t,{state:{error:n?`Placement not found for id "${t}".`:`Placement element not found for id "${t}".`,mounted:!1,loading:!1}});continue}this.spotManagerService.updateSpotLifecycleState(a.placementId,{identifier:{placementId:a.placementId,spotType:a.spotType}},!1),xs(n);const c=this.elementService.createSkeletonElement({fluid:null!==(i=null===(e=null==a?void 0:a.config)||void 0===e?void 0:e.fluid)&&void 0!==i?i:null==r?void 0:r.fluid,spotType:a.spotType});c||this.spotManagerService.updateSpotLifecycleState(a.placementId,{state:{error:"Failed to create skeleton loader element.",loading:!0}}),c&&(null==n||n.replaceChildren(c)),s.set(t,n),this.spotManagerService.updateSpotLifecycleState(a.placementId,{state:{loading:!0}})}if(0===s.size)return;const a=Array.from(s.keys()).map((t=>o.get(t))).filter(Boolean);let c;if(c=t.customSpots?t.customSpots:await this.injectSpotSelectionRequest({...t,inject:a}),"object"==typeof c&&"error"in c)return this.spotManagerService.updateSpotLifecycleState("all",{state:{error:c.error,mounted:!1,loading:!1}}),void s.forEach(((t,n)=>ys(n)));s.forEach(((t,n)=>{var e;const i=o.get(n),s=null!==(e=null==i?void 0:i.config)&&void 0!==e?e:r,a=c[n];if(!(null==a?void 0:a.length))return this.spotManagerService.updateSpotLifecycleState(i.placementId,{state:{error:`No spots found for type "${i.spotType}".`,mounted:!1,loading:!1}}),void ys(i.placementId);1===a.length&&this.injectOneSpotElement(t,a[0],s),a.length>1&&this.injectCarouselSpotElement(t,a,s)}))}injectOneSpotElement(t,e,r){var o;const s=t.id,a=e.spot;this.spotManagerService.updateSpotLifecycleState(s,{identifier:{placementId:s,spotType:a,spotId:e.id},displayConfig:{isSingleItem:!0,isCarousel:!1,isCarouselItem:!1}});const c=_s(e,null==r?void 0:r.colors),h=this.elementService.createSpotElement({spot:c,config:{prefix:"",fluid:e.spot===n.RB_IN_TEXT||null!==(o=null==r?void 0:r.fluid)&&void 0!==o&&o,useShadowDom:!0}});if(!h)return this.spotManagerService.updateSpotLifecycleState(s,{state:{error:`Failed to inject spot element. Could not create element for type "${a}".`,mounted:!1,loading:!1}}),void ys(s);this.spotManagerService.registerSpot({spot:c,placementId:s,spotElement:h}),null==t||t.replaceChildren(h),(null==r?void 0:r.listenRenderedSpotData)&&this.spotManagerService.publish(i.RENDERED_SPOT_DATA,{placementId:s,data:[c]}),this.spotManagerService.updateSpotLifecycleState(s,{dom:{spotElement:h,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}injectCarouselSpotElement(t,n,e){var r;const o=t.id,s=[];for(const t of n){this.spotManagerService.updateSpotLifecycleState(o,{identifier:{placementId:o,spotType:t.spot,spotId:t.id},displayConfig:{isSingleItem:!1,isCarousel:!0,isCarouselItem:!0}});const n=_s(t,null==e?void 0:e.colors),i=this.elementService.createSpotElement({spot:n,config:{prefix:"",fluid:!0,useShadowDom:!1}});if(!i)return this.spotManagerService.updateSpotLifecycleState(o,{state:{error:`Failed to inject spot element. Could not create element for type "${t.spot}".`,mounted:!1,loading:!1}}),void ys(o);this.spotManagerService.registerSpot({spot:n,placementId:o,spotElement:i}),s.push(i)}const{maxWidth:a,maxHeight:c}=n.reduce(((t,n)=>({maxWidth:Math.max(t.maxWidth,n.width),maxHeight:Math.max(t.maxHeight,n.height)})),{maxWidth:0,maxHeight:0}),h=this.elementService.createCarouselElement({slides:s,config:{fluid:null==e?void 0:e.fluid,width:a,height:c,minScale:null!==(r=null==e?void 0:e.minScale)&&void 0!==r?r:.25,...null==e?void 0:e.carousel}});if(!h)return this.spotManagerService.updateSpotLifecycleState(o,{state:{error:"Failed to inject spot carousel element. Could not create spot carousel element.",mounted:!1,loading:!1}}),void ys(o);null==t||t.replaceChildren(h),(null==e?void 0:e.listenRenderedSpotData)&&this.spotManagerService.publish(i.RENDERED_SPOT_DATA,{placementId:o,data:n}),this.spotManagerService.updateSpotLifecycleState(o,{dom:{spotElement:h,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}async injectSpotSelectionRequest(t){const{inject:n,filter:e,config:i}=t,r=n.map((t=>({placementId:t.placementId,spot:t.spotType,count:null==t?void 0:t.count,...null==t?void 0:t.filter}))),o={url:null==i?void 0:i.url,filter:e,spots:r};return this.spotSelection(o)}}async function RmnClient(t,n){const e=async()=>{const e=Io.getInstance(t,n.env),i=await e.initialize();return("undefined"!=typeof document||(console.warn("LiquidCommerce Rmn Sdk: Methods which create elements are only available in browser environments."),0))&&No.getInstance().setUserId(),new $s(i)};return new Promise((t=>{"complete"===document.readyState?t(e()):window.addEventListener("load",(()=>{t(e())}))}))}function RmnEventManager(){const t=ws.getInstance();return{subscribe:(n,e)=>t.subscribe(n,e),publish:(n,e)=>{t.publish(n,e)},destroySpot:n=>{t.unregisterSpot(n)}}}window.RmnClient=RmnClient,window.RmnEventManager=RmnEventManager,t.RmnClient=RmnClient,t.RmnEventManager=RmnEventManager}));
1
+ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).LiquidCommerceRmn={})}(this,(function(t){"use strict";var n,e,i,r,o,s;!function(t){t.RB_HOMEPAGE_HERO="rbHomepageHero",t.RB_HOMEPAGE_HERO_THREE_TILE="rbHomepageHeroThreeTile",t.RB_HOMEPAGE_HERO_TWO_TILE="rbHomepageHeroTwoTile",t.RB_HOMEPAGE_HERO_FULL_IMAGE="rbHomepageHeroFullImage",t.RB_LARGE_CATEGORY_IMAGE_TOUT="rbLargeCategoryImageTout",t.RB_SMALL_DISCOVER_TOUT="rbSmallDiscoverTout",t.RB_SMALL_CATEGORY_IMAGE_TOUT="rbSmallCategoryImageTout",t.RB_LONG_TOUT_SHORT="rbLongToutShort",t.RB_LONG_TOUT_TALL="rbLongToutTall",t.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK="rbCollectionBannerWithoutTextBlock",t.RB_PRODUCT_UPCS="rbProductUpcs",t.RB_NAVIGATION_BANNER="rbNavigationBanner",t.RB_VIDEO_PLAYER="rbVideoPlayer",t.RB_IN_TEXT="rbInText",t.RB_CAROUSEL_HORIZONTAL_INFO_CARD="rbCarouselHorizontalInfoCard",t.BILLBOARD="billboard",t.LARGE_RECTANGLE="largeRectangle",t.VERTICAL_RECTANGLE="verticalRectangle",t.SQUARE="square",t.LARGE_LEADERBOARD="largeLeaderboard",t.WIDE_SKYSCRAPER="wideSkyscraper",t.IN_TEXT="inText",t.SMALL_RECTANGLE="smallRectangle",t.MEDIUM_RECTANGLE="mediumRectangle",t.BANNER="banner",t.LEADERBOARD="leaderboard",t.SKYSCRAPER="skyscraper",t.HALF_PAGE="halfPage",t.SMALL_SQUARE="smallSquare",t.VERTICAL_BANNER="verticalBanner",t.BUTTON_2="button2",t.MICRO_BAR="microBar",t.POP_UP="popUp",t.PORTRAIT="portrait",t.SMARTPHONE_BANNER_1="smartphoneBanner1",t.SMARTPHONE_BANNER_2="smartphoneBanner2",t.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",t.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",t.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",t.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",t.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",t.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(n||(n={})),function(t){t.KEYWORDS="keywords",t.PAGE_LOCATION="pageLocation",t.PARENTCO="parentCo",t.BRAND="brand",t.CATEGORY="category",t.TYPE="type",t.CLASSIFICATION="classification",t.HOLIDAY="holiday",t.PUBLISHERS="publishers",t.SECTION="section"}(e||(e={})),function(t){t.LIFECYCLE_STATE="LIFECYCLE_STATE",t.SPOT_EVENT="SPOT_EVENT",t.RENDERED_SPOT_DATA="RENDERED_SPOT_DATA"}(i||(i={})),function(t){t.IMPRESSION="IMPRESSION",t.CLICK="CLICK",t.PURCHASE="PURCHASE",t.ADD_TO_CART="ADD_TO_CART",t.REMOVE_FROM_CART="REMOVE_FROM_CART",t.ADD_TO_CART_FROM_DETAILS="ADD_TO_CART_FROM_DETAILS",t.ADD_TO_WISHLIST="ADD_TO_WISHLIST",t.EXPAND_PRODUCT="EXPAND_PRODUCT",t.BUY_NOW="BUY_NOW"}(r||(r={})),function(t){t.LOCAL="local",t.DEVELOPMENT="development",t.STAGING="staging",t.PRODUCTION="production"}(o||(o={})),function(t){t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t.MIDDLE="middle",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.MIDDLE_LEFT="middle-left",t.MIDDLE_RIGHT="middle-right"}(s||(s={}));const a="X-Liquid-Protected",c="X-Liquid-Timestamp",h="X-Liquid-Api-Env",u={url:{[o.LOCAL]:"http://localhost:8300",[o.DEVELOPMENT]:"https://dev.rmn.liquidcommerce.cloud",[o.STAGING]:"https://staging.rmn.liquidcommerce.cloud",[o.PRODUCTION]:"https://rmn.liquidcommerce.cloud"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{env:o.DEVELOPMENT}};class l{}var d="undefined"!=typeof global?global:"undefined"!=typeof self?self:window;function f(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}var m=f,g=p;function v(t){if(m===setTimeout)return setTimeout(t,0);if((m===f||!m)&&setTimeout)return m=setTimeout,setTimeout(t,0);try{return m(t,0)}catch(n){try{return m.call(null,t,0)}catch(n){return m.call(this,t,0)}}}"function"==typeof d.setTimeout&&(m=setTimeout),"function"==typeof d.clearTimeout&&(g=clearTimeout);var b,w=[],y=!1,x=-1;function _(){y&&b&&(y=!1,b.length?w=b.concat(w):x=-1,w.length&&$())}function $(){if(!y){var t=v(_);y=!0;for(var n=w.length;n;){for(b=w,w=[];++x<n;)b&&b[x].run();x=-1,n=w.length}b=null,y=!1,function(t){if(g===clearTimeout)return clearTimeout(t);if((g===p||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(t);try{return g(t)}catch(n){try{return g.call(null,t)}catch(n){return g.call(this,t)}}}(t)}}function S(t,n){this.fun=t,this.array=n}S.prototype.run=function(){this.fun.apply(null,this.array)};var k=d.performance||{};k.now||k.mozNow||k.msNow||k.oNow||k.webkitNow;var E={nextTick:function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];w.push(new S(t,n)),1!==w.length||y||v($)}};function T(t,n){return function(){return t.apply(n,arguments)}}const{toString:R}=Object.prototype,{getPrototypeOf:A}=Object,C=(I=Object.create(null),t=>{const n=R.call(t);return I[n]||(I[n]=n.slice(8,-1).toLowerCase())});var I;const z=t=>(t=t.toLowerCase(),n=>C(n)===t),O=t=>n=>typeof n===t,{isArray:P}=Array,D=O("undefined"),j=z("ArrayBuffer"),M=O("string"),H=O("function"),B=O("number"),N=t=>null!==t&&"object"==typeof t,U=t=>{if("object"!==C(t))return!1;const n=A(t);return!(null!==n&&n!==Object.prototype&&null!==Object.getPrototypeOf(n)||Symbol.toStringTag in t||Symbol.iterator in t)},L=z("Date"),W=z("File"),J=z("Blob"),F=z("FileList"),K=z("URLSearchParams"),[q,V,Y,X]=["ReadableStream","Request","Response","Headers"].map(z);function G(t,n,{allOwnKeys:e=!1}={}){if(null==t)return;let i,r;if("object"!=typeof t&&(t=[t]),P(t))for(i=0,r=t.length;i<r;i++)n.call(null,t[i],i,t);else{const r=e?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let s;for(i=0;i<o;i++)s=r[i],n.call(null,t[s],s,t)}}function Z(t,n){n=n.toLowerCase();const e=Object.keys(t);let i,r=e.length;for(;r-- >0;)if(i=e[r],n===i.toLowerCase())return i;return null}const Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,tt=t=>!D(t)&&t!==Q,nt=(et="undefined"!=typeof Uint8Array&&A(Uint8Array),t=>et&&t instanceof et);var et;const it=z("HTMLFormElement"),rt=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),ot=z("RegExp"),st=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),i={};G(e,((e,r)=>{let o;!1!==(o=n(e,r,t))&&(i[r]=o||e)})),Object.defineProperties(t,i)},at=z("AsyncFunction"),ct=(ht="function"==typeof setImmediate,ut=H(Q.postMessage),ht?setImmediate:ut?(lt=`axios@${Math.random()}`,dt=[],Q.addEventListener("message",(({source:t,data:n})=>{t===Q&&n===lt&&dt.length&&dt.shift()()}),!1),t=>{dt.push(t),Q.postMessage(lt,"*")}):t=>setTimeout(t));var ht,ut,lt,dt;const ft="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q):E.nextTick||ct;var pt={isArray:P,isArrayBuffer:j,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&H(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||H(t.append)&&("formdata"===(n=C(t))||"object"===n&&H(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let n;return n="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&j(t.buffer),n},isString:M,isNumber:B,isBoolean:t=>!0===t||!1===t,isObject:N,isPlainObject:U,isReadableStream:q,isRequest:V,isResponse:Y,isHeaders:X,isUndefined:D,isDate:L,isFile:W,isBlob:J,isRegExp:ot,isFunction:H,isStream:t=>N(t)&&H(t.pipe),isURLSearchParams:K,isTypedArray:nt,isFileList:F,forEach:G,merge:function t(){const{caseless:n}=tt(this)&&this||{},e={},i=(i,r)=>{const o=n&&Z(e,r)||r;U(e[o])&&U(i)?e[o]=t(e[o],i):U(i)?e[o]=t({},i):P(i)?e[o]=i.slice():e[o]=i};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&G(arguments[t],i);return e},extend:(t,n,e,{allOwnKeys:i}={})=>(G(n,((n,i)=>{e&&H(n)?t[i]=T(n,e):t[i]=n}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,e,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},toFlatObject:(t,n,e,i)=>{let r,o,s;const a={};if(n=n||{},null==t)return n;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],i&&!i(s,t,n)||a[s]||(n[s]=t[s],a[s]=!0);t=!1!==e&&A(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},kindOf:C,kindOfTest:z,endsWith:(t,n,e)=>{t=String(t),(void 0===e||e>t.length)&&(e=t.length),e-=n.length;const i=t.indexOf(n,e);return-1!==i&&i===e},toArray:t=>{if(!t)return null;if(P(t))return t;let n=t.length;if(!B(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},forEachEntry:(t,n)=>{const e=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=e.next())&&!i.done;){const e=i.value;n.call(t,e[0],e[1])}},matchAll:(t,n)=>{let e;const i=[];for(;null!==(e=t.exec(n));)i.push(e);return i},isHTMLForm:it,hasOwnProperty:rt,hasOwnProp:rt,reduceDescriptors:st,freezeMethods:t=>{st(t,((n,e)=>{if(H(t)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const i=t[e];H(i)&&(n.enumerable=!1,"writable"in n?n.writable=!1:n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(t,n)=>{const e={},i=t=>{t.forEach((t=>{e[t]=!0}))};return P(t)?i(t):i(String(t).split(n)),e},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,n,e){return n.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t=+t)?t:n,findKey:Z,global:Q,isContextDefined:tt,isSpecCompliantForm:function(t){return!!(t&&H(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const n=new Array(10),e=(t,i)=>{if(N(t)){if(n.indexOf(t)>=0)return;if(!("toJSON"in t)){n[i]=t;const r=P(t)?[]:{};return G(t,((t,n)=>{const o=e(t,i+1);!D(o)&&(r[n]=o)})),n[i]=void 0,r}}return t};return e(t,0)},isAsyncFn:at,isThenable:t=>t&&(N(t)||H(t))&&H(t.then)&&H(t.catch),setImmediate:ct,asap:ft},mt=[],gt=[],vt="undefined"!=typeof Uint8Array?Uint8Array:Array,bt=!1;function wt(){bt=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0;n<64;++n)mt[n]=t[n],gt[t.charCodeAt(n)]=n;gt["-".charCodeAt(0)]=62,gt["_".charCodeAt(0)]=63}function yt(t,n,e){for(var i,r,o=[],s=n;s<e;s+=3)i=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(mt[(r=i)>>18&63]+mt[r>>12&63]+mt[r>>6&63]+mt[63&r]);return o.join("")}function xt(t){var n;bt||wt();for(var e=t.length,i=e%3,r="",o=[],s=16383,a=0,c=e-i;a<c;a+=s)o.push(yt(t,a,a+s>c?c:a+s));return 1===i?(n=t[e-1],r+=mt[n>>2],r+=mt[n<<4&63],r+="=="):2===i&&(n=(t[e-2]<<8)+t[e-1],r+=mt[n>>10],r+=mt[n>>4&63],r+=mt[n<<2&63],r+="="),o.push(r),o.join("")}function _t(t,n,e,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,h=c>>1,u=-7,l=e?r-1:0,d=e?-1:1,f=t[n+l];for(l+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[n+l],l+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[n+l],l+=d,u-=8);if(0===o)o=1-h;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=h}return(f?-1:1)*s*Math.pow(2,o-i)}function $t(t,n,e,i,r,o){var s,a,c,h=8*o-r-1,u=(1<<h)-1,l=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,s=u):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),(n+=s+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=u?(a=0,s=u):s+l>=1?(a=(n*c-1)*Math.pow(2,r),s+=l):(a=n*Math.pow(2,l-1)*Math.pow(2,r),s=0));r>=8;t[e+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,h+=r;h>0;t[e+f]=255&s,f+=p,s/=256,h-=8);t[e+f-p]|=128*m}var St={}.toString,kt=Array.isArray||function(t){return"[object Array]"==St.call(t)};function Et(){return Rt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tt(t,n){if(Et()<n)throw new RangeError("Invalid typed array length");return Rt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=Rt.prototype:(null===t&&(t=new Rt(n)),t.length=n),t}function Rt(t,n,e){if(!(Rt.TYPED_ARRAY_SUPPORT||this instanceof Rt))return new Rt(t,n,e);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return It(this,t)}return At(this,t,n,e)}function At(t,n,e,i){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,i){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return n=void 0===e&&void 0===i?new Uint8Array(n):void 0===i?new Uint8Array(n,e):new Uint8Array(n,e,i),Rt.TYPED_ARRAY_SUPPORT?(t=n).__proto__=Rt.prototype:t=zt(t,n),t}(t,n,e,i):"string"==typeof n?function(t,n,e){if("string"==typeof e&&""!==e||(e="utf8"),!Rt.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=0|Dt(n,e),r=(t=Tt(t,i)).write(n,e);return r!==i&&(t=t.slice(0,r)),t}(t,n,e):function(t,n){if(Pt(n)){var e=0|Ot(n.length);return 0===(t=Tt(t,e)).length||n.copy(t,0,0,e),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(i=n.length)!=i?Tt(t,0):zt(t,n);if("Buffer"===n.type&&kt(n.data))return zt(t,n.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function Ct(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function It(t,n){if(Ct(n),t=Tt(t,n<0?0:0|Ot(n)),!Rt.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function zt(t,n){var e=n.length<0?0:0|Ot(n.length);t=Tt(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function Ot(t){if(t>=Et())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Et().toString(16)+" bytes");return 0|t}function Pt(t){return!(null==t||!t.i)}function Dt(t,n){if(Pt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return cn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return hn(t).length;default:if(i)return cn(t).length;n=(""+n).toLowerCase(),i=!0}}function jt(t,n,e){var i=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Gt(this,n,e);case"utf8":case"utf-8":return qt(this,n,e);case"ascii":return Yt(this,n,e);case"latin1":case"binary":return Xt(this,n,e);case"base64":return Kt(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,n,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function Mt(t,n,e){var i=t[n];t[n]=t[e],t[e]=i}function Ht(t,n,e,i,r){if(0===t.length)return-1;if("string"==typeof e?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=r?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(r)return-1;e=t.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof n&&(n=Rt.from(n,i)),Pt(n))return 0===n.length?-1:Bt(t,n,e,i,r);if("number"==typeof n)return n&=255,Rt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):Bt(t,[n],e,i,r);throw new TypeError("val must be string, number or Buffer")}function Bt(t,n,e,i,r){var o,s=1,a=t.length,c=n.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||n.length<2)return-1;s=2,a/=2,c/=2,e/=2}function h(t,n){return 1===s?t[n]:t.readUInt16BE(n*s)}if(r){var u=-1;for(o=e;o<a;o++)if(h(t,o)===h(n,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(e+c>a&&(e=a-c),o=e;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(h(t,o+d)!==h(n,d)){l=!1;break}if(l)return o}return-1}function Nt(t,n,e,i){e=Number(e)||0;var r=t.length-e;i?(i=Number(i))>r&&(i=r):i=r;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(n.substr(2*s,2),16);if(isNaN(a))return s;t[e+s]=a}return s}function Ut(t,n,e,i){return un(cn(n,t.length-e),t,e,i)}function Lt(t,n,e,i){return un(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,i)}function Wt(t,n,e,i){return Lt(t,n,e,i)}function Jt(t,n,e,i){return un(hn(n),t,e,i)}function Ft(t,n,e,i){return un(function(t,n){for(var e,i,r,o=[],s=0;s<t.length&&!((n-=2)<0);++s)i=(e=t.charCodeAt(s))>>8,r=e%256,o.push(r),o.push(i);return o}(n,t.length-e),t,e,i)}function Kt(t,n,e){return 0===n&&e===t.length?xt(t):xt(t.slice(n,e))}function qt(t,n,e){e=Math.min(t.length,e);for(var i=[],r=n;r<e;){var o,s,a,c,h=t[r],u=null,l=h>239?4:h>223?3:h>191?2:1;if(r+l<=e)switch(l){case 1:h<128&&(u=h);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&h)<<6|63&o)>127&&(u=c);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&(c=(15&h)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,l=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=l}return function(t){var n=t.length;if(n<=Vt)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<n;)e+=String.fromCharCode.apply(String,t.slice(i,i+=Vt));return e}(i)}Rt.TYPED_ARRAY_SUPPORT=void 0===d.TYPED_ARRAY_SUPPORT||d.TYPED_ARRAY_SUPPORT,Et(),Rt.poolSize=8192,Rt.o=function(t){return t.__proto__=Rt.prototype,t},Rt.from=function(t,n,e){return At(null,t,n,e)},Rt.TYPED_ARRAY_SUPPORT&&(Rt.prototype.__proto__=Uint8Array.prototype,Rt.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Rt[Symbol.species]),Rt.alloc=function(t,n,e){return function(t,n,e,i){return Ct(n),n<=0?Tt(t,n):void 0!==e?"string"==typeof i?Tt(t,n).fill(e,i):Tt(t,n).fill(e):Tt(t,n)}(null,t,n,e)},Rt.allocUnsafe=function(t){return It(null,t)},Rt.allocUnsafeSlow=function(t){return It(null,t)},Rt.isBuffer=function(t){return null!=t&&(!!t.i||ln(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ln(t.slice(0,0))}(t))},Rt.compare=function(t,n){if(!Pt(t)||!Pt(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,i=n.length,r=0,o=Math.min(e,i);r<o;++r)if(t[r]!==n[r]){e=t[r],i=n[r];break}return e<i?-1:i<e?1:0},Rt.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Rt.concat=function(t,n){if(!kt(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Rt.alloc(0);var e;if(void 0===n)for(n=0,e=0;e<t.length;++e)n+=t[e].length;var i=Rt.allocUnsafe(n),r=0;for(e=0;e<t.length;++e){var o=t[e];if(!Pt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},Rt.byteLength=Dt,Rt.prototype.i=!0,Rt.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)Mt(this,n,n+1);return this},Rt.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)Mt(this,n,n+3),Mt(this,n+1,n+2);return this},Rt.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)Mt(this,n,n+7),Mt(this,n+1,n+6),Mt(this,n+2,n+5),Mt(this,n+3,n+4);return this},Rt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?qt(this,0,t):jt.apply(this,arguments)},Rt.prototype.equals=function(t){if(!Pt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Rt.compare(this,t)},Rt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Rt.prototype.compare=function(t,n,e,i,r){if(!Pt(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),n<0||e>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&n>=e)return 0;if(i>=r)return-1;if(n>=e)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(e>>>=0)-(n>>>=0),a=Math.min(o,s),c=this.slice(i,r),h=t.slice(n,e),u=0;u<a;++u)if(c[u]!==h[u]){o=c[u],s=h[u];break}return o<s?-1:s<o?1:0},Rt.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},Rt.prototype.indexOf=function(t,n,e){return Ht(this,t,n,e,!0)},Rt.prototype.lastIndexOf=function(t,n,e){return Ht(this,t,n,e,!1)},Rt.prototype.write=function(t,n,e,i){if(void 0===n)i="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)i=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===i&&(i="utf8")):(i=e,e=void 0)}var r=this.length-n;if((void 0===e||e>r)&&(e=r),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Nt(this,t,n,e);case"utf8":case"utf-8":return Ut(this,t,n,e);case"ascii":return Lt(this,t,n,e);case"latin1":case"binary":return Wt(this,t,n,e);case"base64":return Jt(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},Rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.h||this,0)}};var Vt=4096;function Yt(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(127&t[r]);return i}function Xt(t,n,e){var i="";e=Math.min(t.length,e);for(var r=n;r<e;++r)i+=String.fromCharCode(t[r]);return i}function Gt(t,n,e){var i,r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var o="",s=n;s<e;++s)o+=(i=t[s])<16?"0"+i.toString(16):i.toString(16);return o}function Zt(t,n,e){for(var i=t.slice(n,e),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function Qt(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function tn(t,n,e,i,r,o){if(!Pt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||n<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}function nn(t,n,e,i){n<0&&(n=65535+n+1);for(var r=0,o=Math.min(t.length-e,2);r<o;++r)t[e+r]=(n&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function en(t,n,e,i){n<0&&(n=4294967295+n+1);for(var r=0,o=Math.min(t.length-e,4);r<o;++r)t[e+r]=n>>>8*(i?r:3-r)&255}function rn(t,n,e,i,r,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function on(t,n,e,i,r){return r||rn(t,0,e,4),$t(t,n,e,i,23,4),e+4}function sn(t,n,e,i,r){return r||rn(t,0,e,8),$t(t,n,e,i,52,8),e+8}Rt.prototype.slice=function(t,n){var e,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(n=void 0===n?i:~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<t&&(n=t),Rt.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,n)).__proto__=Rt.prototype;else{var r=n-t;e=new Rt(r,void 0);for(var o=0;o<r;++o)e[o]=this[o+t]}return e},Rt.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i},Rt.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t+--n],r=1;n>0&&(r*=256);)i+=this[t+--n]*r;return i},Rt.prototype.readUInt8=function(t,n){return n||Qt(t,1,this.length),this[t]},Rt.prototype.readUInt16LE=function(t,n){return n||Qt(t,2,this.length),this[t]|this[t+1]<<8},Rt.prototype.readUInt16BE=function(t,n){return n||Qt(t,2,this.length),this[t]<<8|this[t+1]},Rt.prototype.readUInt32LE=function(t,n){return n||Qt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Rt.prototype.readUInt32BE=function(t,n){return n||Qt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Rt.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*n)),i},Rt.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||Qt(t,n,this.length);for(var i=n,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*n)),o},Rt.prototype.readInt8=function(t,n){return n||Qt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Rt.prototype.readInt16LE=function(t,n){n||Qt(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},Rt.prototype.readInt16BE=function(t,n){n||Qt(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},Rt.prototype.readInt32LE=function(t,n){return n||Qt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Rt.prototype.readInt32BE=function(t,n){return n||Qt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Rt.prototype.readFloatLE=function(t,n){return n||Qt(t,4,this.length),_t(this,t,!0,23,4)},Rt.prototype.readFloatBE=function(t,n){return n||Qt(t,4,this.length),_t(this,t,!1,23,4)},Rt.prototype.readDoubleLE=function(t,n){return n||Qt(t,8,this.length),_t(this,t,!0,52,8)},Rt.prototype.readDoubleBE=function(t,n){return n||Qt(t,8,this.length),_t(this,t,!1,52,8)},Rt.prototype.writeUIntLE=function(t,n,e,i){t=+t,n|=0,e|=0,i||tn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[n]=255&t;++o<e&&(r*=256);)this[n+o]=t/r&255;return n+e},Rt.prototype.writeUIntBE=function(t,n,e,i){t=+t,n|=0,e|=0,i||tn(this,t,n,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[n+r]=255&t;--r>=0&&(o*=256);)this[n+r]=t/o&255;return n+e},Rt.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,1,255,0),Rt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},Rt.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,65535,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):nn(this,t,n,!0),n+2},Rt.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,65535,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):nn(this,t,n,!1),n+2},Rt.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,4294967295,0),Rt.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):en(this,t,n,!0),n+4},Rt.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,4294967295,0),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):en(this,t,n,!1),n+4},Rt.prototype.writeIntLE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);tn(this,t,n,e,r-1,-r)}var o=0,s=1,a=0;for(this[n]=255&t;++o<e&&(s*=256);)t<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Rt.prototype.writeIntBE=function(t,n,e,i){if(t=+t,n|=0,!i){var r=Math.pow(2,8*e-1);tn(this,t,n,e,r-1,-r)}var o=e-1,s=1,a=0;for(this[n+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(t/s|0)-a&255;return n+e},Rt.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,1,127,-128),Rt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},Rt.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,32767,-32768),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):nn(this,t,n,!0),n+2},Rt.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,2,32767,-32768),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):nn(this,t,n,!1),n+2},Rt.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,2147483647,-2147483648),Rt.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):en(this,t,n,!0),n+4},Rt.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||tn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Rt.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):en(this,t,n,!1),n+4},Rt.prototype.writeFloatLE=function(t,n,e){return on(this,t,n,!0,e)},Rt.prototype.writeFloatBE=function(t,n,e){return on(this,t,n,!1,e)},Rt.prototype.writeDoubleLE=function(t,n,e){return sn(this,t,n,!0,e)},Rt.prototype.writeDoubleBE=function(t,n,e){return sn(this,t,n,!1,e)},Rt.prototype.copy=function(t,n,e,i){if(e||(e=0),i||0===i||(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-e&&(i=t.length-n+e);var r,o=i-e;if(this===t&&e<n&&n<i)for(r=o-1;r>=0;--r)t[r+n]=this[r+e];else if(o<1e3||!Rt.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+n]=this[r+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},Rt.prototype.fill=function(t,n,e,i){if("string"==typeof t){if("string"==typeof n?(i=n,n=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Rt.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;var o;if(n>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o<e;++o)this[o]=t;else{var s=Pt(t)?t:cn(new Rt(t,i).toString()),a=s.length;for(o=0;o<e-n;++o)this[o+n]=s[o%a]}return this};var an=/[^+\/0-9A-Za-z-_]/g;function cn(t,n){var e;n=n||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((e=t.charCodeAt(s))>55295&&e<57344){if(!r){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(n-=3)>-1&&o.push(239,191,189);continue}r=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(n-=3)>-1&&o.push(239,191,189);if(r=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function hn(t){return function(t){var n,e,i,r,o,s;bt||wt();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new vt(3*a/4-o),i=o>0?a-4:a;var c=0;for(n=0,e=0;n<i;n+=4,e+=3)r=gt[t.charCodeAt(n)]<<18|gt[t.charCodeAt(n+1)]<<12|gt[t.charCodeAt(n+2)]<<6|gt[t.charCodeAt(n+3)],s[c++]=r>>16&255,s[c++]=r>>8&255,s[c++]=255&r;return 2===o?(r=gt[t.charCodeAt(n)]<<2|gt[t.charCodeAt(n+1)]>>4,s[c++]=255&r):1===o&&(r=gt[t.charCodeAt(n)]<<10|gt[t.charCodeAt(n+1)]<<4|gt[t.charCodeAt(n+2)]>>2,s[c++]=r>>8&255,s[c++]=255&r),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(an,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function un(t,n,e,i){for(var r=0;r<i&&!(r+e>=n.length||r>=t.length);++r)n[r+e]=t[r];return r}function ln(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function dn(t,n,e,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",n&&(this.code=n),e&&(this.config=e),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}pt.inherits(dn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pt.toJSONObject(this.config),code:this.code,status:this.status}}});const fn=dn.prototype,pn={};function mn(t){return pt.isPlainObject(t)||pt.isArray(t)}function gn(t){return pt.endsWith(t,"[]")?t.slice(0,-2):t}function vn(t,n,e){return t?t.concat(n).map((function(t,n){return t=gn(t),!e&&n?"["+t+"]":t})).join(e?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{pn[t]={value:t}})),Object.defineProperties(dn,pn),Object.defineProperty(fn,"isAxiosError",{value:!0}),dn.from=(t,n,e,i,r,o)=>{const s=Object.create(fn);return pt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dn.call(s,t.message,n,e,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const bn=pt.toFlatObject(pt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function wn(t,n,e){if(!pt.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;const i=(e=pt.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,n){return!pt.isUndefined(n[t])}))).metaTokens,r=e.visitor||h,o=e.dots,s=e.indexes,a=(e.Blob||"undefined"!=typeof Blob&&Blob)&&pt.isSpecCompliantForm(n);if(!pt.isFunction(r))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(pt.isDate(t))return t.toISOString();if(!a&&pt.isBlob(t))throw new dn("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(t)||pt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Rt.from(t):t}function h(t,e,r){let a=t;if(t&&!r&&"object"==typeof t)if(pt.endsWith(e,"{}"))e=i?e:e.slice(0,-2),t=JSON.stringify(t);else if(pt.isArray(t)&&function(t){return pt.isArray(t)&&!t.some(mn)}(t)||(pt.isFileList(t)||pt.endsWith(e,"[]"))&&(a=pt.toArray(t)))return e=gn(e),a.forEach((function(t,i){!pt.isUndefined(t)&&null!==t&&n.append(!0===s?vn([e],i,o):null===s?e:e+"[]",c(t))})),!1;return!!mn(t)||(n.append(vn(r,e,o),c(t)),!1)}const u=[],l=Object.assign(bn,{defaultVisitor:h,convertValue:c,isVisitable:mn});if(!pt.isObject(t))throw new TypeError("data must be an object");return function t(e,i){if(!pt.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+i.join("."));u.push(e),pt.forEach(e,(function(e,o){!0===(!(pt.isUndefined(e)||null===e)&&r.call(n,e,pt.isString(o)?o.trim():o,i,l))&&t(e,i?i.concat(o):[o])})),u.pop()}}(t),n}function yn(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return n[t]}))}function xn(t,n){this.l=[],t&&wn(t,this,n)}const _n=xn.prototype;function $n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sn(t,n,e){if(!n)return t;const i=e&&e.encode||$n;pt.isFunction(e)&&(e={serialize:e});const r=e&&e.serialize;let o;if(o=r?r(n,e):pt.isURLSearchParams(n)?n.toString():new xn(n,e).toString(i),o){const n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}_n.append=function(t,n){this.l.push([t,n])},_n.toString=function(t){const n=t?function(n){return t.call(this,n,yn)}:yn;return this.l.map((function(t){return n(t[0])+"="+n(t[1])}),"").join("&")};class kn{constructor(){this.handlers=[]}use(t,n,e){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pt.forEach(this.handlers,(function(n){null!==n&&t(n)}))}}var En={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Rn="undefined"!=typeof document,An="object"==typeof navigator&&navigator||void 0,Cn=Rn&&(!An||["ReactNative","NativeScript","NS"].indexOf(An.product)<0),In="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zn=Rn&&window.location.href||"http://localhost";var On={...Object.freeze({__proto__:null,hasBrowserEnv:Rn,hasStandardBrowserEnv:Cn,hasStandardBrowserWebWorkerEnv:In,navigator:An,origin:zn}),...Tn};function Pn(t){function n(t,e,i,r){let o=t[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=t.length;return o=!o&&pt.isArray(i)?i.length:o,a?(pt.hasOwnProp(i,o)?i[o]=[i[o],e]:i[o]=e,!s):(i[o]&&pt.isObject(i[o])||(i[o]=[]),n(t,e,i[o],r)&&pt.isArray(i[o])&&(i[o]=function(t){const n={},e=Object.keys(t);let i;const r=e.length;let o;for(i=0;i<r;i++)o=e[i],n[o]=t[o];return n}(i[o])),!s)}if(pt.isFormData(t)&&pt.isFunction(t.entries)){const e={};return pt.forEachEntry(t,((t,i)=>{n(function(t){return pt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,e,0)})),e}return null}const Dn={transitional:En,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const e=n.getContentType()||"",i=e.indexOf("application/json")>-1,r=pt.isObject(t);if(r&&pt.isHTMLForm(t)&&(t=new FormData(t)),pt.isFormData(t))return i?JSON.stringify(Pn(t)):t;if(pt.isArrayBuffer(t)||pt.isBuffer(t)||pt.isStream(t)||pt.isFile(t)||pt.isBlob(t)||pt.isReadableStream(t))return t;if(pt.isArrayBufferView(t))return t.buffer;if(pt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(t,n){return wn(t,new On.classes.URLSearchParams,Object.assign({visitor:function(t,n,e,i){return On.isNode&&pt.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},n))}(t,this.formSerializer).toString();if((o=pt.isFileList(t))||e.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return wn(o?{"files[]":t}:t,n&&new n,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),function(t){if(pt.isString(t))try{return(0,JSON.parse)(t),pt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const n=this.transitional||Dn.transitional,e=n&&n.forcedJSONParsing,i="json"===this.responseType;if(pt.isResponse(t)||pt.isReadableStream(t))return t;if(t&&pt.isString(t)&&(e&&!this.responseType||i)){const e=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw dn.from(t,dn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:On.classes.FormData,Blob:On.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pt.forEach(["delete","get","head","post","put","patch"],(t=>{Dn.headers[t]={}}));const jn=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mn=Symbol("internals");function Hn(t){return t&&String(t).trim().toLowerCase()}function Bn(t){return!1===t||null==t?t:pt.isArray(t)?t.map(Bn):String(t)}function Nn(t,n,e,i,r){return pt.isFunction(i)?i.call(this,n,e):(r&&(n=e),pt.isString(n)?pt.isString(i)?-1!==n.indexOf(i):pt.isRegExp(i)?i.test(n):void 0:void 0)}let Un=class{constructor(t){t&&this.set(t)}set(t,n,e){const i=this;function r(t,n,e){const r=Hn(n);if(!r)throw new Error("header name must be a non-empty string");const o=pt.findKey(i,r);(!o||void 0===i[o]||!0===e||void 0===e&&!1!==i[o])&&(i[o||n]=Bn(t))}const o=(t,n)=>pt.forEach(t,((t,e)=>r(t,e,n)));if(pt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(pt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const n={};let e,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),e=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!e||n[e]&&jn[e]||("set-cookie"===e?n[e]?n[e].push(i):n[e]=[i]:n[e]=n[e]?n[e]+", "+i:i)})),n})(t),n);else if(pt.isHeaders(t))for(const[n,i]of t.entries())r(i,n,e);else null!=t&&r(n,t,e);return this}get(t,n){if(t=Hn(t)){const e=pt.findKey(this,t);if(e){const t=this[e];if(!n)return t;if(!0===n)return function(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(t);)n[i[1]]=i[2];return n}(t);if(pt.isFunction(n))return n.call(this,t,e);if(pt.isRegExp(n))return n.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hn(t)){const e=pt.findKey(this,t);return!(!e||void 0===this[e]||n&&!Nn(0,this[e],e,n))}return!1}delete(t,n){const e=this;let i=!1;function r(t){if(t=Hn(t)){const r=pt.findKey(e,t);!r||n&&!Nn(0,e[r],r,n)||(delete e[r],i=!0)}}return pt.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let e=n.length,i=!1;for(;e--;){const r=n[e];t&&!Nn(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const n=this,e={};return pt.forEach(this,((i,r)=>{const o=pt.findKey(e,r);if(o)return n[o]=Bn(i),void delete n[r];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,n,e)=>n.toUpperCase()+e))}(r):String(r).trim();s!==r&&delete n[r],n[s]=Bn(i),e[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pt.forEach(this,((e,i)=>{null!=e&&!1!==e&&(n[i]=t&&pt.isArray(e)?e.join(", "):e)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,n])=>t+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach((t=>e.set(t))),e}static accessor(t){const n=(this[Mn]=this[Mn]={accessors:{}}).accessors,e=this.prototype;function i(t){const i=Hn(t);n[i]||(function(t,n){const e=pt.toCamelCase(" "+n);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+e,{value:function(t,e,r){return this[i].call(this,n,t,e,r)},configurable:!0})}))}(e,t),n[i]=!0)}return pt.isArray(t)?t.forEach(i):i(t),this}};function Ln(t,n){const e=this||Dn,i=n||e,r=Un.from(i.headers);let o=i.data;return pt.forEach(t,(function(t){o=t.call(e,o,r.normalize(),n?n.status:void 0)})),r.normalize(),o}function Wn(t){return!(!t||!t.m)}function Jn(t,n,e){dn.call(this,null==t?"canceled":t,dn.ERR_CANCELED,n,e),this.name="CanceledError"}function Fn(t,n,e){const i=e.config.validateStatus;e.status&&i&&!i(e.status)?n(new dn("Request failed with status code "+e.status,[dn.ERR_BAD_REQUEST,dn.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}Un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pt.reduceDescriptors(Un.prototype,(({value:t},n)=>{let e=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[e]=t}}})),pt.freezeMethods(Un),pt.inherits(Jn,dn,{m:!0});const Kn=(t,n,e=3)=>{let i=0;const r=function(t,n){t=t||10;const e=new Array(t),i=new Array(t);let r,o=0,s=0;return n=void 0!==n?n:1e3,function(a){const c=Date.now(),h=i[s];r||(r=c),e[o]=a,i[o]=c;let u=s,l=0;for(;u!==o;)l+=e[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-r<n)return;const d=h&&c-h;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(t,n){let e,i,r=0,o=1e3/n;const s=(n,o=Date.now())=>{r=o,e=null,i&&(clearTimeout(i),i=null),t.apply(null,n)};return[(...t)=>{const n=Date.now(),a=n-r;a>=o?s(t,n):(e=t,i||(i=setTimeout((()=>{i=null,s(e)}),o-a)))},()=>e&&s(e)]}((e=>{const o=e.loaded,s=e.lengthComputable?e.total:void 0,a=o-i,c=r(a);i=o,t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:e,lengthComputable:null!=s,[n?"download":"upload"]:!0})}),e)},qn=(t,n)=>{const e=null!=t;return[i=>n[0]({lengthComputable:e,total:t,loaded:i}),n[1]]},Vn=t=>(...n)=>pt.asap((()=>t(...n)));var Yn=On.hasStandardBrowserEnv?((t,n)=>e=>(e=new URL(e,On.origin),t.protocol===e.protocol&&t.host===e.host&&(n||t.port===e.port)))(new URL(On.origin),On.navigator&&/(msie|trident)/i.test(On.navigator.userAgent)):()=>!0,Xn=On.hasStandardBrowserEnv?{write(t,n,e,i,r,o){const s=[t+"="+encodeURIComponent(n)];pt.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),pt.isString(i)&&s.push("path="+i),pt.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gn(t,n,e){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);return t&&i||0==e?function(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}(t,n):n}const Zn=t=>t instanceof Un?{...t}:t;function Qn(t,n){n=n||{};const e={};function i(t,n,e,i){return pt.isPlainObject(t)&&pt.isPlainObject(n)?pt.merge.call({caseless:i},t,n):pt.isPlainObject(n)?pt.merge({},n):pt.isArray(n)?n.slice():n}function r(t,n,e,r){return pt.isUndefined(n)?pt.isUndefined(t)?void 0:i(void 0,t,0,r):i(t,n,0,r)}function o(t,n){if(!pt.isUndefined(n))return i(void 0,n)}function s(t,n){return pt.isUndefined(n)?pt.isUndefined(t)?void 0:i(void 0,t):i(void 0,n)}function a(e,r,o){return o in n?i(e,r):o in t?i(void 0,e):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,n,e)=>r(Zn(t),Zn(n),0,!0)};return pt.forEach(Object.keys(Object.assign({},t,n)),(function(i){const o=c[i]||r,s=o(t[i],n[i],i);pt.isUndefined(s)&&o!==a||(e[i]=s)})),e}var te=t=>{const n=Qn({},t);let e,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=n;if(n.headers=a=Un.from(a),n.url=Sn(Gn(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pt.isFormData(i))if(On.hasStandardBrowserEnv||On.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){const[t,...n]=e?e.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...n].join("; "))}if(On.hasStandardBrowserEnv&&(r&&pt.isFunction(r)&&(r=r(n)),r||!1!==r&&Yn(n.url))){const t=o&&s&&Xn.read(s);t&&a.set(o,t)}return n},ne="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(n,e){const i=te(t);let r=i.data;const o=Un.from(i.headers).normalize();let s,a,c,h,u,{responseType:l,onUploadProgress:d,onDownloadProgress:f}=i;function p(){h&&h(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=Un.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Fn((function(t){n(t),p()}),(function(t){e(t),p()}),{data:l&&"text"!==l&&"json"!==l?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:t,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(e(new dn("Request aborted",dn.ECONNABORTED,t,m)),m=null)},m.onerror=function(){e(new dn("Network Error",dn.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||En;i.timeoutErrorMessage&&(n=i.timeoutErrorMessage),e(new dn(n,r.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,t,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&pt.forEach(o.toJSON(),(function(t,n){m.setRequestHeader(n,t)})),pt.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&"json"!==l&&(m.responseType=i.responseType),f&&([c,u]=Kn(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,h]=Kn(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(s=n=>{m&&(e(!n||n.type?new Jn(null,t,m):n),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const v=function(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}(i.url);v&&-1===On.protocols.indexOf(v)?e(new dn("Unsupported protocol "+v+":",dn.ERR_BAD_REQUEST,t)):m.send(r||null)}))};const ee=(t,n)=>{const{length:e}=t=t?t.filter(Boolean):[];if(n||e){let e,i=new AbortController;const r=function(t){if(!e){e=!0,s();const n=t instanceof Error?t:this.reason;i.abort(n instanceof dn?n:new Jn(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,r(new dn(`timeout ${n} of ms exceeded`,dn.ETIMEDOUT))}),n);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=()=>pt.asap(s),a}},ie=function*(t,n){let e=t.byteLength;if(e<n)return void(yield t);let i,r=0;for(;r<e;)i=r+n,yield t.slice(r,i),r=i},re=(t,n,e,i)=>{const r=async function*(t,n){for await(const e of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const n=t.getReader();try{for(;;){const{done:t,value:e}=await n.read();if(t)break;yield e}}finally{await n.cancel()}}(t))yield*ie(e,n)}(t,n);let o,s=0,a=t=>{o||(o=!0,i&&i(t))};return new ReadableStream({async pull(t){try{const{done:n,value:i}=await r.next();if(n)return a(),void t.close();let o=i.byteLength;if(e){let t=s+=o;e(t)}t.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel:t=>(a(t),r.return())},{highWaterMark:2})},oe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,se=oe&&"function"==typeof ReadableStream,ae=oe&&("function"==typeof TextEncoder?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ce=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},he=se&&ce((()=>{let t=!1;const n=new Request(On.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})),ue=se&&ce((()=>pt.isReadableStream(new Response("").body))),le={stream:ue&&(t=>t.body)};var de;oe&&(de=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!le[t]&&(le[t]=pt.isFunction(de[t])?n=>n[t]():(n,e)=>{throw new dn(`Response type '${t}' is not supported`,dn.ERR_NOT_SUPPORT,e)})})));const fe={http:null,xhr:ne,fetch:oe&&(async t=>{let{url:n,method:e,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:h,headers:u,withCredentials:l="same-origin",fetchOptions:d}=te(t);h=h?(h+"").toLowerCase():"text";let f,p=ee([r,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&he&&"get"!==e&&"head"!==e&&0!==(g=await(async(t,n)=>{const e=pt.toFiniteNumber(t.getContentLength());return null==e?(async t=>{if(null==t)return 0;if(pt.isBlob(t))return t.size;if(pt.isSpecCompliantForm(t)){const n=new Request(On.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return pt.isArrayBufferView(t)||pt.isArrayBuffer(t)?t.byteLength:(pt.isURLSearchParams(t)&&(t+=""),pt.isString(t)?(await ae(t)).byteLength:void 0)})(n):e})(u,i))){let t,e=new Request(n,{method:"POST",body:i,duplex:"half"});if(pt.isFormData(i)&&(t=e.headers.get("content-type"))&&u.setContentType(t),e.body){const[t,n]=qn(g,Kn(Vn(c)));i=re(e.body,65536,t,n)}}pt.isString(l)||(l=l?"include":"omit");const r="credentials"in Request.prototype;f=new Request(n,{...d,signal:p,method:e.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:r?l:void 0});let o=await fetch(f);const s=ue&&("stream"===h||"response"===h);if(ue&&(a||s&&m)){const t={};["status","statusText","headers"].forEach((n=>{t[n]=o[n]}));const n=pt.toFiniteNumber(o.headers.get("content-length")),[e,i]=a&&qn(n,Kn(Vn(a),!0))||[];o=new Response(re(o.body,65536,e,(()=>{i&&i(),m&&m()})),t)}h=h||"text";let v=await le[pt.findKey(le,h)||"text"](o,t);return!s&&m&&m(),await new Promise(((n,e)=>{Fn(n,e,{data:v,headers:Un.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:f})}))}catch(n){if(m&&m(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new dn("Network Error",dn.ERR_NETWORK,t,f),{cause:n.cause||n});throw dn.from(n,n&&n.code,t,f)}})};pt.forEach(fe,((t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}}));const pe=t=>`- ${t}`,me=t=>pt.isFunction(t)||null===t||!1===t;var ge=t=>{t=pt.isArray(t)?t:[t];const{length:n}=t;let e,i;const r={};for(let o=0;o<n;o++){let n;if(e=t[o],i=e,!me(e)&&(i=fe[(n=String(e)).toLowerCase()],void 0===i))throw new dn(`Unknown adapter '${n}'`);if(i)break;r[n||"#"+o]=i}if(!i){const t=Object.entries(r).map((([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new dn("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(pe).join("\n"):" "+pe(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function ve(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Jn(null,t)}function be(t){return ve(t),t.headers=Un.from(t.headers),t.data=Ln.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ge(t.adapter||Dn.adapter)(t).then((function(n){return ve(t),n.data=Ln.call(t,t.transformResponse,n),n.headers=Un.from(n.headers),n}),(function(n){return Wn(n)||(ve(t),n&&n.response&&(n.response.data=Ln.call(t,t.transformResponse,n.response),n.response.headers=Un.from(n.response.headers))),Promise.reject(n)}))}const we={};["object","boolean","number","function","string","symbol"].forEach(((t,n)=>{we[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}));const ye={};we.transitional=function(t,n,e){function i(t,n){return"[Axios v1.8.3] Transitional option '"+t+"'"+n+(e?". "+e:"")}return(e,r,o)=>{if(!1===t)throw new dn(i(r," has been removed"+(n?" in "+n:"")),dn.ERR_DEPRECATED);return n&&!ye[r]&&(ye[r]=!0,console.warn(i(r," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(e,r,o)}},we.spelling=function(t){return(n,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};var xe={assertOptions:function(t,n,e){if("object"!=typeof t)throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=n[o];if(s){const n=t[o],e=void 0===n||s(n,o,t);if(!0!==e)throw new dn("option "+o+" must be "+e,dn.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new dn("Unknown option "+o,dn.ERR_BAD_OPTION)}},validators:we};const _e=xe.validators;let $e=class{constructor(t){this.defaults=t,this.interceptors={request:new kn,response:new kn}}async request(t,n){try{return await this.v(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const e=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?e&&!String(t.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+e):t.stack=e}catch(t){}}throw t}}v(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=Qn(this.defaults,n);const{transitional:e,paramsSerializer:i,headers:r}=n;void 0!==e&&xe.assertOptions(e,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=i&&(pt.isFunction(i)?n.paramsSerializer={serialize:i}:xe.assertOptions(i,{encode:_e.function,serialize:_e.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xe.assertOptions(n,{baseUrl:_e.spelling("baseURL"),withXsrfToken:_e.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&pt.merge(r.common,r[n.method]);r&&pt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),n.headers=Un.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(n)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let h;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let u,l=0;if(!a){const t=[be.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),u=t.length,h=Promise.resolve(n);l<u;)h=h.then(t[l++],t[l++]);return h}u=s.length;let d=n;for(l=0;l<u;){const t=s[l++],n=s[l++];try{d=t(d)}catch(t){n.call(this,t);break}}try{h=be.call(this,d)}catch(t){return Promise.reject(t)}for(l=0,u=c.length;l<u;)h=h.then(c[l++],c[l++]);return h}getUri(t){return Sn(Gn((t=Qn(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}};pt.forEach(["delete","get","head","options"],(function(t){$e.prototype[t]=function(n,e){return this.request(Qn(e||{},{method:t,url:n,data:(e||{}).data}))}})),pt.forEach(["post","put","patch"],(function(t){function n(n){return function(e,i,r){return this.request(Qn(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:i}))}}$e.prototype[t]=n(),$e.prototype[t+"Form"]=n(!0)}));const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach((([t,n])=>{Se[n]=t}));const ke=function t(n){const e=new $e(n),i=T($e.prototype.request,e);return pt.extend(i,$e.prototype,e,{allOwnKeys:!0}),pt.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return t(Qn(n,e))},i}(Dn);ke.Axios=$e,ke.CanceledError=Jn,ke.CancelToken=class t{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(t){n=t}));const e=this;this.promise.then((t=>{if(!e._)return;let n=e._.length;for(;n-- >0;)e._[n](t);e._=null})),this.promise.then=t=>{let n;const i=new Promise((t=>{e.subscribe(t),n=t})).then(t);return i.cancel=function(){e.unsubscribe(n)},i},t((function(t,i,r){e.reason||(e.reason=new Jn(t,i,r),n(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._?this._.push(t):this._=[t]}unsubscribe(t){if(!this._)return;const n=this._.indexOf(t);-1!==n&&this._.splice(n,1)}toAbortSignal(){const t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let n;return{token:new t((function(t){n=t})),cancel:n}}},ke.isCancel=Wn,ke.VERSION="1.8.3",ke.toFormData=wn,ke.AxiosError=dn,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=function(t){return function(n){return t.apply(null,n)}},ke.isAxiosError=function(t){return pt.isObject(t)&&!0===t.isAxiosError},ke.mergeConfig=Qn,ke.AxiosHeaders=Un,ke.formToJSON=t=>Pn(pt.isHTMLForm(t)?new FormData(t):t),ke.getAdapter=ge,ke.HttpStatusCode=Se,ke.default=ke;const{Axios:Ee,AxiosError:Te,CanceledError:Re,isCancel:Ae,CancelToken:Ce,VERSION:Ie,all:ze,Cancel:Oe,isAxiosError:Pe,spread:De,toFormData:je,AxiosHeaders:Me,HttpStatusCode:He,formToJSON:Be,getAdapter:Ne,mergeConfig:Ue}=ke,Le={[r.ADD_TO_CART_FROM_DETAILS]:{required:["add","cart"],optional:["details","detail","single","profile","page","pdp"]},[r.BUY_NOW]:{required:["buy","now"]},[r.EXPAND_PRODUCT]:{required:["product"],optional:["details","expand","modal","popup","quickview","view"]},[r.ADD_TO_WISHLIST]:{required:["add","wishlist"]},[r.REMOVE_FROM_CART]:{required:["remove","cart"]},[r.PURCHASE]:{required:["purchase"]},[r.ADD_TO_CART]:{required:["add","cart"]}};function We(t,n){return new RegExp(`^${n}s?$|${n}s?\\W|\\W${n}s?$|\\W${n}s?\\W`).test(` ${t} `)}function Je(t,n,e){return!!n.every((n=>t.some((t=>We(t,n)))))&&(!(null==e?void 0:e.length)||e.some((n=>t.some((t=>We(t,n))))))}function Fe(t){if(!(null==t?void 0:t.trim()))return null;const n=function(t){return t.toLowerCase().replace(/[^a-z0-9\s]+/g," ").split(/\s+/).filter(Boolean)}(t);for(const[t,{required:e,optional:i}]of Object.entries(Le))if(Je(n,e,i))return t;return null}const Ke={"ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"j","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"q","ღ":"g","ყ":"y","შ":"sh","ჩ":"ch","ც":"c","ძ":"dz","წ":"w","ჭ":"ch","ხ":"x","ჯ":"j","ჰ":"h"},qe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","Ÿ":"Y","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","œ":"oe","©":"","℗":"","ⓒ":"","®":"","™":"","℠":"","℟":"","№":"","⚖":"","†":"","‡":"","§":"","¶":"","⁂":"","※":"","‽":"","¤":"","°":"","′":"","″":"","‴":"","⁗":"","•":"","⁃":"","◊":"","⌘":"","⌥":"","⇧":"","⌃":"","⎋":"","¢":"","£":"","€":"","¥":"","₹":"","₽":"","؋":"","₮":"","₩":"","₪":"","←":"","→":"","↑":"","↓":"","✓":"","✔":"","✗":"","✘":"","♪":"","♫":"","☎":"","✉":"","⚡":"","☀":"","☁":"","☂":"","★":"","☆":"","☯":"","☮":"","☢":"","☣":"","⚠":"","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","ğ":"g","ı":"i","İ":"i","ş":"s","Ş":"S","ç":"c","Ç":"C","ü":"u","Ü":"U","ö":"o","Ö":"O","Ğ":"G","ä":"a","ö":"o","ü":"u","ß":"ss","ă":"a","î":"i","ș":"s","ț":"t","â":"a","Ă":"A","Î":"I","Ș":"S","Ț":"T","Â":"A","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z",...Ke,"à":"a","è":"e","é":"e","ì":"i","ò":"o","ù":"u","é":"e","è":"e","ê":"e","ë":"e","à":"a","â":"a","î":"i","ï":"i","ô":"o","û":"u","ù":"u","ç":"c","ã":"a","õ":"o","â":"a","ê":"e","ô":"o","å":"a","æ":"ae","ø":"o","ě":"e","ő":"o","ű":"u","ạ":"a","ả":"a","ấ":"a","ầ":"a","ẩ":"a","ẫ":"a","ậ":"a","đ":"d","đ":"d","ć":"c","č":"c","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","ų":"u","。":".","、":",","?":"?","!":"!",":":":",";":";","(":"(",")":")","《":"<","》":">","á":"a","í":"i","ó":"o","ú":"u","ñ":"n","ü":"u","á":"a","ä":"a","č":"c","ď":"d","é":"e","í":"i","ľ":"l","ĺ":"l","ň":"n","ó":"o","ô":"o","ŕ":"r","š":"s","ť":"t","ú":"u","ý":"y","ž":"z","Á":"a","Ä":"A","Č":"C","Ď":"D","É":"E","Í":"I","Ľ":"L","Ĺ":"L","Ň":"N","Ó":"O","Ô":"O","Ŕ":"R","Š":"S","Ť":"T","Ú":"U","Ý":"Y","Ž":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z","ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"I","Ķ":"K","Ļ":"L","Ņ":"N","Š":"S","Ū":"U","Ž":"Z","أ":"a","ب":"b","ت":"t","ث":"th","ج":"g","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"d","ط":"t","ظ":"th","ع":"aa","غ":"gh","ف":"f","ق":"k","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"o","ي":"y","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U","Ž":"Z","ђ":"dj","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","đ":"dj","Ђ":"Dj","Ј":"j","Љ":"Lj","Њ":"Nj","Ћ":"C","Џ":"Dz","Đ":"Dj","ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U",...Ke,"■":"","□":"","▢":"","▣":"","▤":"","▥":"","▦":"","▧":"","▨":"","▩":"","▪":"","▫":"","▬":"","▭":"","▮":"","▯":"","▰":"","▱":"","▲":"","△":"","▴":"","▵":"","▶":"","▷":"","▸":"","▹":"","►":"","▻":"","▼":"","▽":"","▾":"","▿":"","◀":"","◁":"","◂":"","◃":"","◄":"","◅":"","◆":"","◇":"","◈":"","◉":"","◊":"","○":"","◌":"","◍":"","◎":"","●":"","◐":"","◑":"","◒":"","◓":"","◔":"","◕":"","◖":"","◗":"","◘":"","◙":"","◚":"","◛":"","◜":"","◝":"","◞":"","◟":"","◠":"","◡":"","◢":"","◣":"","◤":"","◥":"","◦":"","◧":"","◨":"","◩":"","◪":"","◫":"","◬":"","◭":"","◮":"","◯":"","◰":"","◱":"","◲":"","◳":"","◴":"","◵":"","◶":"","◷":"","◸":"","◹":"","◺":"","◻":"","◼":"","◽":"","◾":"","◿":"","▀":"","▁":"","▂":"","▃":"","▄":"","▅":"","▆":"","▇":"","█":"","▉":"","▊":"","▋":"","▌":"","▍":"","▎":"","▏":"","▐":"","░":"","▒":"","▓":"","▔":"","▕":"","▖":"","▗":"","▘":"","▙":"","▚":"","▛":"","▜":"","▝":"","▞":"","▟":"","─":"","│":"","┌":"","┐":"","└":"","┘":"","├":"","┤":"","┬":"","┴":"","┼":"","═":"","║":"","╒":"","╓":"","╔":"","╕":"","╖":"","╗":"","╘":"","╙":"","╚":"","╛":"","╜":"","╝":"","╞":"","╟":"","╠":"","╡":"","╢":"","╣":"","╤":"","╥":"","╦":"","╧":"","╨":"","╩":"","╪":"","╫":"","╬":"","⑀":"","⑁":"","⑂":"","⑃":"","⑄":"","⑅":"","⑆":"","⑇":"","⑈":"","⑉":"","⑊":"","␀":"","␁":"","␂":"","␃":"","␄":"","␅":"","␆":"","␇":"","␈":"","␉":"","␊":"","␋":"","␌":"","␍":"","␎":"","␏":"","␐":"","␑":"","␒":"","␓":"","␔":"","␕":"","␖":"","␗":"","␘":"","␙":"","␚":"","␛":"","␜":"","␝":"","␞":"","␟":"","␠":"","␡":"","⌀":"","⌁":"","⌂":"","⌃":"","⌄":"","⌅":"","⌆":"","⌇":"","⌈":"","⌉":"","⌊":"","⌋":"","⌌":"","⌍":"","⌎":"","⌏":"","⌐":"","⌑":"","⌒":"","⌓":"","⌔":"","⌕":"","⌖":"","⌗":"","⌘":"","⌙":"","⌚":"","⌛":"","⌜":"","⌝":"","⌞":"","⌟":"","⌠":"","⌡":"","⌢":"","⌣":"","⌤":"","⌥":"","⌦":"","⌧":"","⌨":"","⌫":"","⌬":"","⌭":"","⌮":"","⌯":"","−":"","∕":"","∖":"","∗":"","∘":"","∙":"","√":"","∛":"","∜":"","∝":"","∞":"","∟":"","∠":"","∥":"","∧":"","∨":"","∩":"","∪":"","∫":"","∬":"","∭":"","∮":"","∯":"","∰":"","∱":"","∲":"","∳":"","∴":"","∵":"","∶":"","∷":"","∸":"","∹":"","∺":"","∻":"","∼":"","∽":"","∾":"","≀":"","≁":"","≂":"","≃":"","≄":"","≅":"","π":"","≆":"","≇":"","≈":"","≉":"","≊":"","≋":"","≌":"","≍":"","≎":"","≏":"","≐":"","≑":"","≒":"","≓":"","≔":"","≕":"","≖":"","≙":"","≚":"","≛":"","≜":"","≝":"","≞":"","≟":"","≠":"","≡":"","≢":"","≣":"","≤":"","≥":"","≦":"","≧":"","≨":"","≩":"","≪":"","≫":"","≬":"","≭":"","≮":"","≯":"","≰":"","≱":"","≲":"","≳":"","≴":"","≵":"","≶":"","≷":"","≸":"","≹":"","≺":"","≻":"","≼":"","≽":"","≾":"","≿":"","⊀":"","⊁":"","⊂":"","⊃":"","⊄":"","⊅":"","⊆":"","⊇":"","⊈":"","⊉":"","⊊":"","⊋":"","⊌":"","⊍":"","⊎":"","⊏":"","⊐":"","⊑":"","⊒":"","⊓":"","⊔":"","⊕":"","⊖":"","⊗":"","⊘":"","⊙":"","⊚":"","⊛":"","⊜":"","⊝":"","⊞":"","⊟":"","⊠":"","⊡":"","⁰":"","¹":"","²":"","³":"","⁴":"","⁵":"","⁶":"","⁷":"","⁸":"","⁹":"","⁺":"","⁻":"","⁼":"","⁽":"","⁾":"","ⁿ":"","₀":"","₁":"","₂":"","₃":"","₄":"","₅":"","₆":"","₇":"","₈":"","₉":"","₊":"","₋":"","₌":"","₍":"","₎":"","⅓":"","⅔":"","⅕":"","⅖":"","⅗":"","⅘":"","⅙":"","⅚":"","⅛":"","⅜":"","⅝":"","⅞":"","⅟":"","℀":"","℁":"","℃":"","℅":"","℆":"","℉":"","№":"","℗":"","℠":"","℡":"","™":"","℮":"","ℯ":"","ℰ":"","ℱ":"","Ⅎ":"","ℳ":"","ℴ":"","ℵ":"","ℶ":"","ℷ":"","ℸ":"","℘":"","₠":"","₡":"","₢":"","₣":"","₤":"","₥":"","₦":"","₧":"","₨":"","₩":"","₪":"","₫":"","€":"","₭":"","₮":"","₯":"","₰":"","₱":"","₲":"","₳":"","₴":"","₵":"","₶":"","₷":"","₸":"","₹":"","₺":"","₻":"","₼":"","₽":"","₾":"","\n":"","\t":"","\r":"","\r\n":""," ":""," ":""," ":"","\0":"","":"","":"","€":"","Ÿ":"","̀":"","́":"","̂":"","̃":"","̄":"","̅":"","̆":"","̇":"","̈":"","̉":"","̊":"","̋":"","̌":"","̍":"","̎":"","̏":"","̐":"","̑":"","̒":"","̓":"","̔":"","̕":"","̖":"","̗":"","̘":"","̙":"","̚":"","̛":"","̜":"","̝":"","̞":"","̟":"","̠":"","̡":"","̢":"","̣":"","̤":"","̥":"","̦":"","̧":"","̨":"","̩":"","̪":"","̫":"","̬":"","̭":"","̮":"","̯":"","̰":"","̱":"","̲":"","̳":"","̴":"","̵":"","̶":"","̷":"","̸":"","̹":"","̺":"","̻":"","̼":"","̽":"","̾":"","̿":"","̀":"","́":"","͂":"","̓":"","̈́":"","ͅ":"","͆":"","͇":"","͈":"","͉":"","͊":"","͋":"","͌":"","͍":"","͎":"","͏":"","–":"","—":"","‘":"","’":"","“":"","”":"","„":"","†":"","‡":"","•":"","‥":"","…":"","‰":"","‱":"","′":"","″":"","‴":"","‵":"","‶":"","‷":"","‹":"","›":"","‼":"","‾":"","⁄":"","⁎":"","⁏":"","⁐":"","⁗":"","Nº":"No"};class Ve{constructor(){this.characterMaps=qe,this.regex=new RegExp(Object.keys(this.characterMaps).join("|"),"g")}static getInstance(){return Ve.instance||(Ve.instance=new Ve),Ve.instance}normalize(t){if(!t)return"";let n=t.replace(this.regex,(t=>this.characterMaps[t]||t));return n=n.replace(/[^a-zA-Z0-9\s]/g,""),n=n.toLowerCase(),n=n.replace(/\s+/g," "),n=n.trim(),n=this.removeLeadingZerosIfNumber(n),n}removeLeadingZerosIfNumber(t){return isNaN(Number(t))?t:/^0+$/.test(t)?"0":t.replace(/^0+/,"")}}class Ye{static getInstance(t,n){this.instances.has(t)||this.instances.set(t,n());const e=this.instances.get(t);if(!e)throw new Error(`RmnSdk: Instance for class ${t} could not be created.`);return e}}Ye.instances=new Map;class Xe{static getInstance(){return Ye.getInstance("ObjectHelper",(()=>new Xe))}merge(t,...n){for(const e of n)this.mergeValue(t,e);return t}values(t){return Object.values(t)}includes(t,n){return n in t}valuesIncludes(t,n){return Object.values(t).includes(n)}hasAllValues(t,n){const e=Object.keys(t);return n.every((t=>e.includes(t)))}isArray(t){return"[object Array]"===Object.prototype.toString.call(t)}mergeValue(t,n){var e;return this.isArray(n)?this.mergeArrayValues(t,n):"object"==typeof n?this.mergeObjectValues(t,n):null!==(e=null!=n?n:t)&&void 0!==e?e:void 0}mergeArrayValues(t,n){if(!this.isArray(t))return[...n];const e=t;for(let t=0,i=n.length;t<i;t++)e[t]=this.mergeValue(e[t],n[t]);return e}mergeObjectValues(t,n){return t&&"object"==typeof t?(this.innerMerge(t,n),t):n?{...n}:n}innerMerge(t,n){for(const e of Object.keys(n))t[e]=this.mergeValue(t[e],n[e])}}function Ge(t){try{return JSON.parse(atob(t))}catch(t){return null}}async function Ze({spotType:t,event:e,eventUrl:i}){const o=()=>{if(e===r.CLICK&&t!==n.RB_VIDEO_PLAYER){const t=function(t){if(!t)return null;try{const n=new URL(t).searchParams.get("p");if(!n)return null;const e=Ge(n);if(!(null==e?void 0:e.u))return null;const i=new URLSearchParams(e.u).get("e");if(!i)return null;const r=Ge(i);return(null==r?void 0:r.ur)||null}catch(t){return console.warn("LiquidCommerce Rmn Sdk: Failed to extract redirect URL from payload."),null}}(i);t&&(window.location.href=t)}};try{if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon)return s=i,null===(a=null===navigator||void 0===navigator?void 0:navigator.sendBeacon)||void 0===a||a.call(navigator,s),void o();if("undefined"!=typeof fetch)return function(t){try{return null===fetch||void 0===fetch||fetch(t,{method:"POST",keepalive:!0}).catch((()=>!1)),!0}catch(t){return!1}}(i),void o();!function(t){try{const n=new XMLHttpRequest;return n.onload=()=>n.status>=200&&n.status<300,n.onerror=()=>!1,n.ontimeout=()=>!1,n.open("POST",t,!0),n.send(),!0}catch(t){return!1}}(i),o()}catch(a){}var s,a}class Qe{static initialize(t=Math.floor(1024*Math.random())){if(t<0||t>=1<<this.nodeBits)throw new Error("Node ID must be between 0 and "+((1<<this.nodeBits)-1));this.nodeId=t}static toBase32(t,n){let e="";for(;t>0;)e=this.base32Chars[Number(t%BigInt(32))]+e,t/=32n;return e.padStart(n,"0")}static getSecureRandom(){if("undefined"!=typeof crypto){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}return Math.floor(4294967295*Math.random())}static waitNextMillis(t){let n=Date.now();for(;n<=t;)n=Date.now();return n}static generate(){void 0===this.nodeId&&this.initialize();let t=Date.now()-this.epoch;if(t<this.lastTimestamp)throw new Error("Clock moved backwards. Refusing to generate ID.");t===this.lastTimestamp?(this.sequence=this.sequence+1&(1<<this.sequenceBits)-1,0===this.sequence&&(t=this.waitNextMillis(this.lastTimestamp))):this.sequence=0,this.lastTimestamp=t;const n=65535&this.getSecureRandom();return`${this.toBase32(BigInt(t),10)}${this.toBase32(BigInt(this.sequence),4)}${this.toBase32(BigInt(this.nodeId),5)}${this.toBase32(BigInt(n),4)}`}static isValid(t){if(!/^[0-9A-HJ-NP-Z]{23}$/.test(t))return!1;try{const n=t.slice(0,10),e=this.decodeBase32(n),i=Date.now()-this.epoch;return e>=0&&e<=i}catch(t){return!1}}static decodeBase32(t){let n=0;for(const e of t)n=32*n+this.base32Chars.indexOf(e);return n}static getTimestamp(t){if(!this.isValid(t))throw new Error("Invalid ID format");const n=t.slice(0,10),e=this.decodeBase32(n);return new Date(e+this.epoch)}}Qe.epoch=15778368e5,Qe.nodeBits=10,Qe.sequenceBits=12,Qe.lastTimestamp=-1,Qe.sequence=0,Qe.base32Chars="0123456789ABCDEFGHJKMNPQRSTVWXYZ";var ti="undefined"!=typeof globalThis?globalThis:window;function ni(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if("function"==typeof n){var e=function t(){return this instanceof t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"$",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var ei,ii={exports:{}},ri={exports:{}},oi=ni(Object.freeze({__proto__:null,default:{}}));function si(){return ei||(ei=1,function(t){var n;t.exports=(n=n||function(t){var n;if(window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==ti&&ti.crypto&&(n=ti.crypto),!n)try{n=oi}catch(t){}var e=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),r={},o=r.lib={},s=o.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var n=this.words,e=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=e[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a<r;a+=4)n[i+a>>>2]=e[a>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(e());return new a.init(n,t)}}),c=r.enc={},h=c.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(e,n/2)}},u=c.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,e=[],i=0;i<n;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(e,n)}},l=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},d=o.BufferedBlockAlgorithm=s.extend({reset:function(){this.S=new a.init,this.T=0},R:function(t){"string"==typeof t&&(t=l.parse(t)),this.S.concat(t),this.T+=t.sigBytes},A:function(n){var e,i=this.S,r=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),h=(c=n?t.ceil(c):t.max((0|c)-this.C,0))*s,u=t.min(4*h,o);if(h){for(var l=0;l<h;l+=s)this.I(r,l);e=r.splice(0,h),i.sigBytes-=u}return new a.init(e,u)},clone:function(){var t=s.clone.call(this);return t.S=this.S.clone(),t},C:0});o.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this.O()},update:function(t){return this.R(t),this.A(),this},finalize:function(t){return t&&this.R(t),this.P()},blockSize:16,D:function(t){return function(n,e){return new t.init(e).finalize(n)}},j:function(t){return function(n,e){return new f.HMAC.init(t,e).finalize(n)}}});var f=r.algo={};return r}(Math),n)}(ri)),ri.exports}var ai,ci={exports:{}};function hi(){return ai||(ai=1,function(t){var n,e,i,r,o,s;t.exports=(e=(n=s=si()).lib,i=e.Base,r=e.WordArray,(o=n.x64={}).Word=i.extend({init:function(t,n){this.high=t,this.low=n}}),o.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:8*t.length},toX32:function(){for(var t=this.words,n=t.length,e=[],i=0;i<n;i++){var o=t[i];e.push(o.high),e.push(o.low)}return r.create(e,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),n=t.words=this.words.slice(0),e=n.length,r=0;r<e;r++)n[r]=n[r].clone();return t}}),s)}(ci)),ci.exports}var ui,li,di,fi={exports:{}},pi={exports:{}},mi={exports:{}};function gi(){return di||(di=1,function(t){var n,e,i;t.exports=(n=si(),i=(e=n).lib.WordArray,e.enc.Base64={stringify:function(t){var n=t.words,e=t.sigBytes,i=this.M;t.clamp();for(var r=[],o=0;o<e;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<e;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var n=t.length,e=this.M,r=this.H;if(!r){r=this.H=[];for(var o=0;o<e.length;o++)r[e.charCodeAt(o)]=o}var s=e.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(n=a)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,n,r)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}(mi)),mi.exports}var vi,bi={exports:{}};var wi,yi={exports:{}};function xi(){return wi||(wi=1,function(t){var n;t.exports=(n=si(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[];!function(){for(var n=0;n<64;n++)a[n]=4294967296*t.abs(t.sin(n+1))|0}();var c=s.MD5=o.extend({O:function(){this.B=new r.init([1732584193,4023233417,2562383102,271733878])},I:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this.B.words,s=t[n+0],c=t[n+1],f=t[n+2],p=t[n+3],m=t[n+4],g=t[n+5],v=t[n+6],b=t[n+7],w=t[n+8],y=t[n+9],x=t[n+10],_=t[n+11],$=t[n+12],S=t[n+13],k=t[n+14],E=t[n+15],T=o[0],R=o[1],A=o[2],C=o[3];T=h(T,R,A,C,s,7,a[0]),C=h(C,T,R,A,c,12,a[1]),A=h(A,C,T,R,f,17,a[2]),R=h(R,A,C,T,p,22,a[3]),T=h(T,R,A,C,m,7,a[4]),C=h(C,T,R,A,g,12,a[5]),A=h(A,C,T,R,v,17,a[6]),R=h(R,A,C,T,b,22,a[7]),T=h(T,R,A,C,w,7,a[8]),C=h(C,T,R,A,y,12,a[9]),A=h(A,C,T,R,x,17,a[10]),R=h(R,A,C,T,_,22,a[11]),T=h(T,R,A,C,$,7,a[12]),C=h(C,T,R,A,S,12,a[13]),A=h(A,C,T,R,k,17,a[14]),T=u(T,R=h(R,A,C,T,E,22,a[15]),A,C,c,5,a[16]),C=u(C,T,R,A,v,9,a[17]),A=u(A,C,T,R,_,14,a[18]),R=u(R,A,C,T,s,20,a[19]),T=u(T,R,A,C,g,5,a[20]),C=u(C,T,R,A,x,9,a[21]),A=u(A,C,T,R,E,14,a[22]),R=u(R,A,C,T,m,20,a[23]),T=u(T,R,A,C,y,5,a[24]),C=u(C,T,R,A,k,9,a[25]),A=u(A,C,T,R,p,14,a[26]),R=u(R,A,C,T,w,20,a[27]),T=u(T,R,A,C,S,5,a[28]),C=u(C,T,R,A,f,9,a[29]),A=u(A,C,T,R,b,14,a[30]),T=l(T,R=u(R,A,C,T,$,20,a[31]),A,C,g,4,a[32]),C=l(C,T,R,A,w,11,a[33]),A=l(A,C,T,R,_,16,a[34]),R=l(R,A,C,T,k,23,a[35]),T=l(T,R,A,C,c,4,a[36]),C=l(C,T,R,A,m,11,a[37]),A=l(A,C,T,R,b,16,a[38]),R=l(R,A,C,T,x,23,a[39]),T=l(T,R,A,C,S,4,a[40]),C=l(C,T,R,A,s,11,a[41]),A=l(A,C,T,R,p,16,a[42]),R=l(R,A,C,T,v,23,a[43]),T=l(T,R,A,C,y,4,a[44]),C=l(C,T,R,A,$,11,a[45]),A=l(A,C,T,R,E,16,a[46]),T=d(T,R=l(R,A,C,T,f,23,a[47]),A,C,s,6,a[48]),C=d(C,T,R,A,b,10,a[49]),A=d(A,C,T,R,k,15,a[50]),R=d(R,A,C,T,g,21,a[51]),T=d(T,R,A,C,$,6,a[52]),C=d(C,T,R,A,p,10,a[53]),A=d(A,C,T,R,x,15,a[54]),R=d(R,A,C,T,c,21,a[55]),T=d(T,R,A,C,w,6,a[56]),C=d(C,T,R,A,E,10,a[57]),A=d(A,C,T,R,v,15,a[58]),R=d(R,A,C,T,S,21,a[59]),T=d(T,R,A,C,m,6,a[60]),C=d(C,T,R,A,_,10,a[61]),A=d(A,C,T,R,f,15,a[62]),R=d(R,A,C,T,y,21,a[63]),o[0]=o[0]+T|0,o[1]=o[1]+R|0,o[2]=o[2]+A|0,o[3]=o[3]+C|0},P:function(){var n=this.S,e=n.words,i=8*this.T,r=8*n.sigBytes;e[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),s=i;e[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.sigBytes=4*(e.length+1),this.A();for(var a=this.B,c=a.words,h=0;h<4;h++){var u=c[h];c[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=o.clone.call(this);return t.B=this.B.clone(),t}});function h(t,n,e,i,r,o,s){var a=t+(n&e|~n&i)+r+s;return(a<<o|a>>>32-o)+n}function u(t,n,e,i,r,o,s){var a=t+(n&i|e&~i)+r+s;return(a<<o|a>>>32-o)+n}function l(t,n,e,i,r,o,s){var a=t+(n^e^i)+r+s;return(a<<o|a>>>32-o)+n}function d(t,n,e,i,r,o,s){var a=t+(e^(n|~i))+r+s;return(a<<o|a>>>32-o)+n}e.MD5=o.D(c),e.HmacMD5=o.j(c)}(Math),n.MD5)}(yi)),yi.exports}var _i,$i={exports:{}};function Si(){return _i||(_i=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(e=(n=c=si()).lib,i=e.WordArray,r=e.Hasher,o=n.algo,s=[],a=o.SHA1=r.extend({O:function(){this.B=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(t,n){for(var e=this.B.words,i=e[0],r=e[1],o=e[2],a=e[3],c=e[4],h=0;h<80;h++){if(h<16)s[h]=0|t[n+h];else{var u=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=u<<1|u>>>31}var l=(i<<5|i>>>27)+c+s[h];l+=h<20?1518500249+(r&o|~r&a):h<40?1859775393+(r^o^a):h<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,c=a,a=o,o=r<<30|r>>>2,r=i,i=l}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=Math.floor(e/4294967296),n[15+(i+64>>>9<<4)]=e,t.sigBytes=4*n.length,this.A(),this.B},clone:function(){var t=r.clone.call(this);return t.B=this.B.clone(),t}}),n.SHA1=r.D(a),n.HmacSHA1=r.j(a),c.SHA1)}($i)),$i.exports}var ki,Ei={exports:{}};function Ti(){return ki||(ki=1,function(t){var n;t.exports=(n=si(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.algo,a=[],c=[];!function(){function n(n){for(var e=t.sqrt(n),i=2;i<=e;i++)if(!(n%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)n(i)&&(r<8&&(a[r]=e(t.pow(i,.5))),c[r]=e(t.pow(i,1/3)),r++),i++}();var h=[],u=s.SHA256=o.extend({O:function(){this.B=new r.init(a.slice(0))},I:function(t,n){for(var e=this.B.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],l=e[6],d=e[7],f=0;f<64;f++){if(f<16)h[f]=0|t[n+f];else{var p=h[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=h[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;h[f]=m+h[f-7]+v+h[f-16]}var b=i&r^i&o^r&o,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&l)+c[f]+h[f];d=l,l=u,u=a,a=s+y|0,s=o,o=r,r=i,i=y+(w+b)|0}e[0]=e[0]+i|0,e[1]=e[1]+r|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+u|0,e[6]=e[6]+l|0,e[7]=e[7]+d|0},P:function(){var n=this.S,e=n.words,i=8*this.T,r=8*n.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=t.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,n.sigBytes=4*e.length,this.A(),this.B},clone:function(){var t=o.clone.call(this);return t.B=this.B.clone(),t}});e.SHA256=o.D(u),e.HmacSHA256=o.j(u)}(Math),n.SHA256)}(Ei)),Ei.exports}var Ri,Ai,Ci={exports:{}},Ii={exports:{}};function zi(){return Ai||(Ai=1,function(t){var n;t.exports=(n=si(),hi(),function(){var t=n,e=t.lib.Hasher,i=t.x64,r=i.Word,o=i.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],h=[];!function(){for(var t=0;t<80;t++)h[t]=a()}();var u=s.SHA512=e.extend({O:function(){this.B=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},I:function(t,n){for(var e=this.B.words,i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],u=e[5],l=e[6],d=e[7],f=i.high,p=i.low,m=r.high,g=r.low,v=o.high,b=o.low,w=s.high,y=s.low,x=a.high,_=a.low,$=u.high,S=u.low,k=l.high,E=l.low,T=d.high,R=d.low,A=f,C=p,I=m,z=g,O=v,P=b,D=w,j=y,M=x,H=_,B=$,N=S,U=k,L=E,W=T,J=R,F=0;F<80;F++){var K,q,V=h[F];if(F<16)q=V.high=0|t[n+2*F],K=V.low=0|t[n+2*F+1];else{var Y=h[F-15],X=Y.high,G=Y.low,Z=(X>>>1|G<<31)^(X>>>8|G<<24)^X>>>7,Q=(G>>>1|X<<31)^(G>>>8|X<<24)^(G>>>7|X<<25),tt=h[F-2],nt=tt.high,et=tt.low,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^nt>>>6,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^(et>>>6|nt<<26),ot=h[F-7],st=ot.high,at=ot.low,ct=h[F-16],ht=ct.high,ut=ct.low;q=(q=(q=Z+st+((K=Q+at)>>>0<Q>>>0?1:0))+it+((K+=rt)>>>0<rt>>>0?1:0))+ht+((K+=ut)>>>0<ut>>>0?1:0),V.high=q,V.low=K}var lt,dt=M&B^~M&U,ft=H&N^~H&L,pt=A&I^A&O^I&O,mt=C&z^C&P^z&P,gt=(A>>>28|C<<4)^(A<<30|C>>>2)^(A<<25|C>>>7),vt=(C>>>28|A<<4)^(C<<30|A>>>2)^(C<<25|A>>>7),bt=(M>>>14|H<<18)^(M>>>18|H<<14)^(M<<23|H>>>9),wt=(H>>>14|M<<18)^(H>>>18|M<<14)^(H<<23|M>>>9),yt=c[F],xt=yt.high,_t=yt.low,$t=W+bt+((lt=J+wt)>>>0<J>>>0?1:0),St=vt+mt;W=U,J=L,U=B,L=N,B=M,N=H,M=D+($t=($t=($t=$t+dt+((lt+=ft)>>>0<ft>>>0?1:0))+xt+((lt+=_t)>>>0<_t>>>0?1:0))+q+((lt+=K)>>>0<K>>>0?1:0))+((H=j+lt|0)>>>0<j>>>0?1:0)|0,D=O,j=P,O=I,P=z,I=A,z=C,A=$t+(gt+pt+(St>>>0<vt>>>0?1:0))+((C=lt+St|0)>>>0<lt>>>0?1:0)|0}p=i.low=p+C,i.high=f+A+(p>>>0<C>>>0?1:0),g=r.low=g+z,r.high=m+I+(g>>>0<z>>>0?1:0),b=o.low=b+P,o.high=v+O+(b>>>0<P>>>0?1:0),y=s.low=y+j,s.high=w+D+(y>>>0<j>>>0?1:0),_=a.low=_+H,a.high=x+M+(_>>>0<H>>>0?1:0),S=u.low=S+N,u.high=$+B+(S>>>0<N>>>0?1:0),E=l.low=E+L,l.high=k+U+(E>>>0<L>>>0?1:0),R=d.low=R+J,d.high=T+W+(R>>>0<J>>>0?1:0)},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[30+(i+128>>>10<<5)]=Math.floor(e/4294967296),n[31+(i+128>>>10<<5)]=e,t.sigBytes=4*n.length,this.A(),this.B.toX32()},clone:function(){var t=e.clone.call(this);return t.B=this.B.clone(),t},blockSize:32});t.SHA512=e.D(u),t.HmacSHA512=e.j(u)}(),n.SHA512)}(Ii)),Ii.exports}var Oi,Pi,Di,ji,Mi={exports:{}},Hi={exports:{}},Bi={exports:{}},Ni={exports:{}};function Ui(){return ji||(ji=1,function(t){var n,e,i;t.exports=(e=(n=si()).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=e.extend({init:function(t,n){t=this.N=new t.init,"string"==typeof n&&(n=i.parse(n));var e=t.blockSize,r=4*e;n.sigBytes>r&&(n=t.finalize(n)),n.clamp();for(var o=this.U=n.clone(),s=this.L=n.clone(),a=o.words,c=s.words,h=0;h<e;h++)a[h]^=1549556828,c[h]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var t=this.N;t.reset(),t.update(this.L)},update:function(t){return this.N.update(t),this},finalize:function(t){var n=this.N,e=n.finalize(t);return n.reset(),n.finalize(this.U.clone().concat(e))}})))}(Ni)),Ni.exports}var Li,Wi,Ji={exports:{}},Fi={exports:{}};function Ki(){return Wi||(Wi=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=si(),Si(),Ui(),i=(e=(n=c).lib).Base,r=e.WordArray,s=(o=n.algo).MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,h=i.iterations;a.length<c;){e&&o.update(e),e=o.update(t).finalize(n),o.reset();for(var u=1;u<h;u++)e=o.finalize(e),o.reset();s.concat(e)}return s.sigBytes=4*c,s}}),n.EvpKDF=function(t,n,e){return a.create(e).compute(t,n)},c.EvpKDF)}(Fi)),Fi.exports}var qi,Vi={exports:{}};function Yi(){return qi||(qi=1,function(t){var n;t.exports=(n=si(),Ki(),void(n.lib.Cipher||function(){var t=n,e=t.lib,i=e.Base,r=e.WordArray,o=e.BufferedBlockAlgorithm,s=t.enc;s.Utf8;var a=s.Base64,c=t.algo.EvpKDF,h=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,n){return this.create(this.W,t,n)},createDecryptor:function(t,n){return this.create(this.J,t,n)},init:function(t,n,e){this.cfg=this.cfg.extend(e),this.F=t,this.K=n,this.reset()},reset:function(){o.reset.call(this),this.O()},process:function(t){return this.R(t),this.A()},finalize:function(t){return t&&this.R(t),this.P()},keySize:4,ivSize:4,W:1,J:2,D:function(){function t(t){return"string"==typeof t?b:g}return function(n){return{encrypt:function(e,i,r){return t(i).encrypt(n,e,i,r)},decrypt:function(e,i,r){return t(i).decrypt(n,e,i,r)}}}}()});e.StreamCipher=h.extend({P:function(){return this.A(!0)},blockSize:1});var u=t.mode={},l=e.BlockCipherMode=i.extend({createEncryptor:function(t,n){return this.Encryptor.create(t,n)},createDecryptor:function(t,n){return this.Decryptor.create(t,n)},init:function(t,n){this.V=t,this.Y=n}}),d=u.CBC=function(){var t=l.extend();function n(t,n,e){var i,r=this.Y;r?(i=r,this.Y=void 0):i=this.X;for(var o=0;o<e;o++)t[n+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this.V,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this.X=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this.V,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this.X=o}}),t}(),f=(t.pad={}).Pkcs7={pad:function(t,n){for(var e=4*n,i=e-t.sigBytes%e,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var c=r.create(s,i);t.concat(c)},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}};e.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:f}),reset:function(){var t;h.reset.call(this);var n=this.cfg,e=n.iv,i=n.mode;this.F==this.W?t=i.createEncryptor:(t=i.createDecryptor,this.C=1),this.G&&this.G.Z==t?this.G.init(this,e&&e.words):(this.G=t.call(i,this,e&&e.words),this.G.Z=t)},I:function(t,n){this.G.processBlock(t,n)},P:function(){var t,n=this.cfg.padding;return this.F==this.W?(n.pad(this.S,this.blockSize),t=this.A(!0)):(t=this.A(!0),n.unpad(t)),t},blockSize:4});var p=e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(t){var n=t.ciphertext,e=t.salt;return(e?r.create([1398893684,1701076831]).concat(e).concat(n):n).toString(a)},parse:function(t){var n,e=a.parse(t),i=e.words;return 1398893684==i[0]&&1701076831==i[1]&&(n=r.create(i.slice(2,4)),i.splice(0,4),e.sigBytes-=16),p.create({ciphertext:e,salt:n})}},g=e.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(t,n,e,i){i=this.cfg.extend(i);var r=t.createEncryptor(e,i),o=r.finalize(n),s=r.cfg;return p.create({ciphertext:o,key:e,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,n,e,i){return i=this.cfg.extend(i),n=this.tt(n,i.format),t.createDecryptor(e,i).finalize(n.ciphertext)},tt:function(t,n){return"string"==typeof t?n.parse(t,this):t}}),v=(t.kdf={}).OpenSSL={execute:function(t,n,e,i,o){if(i||(i=r.random(8)),o)s=c.create({keySize:n+e,hasher:o}).compute(t,i);else var s=c.create({keySize:n+e}).compute(t,i);var a=r.create(s.words.slice(n),4*e);return s.sigBytes=4*n,p.create({key:s,iv:a,salt:i})}},b=e.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(t,n,e,i){var r=(i=this.cfg.extend(i)).kdf.execute(e,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=g.encrypt.call(this,t,n,r.key,i);return o.mixIn(r),o},decrypt:function(t,n,e,i){i=this.cfg.extend(i),n=this.tt(n,i.format);var r=i.kdf.execute(e,t.keySize,t.ivSize,n.salt,i.hasher);return i.iv=r.iv,g.decrypt.call(this,t,n,r.key,i)}})}()))}(Vi)),Vi.exports}var Xi,Gi,Zi,Qi={exports:{}},tr={exports:{}},nr={exports:{}};var er,ir,rr,or,sr,ar,cr,hr,ur,lr,dr,fr,pr,mr,gr,vr={exports:{}},br={exports:{}},wr={exports:{}},yr={exports:{}},xr={exports:{}},_r={exports:{}},$r={exports:{}},Sr={exports:{}},kr={exports:{}},Er={exports:{}},Tr={exports:{}},Rr={exports:{}},Ar={exports:{}},Cr={exports:{}};var Ir=(gr||(gr=1,function(t){var n;t.exports=(n=si(),hi(),ui||(ui=1,function(t){var n;t.exports=(n=si(),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,i=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],r=0;r<n;r++)i[r>>>2]|=t[r]<<24-r%4*8;e.call(this,i,n)}else e.apply(this,arguments)};i.prototype=t}}(),n.lib.WordArray)}(fi)),li||(li=1,function(t){var n;t.exports=(n=si(),function(){var t=n,e=t.lib.WordArray,i=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],r=0;r<e;r+=2){var o=n[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return e.create(i,2*n)}},i.Utf16LE={stringify:function(t){for(var n=t.words,e=t.sigBytes,i=[],o=0;o<e;o+=2){var s=r(n[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)}(pi)),gi(),vi||(vi=1,function(t){var n,e,i;t.exports=(n=si(),i=(e=n).lib.WordArray,e.enc.Base64url={stringify:function(t,n){void 0===n&&(n=!0);var e=t.words,i=t.sigBytes,r=n?this.nt:this.M;t.clamp();for(var o=[],s=0;s<i;s+=3)for(var a=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<i;c++)o.push(r.charAt(a>>>6*(3-c)&63));var h=r.charAt(64);if(h)for(;o.length%4;)o.push(h);return o.join("")},parse:function(t,n){void 0===n&&(n=!0);var e=t.length,r=n?this.nt:this.M,o=this.H;if(!o){o=this.H=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(e=c)}return function(t,n,e){for(var r=[],o=0,s=0;s<n;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2|e[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}(t,e,o)},M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nt:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)}(bi)),xi(),Si(),Ti(),Ri||(Ri=1,function(t){var n,e,i,r,o,s;t.exports=(s=si(),Ti(),e=(n=s).lib.WordArray,i=n.algo,r=i.SHA256,o=i.SHA224=r.extend({O:function(){this.B=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},P:function(){var t=r.P.call(this);return t.sigBytes-=4,t}}),n.SHA224=r.D(o),n.HmacSHA224=r.j(o),s.SHA224)}(Ci)),zi(),Oi||(Oi=1,function(t){var n,e,i,r,o,s,a,c;t.exports=(c=si(),hi(),zi(),e=(n=c).x64,i=e.Word,r=e.WordArray,o=n.algo,s=o.SHA512,a=o.SHA384=s.extend({O:function(){this.B=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},P:function(){var t=s.P.call(this);return t.sigBytes-=16,t}}),n.SHA384=s.D(a),n.HmacSHA384=s.j(a),c.SHA384)}(Mi)),Pi||(Pi=1,function(t){var n;t.exports=(n=si(),hi(),function(t){var e=n,i=e.lib,r=i.WordArray,o=i.Hasher,s=e.x64.Word,a=e.algo,c=[],h=[],u=[];!function(){for(var t=1,n=0,e=0;e<24;e++){c[t+5*n]=(e+1)*(e+2)/2%64;var i=(2*t+3*n)%5;t=n%5,n=i}for(t=0;t<5;t++)for(n=0;n<5;n++)h[t+5*n]=n+(2*t+3*n)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,l=0,d=0;d<7;d++){if(1&r){var f=(1<<d)-1;f<32?l^=1<<f:a^=1<<f-32}128&r?r=r<<1^113:r<<=1}u[o]=s.create(a,l)}}();var l=[];!function(){for(var t=0;t<25;t++)l[t]=s.create()}();var d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),O:function(){for(var t=this.et=[],n=0;n<25;n++)t[n]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},I:function(t,n){for(var e=this.et,i=this.blockSize/2,r=0;r<i;r++){var o=t[n+2*r],s=t[n+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(R=e[r]).high^=s,R.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(R=e[d+5*m]).high,p^=R.low;var g=l[d];g.high=f,g.low=p}for(d=0;d<5;d++){var v=l[(d+4)%5],b=l[(d+1)%5],w=b.high,y=b.low;for(f=v.high^(w<<1|y>>>31),p=v.low^(y<<1|w>>>31),m=0;m<5;m++)(R=e[d+5*m]).high^=f,R.low^=p}for(var x=1;x<25;x++){var _=(R=e[x]).high,$=R.low,S=c[x];S<32?(f=_<<S|$>>>32-S,p=$<<S|_>>>32-S):(f=$<<S-32|_>>>64-S,p=_<<S-32|$>>>64-S);var k=l[h[x]];k.high=f,k.low=p}var E=l[0],T=e[0];for(E.high=T.high,E.low=T.low,d=0;d<5;d++)for(m=0;m<5;m++){var R=e[x=d+5*m],A=l[x],C=l[(d+1)%5+5*m],I=l[(d+2)%5+5*m];R.high=A.high^~C.high&I.high,R.low=A.low^~C.low&I.low}R=e[0];var z=u[a];R.high^=z.high,R.low^=z.low}},P:function(){var n=this.S,e=n.words;this.T;var i=8*n.sigBytes,o=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(t.ceil((i+1)/o)*o>>>5)-1]|=128,n.sigBytes=4*e.length,this.A();for(var s=this.et,a=this.cfg.outputLength/8,c=a/8,h=[],u=0;u<c;u++){var l=s[u],d=l.high,f=l.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),h.push(f),h.push(d)}return new r.init(h,a)},clone:function(){for(var t=o.clone.call(this),n=t.et=this.et.slice(0),e=0;e<25;e++)n[e]=n[e].clone();return t}});e.SHA3=o.D(d),e.HmacSHA3=o.j(d)}(Math),n.SHA3)}(Hi)),Di||(Di=1,function(t){var n;t.exports=(n=si(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.Hasher,o=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),l=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=r.extend({O:function(){this.B=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},I:function(t,n){for(var e=0;e<16;e++){var i=n+e,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,d,w,y,x,_,$,S,k,E,T,R=this.B.words,A=u.words,C=l.words,I=s.words,z=a.words,O=c.words,P=h.words;for(_=o=R[0],$=d=R[1],S=w=R[2],k=y=R[3],E=x=R[4],e=0;e<80;e+=1)T=o+t[n+I[e]]|0,T+=e<16?f(d,w,y)+A[0]:e<32?p(d,w,y)+A[1]:e<48?m(d,w,y)+A[2]:e<64?g(d,w,y)+A[3]:v(d,w,y)+A[4],T=(T=b(T|=0,O[e]))+x|0,o=x,x=y,y=b(w,10),w=d,d=T,T=_+t[n+z[e]]|0,T+=e<16?v($,S,k)+C[0]:e<32?g($,S,k)+C[1]:e<48?m($,S,k)+C[2]:e<64?p($,S,k)+C[3]:f($,S,k)+C[4],T=(T=b(T|=0,P[e]))+E|0,_=E,E=k,k=b(S,10),S=$,$=T;T=R[1]+w+k|0,R[1]=R[2]+y+E|0,R[2]=R[3]+x+_|0,R[3]=R[4]+o+$|0,R[4]=R[0]+d+S|0,R[0]=T},P:function(){var t=this.S,n=t.words,e=8*this.T,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(n.length+1),this.A();for(var r=this.B,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=r.clone.call(this);return t.B=this.B.clone(),t}});function f(t,n,e){return t^n^e}function p(t,n,e){return t&n|~t&e}function m(t,n,e){return(t|~n)^e}function g(t,n,e){return t&e|n&~e}function v(t,n,e){return t^(n|~e)}function b(t,n){return t<<n|t>>>32-n}t.RIPEMD160=r.D(d),t.HmacRIPEMD160=r.j(d)}(),n.RIPEMD160)}(Bi)),Ui(),Li||(Li=1,function(t){var n,e,i,r,o,s,a,c,h;t.exports=(h=si(),Ti(),Ui(),i=(e=(n=h).lib).Base,r=e.WordArray,s=(o=n.algo).SHA256,a=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){for(var e=this.cfg,i=a.create(e.hasher,t),o=r.create(),s=r.create([1]),c=o.words,h=s.words,u=e.keySize,l=e.iterations;c.length<u;){var d=i.update(n).finalize(s);i.reset();for(var f=d.words,p=f.length,m=d,g=1;g<l;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<p;b++)f[b]^=v[b]}o.concat(d),h[0]++}return o.sigBytes=4*u,o}}),n.PBKDF2=function(t,n,e){return c.create(e).compute(t,n)},h.PBKDF2)}(Ji)),Ki(),Yi(),Xi||(Xi=1,function(t){var n;t.exports=(n=si(),Yi(),n.mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,n,e,i){var r,o=this.Y;o?(r=o.slice(0),this.Y=void 0):r=this.X,i.encryptBlock(r,0);for(var s=0;s<e;s++)t[n+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize;e.call(this,t,n,r,i),this.X=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize,o=t.slice(n,n+r);e.call(this,t,n,r,i),this.X=o}}),t}(),n.mode.CFB)}(Qi)),Gi||(Gi=1,function(t){var n,e,i;t.exports=(i=si(),Yi(),i.mode.CTR=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.V,i=e.blockSize,r=this.Y,o=this.it;r&&(o=this.it=r.slice(0),this.Y=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[n+a]^=s[a]}}),n.Decryptor=e,n),i.mode.CTR)}(tr)),Zi||(Zi=1,function(t){var n;t.exports=(n=si(),Yi(),n.mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var n=t>>16&255,e=t>>8&255,i=255&t;255===n?(n=0,255===e?(e=0,255===i?i=0:++i):++e):++n,t=0,t+=n<<16,t+=e<<8,t+=i}return t}var i=t.Encryptor=t.extend({processBlock:function(t,n){var i=this.V,r=i.blockSize,o=this.Y,s=this.it;o&&(s=this.it=o.slice(0),this.Y=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)t[n+c]^=a[c]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)}(nr)),er||(er=1,function(t){var n,e,i;t.exports=(i=si(),Yi(),i.mode.OFB=(e=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){var e=this.V,i=e.blockSize,r=this.Y,o=this.rt;r&&(o=this.rt=r.slice(0),this.Y=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)t[n+s]^=o[s]}}),n.Decryptor=e,n),i.mode.OFB)}(vr)),ir||(ir=1,function(t){var n,e;t.exports=(e=si(),Yi(),e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,n){this.V.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this.V.decryptBlock(t,n)}}),n),e.mode.ECB)}(br)),rr||(rr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.AnsiX923={pad:function(t,n){var e=t.sigBytes,i=4*n,r=i-e%i,o=e+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Ansix923)}(wr)),or||(or=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.Iso10126={pad:function(t,e){var i=4*e,r=i-t.sigBytes%i;t.concat(n.lib.WordArray.random(r-1)).concat(n.lib.WordArray.create([r<<24],1))},unpad:function(t){var n=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=n}},n.pad.Iso10126)}(yr)),sr||(sr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)}(xr)),ar||(ar=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.ZeroPadding={pad:function(t,n){var e=4*n;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var n=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(n[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},n.pad.ZeroPadding)}(_r)),cr||(cr=1,function(t){var n;t.exports=(n=si(),Yi(),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)}($r)),hr||(hr=1,function(t){var n,e,i,r;t.exports=(r=si(),Yi(),e=(n=r).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var n=i.parse(t);return e.create({ciphertext:n})}},r.format.Hex)}(Sr)),ur||(ur=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo,r=[],o=[],s=[],a=[],c=[],h=[],u=[],l=[],d=[],f=[];!function(){for(var t=[],n=0;n<256;n++)t[n]=n<128?n<<1:n<<1^283;var e=0,i=0;for(n=0;n<256;n++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[e]=p,o[p]=e;var m=t[e],g=t[m],v=t[g],b=257*t[p]^16843008*p;s[e]=b<<24|b>>>8,a[e]=b<<16|b>>>16,c[e]=b<<8|b>>>24,h[e]=b,b=16843009*v^65537*g^257*m^16843008*e,u[p]=b<<24|b>>>8,l[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,f[p]=b,e?(e=m^t[t[t[v^m]]],i^=t[t[i]]):e=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=e.extend({O:function(){if(!this.ot||this.st!==this.K){for(var t=this.st=this.K,n=t.words,e=t.sigBytes/4,i=4*((this.ot=e+6)+1),o=this.ct=[],s=0;s<i;s++)s<e?o[s]=n[s]:(h=o[s-1],s%e?e>6&&s%e==4&&(h=r[h>>>24]<<24|r[h>>>16&255]<<16|r[h>>>8&255]<<8|r[255&h]):(h=r[(h=h<<8|h>>>24)>>>24]<<24|r[h>>>16&255]<<16|r[h>>>8&255]<<8|r[255&h],h^=p[s/e|0]<<24),o[s]=o[s-e]^h);for(var a=this.ht=[],c=0;c<i;c++){if(s=i-c,c%4)var h=o[s];else h=o[s-4];a[c]=c<4||s<=4?h:u[r[h>>>24]]^l[r[h>>>16&255]]^d[r[h>>>8&255]]^f[r[255&h]]}}},encryptBlock:function(t,n){this.ut(t,n,this.ct,s,a,c,h,r)},decryptBlock:function(t,n){var e=t[n+1];t[n+1]=t[n+3],t[n+3]=e,this.ut(t,n,this.ht,u,l,d,f,o),e=t[n+1],t[n+1]=t[n+3],t[n+3]=e},ut:function(t,n,e,i,r,o,s,a){for(var c=this.ot,h=t[n]^e[0],u=t[n+1]^e[1],l=t[n+2]^e[2],d=t[n+3]^e[3],f=4,p=1;p<c;p++){var m=i[h>>>24]^r[u>>>16&255]^o[l>>>8&255]^s[255&d]^e[f++],g=i[u>>>24]^r[l>>>16&255]^o[d>>>8&255]^s[255&h]^e[f++],v=i[l>>>24]^r[d>>>16&255]^o[h>>>8&255]^s[255&u]^e[f++],b=i[d>>>24]^r[h>>>16&255]^o[u>>>8&255]^s[255&l]^e[f++];h=m,u=g,l=v,d=b}m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&d])^e[f++],g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^e[f++],v=(a[l>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^e[f++],b=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^e[f++],t[n]=m,t[n+1]=g,t[n+2]=v,t[n+3]=b},keySize:8});t.AES=e.D(m)}(),n.AES)}(kr)),lr||(lr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib,i=e.WordArray,r=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=r.extend({O:function(){for(var t=this.K.words,n=[],e=0;e<56;e++){var i=s[e]-1;n[e]=t[i>>>5]>>>31-i%32&1}for(var r=this.lt=[],o=0;o<16;o++){var h=r[o]=[],u=c[o];for(e=0;e<24;e++)h[e/6|0]|=n[(a[e]-1+u)%28]<<31-e%6,h[4+(e/6|0)]|=n[28+(a[e+24]-1+u)%28]<<31-e%6;for(h[0]=h[0]<<1|h[0]>>>31,e=1;e<7;e++)h[e]=h[e]>>>4*(e-1)+3;h[7]=h[7]<<5|h[7]>>>27}var l=this.dt=[];for(e=0;e<16;e++)l[e]=r[15-e]},encryptBlock:function(t,n){this.ut(t,n,this.lt)},decryptBlock:function(t,n){this.ut(t,n,this.dt)},ut:function(t,n,e){this.ft=t[n],this.gt=t[n+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=e[i],o=this.ft,s=this.gt,a=0,c=0;c<8;c++)a|=h[c][((s^r[c])&u[c])>>>0];this.ft=s,this.gt=o^a}var l=this.ft;this.ft=this.gt,this.gt=l,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[n]=this.ft,t[n+1]=this.gt},keySize:2,ivSize:2,blockSize:2});function d(t,n){var e=(this.ft>>>t^this.gt)&n;this.gt^=e,this.ft^=e<<t}function f(t,n){var e=(this.gt>>>t^this.ft)&n;this.ft^=e,this.gt^=e<<t}t.DES=r.D(l);var p=o.TripleDES=r.extend({O:function(){var t=this.K.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),e=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this.vt=l.createEncryptor(i.create(n)),this.bt=l.createEncryptor(i.create(e)),this.wt=l.createEncryptor(i.create(r))},encryptBlock:function(t,n){this.vt.encryptBlock(t,n),this.bt.decryptBlock(t,n),this.wt.encryptBlock(t,n)},decryptBlock:function(t,n){this.wt.decryptBlock(t,n),this.bt.encryptBlock(t,n),this.vt.decryptBlock(t,n)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r.D(p)}(),n.TripleDES)}(Er)),dr||(dr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=i.RC4=e.extend({O:function(){for(var t=this.K,n=t.words,e=t.sigBytes,i=this.yt=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%e,a=n[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var c=i[r];i[r]=i[o],i[o]=c}this.xt=this._t=0},I:function(t,n){t[n]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this.yt,n=this.xt,e=this._t,i=0,r=0;r<4;r++){e=(e+t[n=(n+1)%256])%256;var o=t[n];t[n]=t[e],t[e]=o,i|=t[(t[n]+t[e])%256]<<24-8*r}return this.xt=n,this._t=e,i}t.RC4=e.D(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),O:function(){r.O.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e.D(s)}(),n.RC4)}(Tr)),fr||(fr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.Rabbit=e.extend({O:function(){for(var t=this.K.words,n=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);var i=this.$t=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this.kt=0,e=0;e<4;e++)c.call(this);for(e=0;e<8;e++)r[e]^=i[e+4&7];if(n){var o=n.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=h>>>16|4294901760&u,d=u<<16|65535&h;for(r[0]^=h,r[1]^=l,r[2]^=u,r[3]^=d,r[4]^=h,r[5]^=l,r[6]^=u,r[7]^=d,e=0;e<4;e++)c.call(this)}},I:function(t,n){var e=this.$t;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.$t,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.kt|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.kt=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e.D(a)}(),n.Rabbit)}(Rr)),pr||(pr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.RabbitLegacy=e.extend({O:function(){var t=this.K.words,n=this.cfg.iv,e=this.$t=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this.St=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this.kt=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=e[r+4&7];if(n){var o=n.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=h>>>16|4294901760&u,d=u<<16|65535&h;for(i[0]^=h,i[1]^=l,i[2]^=u,i[3]^=d,i[4]^=h,i[5]^=l,i[6]^=u,i[7]^=d,r=0;r<4;r++)c.call(this)}},I:function(t,n){var e=this.$t;c.call(this),r[0]=e[0]^e[5]>>>16^e[3]<<16,r[1]=e[2]^e[7]>>>16^e[5]<<16,r[2]=e[4]^e[1]>>>16^e[7]<<16,r[3]=e[6]^e[3]>>>16^e[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[n+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this.$t,n=this.St,e=0;e<8;e++)o[e]=n[e];for(n[0]=n[0]+1295307597+this.kt|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this.kt=n[7]>>>0<o[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+n[e],r=65535&i,a=i>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=e.D(a)}(),n.RabbitLegacy)}(Ar)),mr||(mr=1,function(t){var n;t.exports=(n=si(),gi(),xi(),Ki(),Yi(),function(){var t=n,e=t.lib.BlockCipher,i=t.algo;const r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function a(t,n){let e=n>>24&255,i=n>>16&255,r=n>>8&255,o=255&n,s=t.sbox[0][e]+t.sbox[1][i];return s^=t.sbox[2][r],s+=t.sbox[3][o],s}function c(t,n,e){let i,r=n,o=e;for(let n=0;n<16;++n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[16],r^=t.pbox[17],{left:r,right:o}}var h=i.Blowfish=e.extend({O:function(){if(this.st!==this.K){var t=this.st=this.K,n=t.words,e=t.sigBytes/4;!function(t,n,e){for(let n=0;n<4;n++){t.sbox[n]=[];for(let e=0;e<256;e++)t.sbox[n][e]=o[n][e]}let i=0;for(let o=0;o<18;o++)t.pbox[o]=r[o]^n[i],i++,i>=e&&(i=0);let s=0,a=0,h=0;for(let n=0;n<18;n+=2)h=c(t,s,a),s=h.left,a=h.right,t.pbox[n]=s,t.pbox[n+1]=a;for(let n=0;n<4;n++)for(let e=0;e<256;e+=2)h=c(t,s,a),s=h.left,a=h.right,t.sbox[n][e]=s,t.sbox[n][e+1]=a}(s,n,e)}},encryptBlock:function(t,n){var e=c(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},decryptBlock:function(t,n){var e=function(t,n,e){let i,r=n,o=e;for(let n=17;n>1;--n)r^=t.pbox[n],o=a(t,r)^o,i=r,r=o,o=i;return i=r,r=o,o=i,o^=t.pbox[1],r^=t.pbox[0],{left:r,right:o}}(s,t[n],t[n+1]);t[n]=e.left,t[n+1]=e.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e.D(h)}(),n.Blowfish)}(Cr)),n)}(ii)),ii.exports),zr=crypto;const Or=t=>t instanceof CryptoKey,Pr=new TextEncoder,Dr=new TextDecoder;function jr(...t){const n=t.reduce(((t,{length:n})=>t+n),0),e=new Uint8Array(n);let i=0;for(const n of t)e.set(n,i),i+=n.length;return e}const Mr=t=>(t=>{let n=t;"string"==typeof n&&(n=Pr.encode(n));const e=[];for(let t=0;t<n.length;t+=32768)e.push(String.fromCharCode.apply(null,n.subarray(t,t+32768)));return btoa(e.join(""))})(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Hr=t=>{let n=t;n instanceof Uint8Array&&(n=Dr.decode(n)),n=n.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return e})(n)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Br extends Error{constructor(t,n){super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Br.code="ERR_JOSE_GENERIC";class Nr extends Br{constructor(t,n,e="unspecified",i="unspecified"){super(t,{cause:{claim:e,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=e,this.reason=i,this.payload=n}}Nr.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class Ur extends Br{constructor(t,n,e="unspecified",i="unspecified"){super(t,{cause:{claim:e,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=e,this.reason=i,this.payload=n}}Ur.code="ERR_JWT_EXPIRED",class extends Br{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}.code="ERR_JOSE_ALG_NOT_ALLOWED";class Lr extends Br{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}Lr.code="ERR_JOSE_NOT_SUPPORTED",class extends Br{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}.code="ERR_JWE_DECRYPTION_FAILED",class extends Br{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}.code="ERR_JWE_INVALID";class Wr extends Br{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}Wr.code="ERR_JWS_INVALID";class Jr extends Br{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Jr.code="ERR_JWT_INVALID",class extends Br{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}.code="ERR_JWK_INVALID",class extends Br{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}.code="ERR_JWKS_INVALID",class extends Br{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}.code="ERR_JWKS_NO_MATCHING_KEY",class extends Br{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",class extends Br{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}.code="ERR_JWKS_TIMEOUT";class Fr extends Br{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Kr(t,n="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${n} must be ${t}`)}function qr(t,n){return t.name===n}function Vr(t){return parseInt(t.name.slice(4),10)}function Yr(t,n,...e){if((e=e.filter(Boolean)).length>2){const n=e.pop();t+=`one of type ${e.join(", ")}, or ${n}.`}else 2===e.length?t+=`one of type ${e[0]} or ${e[1]}.`:t+=`of type ${e[0]}.`;return null==n?t+=` Received ${n}`:"function"==typeof n&&n.name?t+=` Received function ${n.name}`:"object"==typeof n&&null!=n&&n.constructor?.name&&(t+=` Received an instance of ${n.constructor.name}`),t}Fr.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";var Xr=(t,...n)=>Yr("Key must be ",t,...n);function Gr(t,n,...e){return Yr(`Key for the ${t} algorithm must be `,n,...e)}var Zr=t=>!!Or(t)||"KeyObject"===t?.[Symbol.toStringTag];const Qr=["CryptoKey"],to=(...t)=>{const n=t.filter(Boolean);if(0===n.length||1===n.length)return!0;let e;for(const t of n){const n=Object.keys(t);if(e&&0!==e.size)for(const t of n){if(e.has(t))return!1;e.add(t)}else e=new Set(n)}return!0};function no(t){if("object"!=typeof(n=t)||null===n||"[object Object]"!==Object.prototype.toString.call(t))return!1;var n;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var eo=(t,n)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:e}=n.algorithm;if("number"!=typeof e||e<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}};function io(t){return no(t)&&"string"==typeof t.kty}const ro=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:n,keyUsages:e}=function(t){let n,e;switch(t.kty){case"RSA":switch(t.alg){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},e=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},e=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(t.alg){case"ES256":n={name:"ECDSA",namedCurve:"P-256"},e=t.d?["sign"]:["verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},e=t.d?["sign"]:["verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:"ECDH",namedCurve:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(t.alg){case"Ed25519":n={name:"Ed25519"},e=t.d?["sign"]:["verify"];break;case"EdDSA":n={name:t.crv},e=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":n={name:t.crv},e=t.d?["deriveBits"]:[];break;default:throw new Lr('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Lr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:n,keyUsages:e}}(t),i=[n,t.ext??!1,t.key_ops??e],r={...t};return delete r.alg,delete r.use,zr.subtle.importKey("jwk",r,...i)},oo=t=>Hr(t);let so,ao;const co=t=>"KeyObject"===t?.[Symbol.toStringTag],ho=async(t,n,e,i,r=!1)=>{let o=t.get(n);if(o?.[i])return o[i];const s=await ro({...e,alg:i});return r&&Object.freeze(n),o?o[i]=s:t.set(n,{[i]:s}),s},uo=t=>t?.[Symbol.toStringTag],lo=(t,n,e)=>{if(void 0!==n.use&&"sig"!==n.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==n.key_ops&&!0!==n.key_ops.includes?.(e))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${e}`);if(void 0!==n.alg&&n.alg!==t)throw new TypeError(`Invalid key for this operation, when present its alg must be ${t}`);return!0};function fo(t,n,e,i){n.startsWith("HS")||"dir"===n||n.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(n)?((t,n,e,i)=>{if(!(n instanceof Uint8Array)){if(i&&io(n)){if(function(t){return io(t)&&"oct"===t.kty&&"string"==typeof t.k}(n)&&lo(t,n,e))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!Zr(n))throw new TypeError(Gr(t,n,...Qr,"Uint8Array",i?"JSON Web Key":null));if("secret"!==n.type)throw new TypeError(`${uo(n)} instances for symmetric algorithms must be of type "secret"`)}})(n,e,i,t):((t,n,e,i)=>{if(i&&io(n))switch(e){case"sign":if(function(t){return"oct"!==t.kty&&"string"==typeof t.d}(n)&&lo(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(t){return"oct"!==t.kty&&void 0===t.d}(n)&&lo(t,n,e))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!Zr(n))throw new TypeError(Gr(t,n,...Qr,i?"JSON Web Key":null));if("secret"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===e&&"public"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===e&&"public"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm decryption must be of type "private"`);if(n.algorithm&&"verify"===e&&"private"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm verifying must be of type "public"`);if(n.algorithm&&"encrypt"===e&&"private"===n.type)throw new TypeError(`${uo(n)} instances for asymmetric algorithm encryption must be of type "public"`)})(n,e,i,t)}fo.bind(void 0,!1);const po=fo.bind(void 0,!0);function mo(t,n,e,i,r){if(void 0!==r.crit&&void 0===i?.crit)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some((t=>"string"!=typeof t||0===t.length)))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;o=void 0!==e?new Map([...Object.entries(e),...n.entries()]):n;for(const n of i.crit){if(!o.has(n))throw new Lr(`Extension Header Parameter "${n}" is not recognized`);if(void 0===r[n])throw new t(`Extension Header Parameter "${n}" is missing`);if(o.get(n)&&void 0===i[n])throw new t(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}function go(t,n){const e=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:e,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:e,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:e,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:e,name:"ECDSA",namedCurve:n.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:n.name};default:throw new Lr(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}async function vo(t,n,e){if("sign"===e&&(n=await((t,n)=>{if(co(t)){let e=t.export({format:"jwk"});return e.k?oo(e.k):(so||(so=new WeakMap),ho(so,t,e,n))}return io(t)?t.k?Hr(t.k):(so||(so=new WeakMap),ho(so,t,t,n,!0)):t})(n,t)),"verify"===e&&(n=await((t,n)=>{if(co(t)){let e=t.export({format:"jwk"});return delete e.d,delete e.dp,delete e.dq,delete e.p,delete e.q,delete e.qi,e.k?oo(e.k):(ao||(ao=new WeakMap),ho(ao,t,e,n))}return io(t)?t.k?Hr(t.k):(ao||(ao=new WeakMap),ho(ao,t,t,n,!0)):t})(n,t)),Or(n))return function(t,n,...e){switch(n){case"HS256":case"HS384":case"HS512":{if(!qr(t.algorithm,"HMAC"))throw Kr("HMAC");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!qr(t.algorithm,"RSASSA-PKCS1-v1_5"))throw Kr("RSASSA-PKCS1-v1_5");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!qr(t.algorithm,"RSA-PSS"))throw Kr("RSA-PSS");const e=parseInt(n.slice(2),10);if(Vr(t.algorithm.hash)!==e)throw Kr(`SHA-${e}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==t.algorithm.name&&"Ed448"!==t.algorithm.name)throw Kr("Ed25519 or Ed448");break;case"Ed25519":if(!qr(t.algorithm,"Ed25519"))throw Kr("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!qr(t.algorithm,"ECDSA"))throw Kr("ECDSA");const e=function(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(n);if(t.algorithm.namedCurve!==e)throw Kr(e,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(t,n){if(n.length&&!n.some((n=>t.usages.includes(n)))){let t="CryptoKey does not support this operation, its usages must include ";if(n.length>2){const e=n.pop();t+=`one of ${n.join(", ")}, or ${e}.`}else 2===n.length?t+=`one of ${n[0]} or ${n[1]}.`:t+=`${n[0]}.`;throw new TypeError(t)}}(t,e)}(n,t,e),n;if(n instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError(Xr(n,...Qr));return zr.subtle.importKey("raw",n,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[e])}throw new TypeError(Xr(n,...Qr,"Uint8Array","JSON Web Key"))}var bo=t=>Math.floor(t.getTime()/1e3);const wo=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var yo=t=>{const n=wo.exec(t);if(!n||n[4]&&n[1])throw new TypeError("Invalid time period format");const e=parseFloat(n[2]);let i;switch(n[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(e);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(60*e);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(3600*e);break;case"day":case"days":case"d":i=Math.round(86400*e);break;case"week":case"weeks":case"w":i=Math.round(604800*e);break;default:i=Math.round(31557600*e)}return"-"===n[1]||"ago"===n[4]?-i:i};const xo=t=>t.toLowerCase().replace(/^application\//,"");var _o=(t,n,e={})=>{let i;try{i=JSON.parse(Dr.decode(n))}catch{}if(!no(i))throw new Jr("JWT Claims Set must be a top-level JSON object");const{typ:r}=e;if(r&&("string"!=typeof t.typ||xo(t.typ)!==xo(r)))throw new Nr('unexpected "typ" JWT header value',i,"typ","check_failed");const{requiredClaims:o=[],issuer:s,subject:a,audience:c,maxTokenAge:h}=e,u=[...o];void 0!==h&&u.push("iat"),void 0!==c&&u.push("aud"),void 0!==a&&u.push("sub"),void 0!==s&&u.push("iss");for(const t of new Set(u.reverse()))if(!(t in i))throw new Nr(`missing required "${t}" claim`,i,t,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(i.iss))throw new Nr('unexpected "iss" claim value',i,"iss","check_failed");if(a&&i.sub!==a)throw new Nr('unexpected "sub" claim value',i,"sub","check_failed");if(c&&(d="string"==typeof c?[c]:c,!("string"==typeof(l=i.aud)?d.includes(l):Array.isArray(l)&&d.some(Set.prototype.has.bind(new Set(l))))))throw new Nr('unexpected "aud" claim value',i,"aud","check_failed");var l,d;let f;switch(typeof e.clockTolerance){case"string":f=yo(e.clockTolerance);break;case"number":f=e.clockTolerance;break;case"undefined":f=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=e,m=bo(p||new Date);if((void 0!==i.iat||h)&&"number"!=typeof i.iat)throw new Nr('"iat" claim must be a number',i,"iat","invalid");if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new Nr('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>m+f)throw new Nr('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new Nr('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=m-f)throw new Ur('"exp" claim timestamp check failed',i,"exp","check_failed")}if(h){const t=m-i.iat;if(t-f>("number"==typeof h?h:yo(h)))throw new Ur('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(t<0-f)throw new Nr('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};class $o{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this.Et=t}setProtectedHeader(t){if(this.Tt)throw new TypeError("setProtectedHeader can only be called once");return this.Tt=t,this}setUnprotectedHeader(t){if(this.Rt)throw new TypeError("setUnprotectedHeader can only be called once");return this.Rt=t,this}async sign(t,n){if(!this.Tt&&!this.Rt)throw new Wr("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!to(this.Tt,this.Rt))throw new Wr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const e={...this.Tt,...this.Rt};let i=!0;if(mo(Wr,new Map([["b64",!0]]),n?.crit,this.Tt,e).has("b64")&&(i=this.Tt.b64,"boolean"!=typeof i))throw new Wr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:r}=e;if("string"!=typeof r||!r)throw new Wr('JWS "alg" (Algorithm) Header Parameter missing or invalid');po(r,t,"sign");let o,s=this.Et;i&&(s=Pr.encode(Mr(s))),o=this.Tt?Pr.encode(Mr(JSON.stringify(this.Tt))):Pr.encode("");const a=jr(o,Pr.encode("."),s),c=await(async(t,n,e)=>{const i=await vo(t,n,"sign");eo(t,i);const r=await zr.subtle.sign(go(t,i.algorithm),i,e);return new Uint8Array(r)})(r,t,a),h={signature:Mr(c),payload:""};return i&&(h.payload=Dr.decode(s)),this.Rt&&(h.header=this.Rt),this.Tt&&(h.protected=Dr.decode(o)),h}}class So{constructor(t){this.At=new $o(t)}setProtectedHeader(t){return this.At.setProtectedHeader(t),this}async sign(t,n){const e=await this.At.sign(t,n);if(void 0===e.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${e.protected}.${e.payload}.${e.signature}`}}function ko(t,n){if(!Number.isFinite(n))throw new TypeError(`Invalid ${t} input`);return n}class Eo{constructor(t={}){if(!no(t))throw new TypeError("JWT Claims Set MUST be an object");this.Et=t}setIssuer(t){return this.Et={...this.Et,iss:t},this}setSubject(t){return this.Et={...this.Et,sub:t},this}setAudience(t){return this.Et={...this.Et,aud:t},this}setJti(t){return this.Et={...this.Et,jti:t},this}setNotBefore(t){return"number"==typeof t?this.Et={...this.Et,nbf:ko("setNotBefore",t)}:t instanceof Date?this.Et={...this.Et,nbf:ko("setNotBefore",bo(t))}:this.Et={...this.Et,nbf:bo(new Date)+yo(t)},this}setExpirationTime(t){return"number"==typeof t?this.Et={...this.Et,exp:ko("setExpirationTime",t)}:t instanceof Date?this.Et={...this.Et,exp:ko("setExpirationTime",bo(t))}:this.Et={...this.Et,exp:bo(new Date)+yo(t)},this}setIssuedAt(t){return void 0===t?this.Et={...this.Et,iat:bo(new Date)}:t instanceof Date?this.Et={...this.Et,iat:ko("setIssuedAt",bo(t))}:this.Et="string"==typeof t?{...this.Et,iat:ko("setIssuedAt",bo(new Date)+yo(t))}:{...this.Et,iat:ko("setIssuedAt",t)},this}}class To extends Eo{setProtectedHeader(t){return this.Tt=t,this}async sign(t,n){const e=new So(Pr.encode(JSON.stringify(this.Et)));if(e.setProtectedHeader(this.Tt),Array.isArray(this.Tt?.crit)&&this.Tt.crit.includes("b64")&&!1===this.Tt.b64)throw new Jr("JWTs MUST NOT use unencoded payload");return e.sign(t,n)}}class Ro{constructor(t){var n,e,i,r,o,s,a;const c=t;this.cause=null!==(r=null!==(e=null===(n=null==c?void 0:c.response)||void 0===n?void 0:n.data.statusCode)&&void 0!==e?e:null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.status)&&void 0!==r?r:0,this.errorMessage=null!==(a=null!==(s=null===(o=null==c?void 0:c.response)||void 0===o?void 0:o.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class Ao{constructor(t){this.apiKey=t}static getInstance(t){return Ye.getInstance("EncryptedApi",(()=>new Ao(t)))}async handleEncryption(t,n){const e=this.getKey(n);try{return this.joseEncrypt(t,e,this.forwardInMinutes(30,n))}catch(t){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(t,n){const e=this.getKey(n);return this.joseDecrypt(t,e)}getKey(t){return this.apiKey.slice(Number(`${t}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(t,n){const e=new Date(n);return e.setMinutes(e.getMinutes()+t)}async joseDecrypt(t,n){return async function(t,n,e){const i=await async function(t,n,e){if(t instanceof Uint8Array&&(t=Dr.decode(t)),"string"!=typeof t)throw new Wr("Compact JWS must be a string or Uint8Array");const{0:i,1:r,2:o,length:s}=t.split(".");if(3!==s)throw new Wr("Invalid Compact JWS");const a=await async function(t,n,e){if(!no(t))throw new Wr("Flattened JWS must be an object");if(void 0===t.protected&&void 0===t.header)throw new Wr('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==t.protected&&"string"!=typeof t.protected)throw new Wr("JWS Protected Header incorrect type");if(void 0===t.payload)throw new Wr("JWS Payload missing");if("string"!=typeof t.signature)throw new Wr("JWS Signature missing or incorrect type");if(void 0!==t.header&&!no(t.header))throw new Wr("JWS Unprotected Header incorrect type");let i={};if(t.protected)try{const n=Hr(t.protected);i=JSON.parse(Dr.decode(n))}catch{throw new Wr("JWS Protected Header is invalid")}if(!to(i,t.header))throw new Wr("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...i,...t.header};let o=!0;if(mo(Wr,new Map([["b64",!0]]),e?.crit,i,r).has("b64")&&(o=i.b64,"boolean"!=typeof o))throw new Wr('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=r;if("string"!=typeof s||!s)throw new Wr('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(o){if("string"!=typeof t.payload)throw new Wr("JWS Payload must be a string")}else if("string"!=typeof t.payload&&!(t.payload instanceof Uint8Array))throw new Wr("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof n?(n=await n(i,t),a=!0,po(s,n,"verify"),io(n)&&(n=await async function(t,n){if(!no(t))throw new TypeError("JWK must be an object");switch(n||(n=t.alg),t.kty){case"oct":if("string"!=typeof t.k||!t.k)throw new TypeError('missing "k" (Key Value) Parameter value');return Hr(t.k);case"RSA":if("oth"in t&&void 0!==t.oth)throw new Lr('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return ro({...t,alg:n});default:throw new Lr('Unsupported "kty" (Key Type) Parameter value')}}(n,s))):po(s,n,"verify");const c=jr(Pr.encode(t.protected??""),Pr.encode("."),"string"==typeof t.payload?Pr.encode(t.payload):t.payload);let h;try{h=Hr(t.signature)}catch{throw new Wr("Failed to base64url decode the signature")}const u=await(async(t,n,e,i)=>{const r=await vo(t,n,"verify");eo(t,r);const o=go(t,r.algorithm);try{return await zr.subtle.verify(o,r,e,i)}catch{return!1}})(s,n,h,c);if(!u)throw new Fr;let l;if(o)try{l=Hr(t.payload)}catch{throw new Wr("Failed to base64url decode the payload")}else l="string"==typeof t.payload?Pr.encode(t.payload):t.payload;const d={payload:l};return void 0!==t.protected&&(d.protectedHeader=i),void 0!==t.header&&(d.unprotectedHeader=t.header),a?{...d,key:n}:d}({payload:r,protected:i,signature:o},n,e),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof n?{...c,key:a.key}:c}(t,n,e);if(i.protectedHeader.crit?.includes("b64")&&!1===i.protectedHeader.b64)throw new Jr("JWTs MUST NOT use unencoded payload");const r={payload:_o(i.protectedHeader,i.payload,e),protectedHeader:i.protectedHeader};return"function"==typeof n?{...r,key:i.key}:r}(Ir.AES.decrypt(t,n).toString(Ir.enc.Utf8),Rt.from(n))}async joseEncrypt(t,n,e){const i=new Date,r=new To(t).setProtectedHeader({alg:"HS256"}).setIssuedAt(i.getTime()).setExpirationTime(e),o=await r.sign(Rt.from(n));return Ir.AES.encrypt(o,n).toString()}handleError(t){throw new Ro(t)}}class Co extends l{constructor(t){var n;super(),this.authInfo=t,this.encryptedApi=Ao.getInstance(this.authInfo.apiKey),this.objectHelper=Xe.getInstance(),this.baseUrl=null!==(n=u.url[this.authInfo.env])&&void 0!==n?n:u.url.development;const e={[u.accessHeader]:`Bearer ${this.authInfo.token}`},i=this.getPartnerSite(),r=null==i?void 0:i.startsWith("http");i&&r&&(e["X-Liquid-Partner-Site"]=i),this.client=ke.create({baseURL:this.baseUrl,...this.getConfig(e)})}getPartnerSite(){return window.location?window.location.origin:null}getConfig(t){return{headers:{"Content-Type":"application/json",[h]:this.authInfo.env,...t}}}async get(t,n){return this.createRequest(t,n,this.client.get)}async post(t,n,e){let i=n;if(![o.LOCAL,o.DEVELOPMENT].includes(this.authInfo.env)){const t=(new Date).getTime();e={...e,headers:{...null==e?void 0:e.headers,[a]:"true",[c]:t,[u.apiHeader]:this.authInfo.apiKey}},i={t:await this.encryptedApi.handleEncryption(n,t)}}return this.createRequest(t,e,((t,n)=>this.client.post(t,i,n)))}async createRequest(t,n,e){try{const i=this.createURL(t),r=this.createFullConfig(n),o=await this.sendRequest(i,r,e);return await this.getResponse(o)}catch(t){return{isOk:!1,val:null,isErr:new Ro(t)}}}createFullConfig(t){return this.objectHelper.merge(this.getConfig(),null!=t?t:{})}async sendRequest(t,n,e){return e(t,n)}async getResponse(t){var n,e,i,r,o,s,h;let u=(null==t?void 0:t.data)?t.data:null,l=!1,d=0;if((null==t?void 0:t.headers)&&(null===(n=null==t?void 0:t.headers)||void 0===n?void 0:n.has)&&(null===(e=null==t?void 0:t.headers)||void 0===e?void 0:e.has(a))&&(null===(i=null==t?void 0:t.headers)||void 0===i?void 0:i.has(c))&&(null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r.get)&&(l="true"===(null===(o=null==t?void 0:t.headers)||void 0===o?void 0:o.get(a)),d=(null===(s=null==t?void 0:t.headers)||void 0===s?void 0:s.get(c))?Number(null===(h=null==t?void 0:t.headers)||void 0===h?void 0:h.get(c)):0),u&&l&&this.objectHelper.includes(u,"t")&&d>0){const{t:t}=u,n=await this.encryptedApi.handleDecryption(t,d);(null==n?void 0:n.payload)&&(delete n.payload.exp,delete n.payload.iat,u=n.payload)}return{isOk:!0,val:u,isErr:!1}}createURL(t){const n=t&&"/"!==t[0]?`/${t}`:t;return`${this.baseUrl}/api${n}`}}class Io extends Co{constructor(t,n){super({authenticated:!1,apiKey:t,token:"",env:n})}static getInstance(t,n){return Ye.getInstance("AuthService",(()=>new Io(t,n)))}async initialize(){const{isOk:t,isErr:n,val:e}=await this.get("/auth",{headers:{[u.apiHeader]:this.authInfo.apiKey}});if(n)throw new Error(`There was an error during authentication: (${null==n?void 0:n.errorMessage})`);if(!t||!(null==e?void 0:e.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=e.data.token,this.authInfo.authenticated=!0,this.authInfo}}const zo="spot-carousel",Oo="spot-skeleton",Po={[n.RB_HOMEPAGE_HERO]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_THREE_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{width:1140,height:640},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{width:1140,height:640},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{width:468,height:410},[n.RB_SMALL_DISCOVER_TOUT]:{width:224,height:378},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{width:224,height:410},[n.RB_LONG_TOUT_SHORT]:{width:1200,height:250},[n.RB_LONG_TOUT_TALL]:{width:1200,height:400},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{width:887,height:344},[n.RB_PRODUCT_UPCS]:{width:1,height:1},[n.RB_NAVIGATION_BANNER]:{width:440,height:220},[n.RB_VIDEO_PLAYER]:{width:1280,height:720},[n.RB_IN_TEXT]:{width:1,height:1},[n.RB_CAROUSEL_HORIZONTAL_INFO_CARD]:{width:592,height:386},[n.SMALL_RECTANGLE]:{width:180,height:150},[n.MEDIUM_RECTANGLE]:{width:300,height:250},[n.LARGE_RECTANGLE]:{width:336,height:280},[n.VERTICAL_RECTANGLE]:{width:240,height:400},[n.BANNER]:{width:468,height:60},[n.LEADERBOARD]:{width:728,height:90},[n.LARGE_LEADERBOARD]:{width:970,height:90},[n.BILLBOARD]:{width:970,height:250},[n.SKYSCRAPER]:{width:120,height:600},[n.WIDE_SKYSCRAPER]:{width:160,height:600},[n.HALF_PAGE]:{width:300,height:600},[n.SMALL_SQUARE]:{width:200,height:200},[n.SQUARE]:{width:250,height:250},[n.VERTICAL_BANNER]:{width:120,height:240},[n.BUTTON_2]:{width:120,height:60},[n.MICRO_BAR]:{width:88,height:31},[n.POP_UP]:{width:550,height:480},[n.PORTRAIT]:{width:300,height:1050},[n.SMARTPHONE_BANNER_1]:{width:300,height:50},[n.SMARTPHONE_BANNER_2]:{width:320,height:50},[n.MOBILE_PHONE_INTERSTITIAL_1]:{width:640,height:1136},[n.MOBILE_PHONE_INTERSTITIAL_2]:{width:750,height:1334},[n.MOBILE_PHONE_INTERSTITIAL_3]:{width:1080,height:1920},[n.FEATURE_PHONE_SMALL_BANNER]:{width:120,height:20},[n.FEATURE_PHONE_MEDIUM_BANNER]:{width:168,height:28},[n.FEATURE_PHONE_LARGE_BANNER]:{width:216,height:36},[n.IN_TEXT]:{width:1,height:1}},Do=void 0!==window.document,jo=Do?HTMLElement:class{constructor(){this.shadowRoot=null,this.tagName="div",this.innerHTML=""}attachShadow(t){throw new Error("Liquid Commerce Rmn Sdk: attachShadow is not supported in non-browser environment")}appendChild(t){return t}};class Mo extends jo{constructor(){super(),this.initialized=!1,this.dataInitialized=!1,this.reRenderOnDeviceChange=!1,this.Ct=!0}initializeData(t,n){if(this.dataInitialized)throw new Error("Data can only be initialized once");this.S=Object.freeze(t),this.It=Object.freeze(n),this.dataInitialized=!0,this.initialized&&this.render()}render(){if(!this.initialized||!this.dataInitialized||!Do)return;this.zt=this.It.useShadowDom?this.shadowRoot||this.attachShadow({mode:"open"}):this,this.zt.innerHTML="";const t=document.createElement("style");t.textContent=this.baseStyles()+this.styles(),this.zt.appendChild(t);const n=this.template();"string"==typeof n?this.zt.innerHTML+=n:this.zt.appendChild(n)}baseStyles(){const t=this.S,n=this.It;return`\n ${n.useShadowDom?":host":this.tagName.toLowerCase()} {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n container-type: inline-size;\n width: ${n.fluid?"100%":`${t.width}px`};\n height: ${n.fluid?"100%":`${t.height}px`};\n -webkit-font-smoothing: auto;\n -moz-osx-font-smoothing: auto;\n }\n `}setupDeviceDetection(){if(!Do)return;const t=window.matchMedia("(max-width: 639.98px)"),n=t=>{var n;const e=t.matches;this.Ct!==e&&(this.Ct=e,null===(n=this.onDeviceChange)||void 0===n||n.call(this,this.Ct),this.reRenderOnDeviceChange&&this.render())};t.addEventListener("change",n),n(t)}connectedCallback(){var t;Do&&(this.initialized=!0,this.dataInitialized&&(this.render(),this.setupDeviceDetection()),null===(t=this.connected)||void 0===t||t.call(this))}disconnectedCallback(){var t;Do&&(null===(t=this.disconnected)||void 0===t||t.call(this))}}var Ho;!function(t){t[t.PLACEMENT_ID=0]="PLACEMENT_ID",t[t.SPOT_ID=1]="SPOT_ID",t[t.SPOT_TYPE=2]="SPOT_TYPE",t[t.EVENTS=3]="EVENTS",t[t.FIRED_EVENTS=4]="FIRED_EVENTS",t[t.PRODUCT_IDS=5]="PRODUCT_IDS",t[t.CREATED_AT=6]="CREATED_AT"}(Ho||(Ho={}));const Bo={[r.IMPRESSION]:0,[r.CLICK]:1,[r.PURCHASE]:2,[r.ADD_TO_CART]:3,[r.REMOVE_FROM_CART]:4,[r.ADD_TO_CART_FROM_DETAILS]:5,[r.ADD_TO_WISHLIST]:6,[r.EXPAND_PRODUCT]:7,[r.BUY_NOW]:8};class No{constructor(){void 0===window.localStorage&&console.warn("LiquidCommerce Rmn Sdk: Local storage is not supported in this environment."),this.setUserId(),this.spots=new Map,this.syncLocalStorage(),this.removeExpiredSpots()}static getInstance(){return Ye.getInstance("LocalStorageService",(()=>new No))}setSpot(t,n){var e,i,r,o,s;n.createdAt=Date.now(),(null===(e=this.spots)||void 0===e?void 0:e.has(t))&&(n.firedEvents=null!==(o=null===(r=null===(i=this.spots)||void 0===i?void 0:i.get(t))||void 0===r?void 0:r.firedEvents)&&void 0!==o?o:[]),null===(s=this.spots)||void 0===s||s.set(t,n),this.updateLocalStorage()}getSpots(){if(this.spots)return this.mapToObject(this.spots)}getUserId(){const t=No.localStorageKey;return t||this.setUserId(),t.replace(`${No.localStorageKeyPrefix}_`,"")}setUserId(){var t;const n=No.localStorageKeyPrefix,e=Object.keys(null!==(t=window.localStorage)&&void 0!==t?t:{}).filter((t=>t.startsWith(n))),i=()=>{var t;const e=Qe.generate(),i=`${n}_${e}`;null===(t=window.localStorage)||void 0===t||t.setItem(i,""),No.localStorageKey=i};if(0===e.length)i();else{const t=e.find((t=>Qe.isValid(t.replace(`${n}_`,""))));e.forEach((n=>{var e;n!==t&&(null===(e=window.localStorage)||void 0===e||e.removeItem(n))})),t?No.localStorageKey=t:i()}}syncLocalStorage(){var t;const n=null===(t=window.localStorage)||void 0===t?void 0:t.getItem(No.localStorageKey);if(n)try{const t=this.decryptData(n),e=JSON.parse(t);if(Array.isArray(e)){const t=Object.fromEntries(e.map((t=>[t[Ho.SPOT_ID],this.spotArrayToObject(t)])));this.spots=this.objectToMap(t)}else this.clearLocalStorage()}catch(t){this.clearLocalStorage()}}updateLocalStorage(){var t;if(!this.spots)return;const n=this.mapToObject(this.spots),e=Object.values(n).map((t=>this.spotObjectToArray(t)));try{const n=this.encryptData(JSON.stringify(e));null===(t=window.localStorage)||void 0===t||t.setItem(No.localStorageKey,n)}catch(t){this.clearLocalStorage()}}clearLocalStorage(){var t;null===(t=window.localStorage)||void 0===t||t.removeItem(No.localStorageKey)}removeExpiredSpots(){var t;const n=Date.now();null===(t=this.spots)||void 0===t||t.forEach(((t,e)=>{var i,r;n-(null!==(i=t.createdAt)&&void 0!==i?i:0)>No.spotExpirationTime&&(null===(r=this.spots)||void 0===r||r.delete(e))})),this.updateLocalStorage()}mapToObject(t){return Object.fromEntries(t)}objectToMap(t){return new Map(Object.entries(t))}spotEventObjectToArray(t){return Object.keys(Bo).map((n=>{const e=t.find((t=>t.event===n));return e&&e.event===n?e.url:""}))}spotEventArrayToObject(t){return Object.keys(Bo).map((n=>({event:n,url:t[Bo[n]]})))}spotObjectToArray(t){var n,e,i;return[t.placementId,t.spotId,t.spotType,this.spotEventObjectToArray(t.events),null!==(e=null===(n=t.firedEvents)||void 0===n?void 0:n.map((t=>[t.productId,t.event])))&&void 0!==e?e:[],t.productIds,null!==(i=t.createdAt)&&void 0!==i?i:0]}spotArrayToObject(t){return{placementId:t[Ho.PLACEMENT_ID],spotId:t[Ho.SPOT_ID],spotType:t[Ho.SPOT_TYPE],events:this.spotEventArrayToObject(t[Ho.EVENTS]),firedEvents:t[Ho.FIRED_EVENTS].map((t=>({productId:t[0],event:t[1]}))),productIds:t[Ho.PRODUCT_IDS],createdAt:t[Ho.CREATED_AT]}}unicodeEncode(t){return btoa(Array.from((new TextEncoder).encode(t)).map((t=>String.fromCharCode(t))).join(""))}unicodeDecode(t){return(new TextDecoder).decode(Uint8Array.from(atob(t),(t=>t.charCodeAt(0))))}encryptData(t){return No.encryptData?this.unicodeEncode(t):t}decryptData(t){return No.encryptData?this.unicodeDecode(t):t}}No.localStorageKeyPrefix="lc_rmn",No.localStorageKey="",No.spotExpirationTime=6048e5,No.encryptData=!0;class Uo{constructor(t,n,e={}){var i,r;this.maxGroupSize=20,this.targetIds=new Set(t),this.processedIds=new Set,this.callback=n,this.proximityThreshold=null!==(i=e.proximityThreshold)&&void 0!==i?i:500,this.intersectionMargin=null!==(r=e.intersectionMargin)&&void 0!==r?r:"2000px",this.initializeObservers(),this.observeExistingElements()}initializeObservers(){var t;this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this),{rootMargin:this.intersectionMargin}),this.mutationObserver=new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&(t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(this.checkElement(t),t.querySelectorAll("*").forEach((t=>{t instanceof HTMLElement&&this.checkElement(t)})))})),t.removedNodes.forEach((t=>{t instanceof HTMLElement&&(this.handleRemovedElement(t),t.querySelectorAll("*").forEach((t=>{t instanceof HTMLElement&&this.handleRemovedElement(t)})))})))}))})),document.body&&(null===(t=this.mutationObserver)||void 0===t||t.observe(document.body,{childList:!0,subtree:!0}))}handleRemovedElement(t){var n;t.id&&this.processedIds.has(t.id)&&(this.processedIds.delete(t.id),null===(n=this.intersectionObserver)||void 0===n||n.unobserve(t))}checkElement(t){var n;t.id&&this.targetIds.has(t.id)&&!this.processedIds.has(t.id)&&(null===(n=this.intersectionObserver)||void 0===n||n.observe(t))}findNearbyTargetIds(t){const n=this.getElementCenter(t),e=[];for(const i of this.targetIds){if(this.processedIds.has(i))continue;if(i===t.id)continue;const r=document.getElementById(i);if(!r)continue;const o=this.getElementCenter(r),s=this.calculateDistance(n,o);if(s<=this.proximityThreshold&&(e.push({id:i,distance:s}),e.length>=this.maxGroupSize))break}return e.sort(((t,n)=>t.distance-n.distance)).map((t=>t.id))}handleIntersection(t){t.forEach((t=>{if(!t.isIntersecting)return;const n=t.target;if(!n.id||this.processedIds.has(n.id))return;const e=[n.id,...this.findNearbyTargetIds(n)].slice(0,this.maxGroupSize);e.forEach((t=>{var n;this.processedIds.add(t);const e=document.getElementById(t);e&&(null===(n=this.intersectionObserver)||void 0===n||n.unobserve(e))})),this.callback(e)}))}getElementCenter(t){const n=t.getBoundingClientRect();return{x:n.left+n.width/2,y:n.top+n.height/2}}calculateDistance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}observeExistingElements(){this.targetIds.forEach((t=>{const n=document.getElementById(t);n&&this.checkElement(n)}))}}class Lo{constructor(){this.subscribers={}}static getInstance(){return Ye.getInstance("PubsubService",(()=>new Lo))}subscribe(t,n){return this.subscribers[t]||(this.subscribers[t]=[]),this.subscribers[t].push(n),()=>{this.subscribers[t]=this.subscribers[t].filter((t=>t!==n))}}publish(t,n){this.subscribers[t]&&this.subscribers[t].forEach((t=>t(n)))}}class Wo{constructor({element:t,maxSize:n,minScale:e}){var i;if("undefined"==typeof ResizeObserver&&console.warn("RmnSdk: ResizeObserver is not supported in this browser"),this.element=t,!t.parentElement)throw new Error("RmnSdk: Spot element must have a parent container.");this.container=t.parentElement,this.setDimensions(n,e),this.resizeObserver=new ResizeObserver((()=>this.updateElementSize())),null===(i=this.resizeObserver)||void 0===i||i.observe(this.container),this.updateElementSize()}setDimensions(t,n){if(n<=0||n>1)throw new Error("RmnSdk: Invalid minScale value");const e={width:t.width*n,height:t.height*n};if(t.width<=0||t.height<=0||e.width<=0||e.height<=0)throw new Error("RmnSdk: Invalid dimensions");if(e.width>t.width||e.height>t.height)throw new Error("RmnSdk: Minimum size cannot be greater than maximum size");this.maxSize=t,this.minSize=e,this.aspectRatio=this.maxSize.width/this.maxSize.height}updateElementSize(){const{clientWidth:t,clientHeight:n}=this.container;let e,i;e=Math.min(t,this.maxSize.width),i=e/this.aspectRatio,e>t&&(e=t,i=n*this.aspectRatio),e=Math.max(e,this.minSize.width),i=Math.max(i,this.minSize.height),this.element.style.width=`${e}px`,this.element.style.height=`${i}px`;const r=e/this.maxSize.width,o=i/this.maxSize.height,s=Math.min(r,o);this.element.dispatchEvent(new CustomEvent("spotSizeChanged",{detail:{width:this.maxSize.width,height:this.maxSize.height,newWidth:e,newHeight:i,scale:s}}))}disconnect(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}}const Jo='\n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n',Fo='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',Ko='\n <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap">\n',qo={preconnect:Jo,sourceSans:Fo,cormorant:Ko};function Vo(t,n=1){const e=t.replace("#","");return`rgba(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}, ${n})`}function Yo(t,n=""){if(!t)return n;const{size:e,opacity:i,color:r}=t,o={small:10,base:30,large:50}[e],s={light:.1,medium:.4,dark:.6}[i],a=Vo(r,1),c=Vo(r,0);return`${a} 0%, ${Vo(r,s)} ${o}%, ${c} 100%`}function Xo(...t){const n=0===t.length?["sourceSans","cormorant"]:t;return[qo.preconnect,...n.map((t=>qo[t]))].join("")}function Go(t,n,e){return(null==e?void 0:e.trim())?`<${t} class="${n}">${e}</${t}>`:""}class Zo extends Mo{constructor(){super(),this.originalFontSizes=new Map}connected(){this.setupResizeObserver()}disconnected(){var t;this.removeEventListener("spotSizeChanged",this.handleSpotSizeChanged),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}setupResizeObserver(){this.It.fluid||(this.resizeObserver=new Wo({element:this,maxSize:{width:this.S.width,height:this.S.height},minScale:.25}),this.addEventListener("spotSizeChanged",this.handleSpotSizeChanged.bind(this)))}handleSpotSizeChanged(t){this.adjustFontSize(t.detail.scale)}adjustFontSize(t){var n;const e=["h2","p","span"].join(", "),i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll(e);if(!i)return;const r=function(t){const n=1+.35*(Math.sqrt(t)-1);return Math.max(.35,Math.min(1.5,n))}(t);i.forEach((t=>{if(t instanceof HTMLElement){if(!this.originalFontSizes.has(t)){const n=parseFloat(window.getComputedStyle(t).fontSize);this.originalFontSizes.set(t,n)}const n=this.originalFontSizes.get(t)*r;t.style.fontSize=`${n}px`}}))}template(){const t=this.It.prefix,{preHeader:n,header:e,description:i,ctaText:r}=this.S;return`\n ${Jo}\n ${Fo}\n ${Ko}\n <div class="${t}">\n <div class="${t}__text">\n ${n?`<h2 class="${t}__pre-header">${n}</h2>`:""}\n ${e?`<h2 class="${t}__header">${e}</h2>`:""}\n ${i?`<p class="${t}__description">${i}</p>`:""}\n ${r?`<span class="${t}__cta-button">${r}</span>`:""}\n </div>\n </div>\n `}styles(){const t=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:n="#ffffff",ctaTextColor:e=n,ctaBorderColor:i=e,primaryImage:r,mobilePrimaryImage:o=r}=this.S,s=this.It.prefix;return`\n .${s} {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(to top, ${t}), url("${o}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${n};\n cursor: pointer;\n }\n\n .${s}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${s}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${s}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${s}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${s}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${i};\n display: inline-block;\n padding: 7px 20px;\n color: ${e};\n transition: background-color 0.3s ease;\n }\n\n .${s}:hover .cta-button {\n background-color: ${7===i.length?`${i}15`:`${i}`};\n }\n\n @container (min-width: 640px) {\n .${s} {\n background-image: linear-gradient(to top, ${t}), url("${r}");\n }\n\n .${s}__text {\n width: 70%;\n }\n }\n\n @container (min-width: 768px) {\n .${s}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${s}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${s}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${s}__description {\n font-size: 12px;\n }\n\n .${s}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${s}__header {\n font-size: 26px;\n }\n\n .${s}__description {\n font-size: 13px;\n }\n\n .${s}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${s}__header {\n font-size: 28px;\n }\n\n .${s}__description {\n font-size: 14px;\n }\n\n .${s}__cta-button {\n font-size: 14px;\n }\n }\n `}}class Qo extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:a,ctaText:c,mobileCtaText:h,textBlockPosition:u=s.LEFT,mobileTextBlockPosition:l=s.TOP,enableMobileTexts:d=!0}=this.S,f=this.Ct&&d?{preHeader:e,header:r,description:a,ctaText:h}:{preHeader:n,header:i,description:o,ctaText:c},p=this.hasContent?[Go("p",`${t}__preHeader`,f.preHeader),Go("h2",`${t}__header`,f.header),Go("p",`${t}__description`,f.description),Go("span",`${t}__cta-button`,f.ctaText)]:[];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__content ${t}__text-block--${u} ${t}__text-block-mobile--${l}">\n <div class="${t}__image"></div>\n <div class="${t}__text">\n <div class="${t}__text-container">\n ${p.join("")}\n </div>\n </div>\n </div>\n </div>\n `}styles(){const{headerColor:t="#212121",textColor:n="#616161",backgroundColor:e="#e8e6de",ctaTextColor:i="#b5914a",primaryImage:r,mobilePrimaryImage:o=r}=this.S,a=this.It.prefix;return`\n .${a} {\n width: 100%;\n height: 100%;\n position: relative;\n border-radius: 5px;\n }\n\n .${a}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: ${this.Ct?"column":"row"};\n overflow: hidden;\n border-radius: 5px;\n }\n\n .${a}__image {\n width: 100%;\n height: 100%;\n background-image: url("${o}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n min-width: 100px;\n overflow: hidden;\n }\n\n .${a}__text {\n background-color: ${e};\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: 10px;\n box-sizing: border-box;\n }\n\n .${a}__text-container {\n display: flex;\n flex-direction: column;\n gap: 5px;\n padding: 0 20px;\n }\n\n .${a}__preHeader {\n margin: 0;\n color:${t};\n font-family: "Cormorant", system-ui;\n font-weight: 700;\n font-size: 8px;\n line-height: normal;\n letter-spacing: 0.8px;\n }\n\n .${a}__header {\n margin: 0;\n color: ${t};\n font-family: "Cormorant", system-ui;\n font-weight: bold;\n font-size: 16px;\n line-height: 24px;\n position: relative;\n padding-bottom: 10px;\n margin-bottom: 5px;\n }\n \n .${a}__header::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n width: 76px;\n height: 1px;\n background-color: ${i};\n }\n\n .${a}__description {\n color: ${n};\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-weight: 400;\n }\n\n .${a}__cta-button {\n color: ${i};\n font-size: 10px;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 10px 0;\n transition: opacity 0.3s ease;\n display: inline-block;\n align-self: flex-end;\n text-decoration: none;\n }\n\n .${a}__content:hover .${a}__cta-button {\n opacity: 0.8;\n }\n\n @container (max-width: 639px) {\n .${a}__text-container {\n padding: 0 10px;\n }\n }\n\n @container (min-width: 640px) {\n .${a}__image {\n background-image: url("${r}");\n }\n\n .${a}__text-block--${s.LEFT} {\n flex-direction: row;\n }\n\n .${a}__text-block--${s.RIGHT} {\n flex-direction: row-reverse;\n }\n }\n\n @container (min-width: 768px) {\n\n .${a}__image {\n width: 50%;\n height: auto;\n }\n\n .${a}__text {\n width: 50%;\n align-self: center;\n }\n\n .${a}__preHeader {\n font-size: 9px;\n }\n\n .${a}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${a}__text {\n padding: 20px;\n }\n \n .${a}__text-container {\n padding-right: 20px;\n }\n \n .${a}__preHeader {\n font-size: 10px;\n }\n \n .${a}__header {\n font-size: 18px;\n }\n \n .${a}__description {\n font-size: 14px;\n }\n \n .${a}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${a}__header {\n font-size: 24px;\n }\n \n .${a}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:s,mobilePreHeader:a,enableMobileTexts:c=!0}=this.S,h=this.Ct&&c?{preheader:a,header:e,description:r,ctaText:s}:{preHeader:t,header:n,description:i,ctaText:o};return Object.values(h).some(Boolean)}}class ts extends Mo{constructor(){super()}template(){return`\n <div class="${this.It.prefix}"></div>\n `}styles(){const{primaryImage:t,mobilePrimaryImage:n=t}=this.S,e=this.It.prefix;return`\n .${e} {\n display: block;\n width: 100%;\n height: 100%;\n background-image: url("${n}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n cursor: pointer;\n container-type: inline-size;\n }\n\n @container (min-width: 640px) {\n .${e} {\n background-image: url("${t}");\n }\n }\n `}}class ns extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:a,ctaText:c,mobileCtaText:h,textBlockPosition:u=s.BOTTOM_LEFT,mobileTextBlockPosition:l=u,enableMobileTexts:d=!1}=this.S,f=this.Ct&&d?{preHeader:e,header:r,description:a,ctaText:h}:{preHeader:n,header:i,description:o,ctaText:c};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const p=[Go("h2",`${t}__pre-header`,f.preHeader),Go("h2",`${t}__header`,f.header),Go("p",`${t}__description`,f.description),Go("span",`${t}__cta-button`,f.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${u} ${t}__text-block-mobile--${l}">\n ${p.join("")}\n </div>\n </div>\n `}styles(){const{textBlockPosition:t=s.BOTTOM_LEFT,mobileTextBlockPosition:n=t}=this.S,e=this.getGradientDirection(t),i=this.getGradientDirection(n),r=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:o="#ffffff",ctaTextColor:a=o,ctaBorderColor:c=a,primaryImage:h,mobilePrimaryImage:u=h}=this.S,l=this.It.prefix;return`\n .${l} {\n display: flex;\n width: 100%;\n height: 100%;\n ${this.hasContent?`background-image: linear-gradient(${i}, ${r}), url("${u}");`:`background-image: url("${u}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-sizing: border-box;\n color: ${o};\n cursor: pointer;\n position: relative;\n }\n\n .${l}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n }\n\n @container (max-width: 639px) {\n .${l}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${l}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${l}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${c};\n display: inline-block;\n padding: 7px 20px;\n color: ${a};\n transition: background-color 0.3s ease;\n }\n\n .${l}:hover .cta-button {\n background-color: ${7===c.length?`${c}15`:`${c}`};\n }\n\n @container (min-width: 640px) {\n .${l} {\n ${this.hasContent?`background-image: linear-gradient(${e}, ${r}), url("${h}");`:`background-image: url("${h}");`}\n }\n\n .${l}__text > * {\n max-width: 60%;\n }\n\n .${l}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 768px) {\n .${l}__description {\n font-size: 12px;\n }\n\n .${l}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${l}__header {\n font-size: 26px;\n }\n\n .${l}__description {\n font-size: 13px;\n }\n\n .${l}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${l}__header {\n font-size: 28px;\n }\n\n .${l}__description {\n font-size: 14px;\n }\n\n .${l}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class es extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,mobileTextBlockPosition:h=c,enableMobileTexts:u=!1}=this.S,l=this.Ct&&u?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o},d=this.hasContent?[Go("h2",`${t}__header`,l.header),Go("p",`${t}__description`,l.description),Go("span",`${t}__cta-button`,l.ctaText)]:[];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__content ${t}__text-block--${c} ${t}__text-block-mobile--${h}">\n <div class="${t}__main">\n <div class="${t}__secondary-image"></div>\n <div class="${t}__text">\n ${d.join("")}\n </div>\n </div>\n <div class="${t}__primary-image"></div>\n </div>\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i,secondaryImage:o,mobileSecondaryImage:a=o}=this.S,c=this.It.prefix;return`\n .${c} {\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n }\n\n .${c}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n gap: 6px;\n color: inherit;\n cursor: pointer;\n }\n\n .${c}__primary-image {\n width: 100%;\n height: 60%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${c}__main {\n width: 100%;\n height: 40%;\n display: flex;\n flex-direction: row;\n gap: 6px;\n }\n\n @container (max-width: 767px) {\n .${c}__text-block-mobile--${s.RIGHT} .${c}__main {\n flex-direction: row;\n }\n\n .${c}__text-block-mobile--${s.LEFT} .${c}__main {\n flex-direction: row-reverse;\n }\n }\n\n .${c}__secondary-image {\n width: 50%;\n height: 100%;\n background-image: url("${a}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${c}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 50%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n .${c}__header {\n color: inherit;\n margin: 0;\n font-size: 18px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${c}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${c}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${c}__content:hover .${c}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${c}__primary-image {\n background-image: url("${i}");\n }\n\n .${c}__secondary-image {\n background-image: url("${o}");\n }\n }\n\n @container (min-width: 768px) {\n .${c}__content {\n flex-direction: row;\n }\n\n .${c}__text-block--${s.LEFT} {\n flex-direction: row;\n }\n\n .${c}__text-block--${s.RIGHT} {\n flex-direction: row-reverse;\n }\n\n .${c}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${c}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${c}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${c}__text {\n width: 100%;\n height: 50%;\n }\n\n .${c}__header {\n font-size: 22px;\n }\n\n .${c}__description {\n font-size: 12px;\n }\n\n .${c}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${c}__header {\n font-size: 24px;\n }\n .${c}__description {\n font-size: 13px;\n }\n .${c}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${c}__header {\n font-size: 28px;\n }\n .${c}__description {\n font-size: 14px;\n }\n .${c}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class is extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,mobileTextBlockPosition:h=s.TOP,enableMobileTexts:u=!1}=this.S,l=this.Ct&&u?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o},d=this.hasContent?[Go("h2",`${t}__header`,l.header),Go("p",`${t}__description`,l.description),Go("span",`${t}__cta-button`,l.ctaText)]:[];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__content ${t}__text-block--${c} ${t}__text-block-mobile--${h}">\n <div class="${t}__text">\n ${d.join("")}\n </div>\n <div class="${t}__image"></div>\n </div>\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="#e8e6de",ctaTextColor:e=t,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=this.It.prefix;return`\n .${o} {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n position: relative;\n }\n\n .${o}__content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n background-color: transparent;\n gap: 6px;\n }\n\n .${o}__image {\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n\n .${o}__text {\n color: ${t};\n background-color: ${n};\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n gap: 10px;\n padding: 0 10px;\n box-sizing: border-box;\n }\n\n @container (max-width: 767px) {\n .${o}__text-block-mobile--${s.BOTTOM} {\n flex-direction: column-reverse;\n }\n\n .${o}__text-block-mobile--${s.TOP} {\n flex-direction: column;\n }\n }\n\n .${o}__header {\n font-size: 18px;\n margin: 0;\n color: inherit;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n }\n\n .${o}__description {\n color: inherit;\n margin: 0;\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${o}__cta-button {\n color: ${e};\n background-color: transparent;\n font-size: 8px;\n font-style: normal;\n font-weight: 700;\n font-family: "Source Sans 3", system-ui;\n text-decoration-line: underline;\n text-transform: uppercase;\n letter-spacing: 1.4px;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n\n .${o}__content:hover .${o}__cta-button {\n opacity: 0.8;\n }\n\n @container (min-width: 640px) {\n .${o}__image {\n background-image: url("${i}");\n }\n }\n\n @container (min-width: 768px) {\n .${o}__content {\n flex-direction: row;\n }\n\n .${o}__text-block--${s.LEFT} {\n flex-direction: row;\n }\n\n .${o}__text-block--${s.RIGHT} {\n flex-direction: row-reverse;\n }\n\n .${o}__image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__text {\n width: 33.33333%;\n height: 100%;\n }\n\n .${o}__header {\n font-size: 22px;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 24px;\n }\n .${o}__description {\n font-size: 13px;\n }\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n .${o}__description {\n font-size: 14px;\n }\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class rs extends Mo{constructor(){super()}template(){const t=this.It.prefix,{header:n}=this.S;return`\n <div class="${t}">\n ${n?`<h2 class="${t}__header">${n}</h2>`:""}\n </div>\n `}styles(){const{textColor:t="#212121",backgroundColor:n="transparent"}=this.S,e=this.It.prefix;return`\n .${e} {\n display: block;\n cursor: pointer;\n max-width: fit-content;\n padding: 0;\n background-color: ${n};\n }\n .${e}__header {\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 400;\n color: ${t};\n font-family: "Source Sans 3", system-ui;\n margin: 0;\n }\n .${e}__header:hover {\n color: #b5914a;\n }\n `}}class os extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,ctaText:o,mobileCtaText:a,textBlockPosition:c=s.LEFT,enableMobileTexts:h=!1}=this.S,u=this.Ct&&h?{header:e,description:r,ctaText:a}:{header:n,description:i,ctaText:o};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const l=[Go("h2",`${t}__header`,u.header),Go("p",`${t}__description`,u.description),Go("span",`${t}__cta-button`,u.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${c}">\n ${l.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),a=this.It.prefix;return`\n .${a} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n ${this.hasContent?`background-image: linear-gradient(to top, ${o}), url("${r}");`:`background-image: url("${r}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n color: ${t};\n position: relative;\n }\n\n .${a}__text {\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 10px;\n position: absolute;\n bottom: 0;\n width: 100%;\n max-width: 50%;\n }\n\n .${a}__text-block--${s.LEFT} {\n left: 0;\n text-align: left;\n align-items: flex-start;\n }\n\n .${a}__text-block--${s.RIGHT} {\n right: 0;\n text-align: right;\n align-items: flex-end;\n }\n\n .${a}__header {\n color: inherit;\n margin: 0;\n font-size: 20px;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${a}__description {\n color: inherit;\n font-size: 12px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n .${a}__cta-button {\n width: fit-content;\n display: inline-block;\n padding: 7px 20px;\n border: 0.5px solid ${e};\n border-radius: 5px;\n color: ${n};\n font-size: 8px;\n transition: background-color 0.3s ease;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n }\n\n .${a}:hover .${a}__cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${a} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${o}), url("${i}");`:`background-image: url("${i}");`}\n }\n }\n\n @container (min-width: 768px) {\n .${a}__text {\n padding: 25px;\n }\n\n .${a}__header {\n font-size: 24px;\n }\n\n .${a}__description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .${a}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${a}__text {\n padding: 30px;\n }\n\n .${a}__header {\n font-size: 28px;\n }\n\n .${a}__description {\n font-size: 14px;\n }\n\n .${a}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${a}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,ctaText:r,mobileCtaText:o,enableMobileTexts:s=!1}=this.S,a=this.Ct&&s?{header:n,description:i,ctaText:o}:{header:t,description:e,ctaText:r};return Object.values(a).some(Boolean)}}class ss extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:s,ctaText:a,mobileCtaText:c,enableMobileTexts:h=!1}=this.S,u=this.Ct&&h?{preHeader:e,header:r,description:s,ctaText:c}:{preHeader:n,header:i,description:o,ctaText:a};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const l=[Go("h2",`${t}__pre-header`,u.preHeader),Go("h2",`${t}__header`,u.header),Go("p",`${t}__description`,u.description),Go("span",`${t}__cta-button`,u.ctaText)];return`\n ${Xo()}\n <div class="${t}">\n <div class="${t}__text">\n ${l.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#ffffff",ctaTextColor:n=t,ctaBorderColor:e=n,primaryImage:i,mobilePrimaryImage:r=i}=this.S,o=this.It.prefix;return`\n .${o} {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: flex-end;\n width: 100%;\n height: 100%;\n background-image: url("${r}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n color: ${t};\n cursor: pointer;\n }\n\n .${o}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 8px;\n }\n\n .${o}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${o}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${o}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${e};\n display: inline-block;\n padding: 7px 20px;\n color: ${n};\n transition: background-color 0.3s ease;\n }\n\n .${o}:hover .cta-button {\n background-color: ${7===e.length?`${e}15`:`${e}`};\n }\n\n @container (min-width: 640px) {\n .${o} {\n background-image: url("${i}");\n }\n\n .${o}__text {\n width: 50%;\n }\n }\n\n @container (min-width: 768px) {\n .${o}__primary-image {\n width: 66.66666%;\n height: 100%;\n }\n\n .${o}__main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n\n .${o}__secondary-image {\n width: 100%;\n height: 50%;\n }\n\n .${o}__description {\n font-size: 12px;\n }\n\n .${o}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${o}__header {\n font-size: 26px;\n }\n\n .${o}__description {\n font-size: 13px;\n }\n\n .${o}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${o}__header {\n font-size: 28px;\n }\n\n .${o}__description {\n font-size: 14px;\n }\n\n .${o}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class as extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}template(){const t=this.It.prefix,{preHeader:n,mobilePreHeader:e,header:i,mobileHeader:r,description:o,mobileDescription:a,ctaText:c,mobileCtaText:h,textBlockPosition:u=s.MIDDLE_LEFT,mobileTextBlockPosition:l=u,enableMobileTexts:d=!1}=this.S,f=this.Ct&&d?{preHeader:e,header:r,description:a,ctaText:h}:{preHeader:n,header:i,description:o,ctaText:c};if(!this.hasContent)return`\n ${Xo()}\n <div class="${t}"></div>\n `;const p=[Go("h2",`${t}__pre-header`,f.preHeader),Go("h2",`${t}__header`,f.header),Go("p",`${t}__description`,f.description),Go("span",`${t}__cta-button`,f.ctaText)];return`\n ${Jo}\n ${Fo}\n ${Ko}\n <div class="${t}">\n <div class="${t}__text ${t}__text-block--${u} ${t}__text-block-mobile--${l}">\n ${p.join("")}\n </div>\n </div>\n `}styles(){const{textBlockPosition:t=s.MIDDLE_LEFT,mobileTextBlockPosition:n=t}=this.S,e=this.getGradientDirection(t),i=this.getGradientDirection(n),r=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%"),{textColor:o="#ffffff",ctaTextColor:a=o,ctaBorderColor:c=a,primaryImage:h,mobilePrimaryImage:u=h}=this.S,l=this.It.prefix;return`\n .${l} {\n display: flex;\n width: 100%;\n height: 100%;\n ${this.hasContent?`background-image: linear-gradient(${i}, ${r}), url("${u}");`:`background-image: url("${u}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-sizing: border-box;\n color: ${o};\n cursor: pointer;\n position: relative;\n }\n\n .${l}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n }\n\n @container (max-width: 639px) {\n .${l}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 640px) {\n .${l} {\n ${this.hasContent?`background-image: linear-gradient(${e}, ${r}), url("${h}");`:`background-image: url("${h}");`}\n }\n\n .${l}__text > * {\n max-width: 60%;\n }\n\n .${l}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${l}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${l}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${l}__pre-header {\n font-size: 12px;\n margin: 0;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${l}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${l}__cta-button {\n font-size: 8px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n border-radius: 5px;\n border: 0.5px solid ${c};\n display: inline-block;\n padding: 7px 20px;\n color: ${a};\n transition: background-color 0.3s ease;\n }\n\n .${l}:hover .cta-button {\n background-color: ${7===c.length?`${c}15`:`${c}`};\n }\n\n @container (min-width: 768px) {\n .${l}__description {\n font-size: 12px;\n }\n\n .${l}__cta-button {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${l}__header {\n font-size: 26px;\n }\n\n .${l}__description {\n font-size: 13px;\n }\n\n .${l}__cta-button {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${l}__header {\n font-size: 28px;\n }\n\n .${l}__description {\n font-size: 14px;\n }\n\n .${l}__cta-button {\n font-size: 14px;\n }\n }\n `}get hasContent(){const{preHeader:t,mobilePreHeader:n,header:e,mobileHeader:i,description:r,mobileDescription:o,ctaText:s,mobileCtaText:a,enableMobileTexts:c=!1}=this.S,h=this.Ct&&c?{preHeader:n,header:i,description:o,ctaText:a}:{preHeader:t,header:e,description:r,ctaText:s};return Object.values(h).some(Boolean)}}class cs extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=this.Ct&&i?{header:e}:{header:n};if(!this.hasContent)return`\n ${Xo("sourceSans")}\n <div class="${t}"></div>\n `;const o=[Go("h2",`${t}__header`,r.header)];return`\n ${Xo("sourceSans")}\n <div class="${t}">\n ${o.join("")}\n </div>\n `}styles(){const{textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n}=this.S,i=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${e}");`:`background-image: url("${e}");`}\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: relative;\n }\n\n .${r}__header {\n font-size: 16px;\n color: ${t};\n line-height: 20px;\n font-weight: 400;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n margin: 0;\n padding: 15px 10%;\n }\n\n @container (min-width: 640px) {\n .${r} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${n}");`:`background-image: url("${n}");`}\n }\n }\n\n @container (min-width: 768px) {\n .${r}__header {\n font-size: 22px;\n }\n }\n\n @container (min-width: 1024px) {\n .${r}__header {\n font-size: 24px;\n }\n }\n\n @container (min-width: 1280px) {\n .${r}__header {\n font-size: 28px;\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,enableMobileTexts:e=!1}=this.S,i=this.Ct&&e?{header:n}:{header:t};return Object.values(i).some(Boolean)}}class hs extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=this.Ct&&i?{header:e}:{header:n};if(!this.hasContent)return`\n ${Xo("cormorant")}\n <div class="${t}"></div>\n `;const o=[Go("h2",`${t}__header`,r.header)];return`\n ${Xo("cormorant")}\n <div class="${t}">\n ${o.join("")}\n </div>\n `}styles(){const{textColor:t="#ffffff",primaryImage:n,mobilePrimaryImage:e=n}=this.S,i=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%"),r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${e}");`:`background-image: url("${e}");`}\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${t};\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n padding: 10px;\n }\n\n @container (min-width: 640px) {\n .${r} {\n ${this.hasContent?`background-image: linear-gradient(to top, ${i}), url("${n}");`:`background-image: url("${n}");`}\n }\n }\n `}get hasContent(){const{header:t,mobileHeader:n,enableMobileTexts:e=!1}=this.S,i=this.Ct&&e?{header:n}:{header:t};return Object.values(i).some(Boolean)}}class us extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0}template(){const t=this.It.prefix,{header:n,mobileHeader:e,enableMobileTexts:i=!1}=this.S,r=[Go("h2",`${t}__header`,(this.Ct&&i?{header:e}:{header:n}).header)];return`\n ${Xo("sourceSans")}\n <div class="${t}">\n <div class="${t}__image"></div>\n <div class="${t}__text">\n ${r.join("")}\n </div>\n </div>\n `}styles(){const{textColor:t="#000000",backgroundColor:n="transparent",primaryImage:e,mobilePrimaryImage:i=e}=this.S,r=this.It.prefix;return`\n .${r} {\n width: 100%;\n height: 100%;\n background-color: ${n};\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n\n .${r}__image {\n width: 100%;\n height: 100%;\n background-image: url("${i}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n border-radius: 5px;\n }\n\n .${r}__text {\n text-align: left;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n width: 100%;\n height: fit-content;\n position: relative;\n }\n\n .${r}__header {\n font-size: 12px;\n color: ${t};\n padding-top: 5px;\n line-height: 16px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n\n @container (min-width: 640px) {\n .${r}__image {\n background-image: url("${e}");\n }\n }\n `}}class ls extends Mo{constructor(){super(),this.reRenderOnDeviceChange=!0,this.videoSelector=()=>`.${this.It.prefix}__video-element`,this.muteButtonSelector=()=>`.${this.It.prefix}__mute-button`,this.video=null,this.bindEventHandlers()}bindEventHandlers(){this.handleMuteToggle=this.handleMuteToggle.bind(this)}updateMuteIcon(t){const n=this.zt.querySelector(`.${this.It.prefix}__mute-icon`);n&&(n.innerHTML=t?this.getMuteIcon():this.getUnmuteIcon())}handleMuteToggle(t){t.preventDefault(),this.video&&(this.video.muted=!this.video.muted,this.updateMuteIcon(this.video.muted))}getMuteIcon(){return'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M11 5L6 9H2v6h4l5 4V5z"/>\n <line x1="23" y1="9" x2="17" y2="15"/>\n <line x1="17" y1="9" x2="23" y2="15"/>\n </svg>\n '}getUnmuteIcon(){return'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M11 5L6 9H2v6h4l5 4V5z"/>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/>\n </svg>\n '}connected(){this.initializeElements(),this.attachEventListeners()}disconnected(){this.removeEventListeners()}initializeElements(){this.video=this.zt.querySelector(this.videoSelector())}attachEventListeners(){if(!this.video)return;const t=this.zt.querySelector(this.muteButtonSelector());null==t||t.addEventListener("click",this.handleMuteToggle)}removeEventListeners(){if(!this.video)return;const t=this.zt.querySelector(this.muteButtonSelector());null==t||t.removeEventListener("click",this.handleMuteToggle)}getGradientDirection(t){switch(t){case s.TOP_LEFT:case s.TOP_RIGHT:return"to bottom";case s.MIDDLE_LEFT:return"to right";case s.MIDDLE_RIGHT:return"to left";case s.BOTTOM_LEFT:case s.BOTTOM_RIGHT:default:return"to top"}}get hasContent(){const{header:t,mobileHeader:n,description:e,mobileDescription:i,enableMobileTexts:r=!1}=this.S,o=this.Ct&&r?{header:n,description:i}:{header:t,description:e};return Object.values(o).some(Boolean)}template(){const t=this.It.prefix,{header:n,mobileHeader:e,description:i,mobileDescription:r,textBlockPosition:o=s.BOTTOM_LEFT,mobileTextBlockPosition:a=o,enableMobileTexts:c=!1}=this.S,{url:h,mobileUrl:u=h,mute:l=!0,showMute:d=!0}=this.S.video;return h?`\n ${Xo()}\n <div class="${t}">\n ${(()=>{if(!this.hasContent)return"";const s=this.Ct&&c?{header:e,description:r}:{header:n,description:i},h=[Go("h2",`${t}__header`,s.header),Go("p",`${t}__description`,s.description)];return`\n <div class="${t}__text ${t}__text-block--${o} ${t}__text-block-mobile--${a}">\n ${h.join("")}\n </div>\n `})()}\n ${(()=>`\n <div class="${t}__video-wrapper">\n <div class="${t}__video-container">\n <video\n class="${t}__video-element"\n src="${this.Ct?u:h}"\n autoplay\n ${l?"muted":""}\n loop\n preload="metadata"\n playsinline\n >\n Your browser doesn't support HTML5 video playback.\n </video>\n </div>\n </div>\n `)()}\n ${d?`\n <div class="${t}__controls">\n ${(()=>d?`\n <button type="button" class="${t}__mute-button">\n <span class="${t}__mute-icon">\n ${this.getMuteIcon()}\n </span>\n </button>\n `:"")()}\n </div>\n `:""}\n </div>\n `:"<p>Please provide a video source</p>"}styles(){const t=this.It.prefix,{width:n,height:e,textBlockPosition:i=s.BOTTOM_LEFT,mobileTextBlockPosition:r=i,textColor:o="#ffffff"}=this.S,{aspectRatio:a="16:9"}=this.S.video,c=this.getGradientDirection(i),h=this.getGradientDirection(r),u=Yo(this.It.overlay,"rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%");return`\n ${this.It.useShadowDom?":host":this.tagName.toLowerCase()} {\n width: 100%;\n height: 100%;\n max-width: ${n}px;\n max-height: ${e}px};\n }\n\n .${t} {\n width: 100%;\n height: 100%;\n background: #fff;\n overflow: hidden;\n position: relative;\n }\n\n .${t}::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1;\n pointer-events: none;\n }\n\n .${t}__video-wrapper {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n\n .${t}__video-container {\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: ${a.replace(":","/")};\n }\n\n .${t}__video-element {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n\n @media (max-aspect-ratio: 16/9) {\n .${t}__video-element {\n width: 100%;\n height: auto;\n }\n }\n\n @media (min-aspect-ratio: 16/9) {\n .${t}__video-element {\n width: auto;\n height: 100%;\n }\n }\n\n .${t}__text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n height: fit-content;\n gap: 8px;\n position: absolute;\n color: ${o};\n z-index: 10;\n }\n\n @container (max-width: 639px) {\n .${t}::before {\n ${this.hasContent?`background: linear-gradient(${h}, ${u});`:""}\n }\n\n .${t}__text-block-mobile--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block-mobile--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block-mobile--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block-mobile--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n @container (min-width: 640px) {\n .${t}::before {\n ${this.hasContent?`background: linear-gradient(${c}, ${u});`:""}\n }\n\n .${t}__text > * {\n max-width: 60%;\n }\n\n .${t}__text-block--${s.TOP_LEFT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.TOP_RIGHT} {\n top: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block--${s.MIDDLE_LEFT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.MIDDLE_RIGHT} {\n top: 50%;\n left: 3%;\n right: 3%;\n transform: translateY(-50%);\n align-items: flex-end;\n text-align: right;\n }\n\n .${t}__text-block--${s.BOTTOM_LEFT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-start;\n text-align: left;\n }\n\n .${t}__text-block--${s.BOTTOM_RIGHT} {\n bottom: 3%;\n left: 3%;\n right: 3%;\n align-items: flex-end;\n text-align: right;\n }\n }\n\n .${t}__header {\n font-size: 24px;\n margin: 0;\n font-family: "Cormorant", system-ui;\n font-style: normal;\n font-weight: 300;\n line-height: normal;\n }\n\n .${t}__description {\n font-size: 10px;\n font-family: "Source Sans 3", system-ui;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n\n .${t}__controls {\n position: absolute;\n bottom: 5px;\n right: 5px;\n background: rgba(0, 0, 0, 0.5);\n padding: 8px;\n display: flex;\n align-items: center;\n opacity: 0;\n transition: opacity 0.3s;\n z-index: 100;\n width: fit-content;\n border-radius: 50%;\n }\n\n .${t}:hover .${t}__controls {\n opacity: 1;\n }\n\n .${t}__mute-button {\n background: none;\n border: none;\n color: white;\n cursor: pointer;\n width: 32px;\n height: 32px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .${t}__mute-icon svg {\n width: 20px;\n height: 20px;\n }\n\n .${t}__mute-button:hover {\n opacity: 0.8;\n }\n\n @container (min-width: 768px) {\n .${t}__description {\n font-size: 12px;\n }\n }\n\n @container (min-width: 1024px) {\n .${t}__header {\n font-size: 26px;\n }\n\n .${t}__description {\n font-size: 13px;\n }\n }\n\n @container (min-width: 1280px) {\n .${t}__header {\n font-size: 28px;\n }\n\n .${t}__description {\n font-size: 14px;\n }\n }\n `}}class ds{constructor(){this.rbTemplates=this.initializeRbTemplates(),this.iabTemplates=this.initializeIabTemplates()}static getInstance(){return Ye.getInstance("SpotTemplateService",(()=>new ds))}getTemplateCustomElementClass(t,n){var e;const i=this.isRbSpot(t)?this.rbTemplates:this.iabTemplates;return i&&(null===(e=i[t])||void 0===e?void 0:e[n])||null}isRbSpot(t){return t.startsWith("rb")}initializeRbTemplates(){return{[n.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:es},[n.RB_HOMEPAGE_HERO_TWO_TILE]:{rbHomepageHeroTwoTile:is},[n.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:ns},[n.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:os},[n.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:us},[n.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:hs},[n.RB_LONG_TOUT_SHORT]:{rbLongToutShort:ss},[n.RB_LONG_TOUT_TALL]:{rbLongToutTall:as},[n.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:ts},[n.RB_NAVIGATION_BANNER]:{rbNavigationBanner:cs},[n.RB_IN_TEXT]:{rbInText:rs},[n.RB_VIDEO_PLAYER]:{rbVideoPlayer:ls},[n.RB_CAROUSEL_HORIZONTAL_INFO_CARD]:{rbCarouselHorizontalInfoCard:Qo}}}initializeIabTemplates(){return{[n.BILLBOARD]:{billboardV1:Zo}}}}let fs,ps;if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.state={currentSlide:0,autoplayInterval:null,isAutoplayPaused:!1,useDots:!1,useButtons:!1,autoplay:!0,interval:t.defaultConfigs.interval,dots:{...t.defaultConfigs.dots},buttons:{...t.defaultConfigs.buttons},isDragging:!1,startX:0,currentX:0,dragStartTime:0,dragDistance:0,containerWidth:0,isTransitioning:!1,realIndex:0,virtualIndex:1,isVirtualizing:!1},this.elements={slidesContainer:null,dots:[],prevButton:null,nextButton:null},this.cloneToOriginalMap=new WeakMap,this.attachShadow({mode:"open"}),this.handleTransitionEnd=this.handleTransitionEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.updateContainerWidth=this.updateContainerWidth.bind(this)}connectedCallback(){this.initializeState(),this.render(),this.setupCarousel(),this.setupTouchEvents(),this.startAutoplayIfEnabled(),this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth.bind(this)),this.setupResizeObserver()}disconnectedCallback(){var t;this.cleanupEventListeners(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}setupResizeObserver(){this.data&&!this.data.fluid&&(this.resizeObserver=new Wo({element:this,maxSize:{width:this.data.width,height:this.data.height},minScale:this.data.minScale}))}initializeState(){var n,e,i,r,o,s,a,c;this.state.useDots=Boolean(null===(n=this.data)||void 0===n?void 0:n.useDots),this.state.useButtons=Boolean(null===(e=this.data)||void 0===e?void 0:e.useButtons),this.state.autoplay=null===(r=null===(i=this.data)||void 0===i?void 0:i.autoplay)||void 0===r||r,this.state.interval=null!==(s=null===(o=this.data)||void 0===o?void 0:o.interval)&&void 0!==s?s:t.defaultConfigs.interval,"object"==typeof(null===(a=this.data)||void 0===a?void 0:a.useDots)&&(this.state.dots={...this.state.dots,...this.data.useDots}),"object"==typeof(null===(c=this.data)||void 0===c?void 0:c.useButtons)&&(this.state.buttons={...this.state.buttons,...this.data.useButtons}),this.validateConfiguration()}validateConfiguration(){this.validatePosition(this.state.dots.position,"dotsPosition","bottom-center"),this.validateButtonsPosition()}validatePosition(n,e,i){t.validPositions.has(n)||(console.warn(`LiquidCommerce Rmn Sdk: Invalid ${e}: ${n}. Defaulting to '${i}'.`),"dotsPosition"===e?this.state.dots.position=i:"buttonsPosition"===e&&(this.state.buttons.position=i))}render(){if(!this.shadowRoot)return;const t=document.createElement("style");t.textContent=(({width:t,height:n,fluid:e})=>`\n :host {\n position: relative;\n display: inline-block;\n margin: 0;\n overflow: hidden;\n width: ${e?"100%":`${t}px`};\n height: ${e?"100%":`${n}px`};\n }\n\n .container {\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .slides {\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n transition: transform 0.5s ease-in-out;\n }\n\n .slide {\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n\n .slide.active {\n display: flex;\n }\n\n .dots {\n position: absolute;\n display: flex;\n align-items: center;\n gap: 8px;\n opacity: var(--opacity, 1);\n }\n\n .dots.small .dot {\n width: 8px;\n height: 8px;\n }\n\n .dots.base .dot {\n width: 12px;\n height: 12px;\n }\n\n .dots.large .dot {\n width: 16px;\n height: 16px;\n }\n\n .dots .dot {\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.3s ease;\n }\n\n .dots.top-left,\n .dots.bottom-left {\n left: 10px;\n }\n\n .dots.top-center,\n .dots.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .dots.top-right,\n .dots.bottom-right {\n right: 10px;\n }\n\n .dots.top-left,\n .dots.top-center,\n .dots.top-right {\n top: 10px;\n }\n\n .dots.bottom-left,\n .dots.bottom-center,\n .dots.bottom-right {\n bottom: 10px;\n }\n\n .dots.middle-left {\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .dots.middle-right {\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons {\n opacity: var(--opacity, 1);\n }\n\n .buttons button {\n background-color: #00000080;\n color: #fff;\n border: none;\n padding: 10px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n }\n\n .buttons.small button {\n padding: 6px;\n }\n\n .buttons.base button {\n padding: 10px;\n }\n\n .buttons.large button {\n padding: 14px;\n }\n\n .buttons button:hover {\n background-color: #000000b3;\n }\n\n .buttons.buttons-separate button {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .buttons.buttons-separate .prev-button {\n left: 10px;\n }\n\n .buttons.buttons-separate .next-button {\n right: 10px;\n }\n\n .buttons.buttons-together {\n position: absolute;\n display: flex;\n gap: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.bottom-left {\n left: 10px;\n }\n\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.bottom-center {\n left: 50%;\n transform: translateX(-50%);\n }\n\n .buttons.buttons-together.top-right,\n .buttons.buttons-together.bottom-right {\n right: 10px;\n }\n\n .buttons.buttons-together.top-left,\n .buttons.buttons-together.top-center,\n .buttons.buttons-together.top-right {\n top: 10px;\n }\n\n .buttons.buttons-together.bottom-left,\n .buttons.buttons-together.bottom-center,\n .buttons.buttons-together.bottom-right {\n bottom: 10px;\n }\n\n .buttons.buttons-together.middle-left,\n .buttons.buttons-together.middle-right {\n top: 50%;\n transform: translateY(-50%);\n flex-direction: column;\n }\n\n .buttons.buttons-together.middle-left {\n left: 10px;\n }\n\n .buttons.buttons-together.middle-right {\n right: 10px;\n }\n\n @media (max-width: 768px) {\n .buttons button {\n padding: 8px 12px;\n font-size: 14px;\n }\n }\n`)(this.data),this.shadowRoot.appendChild(t);const n=document.createElement("div");n.className="container";const e=this.createSlides();if(n.appendChild(e),this.state.useDots){const t=this.createDots();n.appendChild(t)}if(this.state.useButtons){const t=this.createButtons();n.appendChild(t)}this.shadowRoot.appendChild(n),this.cacheElements()}createSlides(){const t=document.createElement("div");return t.className="slides",this.appendSlide(t,this.slides.length-1),this.slides.forEach(((n,e)=>{this.appendSlide(t,e)})),this.appendSlide(t,0),t.style.transform="translateX(-100%)",t}appendSlide(t,n){const e=document.createElement("div");if(e.className="slide",this.slides[n]instanceof HTMLElement){const t=this.slides[n],i=new(0,t.constructor);i.initializeData(t.S,t.It),this.cloneToOriginalMap.set(i,t);let r=!1;e.addEventListener("mousedown",(()=>r=!1)),e.addEventListener("mousemove",(()=>r=!0)),["click","mouseenter","mouseleave","mouseover","mouseout","focus","blur"].forEach((n=>{i.addEventListener(n,(e=>{if("click"===n&&r)return void e.stopPropagation();const i=new Event(e.type,{bubbles:e.bubbles,cancelable:e.cancelable});t.dispatchEvent(i)}))})),e.appendChild(i)}t.appendChild(e)}createDots(){const{position:t,size:n,opacity:e,color:i}=this.state.dots,r=document.createElement("div");return r.className=`dots ${t} ${n}`,r.style.setProperty("--opacity",e.toString()),this.slides.forEach(((t,n)=>{const e=document.createElement("span");e.className="dot "+(n===this.state.currentSlide?"active":""),e.style.backgroundColor=i,r.appendChild(e)})),r}createButtons(){const{together:t,position:n,size:e,opacity:i}=this.state.buttons,r=document.createElement("div"),o=t?`buttons-together ${n}`:"buttons-separate";return r.className=`buttons ${o} ${e}`,r.style.setProperty("--opacity",i.toString()),this.elements.prevButton=this.createButton("prev-button",this.state.buttons.prev),this.elements.nextButton=this.createButton("next-button",this.state.buttons.next),r.appendChild(this.elements.prevButton),r.appendChild(this.elements.nextButton),r}createButton(t,n){const{textColor:e,backgroundColor:i,borderRadius:r}=this.state.buttons,o=document.createElement("button");return o.className=t,o.textContent=n,o.style.color=e,o.style.backgroundColor=i,o.style.borderRadius=r,o}cacheElements(){this.shadowRoot&&(this.elements.slidesContainer=this.shadowRoot.querySelector(".slides"),this.elements.dots=Array.from(this.shadowRoot.querySelectorAll(".dot")),this.elements.prevButton=this.shadowRoot.querySelector(".prev-button"),this.elements.nextButton=this.shadowRoot.querySelector(".next-button"))}setupCarousel(){this.setupEventListeners(),this.elements.slidesContainer&&this.elements.slidesContainer.addEventListener("transitionend",this.handleTransitionEnd),this.updateCarousel(!1)}setupTouchEvents(){this.elements.slidesContainer&&(this.elements.slidesContainer.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),this.elements.slidesContainer.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.elements.slidesContainer.addEventListener("touchend",this.handleTouchEnd),this.elements.slidesContainer.addEventListener("mousedown",this.handleDragStart),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd))}removeEventListeners(){this.elements.dots.forEach((t=>{t.replaceWith(t.cloneNode(!0))})),this.elements.prevButton&&this.elements.prevButton.replaceWith(this.elements.prevButton.cloneNode(!0)),this.elements.nextButton&&this.elements.nextButton.replaceWith(this.elements.nextButton.cloneNode(!0))}removeTouchEvents(){this.elements.slidesContainer&&(this.elements.slidesContainer.removeEventListener("touchstart",this.handleTouchStart),this.elements.slidesContainer.removeEventListener("touchmove",this.handleTouchMove),this.elements.slidesContainer.removeEventListener("touchend",this.handleTouchEnd),this.elements.slidesContainer.removeEventListener("mousedown",this.handleDragStart),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd))}handleTouchStart(t){this.state.isTransitioning||(this.pauseAutoplay(),this.state.startX=t.touches[0].clientX,this.state.dragStartTime=Date.now(),this.state.isDragging=!0,this.state.dragDistance=0)}handleTouchMove(t){if(!this.state.isDragging||this.state.isTransitioning)return;t.preventDefault();const n=t.touches[0].clientX;this.state.dragDistance=this.state.startX-n,this.updateDragPosition()}handleTouchEnd(){if(!this.state.isDragging)return;const t=Date.now()-this.state.dragStartTime,n=Math.abs(this.state.dragDistance)/t>.5;this.handleDragComplete(n),setTimeout((()=>this.resumeAutoplay()),100)}handleDragStart(t){this.state.isTransitioning||(this.pauseAutoplay(),this.state.startX=t.clientX,this.state.dragStartTime=Date.now(),this.state.isDragging=!0,this.state.dragDistance=0,t.preventDefault())}handleDrag(t){if(!this.state.isDragging||this.state.isTransitioning)return;const n=t.clientX;this.state.dragDistance=this.state.startX-n,this.updateDragPosition()}handleDragEnd(){if(!this.state.isDragging)return;const t=Date.now()-this.state.dragStartTime,n=Math.abs(this.state.dragDistance)/t>.5;this.handleDragComplete(n),setTimeout((()=>this.resumeAutoplay()),100)}handleNavigation(t){if(this.state.isTransitioning)return;const n=this.slides.length;"next"===t?(this.state.realIndex=(this.state.realIndex+1)%n,this.state.virtualIndex++):(this.state.realIndex=(this.state.realIndex-1+n)%n,this.state.virtualIndex--),this.updateCarousel(!0)}handleDotClick(t){const n=this.state.realIndex,e=this.slides.length;let i=t-n;Math.abs(i)>e/2&&(i=i>0?i-e:i+e),this.state.realIndex=t,this.state.virtualIndex+=i,this.updateCarousel(!0),this.resetAutoplay()}handleDragComplete(n){if(this.state.isDragging=!1,!this.elements.slidesContainer)return;const e=this.state.dragDistance/this.state.containerWidth,i=n?.1:t.defaultConfigs.dragThreshold;Math.abs(e)>i?this.state.dragDistance>0?this.handleNavigation("next"):this.handleNavigation("prev"):this.updateCarousel(!0),this.state.dragDistance=0}updateDragPosition(){if(!this.elements.slidesContainer||this.state.isTransitioning)return;const t=100*-this.state.virtualIndex-this.state.dragDistance/this.state.containerWidth*100;this.elements.slidesContainer.style.transform=`translateX(${t}%)`,this.elements.slidesContainer.style.transition="none"}goToSlide(t){this.state.isTransitioning||(this.state.currentSlide=t,this.updateCarousel(!0))}updateCarousel(t=!0){if(!this.elements.slidesContainer)return;const n=this.slides.length,e=100*-this.state.virtualIndex;t?(this.state.isTransitioning=!0,this.elements.slidesContainer.style.transition="transform 0.3s ease-out"):this.elements.slidesContainer.style.transition="none",this.elements.slidesContainer.style.transform=`translateX(${e}%)`,this.updateDots(),(this.state.virtualIndex<=0||this.state.virtualIndex>=n+1)&&(this.state.isVirtualizing=!0)}handleTransitionEnd(t){t.target===this.elements.slidesContainer&&"transform"===t.propertyName&&(this.state.isTransitioning=!1,this.state.isVirtualizing&&this.resetVirtualPosition(),this.elements.slidesContainer&&(this.elements.slidesContainer.style.transition="none"))}resetVirtualPosition(){var t;const n=this.slides.length;this.state.virtualIndex<=0?this.state.virtualIndex=n:this.state.virtualIndex>=n+1&&(this.state.virtualIndex=1),this.elements.slidesContainer&&(this.elements.slidesContainer.style.transition="none",this.elements.slidesContainer.style.transform=`translateX(${100*-this.state.virtualIndex}%)`),this.state.isVirtualizing=!1,null===(t=this.elements.slidesContainer)||void 0===t||t.offsetHeight}updateDots(){this.state.useDots&&this.elements.dots.forEach(((t,n)=>{const e=n===this.state.realIndex;t.classList.toggle("active",e),t.style.backgroundColor=e?this.state.dots.activeColor:this.state.dots.color}))}startAutoplayIfEnabled(){this.state.autoplay&&!this.state.isAutoplayPaused&&this.startAutoplay()}startAutoplay(){this.stopAutoplay(),!this.state.isAutoplayPaused&&this.state.autoplay&&(this.state.autoplayInterval=window.setInterval((()=>this.handleNavigation("next")),this.state.interval))}pauseAutoplay(){this.state.isAutoplayPaused=!0,this.stopAutoplay()}resumeAutoplay(){this.state.isAutoplayPaused=!1,this.state.autoplay&&this.startAutoplay()}stopAutoplay(){null!==this.state.autoplayInterval&&(window.clearInterval(this.state.autoplayInterval),this.state.autoplayInterval=null)}resetAutoplay(){!this.state.isDragging&&this.state.autoplay&&(this.stopAutoplay(),this.startAutoplay())}updateContainerWidth(){this.elements.slidesContainer&&(this.state.containerWidth=this.elements.slidesContainer.offsetWidth)}cleanupEventListeners(){this.stopAutoplay(),this.removeEventListeners(),this.removeTouchEvents(),this.elements.slidesContainer&&this.elements.slidesContainer.removeEventListener("transitionend",this.handleTransitionEnd),window.removeEventListener("resize",this.updateContainerWidth)}setupEventListeners(){var t,n;this.state.useDots&&this.elements.dots.forEach(((t,n)=>{t.addEventListener("click",(()=>this.handleDotClick(n)))})),this.state.useButtons&&(null===(t=this.elements.prevButton)||void 0===t||t.addEventListener("click",(()=>this.handleNavigation("prev"))),null===(n=this.elements.nextButton)||void 0===n||n.addEventListener("click",(()=>this.handleNavigation("next"))))}validateButtonsPosition(){this.state.useButtons&&!this.state.buttons.together&&"middle-sides"!==this.state.buttons.position&&(console.warn('LiquidCommerce Rmn Sdk: When buttons are not together, only "middle-sides" is allowed. Defaulting to "middle-sides".'),this.state.buttons.position="middle-sides")}}t.defaultConfigs={interval:5e3,touchThreshold:50,dragThreshold:.2,dots:{position:"bottom-center",color:"#d9d9d9",activeColor:"#b5914a",size:"base",opacity:1},buttons:{together:!1,position:"middle-sides",textColor:"#000000",backgroundColor:"#ffffff",borderRadius:"50%",prev:"Prev",next:"Next",size:"base",opacity:1}},t.validPositions=new Set(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","middle-left","middle-right","middle-sides"]),fs=t}if(void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot||!this.data)return;const{fluid:t,width:e,height:i,spotType:r}=this.data,o=r===n.RB_IN_TEXT;this.shadowRoot.innerHTML=`\n <style>\n :host {\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n width: ${t?"100%":`${e}px`};\n height: ${t?"100%":`${i}px`};\n background: #ffffff;\n padding: ${o?"0":"1rem"};\n border-radius: 5px;\n }\n\n .line {\n width: 100%;\n height: 100%;\n min-height: 15px;\n background: #f0f0f0;\n border-radius: 5px;\n position: relative;\n overflow: hidden;\n }\n\n .line::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 50%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 1.5s infinite;\n }\n\n @keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n </style>\n\n <div class="line"></div>\n `}}ps=t}class ms{constructor(){this.spotTemplateService=ds.getInstance(),this.defineCustomElements()}static getInstance(){return Ye.getInstance("ElementService",(()=>new ms))}createSpotElement(t){const n=this.spotTemplateService.getTemplateCustomElementClass(t.spot.spot,t.spot.variant);if(!n)return null;const e="s"+Qe.generate().toLowerCase(),i=`spot-${e}`;this.defineSpotCustomElement(i,n);const r=document.createElement(i);return r.initializeData(t.spot,{...t.config,prefix:e}),r}createCarouselElement(t){const n=document.createElement(zo);return n.data=t.config,n.slides=t.slides,n}createSkeletonElement(t){const n=document.createElement(Oo),e=Po[t.spotType];return n.data={spotType:t.spotType,fluid:void 0!==(null==t?void 0:t.fluid)&&t.fluid,...e},n}defineSpotCustomElement(t,n){window.customElements.define(t,class extends n{template(){return n.prototype.template.call(this)}styles(){return n.prototype.styles.call(this)}})}defineCustomElements(){window.customElements.get(zo)||window.customElements.define(zo,fs),window.customElements.get(Oo)||window.customElements.define(Oo,ps)}}var gs;!function(t){t.GoogleAnalytics="google-analytics",t.GoogleTagManager="google-tag-manager",t.Other="Other"}(gs||(gs={}));class vs{constructor(){window.dataLayer&&(this.originalPush=window.dataLayer.push)}static getInstance(){return Ye.getInstance("DataLayerMonitor",(()=>new vs))}setListener(t){this.listener=t}start(){window.dataLayer.push=(...t)=>{const n=this.originalPush.apply(window.dataLayer,t);if(!this.listener||!Array.isArray(t)||0===t.length)return n;for(const n of t){const t=Fe(n.event);if(!t)continue;const e=this.extractProductData(n),i={event:t,products:e};e&&this.listener(i)}return n}}extractProductData(t){var n,e,i,r,o,s,a,c,h,u,l,d,f,p,m;return((null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.items)||(null===(e=null==t?void 0:t.ecommerce)||void 0===e?void 0:e.items)||(null===(i=null==t?void 0:t.ecommerce)||void 0===i?void 0:i.products)||(null===(o=null===(r=null==t?void 0:t.ecommerce)||void 0===r?void 0:r.detail)||void 0===o?void 0:o.products)||(null===(a=null===(s=null==t?void 0:t.ecommerce)||void 0===s?void 0:s.checkout)||void 0===a?void 0:a.products)||(null===(h=null===(c=null==t?void 0:t.ecommerce)||void 0===c?void 0:c.purchase)||void 0===h?void 0:h.products)||(null===(l=null===(u=null==t?void 0:t.ecommerce)||void 0===u?void 0:u.add)||void 0===l?void 0:l.products)||(null===(f=null===(d=null==t?void 0:t.ecommerce)||void 0===d?void 0:d.remove)||void 0===f?void 0:f.products)||(null===(m=null===(p=null==t?void 0:t.ecommerce)||void 0===p?void 0:p.click)||void 0===m?void 0:m.products)||(null==t?void 0:t.products)||[]).map((t=>{const n={id:t.item_id||t.id||"",name:t.item_name||t.name||"",brand:t.item_brand||t.brand||"",variant:t.item_variant||t.variant||"",price:Number(t.price)||0,quantity:Number(t.quantity)||1,discount:Number(t.discount)||0};return n.id?n:null}))}stop(){this.originalPush&&(window.dataLayer.push=this.originalPush),this.listener=void 0}}class bs{constructor(){const t=this.detectAnalyticsTool();switch(t){case gs.GoogleAnalytics:case gs.GoogleTagManager:this.implementedMonitor=vs.getInstance();break;case gs.Other:default:console.warn("LiquidCommerce Rmn Sdk: This site uses an unsupported analytics tool.")}t!==gs.Other&&(this.pubSubService=Lo.getInstance(),this.localStorageService=No.getInstance(),this.normalizeStringHelper=Ve.getInstance())}static getInstance(){return Ye.getInstance("MonitorService",(()=>new bs))}start(){this.implementedMonitor&&(this.implementedMonitor.setListener((async t=>{var n;await this.matchAndFireEvent(t,null===(n=this.localStorageService)||void 0===n?void 0:n.getSpots())})),this.implementedMonitor.start())}async matchAndFireEvent(t,n){var e,i,o,s,a;if(n)for(const c of Object.values(n))if(c.productIds.length)for(const n of t.products){if(!Object.values(r).includes(t.event))continue;const h=c.firedEvents||[],u=null===(e=this.normalizeStringHelper)||void 0===e?void 0:e.normalize(String(n.id));if(h.some((n=>n.productId===u&&n.event===t.event)))continue;const l=new Set(c.productIds.map((t=>{var n;return null===(n=this.normalizeStringHelper)||void 0===n?void 0:n.normalize(String(t))}))),d=null===(i=this.normalizeStringHelper)||void 0===i?void 0:i.normalize(String(n.brand)),f=null===(o=this.normalizeStringHelper)||void 0===o?void 0:o.normalize(String(n.variant));if(![u,d,f].some((t=>l.has(t))))continue;const p=c.events.findIndex((n=>n.event===t.event));if(-1===p)continue;const m=c.events[p].url;let g="";if(t.event===r.PURCHASE){const t=n.price&&n.quantity?n.price*n.quantity:void 0;a={override:t,gmv:t},g=Object.entries(null!=a?a:{}).map((([t,n])=>null==n?"":`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).filter(Boolean).join("&")}await this.fireAndPublishSpotEvent({spotEvent:t.event,eventUrl:`${m}${g?`&${g}`:""}`,placementId:c.placementId,spotId:c.spotId,spotType:c.spotType}),h.push({productId:u,event:t.event}),null===(s=this.localStorageService)||void 0===s||s.setSpot(c.spotId,{placementId:c.placementId,spotId:c.spotId,spotType:c.spotType,events:c.events,firedEvents:h,productIds:c.productIds})}}async fireAndPublishSpotEvent({spotEvent:t,eventUrl:n,placementId:e,spotId:r,spotType:o}){await Ze({spotType:o,event:t,eventUrl:n}),this.pubSubService&&this.pubSubService.publish(i.SPOT_EVENT,{eventType:t,placementId:e,spotId:r})}detectAnalyticsTool(){return window&&document?void 0!==window.google_tag_manager||void 0!==window.dataLayer?gs.GoogleTagManager:void 0!==window.ga||void 0!==window.gtag?gs.GoogleAnalytics:gs.Other:gs.Other}}class ws extends Co{constructor(t){super(t)}static getInstance(t){return Ye.getInstance("SelectionService",(()=>new ws(t)))}async spotSelection(t){void 0===t.userId&&(t.userId=this.getUserId());const{isOk:n,val:e,isErr:i}=await this.post("/spots/selection",t,{});return i?{error:`There was an error during spot selection: (${null==i?void 0:i.errorMessage})`}:n&&e&&e.data&&(null==e?void 0:e.refresh.token)?(this.authInfo.authenticated=!0,this.authInfo.token=e.refresh.token,e.data.spots):{error:"Spot selection response was not successful"}}getUserId(){return No.getInstance().getUserId()}}class ys{constructor(){this.pubSubService=Lo.getInstance(),this.localStorageService=No.getInstance(),this.spotLifecyleState=new Map}static getInstance(){return Ye.getInstance("SpotManagerService",(()=>new ys))}subscribe(t,n){return this.pubSubService.subscribe(t,n)}publish(t,n){this.pubSubService.publish(t,n)}registerSpot(t){const{placementId:n,spot:e,spotElement:i}=t;this.handleImpressionEvent(n,e),i.addEventListener("click",(async()=>{await this.handleClickEvent(t),this.saveSpotDataToLocalStorage(n,e)}))}unregisterSpot(t){const n=t.replace("#",""),e=document.getElementById(n);e?(this.updateSpotLifecycleState(n,{dom:{spotElement:void 0,visibleOnViewport:!1},state:{unmounted:!0,mounted:!1,loading:!1}}),e.innerHTML=""):this.updateSpotLifecycleState(n,{state:{error:`Placement element with id ${n} not found.`}})}updateSpotLifecycleState(t,n,e=!0){let r=this.spotLifecyleState.get(t);r||(r={identifier:{placementId:t,spotId:"",spotType:""},dom:{spotElement:void 0,visibleOnViewport:!1},state:{mounted:!1,unmounted:!1,loading:!1,error:void 0},displayConfig:{isCarousel:!1,isCarouselItem:!1,isSingleItem:!1}});const o=this.deepMerge(r,n);this.spotLifecyleState.set(t,o),e&&this.pubSubService.publish(i.LIFECYCLE_STATE,o)}saveSpotDataToLocalStorage(t,n){var e;this.localStorageService.setSpot(n.id,{placementId:t,spotId:n.id,spotType:n.spot,events:n.events,productIds:null!==(e=n.productIds)&&void 0!==e?e:[]})}async handleClickEvent({placementId:t,spot:n}){var e,o;this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.CLICK,placementId:t,spotId:n.id}),await Ze({spotType:n.spot,event:r.CLICK,eventUrl:null!==(o=null===(e=n.events.find((t=>t.event===r.CLICK)))||void 0===e?void 0:e.url)&&void 0!==o?o:""})}handleImpressionEvent(t,n){this.pubSubService.publish(i.SPOT_EVENT,{eventType:r.IMPRESSION,placementId:t,spotId:n.id}),(async()=>{var t,e;await Ze({spotType:n.spot,event:r.IMPRESSION,eventUrl:null!==(e=null===(t=n.events.find((t=>t.event===r.IMPRESSION)))||void 0===t?void 0:t.url)&&void 0!==e?e:""})})()}deepMerge(t,n){return{identifier:n.identifier?{...t.identifier,...n.identifier}:t.identifier,dom:n.dom?{...t.dom,...n.dom}:t.dom,state:n.state?{...t.state,...n.state}:t.state,displayConfig:n.displayConfig?{...t.displayConfig,...n.displayConfig}:t.displayConfig}}}function xs(t){var n;null===(n=document.getElementById(t))||void 0===n||n.replaceChildren()}function _s(t){t.removeAttribute("style"),t.removeAttribute("class"),Object.assign(t.style,{width:"100%",height:"100%",display:"flex",justifyContent:"center"})}function $s(t,n){if(!n)return t;const{textColor:e,backgroundColor:i,ctaTextColor:r,ctaBorderColor:o}=n;return{...t,textColor:null!=e?e:t.textColor,backgroundColor:null!=i?i:t.backgroundColor,ctaTextColor:null!=r?r:t.ctaTextColor,ctaBorderColor:null!=o?o:t.ctaBorderColor}}class Ss{constructor(t){this.selectionService=ws.getInstance(t),this.elementService=ms.getInstance(),this.spotManagerService=ys.getInstance(),bs.getInstance().start()}async spotSelection(t){return this.selectionService.spotSelection(t)}publishSpotToRmn(t,n){this.spotManagerService.saveSpotDataToLocalStorage(t,n)}async injectSpotElement(t){if(!t.inject.length)return void this.spotManagerService.updateSpotLifecycleState("all",{state:{error:"No spot elements provided for injection."}});t.inject=function(t){const e=ys.getInstance(),i=new Set,r=new Set(Object.values(n)),o=[];for(const n of t){const t=n.placementId.replace("#","");i.has(t)?e.updateSpotLifecycleState(t,{state:{error:`Duplicate placement id (${t}) found. Please provide a unique placement id for each spot element.`}}):r.has(n.spotType)?(i.add(t),o.push(n)):e.updateSpotLifecycleState(t,{state:{error:`Invalid spot type (${n.spotType}) found. Please provide a valid spot type for each spot element.`}})}return o}(t.inject);const e=t.inject.map((t=>t.placementId));new Uo(e,(async n=>{await this.processPlacements(t,n)}),{proximityThreshold:500,intersectionMargin:"2000px"})}async processPlacements(t,n){var e,i;const r=t.config,o=new Map(t.inject.map((t=>[t.placementId,t]))),s=new Map;for(const t of n){const n=document.getElementById(t),a=o.get(t);if(!n||!a){this.spotManagerService.updateSpotLifecycleState(t,{state:{error:n?`Placement not found for id "${t}".`:`Placement element not found for id "${t}".`,mounted:!1,loading:!1}});continue}this.spotManagerService.updateSpotLifecycleState(a.placementId,{identifier:{placementId:a.placementId,spotType:a.spotType}},!1),_s(n);const c=this.elementService.createSkeletonElement({fluid:null!==(i=null===(e=null==a?void 0:a.config)||void 0===e?void 0:e.fluid)&&void 0!==i?i:null==r?void 0:r.fluid,spotType:a.spotType});c||this.spotManagerService.updateSpotLifecycleState(a.placementId,{state:{error:"Failed to create skeleton loader element.",loading:!0}}),c&&(null==n||n.replaceChildren(c)),s.set(t,n),this.spotManagerService.updateSpotLifecycleState(a.placementId,{state:{loading:!0}})}if(0===s.size)return;const a=Array.from(s.keys()).map((t=>o.get(t))).filter(Boolean);let c;if(c=t.customSpots?t.customSpots:await this.injectSpotSelectionRequest({...t,inject:a}),"object"==typeof c&&"error"in c)return this.spotManagerService.updateSpotLifecycleState("all",{state:{error:c.error,mounted:!1,loading:!1}}),void s.forEach(((t,n)=>xs(n)));s.forEach(((t,n)=>{var e;const i=o.get(n),s=null!==(e=null==i?void 0:i.config)&&void 0!==e?e:r,a=c[n];if(!(null==a?void 0:a.length))return this.spotManagerService.updateSpotLifecycleState(i.placementId,{state:{error:`No spots found for type "${i.spotType}".`,mounted:!1,loading:!1}}),void xs(i.placementId);1===a.length&&this.injectOneSpotElement(t,a[0],s),a.length>1&&this.injectCarouselSpotElement(t,a,s)}))}injectOneSpotElement(t,e,r){var o;const s=t.id,a=e.spot;this.spotManagerService.updateSpotLifecycleState(s,{identifier:{placementId:s,spotType:a,spotId:e.id},displayConfig:{isSingleItem:!0,isCarousel:!1,isCarouselItem:!1}});const c=$s(e,null==r?void 0:r.colors),h=this.elementService.createSpotElement({spot:c,config:{prefix:"",fluid:e.spot===n.RB_IN_TEXT||null!==(o=null==r?void 0:r.fluid)&&void 0!==o&&o,useShadowDom:!0}});if(!h)return this.spotManagerService.updateSpotLifecycleState(s,{state:{error:`Failed to inject spot element. Could not create element for type "${a}".`,mounted:!1,loading:!1}}),void xs(s);this.spotManagerService.registerSpot({spot:c,placementId:s,spotElement:h}),null==t||t.replaceChildren(h),(null==r?void 0:r.listenRenderedSpotData)&&this.spotManagerService.publish(i.RENDERED_SPOT_DATA,{placementId:s,data:[c]}),this.spotManagerService.updateSpotLifecycleState(s,{dom:{spotElement:h,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}injectCarouselSpotElement(t,n,e){var r;const o=t.id,s=[];for(const t of n){this.spotManagerService.updateSpotLifecycleState(o,{identifier:{placementId:o,spotType:t.spot,spotId:t.id},displayConfig:{isSingleItem:!1,isCarousel:!0,isCarouselItem:!0}});const n=$s(t,null==e?void 0:e.colors),i=this.elementService.createSpotElement({spot:n,config:{prefix:"",fluid:!0,useShadowDom:!1}});if(!i)return this.spotManagerService.updateSpotLifecycleState(o,{state:{error:`Failed to inject spot element. Could not create element for type "${t.spot}".`,mounted:!1,loading:!1}}),void xs(o);this.spotManagerService.registerSpot({spot:n,placementId:o,spotElement:i}),s.push(i)}const{maxWidth:a,maxHeight:c}=n.reduce(((t,n)=>({maxWidth:Math.max(t.maxWidth,n.width),maxHeight:Math.max(t.maxHeight,n.height)})),{maxWidth:0,maxHeight:0}),h=this.elementService.createCarouselElement({slides:s,config:{fluid:null==e?void 0:e.fluid,width:a,height:c,minScale:null!==(r=null==e?void 0:e.minScale)&&void 0!==r?r:.25,...null==e?void 0:e.carousel}});if(!h)return this.spotManagerService.updateSpotLifecycleState(o,{state:{error:"Failed to inject spot carousel element. Could not create spot carousel element.",mounted:!1,loading:!1}}),void xs(o);null==t||t.replaceChildren(h),(null==e?void 0:e.listenRenderedSpotData)&&this.spotManagerService.publish(i.RENDERED_SPOT_DATA,{placementId:o,data:n}),this.spotManagerService.updateSpotLifecycleState(o,{dom:{spotElement:h,visibleOnViewport:!1},state:{mounted:!0,loading:!1,error:void 0}})}async injectSpotSelectionRequest(t){const{inject:n,filter:e,config:i}=t,r=n.map((t=>({placementId:t.placementId,spot:t.spotType,count:null==t?void 0:t.count,...null==t?void 0:t.filter}))),o={url:null==i?void 0:i.url,filter:e,spots:r};return this.spotSelection(o)}}async function RmnClient(t,n){const e=async()=>{const e=Io.getInstance(t,n.env),i=await e.initialize();return("undefined"!=typeof document||(console.warn("LiquidCommerce Rmn Sdk: Methods which create elements are only available in browser environments."),0))&&No.getInstance().setUserId(),new Ss(i)};return new Promise((t=>{"complete"===document.readyState?t(e()):window.addEventListener("load",(()=>{t(e())}))}))}function RmnEventManager(){const t=ys.getInstance();return{subscribe:(n,e)=>t.subscribe(n,e),publish:(n,e)=>{t.publish(n,e)},destroySpot:n=>{t.unregisterSpot(n)}}}window.RmnClient=RmnClient,window.RmnEventManager=RmnEventManager,t.RmnClient=RmnClient,t.RmnEventManager=RmnEventManager}));