!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://static.fundraiseup.com/",i(i.s=3)}([function(e,t,i){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}return function t(i,n){function s(t,s,r){if("undefined"!=typeof document){"number"==typeof(r=e({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in r)r[a]&&(o+="; "+a,!0!==r[a]&&(o+="="+r[a].split(";")[0]));return document.cookie=t+"="+i.write(s,t)+o}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},s=0;s<t.length;s++){var r=t[s].split("="),o=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(n[a]=i.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(t,i){s(t,"",e({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,e({},this.attributes,i))},withConverter:function(i){return t(e({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(i)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},function(e,t,i){var n=i(4);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},function(e,t,i){"use strict";var n=i(6);e.exports={compressPayload:function(e){var t={};return Object.keys(n).forEach((function(i){var s=i,r=n[i];t[s]=e[r]})),t},expandPayload:function(e){var t={},i=Object.keys(e).filter((function(e){return-1===Object.keys(n).indexOf(e)}));i.length&&(t.UNMATCHED={},i.forEach((function(i){t.UNMATCHED[i]=e[i]})),t.invalid=!0);return Object.keys(n).forEach((function(i){var s=i,r=n[i];e[s]&&(t[r]=e[s])})),t}}},function(e,t,i){e.exports=i(7)},function(e,t,i){(e.exports=i(5)(!1)).push([e.i,".fun-widget-backdrop-holder{left:0 !important;top:0 !important;bottom:0 !important;right:0 !important;width:100% !important;height:100% !important;display:block !important;position:fixed !important;z-index:2147483646 !important;transition:opacity .2s ease-in-out !important;transform:translateZ(99px) !important;-webkit-animation:fun-widget-backdrop .2s ease-in-out !important;animation:fun-widget-backdrop .2s ease-in-out !important}.fun-widget-backdrop{position:absolute !important;display:block !important;left:50% !important;top:50% !important;-webkit-animation:fun-widget-backdrop-rotate 1.5s infinite linear,fun-widget-backdrop-fadein .6s ease-in-out !important;animation:fun-widget-backdrop-rotate 1.5s infinite linear,fun-widget-backdrop-fadein .6s ease-in-out !important;border:0 !important;padding:0 !important;margin:-30px 0 0 -30px !important;width:60px !important;min-width:60px !important;max-width:60px !important;height:60px !important;min-height:60px !important;max-height:60px !important}@-webkit-keyframes fun-widget-backdrop{from{opacity:0}to{opacity:1}}@keyframes fun-widget-backdrop{from{opacity:0}to{opacity:1}}@-webkit-keyframes fun-widget-backdrop-fadein{0%{opacity:0}33.3333333333%{opacity:0}66.6666666667%{opacity:0}100%{opacity:1}}@keyframes fun-widget-backdrop-fadein{0%{opacity:0}33.3333333333%{opacity:0}66.6666666667%{opacity:0}100%{opacity:1}}@-webkit-keyframes fun-widget-backdrop-rotate{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes fun-widget-backdrop-rotate{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}",""])},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var s=(o=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[i].concat(r).concat([s]).join("\n")}var o;return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},s=0;s<this.length;s++){var r=this[s][0];null!=r&&(n[r]=!0)}for(s=0;s<e.length;s++){var o=e[s];null!=o[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),t.push(o))}},t}},function(e){e.exports=JSON.parse('{"u":"URL","ck":"companyKey","cm":"checkoutCompanyKey","cd":"clientId","ct":"clientTime","cz":"clientTimeZone","lo":"clientLocale","ek":"elementKey","el":"elementLocale","er":"elementReminderKey","ey":"elementType","ep":"elementParams","et":"eventType","te":"customEventType","ev":"customEventData","ed":"elementData","eg":"eventTags","pv":"pageViewId","pl":"pageViewLifetime","r":"referer","rh":"resolutionHeight","rw":"resolutionWidth","t":"title","hl":"uaHistoryLength","wk":"widgetKey","wh":"windowHeight","wx":"windowScrollX","wy":"windowScrollY","ww":"windowWidth","cv":"checkoutViewId","ce":"checkoutError","co":"checkoutOpenTime","cl":"checkoutLifetime","cs":"checkoutScreen","sd":"checkoutScreenData","cc":"checkoutClickElement","cf":"checkoutFrequency","fp":"clickDOMPath","fh":"clickAHref","ft":"clickText","dk":"chargeCampaignKey","dd":"chargeKey","du":"chargeInUSDAmount","di":"chargeInDefaultCurrencyAmount","da":"chargeAmount","dc":"chargeCurrency","df":"chargeFeeCovered","dm":"chargePaymentMethod","dr":"chargeIsRecurring","dn":"chargeHasComment","dh":"chargeHasTribute","dg":"chargeGoal","st":"splitTestName","sv":"splitTestVariant","up":"uaFingerprint","pm":"paymentMethod","ws":"widgetSession","lm":"livemode","fv":"funSnippetVersion","fe":"funEmbedRelease","vf":"isFundraiseupVisitor","lc":"checkoutLocale","cr":"checkoutIsRecurring","cy":"checkoutCurrency","ca":"checkoutAmount","cu":"checkoutInUSDAmount","yr":"checkoutCurrencyRate","fa":"checkoutDefaultAmount","cp":"checkoutPresets","ps":"pageScripts","ol":"clientOnLine","dt":"clientDoNotTrack","pr":"clientDevicePixelRatio","rm":"clientDeviceMemory","hc":"clientHardwareConcurrency","nt":"clientConnectionType","nd":"clientConnectionDownlink","nr":"clientConnectionRTT","ne":"clientConnectionEffectiveType","bc":"clientBatteryCharging","bt":"clientBatteryChargingTime","bd":"clientBatteryDischargingTime","bl":"clientBatteryLevel","de":"dataLayerEventName","dp":"dataLayerParams","fn":"pixelEventName","fs":"pixelEventData","gk":"fundraisingGroupKey","pk":"fundraisingPageKey","pc":"fundraisingPageCustomerKey","ec":"eventComment","ba":"uaIsInApp","uw":"uaWebdriver","rd":"duration","se":"source","sk":"supporterKey","ak":"agentKey","pu":"pointingDeviceIsUsed","fo":"donationType"}')},function(e,t,i){"use strict";i.r(t);var n,s,r=i(0),o=i.n(r);function a(e){let t,i,n,s,r,o,a,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(t=3&e.length,i=e.length-t,n=l,r=3432918353,o=461845907,c=0;c<i;)a=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,a=(65535&a)*r+(((a>>>16)*r&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,n^=a,n=n<<13|n>>>19,s=5*(65535&n)+((5*(n>>>16)&65535)<<16)&4294967295,n=27492+(65535&s)+((58964+(s>>>16)&65535)<<16);switch(a=0,t){case 3:a^=(255&e.charCodeAt(c+2))<<16;break;case 2:a^=(255&e.charCodeAt(c+1))<<8;break;case 1:a^=255&e.charCodeAt(c),a=(65535&a)*r+(((a>>>16)*r&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,n^=a}return n^=e.length,n^=n>>>16,n=2246822507*(65535&n)+((2246822507*(n>>>16)&65535)<<16)&4294967295,n^=n>>>13,n=3266489909*(65535&n)+((3266489909*(n>>>16)&65535)<<16)&4294967295,n^=n>>>16,n>>>0}!function(e){e.SESSION="fundraiseup_session",e.CID="fundraiseup_cid",e.DEBUG="fundraiseup_debug",e.EXPERIMENTS="fundraiseup_experiments"}(n||(n={}));class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.codes=t,this.expose=!!o.a.get(n.DEBUG),this.prefix=e}createInstance(e){return new c(e,this.codes)}stringToColor(e){const t=a(e);let i="#";for(let e=0;e<3;e++){i+=("00"+(t>>8*e&255).toString(16)).substr(-2)}return i}log(e){if(this.expose){e=this.prefix?`${this.prefix}:${e}`:e,console.groupCollapsed("%c"+(new Date).toISOString().slice(11,-1)+" %c"+e,"color:grey;","font-weight:bold;color:white;border-radius: 2px;padding:2px 5px;background-color:"+this.stringToColor(e));for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];console.log(...i),console.groupEnd()}}logCode(e){const t=this.codes?this.codes[e]:String(e);for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];const r=n.map(e=>"number"!=typeof e?e:this.codes&&this.codes[e]||e);this.log(t,...r)}}class l{constructor(e,t){this.field=e,this.storage=t}get(){return this.storage.get(this.field)}set(e,t){this.storage.set(this.field,e,t)}remove(e){this.storage.remove(this.field,e)}}!function(e){e.STRING="string",e.OBJECT="object"}(s||(s={}));class h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.a;if(this.type=e,this.storage=t,window.FUN_DO_NOT_TRACK){(function(){const e=[],t=window.location.hostname.split(".");let i=t.splice(-1).join();for(let n=t.length;n>0;n--)i=t.splice(-1).join()+"."+i,e.push(i);return e})().forEach(e=>{this.remove(n.CID,{domain:e}),this.remove(n.SESSION,{domain:e})})}}get(e){if(window.FUN_DO_NOT_TRACK)return null;const t=this.storage.get(e);if(!t)return null;if(this.type===s.OBJECT){let e=null;try{e=JSON.parse(t)}catch(e){window.FUN.sentryLoader.captureError(e)}return e}return t}set(e,t,i){window.FUN_DO_NOT_TRACK||(this.type===s.OBJECT&&(t=JSON.stringify(t)),this.storage.set(e,t,i))}remove(e,t){this.storage.remove(e,t)}}function u(e,t){if(!Object.keys(s).find(e=>s[e]===t))throw new Error("10 "+t);return new l(e,new h(t))}class d{constructor(e){this.dictionary=new Map,this.reverseDictionary=new Map;for(const t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;const i=e[t];this.dictionary.set(t,i),this.reverseDictionary.set(i,t)}}zip(e){return this.zipKeys(this.toFlatData(e))}unzip(e){return this.fromFlatData(this.unzipKeys(e))}unzipKeys(e){const t={};for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=this.dictionary.get(i);n?t[n]=e[i]:console.error(`The key for the "${i}" field was not found`)}return t}zipKeys(e){const t={};for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=this.reverseDictionary.get(i);n?t[n]=e[i]:console.error(`The minification key for the "${i}" field was not found`)}return t}toFlatData(e){const t={};for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=e[i];if(p(n)){t[i]=n;continue}const s=this.toFlatData(n);for(const n in s)Object.prototype.hasOwnProperty.call(e,i)&&(t[i+"."+n]=s[n])}return t}fromFlatData(e){let t={};return Object.keys(e).forEach(i=>{const n=e[i],s=i.split("."),r={};let o;s.forEach((e,i)=>{if(s.length===i+1)return o?void(o[e]=n):void(r[e]=n);const a=e;if(t[a])o=t[a];else{if(o)return o[e]||(o[e]={}),void(o=o[e]);r[e]={},o=r[e]}}),t=Object.assign({},t,r)}),t}}function p(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e||Array.isArray(e)}const g={topLevelDomain:"topLevelDomain",t:"topLevelDomain",ida:"intent.donation.amount",idc:"intent.donation.currency",idr:"intent.donation.recurring",idf:"intent.donation.frequency",isf:"intent.supporter.firstName",isl:"intent.supporter.lastName",ise:"intent.supporter.email",ici:"intent.campaign.id",iek:"intent.element.key",iet:"intent.element.type",ic:"intent.comment",it:"intent.tribute",itt:"intent.tribute.type",iti:"intent.tribute.inHonorOf",itl:"intent.tribute.labelType",icd:"intent.checkoutSettings.designation",icc:"intent.checkoutSettings.customFields",icma:"intent.checkoutSettings.modifyAmount",icmd:"intent.checkoutSettings.modifyDesignation",ift:"intent.flowType",ifk:"intent.fundraisingPage.key",ifc:"intent.fundraisingPage.customerKey",mm:"messageBar.manuallyClosed",pi:"popup.interactionAt",sl:"socialProof.lastChargeAt",si:"socialProof.interactionAt",li:"lightbox.interactionAt",lsda:"lastSuccessDonationAt",s:"sessionAt",sp:"sessionPage",x:"xFactor"};class m{constructor(){this.key=n.SESSION,this.storage=new h(s.OBJECT),this.zipper=new d(g)}getData(){const e=this.storage.get(this.key);return e?this.zipper.unzip(e):{}}setData(e,t){const i=this.zipper.zip(e);this.storage.set(this.key,i,t)}getField(e){const t=this.getData();return t&&e in t?t[e]:null}setField(e,t){const i=this.getData()||{};i[e]=t,this.setData(i,{domain:i.topLevelDomain})}removeField(e){const t=this.getData();t&&(delete t[e],this.setData(t,{domain:t.topLevelDomain}))}}let f=null;const y=new Promise(e=>{f=e}),E={};function T(e){const t=E[e];if(t)return t;const i=new Promise((function(t,i){setTimeout(()=>{const n=window.document.createElement("script");n.type="text/javascript",n.async=!0,n.onerror=function(e){i(e)},n.onload=function(){t(!0)},n.src=e,window.document.documentElement.appendChild(n),w._immedeatly&&t(!0)},0)}));return E[e]=i,i}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?y.then(()=>T(e)):T(e)}w._immedeatly=!1;class N{constructor(){this.providers=new Map,this.cache=new Map}get(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=this.providers.get(e);if(!i)throw new Error(e+" is not provided");if(t&&this.cache.has(e))return this.cache.get(e);const n=i();return t?(this.cache.has(e)||this.cache.set(e,n),n):n}provide(e,t){return this.providers.has(e)?(console.warn("14 "+e),this):(this.providers.set(e,t),this)}}function v(){return window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new N),window.FUN_SERVICE_CONTAINER}var A,S,_;!function(e){e.THE_ADVENTURE_PROJECT="5a8b26d4f9891300017cc0fc"}(A||(A={})),function(e){e[e.MONEY_LEGACY_MIN=0]="MONEY_LEGACY_MIN",e[e.MONEY_MIN=150]="MONEY_MIN",e[e.MONEY_MAX=500]="MONEY_MAX",e[e.MONEY_DEFAULT=200]="MONEY_DEFAULT",e[e.STOCK_MIN=200]="STOCK_MIN",e[e.STOCK_MAX=1e3]="STOCK_MAX",e[e.STOCK_DEFAULT=500]="STOCK_DEFAULT",e[e.CRYPTO_MIN=200]="CRYPTO_MIN",e[e.CRYPTO_MAX=1e3]="CRYPTO_MAX",e[e.CRYPTO_DEFAULT=500]="CRYPTO_DEFAULT"}(S||(S={})),function(e){e.NOWHERE="nowhere",e.WIDGET="widget",e.URL="url"}(_||(_={}));var I,O,b,C;!function(e){e.ALL="all",e.ONE_TIME="one-time",e.DISABLED="disabled"}(I||(I={})),function(e){e.UPPER="upper",e.PROPER="proper"}(O||(O={})),function(e){e.EN="en",e.ES="es",e.FR="fr",e.NL="nl",e.NO="no",e.DE="de",e.FI="fi",e.AR="ar",e.SV="sv",e.IT="it",e.PT="pt",e.ZH="zh",e.JA="ja",e.KO="ko",e.HU="hu",e.DA="da",e.RU="ru"}(b||(b={})),function(e){e.EN_US="en-US",e.EN_GB="en-GB",e.EN_CA="en-CA",e.FR_CA="fr-CA",e.FR_FR="fr-FR",e.ES="es",e.NL="nl",e.NO="no",e.DE="de",e.FI_FI="fi-FI",e.AR_001="ar-001",e.SV="sv",e.IT="it",e.PT_PT="pt-PT",e.PT_BR="pt-BR",e.ZH_CN="zh-CN",e.ZH_TW="zh-TW",e.JA="ja",e.KO="ko",e.HU="hu",e.DA="da",e.RU_RU="ru-RU"}(C||(C={}));const k=[C.AR_001];b.AR;function L(e){return e.split("-")[0]}const R={"&amp;":"&"};function P(e){return k.includes(e)}let D=null;function U(){if(D)return Promise.resolve(D);const e=v();return w(e.get(2).elementsApiScriptUrl,!1).then(()=>(D=e.get(19),D))}var M=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]])}return i};class K{constructor(e,t,i,n,s,r,o,a,c){this.resolver=e,this.debug=t,this.config=i,this.backdrop=n,this.keysKeeper=s,this.embedTracker=r,this.eventEmitter=o,this.htmlElementStyleManager=a,this.funSessionStorage=c,this._latestStartOpenCheckoutTimestamp=null,this._shouldReopen=!1}get latestStartOpenCheckoutTimestamp(){return this._latestStartOpenCheckoutTimestamp}get shouldReopen(){return this._shouldReopen}get renderCheckout(){return v().get(17)}isWidgetInactive(e,t){return!!(this.config.inactiveWidgets||[]).find(t=>{let[i,n]=t;return i===e||n===e})}open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i;const n=Date.now();this._latestStartOpenCheckoutTimestamp=n,this._shouldReopen=!1;const s=this.config.currentCompanyKey,r=this.config.data.companies.find(e=>{let{key:t}=e;return t===s});if(this.isWidgetInactive(e,s))return this.handleInactiveCampaign(r),Promise.resolve();this.backdrop.render(!0);const o=[e];return(null===(i=t.checkoutData)||void 0===i?void 0:i.fundraiser)&&o.push(t.checkoutData.fundraiser),Promise.all([this.resolver.resolveKeys(o),this.loadCheckoutScripts()]).then(e=>{let[i]=e;var s,r;return this.eventEmitter.emit("checkoutBeforeOpen",void 0),Promise.all([this.renderCheckout(this.embedTracker,this.debug,this.keysKeeper,{resolvedConfig:i,embedCompanies:this.config.data.companies,trackingUrls:this.config.server.trackingUrls,currencyRates:this.config.data.currencyRates,env:this.config.server.env,paymentMethods:this.config.paymentMethods,livemode:this.config.livemode,isMobile:this.config.isMobile,showcase:!1,externalConfig:t,integrations:this.config.integrations,localeCode:this.config.locale.code,userMeta:null===(s=this.config.meta)||void 0===s?void 0:s.user,infrastructureQueryParams:null===(r=this.config)||void 0===r?void 0:r.queryParams,test:t.test,checkoutOpenTimestamp:n,htmlElementStyleManager:this.htmlElementStyleManager,embedVersion:this.config.version,mainDomain:this.config.server.mainDomain,experimentsConfig:this.config.experimentsConfig})])}).then(i=>{let[n]=i;return this.handleCheckoutOpened({checkoutApi:n,key:e,options:t}),null}).catch(e=>Promise.reject(e))}reopen(){this._shouldReopen=!0,this.debug.logCode(7)}createShowcase(e,t){const i=this.convertShowcaseConfigToCheckoutConfig(e);return i.config.cryptoCurrencies=t,this.loadCheckoutScripts().then(()=>{var t,n;return this.renderCheckout(this.embedTracker,this.debug,this.keysKeeper,{embedCompanies:this.config.data.companies,trackingUrls:this.config.server.trackingUrls,env:this.config.server.env,resolvedConfig:i,currencyRates:this.config.data.currencyRates,paymentMethods:this.config.paymentMethods,integrations:this.config.integrations,localeCode:this.config.locale.code,userMeta:null===(t=this.config.meta)||void 0===t?void 0:t.user,infrastructureQueryParams:null===(n=this.config)||void 0===n?void 0:n.queryParams,showcase:!0,isMobile:!1,livemode:!1,externalConfig:{},checkoutOpenTimestamp:0,node:e.node,initialScreen:e.initialScreen,htmlElementStyleManager:this.htmlElementStyleManager,embedVersion:this.config.version,mainDomain:this.config.server.mainDomain,experimentsConfig:{experiments:[]}})})}preloadCheckout(){window.FUN_DISABLE_PRELOADING||this.loadCheckoutScripts()}isPreloadingNeeded(e){return(!e.includes("checkout-rtl-styles")||"ltr"!==this.languageDirection)&&(!e.includes("checkout-styles")||"rtl"!==this.languageDirection)}loadCheckoutScripts(){const e=this.config.server.checkoutAssets.scripts.filter(e=>this.isPreloadingNeeded(e));return Promise.all(e.map(e=>w(e,!1))).then(()=>{})}get languageDirection(){return function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!t&&P(e)?"rtl":"ltr"}(this.config.locale.code)}handleCheckoutOpened(e){const{checkoutApi:t,key:i,options:n}=e;t.on("close",e=>{const{shouldReopen:t}=e,s=M(e,["shouldReopen"]);this.emit("checkoutClose",s),t?window.setTimeout(()=>{this.open(i,n)},300):this.backdrop.remove()}),t.on("checkoutIntent",e=>{this.emit("checkoutIntent",e)}),t.on("donationComplete",e=>{this.emit("donationComplete",e),this.updateLastSuccessDonationInSession()}),this.backdrop.hideSpinner();const s=t.getOpenParams();this.emit("checkoutOpen",s),this.createTestModePanel(t)}createTestModePanel(e){U().then(t=>{var i;(null===(i=null==e?void 0:e.iframeNode)||void 0===i?void 0:i.contentWindow)&&t.createTestModePanel(e.iframeNode.contentWindow,e.checkoutLocale)})}handleInactiveCampaign(e){const t=e.disabledWidgets.redirectTo;if(t===_.WIDGET){return this.isWidgetInactive(e.disabledWidgets.widgetKey,e.key)?void this.backdrop.remove(!0):void this.open(e.disabledWidgets.widgetKey)}t===_.URL&&window.location.assign(e.disabledWidgets.url),this.backdrop.remove(!0)}convertShowcaseConfigToCheckoutConfig(e){return function(e){return Object.assign({},e,{campaign:Object.assign(Object.assign({},e.widget),{config:Object.assign(Object.assign({},e.widget.config),{experimentsSettings:{desktop:{},mobile:{}},trend:{once:0,daily:0,weekly:0,biweekly:0,monthly:0,bimonthly:0,quarterly:0,semiannual:0,annual:0}})}),config:Object.assign({},e.serverConfig),goals:[],aiSuggestions:[],fundraisingPage:null,user:{address:Object.assign(Object.assign({},e.user.address),{region:""})}})}(e)}emit(e,t){var i,n,s,r,o,a,c,l;if(this.debug.logCode(8,{event:e,payload:t}),["checkoutClose","donationComplete","checkoutOpen"].includes(e)){window.dataLayer=window.dataLayer||[];const h={event:"FundraiseUp."+e,FundraiseUp:t,ecommerce:{}};if("donationComplete"===e){const e=t,u={transaction_id:null===(i=e.donation)||void 0===i?void 0:i.id,value:null===(n=e.donation)||void 0===n?void 0:n.amount,currency:null===(s=e.donation)||void 0===s?void 0:s.currency,items:[{item_id:e.campaign.id,item_name:e.campaign.name,index:0,item_brand:"Fundraise Up",item_category:null===(r=e.designation)||void 0===r?void 0:r.name,item_category2:null===(o=e.designation)||void 0===o?void 0:o.id,item_category3:null===(a=e.designation)||void 0===a?void 0:a.code,item_variant:null===(c=e.donation)||void 0===c?void 0:c.frequency,price:null===(l=e.donation)||void 0===l?void 0:l.amount,quantity:1}]};h.ecommerce=u}window.dataLayer.push(h)}setTimeout(()=>{try{this.eventEmitter.emit(e,t)}catch(e){console.error(e)}},0)}on(e,t){this.eventEmitter.on(e,t)}updateLastSuccessDonationInSession(){this.funSessionStorage.setField("lastSuccessDonationAt",Date.now())}}class F{constructor(e,t){this.locale=e,this.localizationConfig=t,this.next=null}setNext(e){this.next=e}handle(){const e=this.retrieveLocale();return e||(this.next?this.next.handle():null)}}class x extends F{retrieveLocale(){return this.localizationConfig.defaultLocale}handle(){return this.retrieveLocale()}}const B=[C.EN_US,C.EN_GB,C.EN_CA,C.FR_CA,C.FR_FR,C.ES,C.NL,C.NO,C.DE,C.FI_FI,C.SV,C.IT,C.PT_PT,C.PT_BR,C.AR_001,C.ZH_CN,C.ZH_TW,C.JA,C.KO,C.HU,C.DA,C.RU_RU];class G extends F{retrieveLocale(){return-1!==this.localizationConfig.interfaceLocales.indexOf(this.locale)?(e=this.locale,B.includes(e)?this.locale:null):null;var e}}class V extends F{retrieveLocale(){const e=(t=this.locale,this.localizationConfig.interfaceLocales.find(e=>L(t)===L(e)));var t;return e||null}}class j extends F{retrieveLocale(){return this.localizationConfig.interfaceLocales.find(e=>L(e)===b.EN)||null}}var H;!function(e){e.HA="ha",e.IU="iu",e.GD="gd",e.CY="cy",e.BR="br",e.SQ="sq",e.SC="sc",e.NB="nb",e.NN="nn",e.HY="hy",e.AZ="az",e.BE="be",e.CE="ce",e.ET="et",e.KK="kk",e.KY="ky",e.LV="lv",e.LT="lt",e.MN="mn",e.TG="tg",e.UK="uk",e.UZ="uz",e.EU="eu",e.CA="ca",e.GL="gl"}(H||(H={}));class W extends F{retrieveLocale(){const e=W.fallbackLocales.get(this.locale);if(!e)return null;return-1!==this.localizationConfig.interfaceLocales.indexOf(e)?e:null}}W.fallbackLocales=new Map([[H.HA,C.AR_001],[H.IU,C.EN_CA],[H.GD,C.EN_GB],[H.CY,C.EN_GB],[H.BR,C.FR_FR],[H.SQ,C.IT],[H.SC,C.IT],[H.NB,C.NO],[H.NN,C.NO],[H.HY,C.RU_RU],[H.AZ,C.RU_RU],[H.BE,C.RU_RU],[H.CE,C.RU_RU],[H.ET,C.RU_RU],[H.KK,C.RU_RU],[H.KY,C.RU_RU],[H.LV,C.RU_RU],[H.LT,C.RU_RU],[H.MN,C.RU_RU],[H.TG,C.RU_RU],[H.UK,C.RU_RU],[H.UZ,C.RU_RU],[H.EU,C.ES],[H.CA,C.ES],[H.GL,C.ES]]);class z{constructor(e,t){this.locale=e,this.companyLocalizationConfig=t}getUILocale(){const e=new x(this.locale||"",this.companyLocalizationConfig);if(!this.locale)return e.handle();const t=function(e,t){const i=new G(e,t),n=new V(e,t),s=new W(e,t),r=new j(e,t),o=new x(e,t);return i.setNext(n),n.setNext(s),s.setNext(r),r.setNext(o),i}(this.locale,this.companyLocalizationConfig).handle();return t||e.handle()}}let Y;class Z{constructor(e,t,i,n,s){this.translationService=e,this.dateFormatter=t,this.currencyFormatter=i,this.numberFormatter=n,this._locale=Z.DEFAULT_LOCALE,this.availableLocales=s.availableLocales,this.locale=s.locale,this.dateFormatter.intl=this}static isLocaleCode(e){return void 0!==e&&B.includes(e)}get locale(){return this._locale}set locale(e){this.isLocaleAvailable(e)?this._locale=e:this._locale=Z.DEFAULT_LOCALE}get language(){return this.locale.split("-")[0]}setLocale(e){const t=this.locale;this.locale=e;const i=[this.translationService.changeLocale(this.locale)];return Promise.all(i).then(()=>this.locale).catch(e=>(this.locale=t,Promise.reject(e))).finally(()=>{this.dateFormatter.changeLocale(this.locale),this.currencyFormatter.changeLocale(this.locale),this.numberFormatter.changeLocale(this.locale)})}translate(e,t){return function(e){let t=e;for(const s in R)if(Object.prototype.hasOwnProperty.call(R,s)){e.includes(s)&&(i=s,n=R[s],t=t.replace(new RegExp(i,"g"),n))}var i,n;return t}(this.translationService.translate(e,t))}formatDate(e,t){return this.dateFormatter.format(e,t)}formatCurrency(e,t){return this.currencyFormatter.format(e,t)}formatSymbol(e,t){return this.currencyFormatter.formatCurrencySymbol(e,t)}formatNumber(e,t){return this.numberFormatter.format(e,t)}isLocaleAvailable(e){return this.availableLocales.some(t=>t===e)}getCurrencyFormat(){return this.currencyFormatter.getFormat()}}function X(e){return"test"===e?q():{code:Z.isLocaleCode(e)?e:Z.DEFAULT_LOCALE,isTest:!1}}function q(){return{code:Z.DEFAULT_LOCALE,isTest:(void 0===Y&&(Y=!1),Y)}}function J(e){return{code:e,isTest:!1}}var $;Z.DEFAULT_LOCALE=C.EN_US,function(e){e.DONOR="donor",e.EMBED="embed",e.TEST="test"}($||($={}));class Q{static get(e){switch(e){case $.DONOR:return X;case $.EMBED:return J;case $.TEST:return q;default:throw new Error("13 "+e)}}}function ee(e){const t="^"+e.replace(/([[\]{}()+?.^$|\\/])/g,"\\$1").replace(/\*/g,".*")+"$";return new RegExp(t)}class te{constructor(e){this.window=e.window,this.currentUrl=e.currentUrl,this.queryParams=e.queryParams,this.companyLocalizationSettings=e.companyLocalizationSettings}detect(){let e=this.getLocaleFromWindow();return e||(e=this.getLocaleFromURL()),!e&&this.companyLocalizationSettings.matchURL&&(e=this.getLocaleByURLMatching()),!e&&this.companyLocalizationSettings.matchBrowserLocale&&(e=this.getLocaleByBrowser()),e}getLocaleFromWindow(){return this.window._lang}getLocaleFromURL(){return this.queryParams._lang}getLocaleByURLMatching(){let e;return this.companyLocalizationSettings.urlRules.forEach(t=>{const i=ee(t.url).test(this.currentUrl);!e&&i&&(e=t.locale)}),e}getLocaleByBrowser(){return this.window.navigator.language}}class ie{constructor(e){this.companyLocalizationSettings=e.companyLocalizationSettings,this.localeDetector=new te({window:e.window,currentUrl:e.window.location.href,queryParams:e.queryParams,companyLocalizationSettings:e.companyLocalizationSettings})}getConfig(){const e=this.localeDetector.detect();if("test"===e)return Q.get($.TEST)();const t=new z(e,this.companyLocalizationSettings).getUILocale();return Q.get($.EMBED)(t)}}const ne=/#(.+?)(&|$)/;function se(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{};const i=/([^=&#?]+)=([^=&#?]+)/gi,n={};for(;;){const s=i.exec(e);if(!s)break;const[,r,o]=s;try{t?n[decodeURIComponent(r)]=decodeURIComponent(o):n[r]=o}catch(e){console.error(e)}}return n}function re(e,t){let i=e;for(;;){if(t(i))return i;if(!i.parentNode)return;i=i.parentNode}}function oe(e,t){if(e.getAttribute)return e.getAttribute("data-"+t)||void 0}function ae(e){if(!e)return null;if(!ne.test(e))return null;const t=/(#.+?)$/.exec(e);if(!t)return null;const i=t[0],n=ne.exec(i);if(!n)return null;const s=n[1],r=se(i),o={key:s};return Object.assign(o,r),o}function ce(e){const t=document.createElement("a"),i=le();return t.href=e,!!i&&-1===t.hostname.lastIndexOf(i)}function le(e){e||(e=window.location.hostname);const t=e.split("."),i=(window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new N),window.FUN_SERVICE_CONTAINER).get(9),n=i.getField("topLevelDomain");if(n)return n;let s="";if(1===t.length&&(s=t[0]),2===t.length&&(s="."+t.join(".")),3===t.length&&"www"===t[0]&&(s="."+t.slice(-2).join(".")),s)return i.setData({topLevelDomain:s},{domain:s}),s;s=t.splice(-1).join();for(let e=t.length;e>0;e--)if(s=t.splice(-1).join()+"."+s,i.setData({topLevelDomain:"."+s},{domain:"."+s}),i.getField("topLevelDomain"))return"."+s}class he{constructor(e,t,i,n,s,r,o,a,c,l){this.staticConfig=e,this.trackingUrls=t,this.companies=i,this.loadedTimestamp=n,this.version=s,this.currentCompanyKey=r,this.apiHost=o,this.staticS3Host=a,this.meta=c,this.inactiveWidgets=l,this.queryParams=se(window.FundraiseUp.h||window.location.href),"no"===this.queryParams.fundraiseupLivemode?this.livemode=!1:this.livemode="boolean"!=typeof window.fundraiseup_livemode||window.fundraiseup_livemode;const h=i.find(e=>e.key===this.currentCompanyKey);if(!h)throw new Error("1 "+this.currentCompanyKey);this.locale=new ie({window:window,queryParams:this.queryParams,companyLocalizationSettings:h.localization}).getConfig(),this.isMobile=window.FUN_FORCE_MOBILE||this.deviceData.isMobile}get deviceData(){const e=this.staticConfig.deviceData;return{isMobile:e.isMobile,isMobileOrTablet:e.isMobileOrTablet}}get paymentMethods(){return{stripePublicKey:Object.assign({},this.staticConfig.stripePublicKey),paypalClientId:this.staticConfig.paypalClientId,googlePayInfo:Object.assign({},this.staticConfig.googlePayInfo)}}get integrations(){return{uploadcareKey:this.staticConfig.uploadcareKey,dtdEnabled:this.staticConfig.integrations.dtd,sentryUri:this.staticConfig.sentryUri}}get server(){return{mainDomain:this.staticConfig.mainDomain,env:this.staticConfig.env,elementsApiScriptUrl:this.staticConfig.elementsApiScriptUrl,trackingUrls:Object.assign({},this.trackingUrls),resolveUrls:this.getResolveUrls(),checkoutAssets:this.staticConfig.checkoutAssets,elementsUrl:this.staticS3Host+"/embed-data/"}}get data(){return{companies:[...this.companies],currencyRates:Object.assign({},this.staticConfig.currencyRates)}}get allowExperiments(){return!(this.staticConfig.isFundraiseupVisitor&&!this.debugMode)&&!window.FUN_DISABLE_EXPERIMENTS}get disablePreloading(){return this.staticConfig.disablePreloading}get debugMode(){return!!o.a.get(n.DEBUG)}getResolveUrls(){return{common:`${this.apiHost}/checkout?key=${this.currentCompanyKey}&livemode=${this.livemode?"true":"false"}`}}get experimentsConfig(){return{experiments:this.staticConfig.experimentsConfig.experiments||[]}}}var ue,de,pe;!function(e){e.REMINDER="reminder",e.DONATE_BUTTON="donateButton",e.STICKY_BUTTON="stickyButton",e.IMAGE_CARD="imageCard",e.TEXT_LINK="textLink",e.DONATION_FORM="donationForm",e.SIMPLE_FORM="simpleForm",e.GOAL_METER="goalMeter",e.STAT_COUNTER="statCounter",e.IMPACT_SLIDER="impactSlider",e.DONATION_LEVELS="donationLevels",e.BUTTON_GROUP="buttonGroup",e.FLOATING_BUTTON="floatingButton",e.MESSAGE_BAR="messageBar",e.TOP_SUPPORTERS="topSupporters",e.TOP_LOCATIONS="topLocations",e.SOCIAL_PROOF="socialProof",e.QR_CODE="qrCode",e.RECENT_DONATIONS="recentDonations",e.P2P_BUTTON="p2pButton",e.P2P_LINK="p2pLink",e.TOP_FUNDRAISERS="topFundraisers",e.DONOR_MAP="donorMap",e.LIGHTBOX="lightbox",e.FUNDRAISING_PAGE_LINK="fundraisingPageLink",e.FUNDRAISING_PAGE_INVITE_LINK="fundraisingPageInviteLink",e.LINK="link",e.DIRECT_LINK="direct",e.DEBUG_PANEL="debugPanel",e.TEST_MODE_PANEL="testModePanel",e.SPLIT_TESTING="splitTesting"}(ue||(ue={})),function(e){e.BUTTONS="buttons",e.DATA="data",e.FORMS="forms",e.LINKS="links",e.LISTS="lists",e.OVERLAYS="overlays"}(de||(de={})),function(e){e.MOBILE="Mobile",e.DESKTOP="Desktop"}(pe||(pe={}));const ge=[ue.FUNDRAISING_PAGE_LINK,ue.FUNDRAISING_PAGE_INVITE_LINK,ue.LINK,ue.DIRECT_LINK,ue.DEBUG_PANEL,ue.TEST_MODE_PANEL,ue.SPLIT_TESTING],me=(ue.P2P_LINK,ue.TEXT_LINK,ue.QR_CODE,ue.DONATE_BUTTON,ue.STICKY_BUTTON,ue.IMAGE_CARD,ue.DONATION_FORM,ue.SIMPLE_FORM,ue.GOAL_METER,ue.IMPACT_SLIDER,ue.DONATION_LEVELS,ue.BUTTON_GROUP,ue.MESSAGE_BAR,ue.TOP_SUPPORTERS,ue.SOCIAL_PROOF,ue.RECENT_DONATIONS,ue.P2P_BUTTON,ue.P2P_LINK,ue.TOP_FUNDRAISERS,ue.LIGHTBOX,ue.REMINDER,ue.STICKY_BUTTON,ue.SOCIAL_PROOF,ue.MESSAGE_BAR,ue.FLOATING_BUTTON,ue.LIGHTBOX,[ue.STICKY_BUTTON,ue.MESSAGE_BAR,ue.LIGHTBOX]);ue.REMINDER,ue.SOCIAL_PROOF,ue.GOAL_METER,ue.STAT_COUNTER;var fe,ye,Ee,Te;!function(e){e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_CENTER="left-center",e.LEFT_BOTTOM="left-bottom",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_CENTER="right-center",e.RIGHT_BOTTOM="right-bottom",e.CENTER="center",e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"}(fe||(fe={})),function(e){e.NO="no",e.CHECKOUT="checkout",e.CUSTOM="custom"}(ye||(ye={})),function(e){e.IMPACT_TO_AMOUNT="impactToAmount",e.AMOUNT_TO_IMPACT="amountToImpact"}(Ee||(Ee={})),function(e){e.AMOUNT="amount",e.LEVEL="level"}(Te||(Te={}));ue.DONATE_BUTTON,ue.DONATION_FORM,ue.SIMPLE_FORM,ue.STICKY_BUTTON,ue.REMINDER,ue.IMAGE_CARD,ue.TEXT_LINK,ue.BUTTON_GROUP,ue.GOAL_METER,ue.STAT_COUNTER,ue.IMPACT_SLIDER,ue.P2P_BUTTON,ue.P2P_LINK,ue.TOP_FUNDRAISERS,ue.TOP_SUPPORTERS,ue.TOP_LOCATIONS,ue.QR_CODE,ue.SOCIAL_PROOF,ue.RECENT_DONATIONS,ue.DONATION_LEVELS,ue.MESSAGE_BAR,ue.DONOR_MAP,ue.LIGHTBOX;var we,Ne,ve,Ae,Se,_e,Ie,Oe;!function(e){e.TOP="top",e.BOTTOM="bottom",e.BEFORE_CONTENT="beforeContent"}(we||(we={})),function(e){e.ALL="all",e.SELECTED="selected"}(Ne||(Ne={})),function(e){e.AFTER_BEGIN="afterbegin",e.BEFORE_END="beforeend"}(ve||(ve={})),function(e){e.ALL="all",e.DESKTOP_ONLY="desktopOnly",e.MOBILE_ONLY="mobileOnly"}(Ae||(Ae={})),function(e){e.ONCE="once",e.MONTHLY="monthly"}(Se||(Se={})),function(e){e.FUNDRAISER_NAME="fundraiserName",e.FULL_NAME="fullName",e.SHORTED_FULL_NAME="shortedFullName",e.FIRST_NAME="firstName",e.HIDE="hide"}(_e||(_e={})),function(e){e.SPECIFIC_CURRENCY="specificCurrency",e.DONOR_CURRENCY="donorCurrency",e.DONATION_CURRENCY="donationCurrency"}(Ie||(Ie={})),function(e){e.COUNTRIES="countries",e.REGIONS="regions",e.CITIES="cities"}(Oe||(Oe={}));class be{constructor(e){this.timer=0,this.nodes=[],this.observer=null,this.callback=e}run(){try{this.observer=new MutationObserver(this._watch.bind(this)),this.observer.observe(document.documentElement,{childList:!0,subtree:!0})}catch(e){console.error(e)}}_watch(e){[].forEach.call(e,e=>{const t=this.extractNodes(e);if(t&&t.length){if(this.nodes.push(...t),this.timer)return;this.timer=window.setTimeout(()=>{this.timer=0,this.callback(this.nodes),this.nodes=[]},50)}})}extractNodes(e){const t=[];return e.addedNodes?([].forEach.call(e.addedNodes,e=>{if("A"===e.tagName)return void t.push(e);if(e.classList&&e.classList.contains("fun-widget"))return void t.push(e);if(!e.querySelectorAll)return;const i=e.querySelectorAll(".fun-widget, [href]");i&&[].forEach.call(i,e=>t.push(e))}),t):t}}function Ce(e,t){if(function(e){return-1!==me.indexOf(e.type)}(e)){if(e.config.deviceRestriction===Ae.DESKTOP_ONLY&&t)return!1;if(e.config.deviceRestriction===Ae.MOBILE_ONLY&&!t)return!1}return!0}const ke=["/","*"];function Le(e){let t=e.replace(/(\?.*)/,"").replace(/(#.*)/,"");const i=t.charAt(t.length-1);return-1===ke.indexOf(i)&&(t+="/"),t}const Re=e=>{const t=document.createElement("link");t.rel="preload",t.as="script",t.href=e,document.head.appendChild(t);const i=document.createElement("script");i.src=e,i.async=!0,document.head.appendChild(i),i.onload=()=>{document.head.removeChild(t),document.head.removeChild(i)},i.onerror=()=>{document.head.removeChild(t),document.head.removeChild(i)}};ue.REMINDER,ue.DONATE_BUTTON,ue.STICKY_BUTTON,ue.IMAGE_CARD,ue.TEXT_LINK,ue.DONATION_FORM,ue.SIMPLE_FORM,ue.GOAL_METER,ue.STAT_COUNTER,ue.IMPACT_SLIDER,ue.DONATION_LEVELS,ue.BUTTON_GROUP,ue.FLOATING_BUTTON,ue.MESSAGE_BAR,ue.TOP_SUPPORTERS,ue.TOP_LOCATIONS,ue.SOCIAL_PROOF,ue.QR_CODE,ue.RECENT_DONATIONS,ue.P2P_BUTTON,ue.P2P_LINK,ue.TOP_FUNDRAISERS,ue.DONOR_MAP,ue.LIGHTBOX,ue.FUNDRAISING_PAGE_LINK,ue.FUNDRAISING_PAGE_INVITE_LINK,ue.LINK,ue.DIRECT_LINK,ue.DEBUG_PANEL,ue.TEST_MODE_PANEL,ue.SPLIT_TESTING;ue.DONATION_FORM,ue.SIMPLE_FORM,ue.IMPACT_SLIDER,ue.BUTTON_GROUP,ue.TEXT_LINK,ue.IMAGE_CARD,ue.DONATE_BUTTON,ue.STICKY_BUTTON,ue.P2P_BUTTON,ue.P2P_LINK,ue.QR_CODE;class Pe{constructor(){this.payload={}}merge(e){const t={};for(const i in e)t[i]=e[i];for(const e in this.payload)t[e]=this.payload[e];this.payload=t}validate(){return!(!this.payload.companyKey||8!==this.payload.companyKey.length)&&(!!this.payload.clientId&&!!this.eventType)}toObject(){const e={};for(const t in this.payload)e[t]=this.payload[t];return e.eventType=this.eventType,e}}class De extends Pe{constructor(e){if(super(),this.payload={elementParams:e.elementParams,widgetKey:e.widgetKey,elementKey:e.elementKey,elementType:e.elementType,elementLocale:e.elementLocale,elementReminderKey:e.elementReminderKey,splitTestName:e.splitTestName,splitTestVariant:e.splitTestVariant,fundraisingPageKey:e.fundraisingPageKey,fundraisingGroupKey:e.fundraisingGroupKey,fundraisingPageCustomerKey:e.fundraisingPageCustomerKey,eventComment:e.eventComment},e.getElementTrackingData){const t=e.getElementTrackingData();t&&(this.payload.elementData=JSON.stringify(t))}else e.elementData&&(this.payload.elementData=JSON.stringify(e.elementData))}}class Ue extends De{get eventType(){return"elementOpenCheckout"}}function Me(e,t){let i=t;return e.isWidgetCustomHash(t)&&(i=e.getWidgetKeyByCustomHash(t)||t),i.toUpperCase()}class Ke extends De{get eventType(){return"elementClick"}}function Fe(e){let{tracker:t,elementParams:i,keysKeeper:n,widgetKey:s,splitTestVariant:r,splitTestName:o}=e;return t.track(new Ue({elementParams:i,widgetKey:n?Me(n,s):s,elementKey:i.elementKey,elementType:i.type,splitTestName:o,splitTestVariant:r}))}class xe{constructor(e,t,i,n,s,r,o,a){this.collector=e,this.resolver=t,this.keysKeeper=i,this.checkout=n,this.config=s,this.debug=r,this.companyKey=o,this.tracker=a,this.callbacks=[],this.elementsNodes=new Map}get elementsUrl(){return this.config.server.elementsUrl}initialize(){return new be(()=>{window.FUN.splitTesting.init(),this.findAndRenderElements(),window.FUN.splitTesting.reset()}).run(),this.getGlobalElements(),("loading"!==document.readyState?Promise.resolve():new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e())})).then(()=>this.findAndRenderElements()).catch(e=>console.error(e))}createElement(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return U().then(s=>s.createElementByType(e,t,n,i))}findAndRenderElements(){const e=this.collector.findElements();e.forEach(e=>{const t=this.elementsNodes.get(e.key)||[];this.elementsNodes.set(e.key,[...t,e]),this.addOptimisticClickHandler(e)});const t=e.map(e=>{let{key:t}=e;return t});this.keysKeeper.addFundraisersKeys(t),this.addFakeElements(e),this.getElements(t)}addOptimisticClickHandler(e){const t=this.keysKeeper.exists("WIDGET",e.key||"");if(e.type!==ue.LINK||!e.node||!t)return;const i=t=>{var n,s,r,o;null===(n=e.node)||void 0===n||n.removeEventListener("click",i);if(!(null===(s=e.node)||void 0===s?void 0:s.__funElement)&&(t.preventDefault(),t.stopPropagation(),e.key)){const t={queryParams:e.queryParams};if(e.node){const{test:i,variant:n}=window.FUN.splitTesting.inspect(e.node)||{};i&&n&&(t.test={name:i,variant:n})}const i={tracker:this.tracker,elementParams:{key:e.key,elementKey:"",type:ue.LINK},widgetKey:e.key,keysKeeper:this.keysKeeper,splitTestVariant:(null===(r=t.test)||void 0===r?void 0:r.variant)||"",splitTestName:(null===(o=t.test)||void 0===o?void 0:o.name)||""};!function(e){let{tracker:t,elementParams:i,keysKeeper:n,widgetKey:s,splitTestVariant:r,splitTestName:o}=e;t.track(new Ke({elementParams:i,widgetKey:n?Me(n,s):s,elementKey:"",elementType:ue.LINK,splitTestName:o,splitTestVariant:r}))}(i),Fe(i),this.checkout.open(e.key,t).catch(e=>console.error(e))}};e.node.addEventListener("click",i)}renderElements(e,t){return U().then(i=>{var n,s;i.addElements({elements:null!==(n=null==t?void 0:t.elements)&&void 0!==n?n:[],nodes:e,globalElements:null!==(s=null==t?void 0:t.globalElements)&&void 0!==s?s:[]}).then(()=>{this.config.disablePreloading||this.checkout.preloadCheckout()})})}onElementsLoad(e){this.callbacks.push(e)}addElementContent(e){const t=Object.assign(Object.assign({},e),{data:null});(function(e){return!ge.includes(e.type)})(e)&&(t.data=this.config.livemode?e.data.live:e.data.test);const i=[t],n={params:[e.key]};this.debug.logCode(9,{elements:i,info:n});const s=this.elementsNodes.get(e.key);return s&&s.length?this.renderElements(s,{elements:i}).then(()=>{this.elementsNodes.delete(e.key),this.callbacks.forEach(e=>e({elements:i},n))}):(this.callbacks.forEach(e=>e({elements:i},n)),Promise.resolve())}addGlobalElementsContent(e){const t=this.config.deviceData.isMobileOrTablet,i=e.filter(e=>{const i=Ce(e,t),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=Le(e),s=0===t.length||t.some(e=>ee(Le(e)).test(n)),r=i.some(e=>ee(Le(e)).test(n));return s&&!r}(window.location.href,e.config.urlAllow,e.config.urlBlock);return i&&n}).map(e=>Object.assign(Object.assign({},e),{data:this.config.livemode?e.data.live:e.data.test}));return this.callbacks.forEach(e=>e({elements:[],globalElements:i})),this.debug.logCode(10,{globalElements:i}),this.renderElements([],{elements:[],globalElements:i})}getElements(e){-1!==e.indexOf("XFUNDEBUGPANEL")&&this.addElementContent({key:"XFUNDEBUGPANEL",type:ue.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}});const t=e.filter(e=>this.keysKeeper.exists("ELEMENT",e)&&"XFUNDEBUGPANEL"!==e);t.length&&t.forEach(e=>Re(`${this.elementsUrl}elements/${e}.js`))}getGlobalElements(){Re(`${this.elementsUrl}elements-global/${this.companyKey}.js`)}addFakeElements(e){-1!==e.map(e=>{let{key:t}=e;return t}).indexOf("XFUNDEBUGPANEL")&&this.addElementContent({key:"XFUNDEBUGPANEL",type:ue.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}}),e.forEach(e=>{let{type:t,key:i}=e;t!==ue.LINK&&t!==ue.FUNDRAISING_PAGE_LINK&&t!==ue.FUNDRAISING_PAGE_INVITE_LINK||this.addElementContent({key:i,type:t,name:"",config:{},data:{live:null,test:null}})})}}const Be=/\/-\/(X[\dA-Z]{7})/,Ge=/^X[\dA-Z]{7}/,Ve=new RegExp("\\/-\\/(N[\\dA-Z]{7})"),je=new RegExp(Ve.source+"(?!\\/join)"),He=new RegExp(Ve.source+"\\/join"),We=/^N[\dA-Z]{7}/i;function ze(e){return new Promise((function(t,i){Ye(e,t,i)}))}function Ye(e,t,i){const n=new XMLHttpRequest;n.open(e.method||"GET",e.url),n.withCredentials=!("withCredentials"in e)||Boolean(e.withCredentials),n.onload=function(){if(this.status>=200&&this.status<300){const e=n.getResponseHeader("content-type");if(e&&-1!==e.indexOf("application/json"))try{return t(JSON.parse(n.response))}catch(e){i(e)}t(n.response)}else{if(e.validStatuses&&-1!==e.validStatuses.indexOf(this.status))return t();i(new Error(`[Shared]: Server ${e.method} response status ${this.status} for url ${e.url}, ${n.statusText}`))}},n.onerror=function(){i({status:this.status,statusText:n.statusText})};const s=e.headers;s&&Object.keys(s).forEach((function(e){n.setRequestHeader(e,s[e])}));let r=e.params;return r&&"object"==typeof r&&(r=JSON.stringify(r)),n.send(r),{abort(){n.abort()}}}const Ze=window.FUN_HOST||"https://api.fundraiseup.com",Xe=window.FUN_CDN||"https://cdn.fundraiseup.com",qe=window.FUN_STATIC,Je=window.FUN_STATIC_S3||"https://static.fundraiseup.com";i.p=qe||i.p;const $e=document.getElementsByTagName("script");let Qe=null;[].forEach.call($e,e=>{e.src&&(0===e.src.indexOf(Xe)||/\/widgets\/embed\.js/.test(e.src))&&(Qe=e)});const et=function(e){const t={key:"empty-key"};if(!e)return t;const i=/(key=|widget\/)([a-z]{8})/i.exec(e.src);if(i)return{key:i[2]};return t}(Qe);var tt=function(e,t,i,n){return new(i||(i=Promise))((function(s,r){function o(e){try{c(n.next(e))}catch(e){r(e)}}function a(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};class it{constructor(e){this.embedElementsApi=e}open(e){return We.test(e)?this.openByFundraiserKey(e):this.openByElementKey(e)}openByElementKey(e){return U().then(t=>{this.embedElementsApi.getElements([e]),this.embedElementsApi.onElementsLoad(i=>{const n=i.elements.find(t=>t.key===e);if(n)return t.addElements({nodes:[],elements:[n],globalElements:i.globalElements}),t.formOpener.openForm(e,"p2p",{fundraisingPage:null})})})}openByFundraiserKey(e){return Promise.all([U(),this.getFundraisingPageByKey(e)]).then(t=>{let[i,n]=t;i.formOpener.openForm(e,"p2p",{fundraisingPage:n})})}getFundraisingPageByKey(e){return tt(this,void 0,void 0,(function*(){return new Promise((t,i)=>{Ye({method:"GET",url:`${Ze}/p2p/fundraiser/${e}`,headers:{"content-type":"text/plain; charset=utf-8"}},e=>{e&&t(e)},i)})}))}}class nt{constructor(e,t){this.mock=e,this.embedCheckoutApi=t}init(){this.mock.l.forEach(e=>{this.dispatch.apply(this,e)}),this.mock.l.push=e=>(this.dispatch.apply(this,e),e.length)}dispatch(e,t){return"string"!=typeof e?e[0](this.embedCheckoutApi):this.embedCheckoutApi[e](...[].slice.call(t))}}const st=()=>{};function rt(e,t){if(!e)return;if("test"===t&&e.FUN_SPLIT_TESTING_NAME)return{name:e.FUN_SPLIT_TESTING_NAME,node:e};if("variant"===t&&e.FUN_SPLIT_TESTING_VARIANT_NAME)return{name:e.FUN_SPLIT_TESTING_VARIANT_NAME,node:e};const i=oe(e,"fun-"+t);if(i)return{name:i,node:e};const n=e.getAttribute("href")||"",s=/#FUN/.test(n),r=/#X/.test(n);if(s||r){const i=ae(n);if(i&&i.key&&i[t])return{name:i[t],node:e}}}function ot(e){const t=re(e,e=>Boolean(e.FUN_SPLIT_TESTING_VARIANT_NAME||oe(e,"fun-variant")));return rt(e,"variant")||rt(t,"variant")}function at(e){const t=re(e,e=>Boolean(e.FUN_SPLIT_TESTING_NAME||oe(e,"fun-test")));return rt(e,"test")||rt(t,"test")}function ct(e){if(!function(e){if(!e)return!1;const t=re(e,e=>Boolean(e.FUN_SPLIT_TESTING));return Boolean(t)}(e))return;const t=at(e),i=ot(e);return t&&i?{test:t.name,variant:i.name}:void 0}function lt(e){return decodeURI(e).replace(/[^\d\w]+/g," ").trim()}class ht{constructor(e){let{clientId:t,api:i,root:n,keysKeeper:s,companyKey:r,onVariantSelect:o=st,onReset:a=st}=e;this.isExternalUrl=ce,this._isForeignVariant=!1,this.api=i,this.root=n||document,this.keysKeeper=s,this.testings={},this._allVariantNodes=[],this.clientId=t,this.companyKey=r,this.onVariantSelect=o,this.onReset=a}init(){this.collectTestings();for(const e in this.testings)this.initTest(e)}reset(){this.onReset(),this.testings={},this._allVariantNodes=[]}inspect(e){return ct(e)}get isForeignVariant(){return this._isForeignVariant}get allVariantNodes(){return[...this._allVariantNodes]}initTest(e){const{nodes:t,variants:i}=this.testings[e],n=this.chooseVariantFor(e);for(const t in i){const s=i[t];t===n?[].forEach.call(s,i=>{const n=ae(i.getAttribute("href"));n&&n.type&&n.key||(this._isForeignVariant=!0,i.style.removeProperty("display")),i.FUN_SPLIT_TESTING_NAME=e,i.FUN_SPLIT_TESTING_VARIANT_NAME=t,this._allVariantNodes.push(i),this.onVariantSelect({testName:e,variantName:t})}):[].forEach.call(s,e=>{null!==e.parentNode&&e.parentNode.removeChild(e)})}this.api(()=>{[].forEach.call(t,e=>{this.mixinLinkUrls(e),e.style.removeProperty("display")})})}chooseVariantFor(e){const{variants:t}=this.testings[e],i=Object.keys(t).sort();if("VMZETRCF"===this.companyKey&&"stc gt"===e){return a(`${this.clientId}:${e}`)%10>8?i[1]:i[0]}return i[a(`${this.clientId}:${e}`)%i.length]}collectTestings(){this.reset();const e=this.root.querySelectorAll("[data-fun-variant], a[href]");[].forEach.call(e,e=>{if(e.FUN_SPLIT_TESTING)return;const t=ot(e),i=at(e);i&&t&&(e.FUN_SPLIT_TESTING=!0,this.add(i,t))});for(const e in this.testings){const{variants:t,nodes:i}=this.testings[e];1===Object.keys(t).length&&([].forEach.call(i,e=>{delete e.FUN_SPLIT_TESTING}),delete this.testings[e])}}add(e,t){const i=lt(e.name),n=lt(t.name),s=this.testings[i]||{nodes:[],variants:{}};this.testings[i]=s;const r=s.variants,o=r[n]||[];r[n]=o;const a=Object.keys(r),c=s.nodes;a.length>=2&&-1===a.indexOf(n)||(-1===c.indexOf(e.node)&&c.push(e.node),-1===o.indexOf(t.node)&&o.push(t.node))}mixinLinkUrls(e){const t=e.querySelectorAll("a[href]");[].forEach.call(t,e=>{var t;const i=at(e),n=ot(e);if(!i||!n)return;const s=this.isExternalUrl(e.href),r={};r.fun_test=i.name,r.fun_variant=n.name,s&&(r.fun_cid=this.clientId);const o=(null===(t=e.hash.split(/[?&]/).shift())||void 0===t?void 0:t.substring(1))||"";if(!this.keysKeeper.exists("WIDGET",o)&&/^https?:\/\//.test(e.href)){const t=se(e.search),i={};Object.assign(i,t,r),e.search=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=[];for(const n in e){const s=e[n];t?i.push(`${encodeURIComponent(n)}=${encodeURIComponent(s)}`):i.push(`${n}=${s}`)}return i.join("&")}(i)}})}}class ut extends Pe{constructor(e,t){super(),this.payload={splitTestName:e,splitTestVariant:t}}get eventType(){return"testVariantSelected"}}class dt extends Pe{constructor(){super();const e=se(location.href);e.fun_test&&(this.payload.splitTestName=e.fun_test),e.fun_variant&&(this.payload.splitTestVariant=e.fun_test)}get eventType(){return"pageView"}}class pt extends Pe{get eventType(){return"pageLeave"}}class gt extends Pe{constructor(e){super(),this.payload={duration:e.duration,eventComment:JSON.stringify({widgets:e.widgets})}}get eventType(){return"checkoutResolve"}}const mt=/#([\da-z_-]{1,25})(\?|&|$)/i;function ft(e){const t=mt.exec(e);return t&&t[1]?t[1]:""}function yt(e){let{elementKey:t,elementType:i,widgetKey:n,queryParams:s}=e;return t&&i?Object.assign(Object.assign({},s),{type:i,elementKey:t,key:n}):Object.assign(Object.assign({},s),{type:ue.DIRECT_LINK,elementKey:"",key:n})}function Et(e){const t={elementType:ue.DIRECT_LINK,splitTestName:"",splitTestVariant:"",widgetKey:""};return e.elementKey&&e.type?Object.assign(Object.assign(Object.assign({},t),e),{elementType:e.type,widgetKey:e.key}):t}var Tt,wt;!function(e){e.ADVANCED_SMART_FEE_COVERING="AdvancedSmartFeeCoveringExperiment",e.DUMMY_EXPERIMENT="DummyExperiment",e.AVERAGE_DONATION_AMOUNT_AI_EXPERIMENT="AverageDonationAmountAIExperiment",e.REMINDER_EMPHASIZED_BUTTON="ReminderEmphasizedButton",e.STICKY_BUTTON_ANIMATION_EXPERIMENT="StickyButtonAnimationExperiment"}(Tt||(Tt={})),function(e){e.CONTROL="control",e.TEST_1="test1",e.TEST_2="test2",e.TEST_3="test3"}(wt||(wt={}));const Nt={[Tt.ADVANCED_SMART_FEE_COVERING]:"40136",[Tt.DUMMY_EXPERIMENT]:"33802",[Tt.AVERAGE_DONATION_AMOUNT_AI_EXPERIMENT]:"33514",[Tt.REMINDER_EMPHASIZED_BUTTON]:"38507",[Tt.STICKY_BUTTON_ANIMATION_EXPERIMENT]:"38642"};var vt,At,St,_t,It;!function(e){e.CONTROL="control",e.TEST="test"}(vt||(vt={})),function(e){e.CONTROL="control",e.TEST_1="test1",e.TEST_2="test2",e.TEST_3="test3"}(At||(At={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(St||(St={})),function(e){e.AUSTRALIA="AU",e.AUSTRIA="AT",e.BELGIUM="BE",e.BRAZIL="BR",e.BULGARIA="BG",e.CANADA="CA",e.CROATIA="HR",e.CYPRUS="CY",e.CZECH_REPUBLIC="CZ",e.DENMARK="DK",e.ESTONIA="EE",e.FINLAND="FI",e.FRANCE="FR",e.GERMANY="DE",e.GREECE="GR",e.HONG_KONG="HK",e.HUNGARY="HU",e.INDIA="IN",e.INDONESIA="ID",e.IRELAND="IE",e.ITALY="IT",e.JAPAN="JP",e.LATVIA="LV",e.LITHUANIA="LT",e.LUXEMBOURG="LU",e.MALAYSIA="MY",e.MALTA="MT",e.MEXICO="MX",e.NETHERLANDS="NL",e.NEW_ZEALAND="NZ",e.NORWAY="NO",e.POLAND="PL",e.PORTUGAL="PT",e.ROMANIA="RO",e.SINGAPORE="SG",e.SLOVAKIA="SK",e.SLOVENIA="SI",e.SPAIN="ES",e.SWEDEN="SE",e.SWITZERLAND="CH",e.THAILAND="TH",e.UNITED_ARAB_EMIRATES="AE",e.UNITED_KINGDOM="GB",e.UNITED_STATES="US",e.GIBRALTAR="GI",e.LIECHTENSTEIN="LI",e.PHILIPPINES="PH"}(_t||(_t={})),function(e){e.DEFAULT_YES="defaultYes",e.DEFAULT_NO="defaultNo",e.ONLY_YES="onlyYes",e.ONLY_NO="onlyNo",e.SMART_COVERING="smartCovering"}(It||(It={}));class Ot{constructor(e){this.excluded=!1,this.isActive=!1,this._controlledByDebugPanel=!1,this.alwaysDisabledCompanies=["AJZSDMZE","ASYXEBAM","APRVBZRU","AYEWEYZD","ACSRWCJP","AMUBFBCE","ACYFHBCY","ACUVFNNB","AEDSCDSM","AWKKWSUU"];const{settings:t,clientId:i,companyKey:n,widgetKey:s,tracker:r,funStorage:o,user:a,parentCompanyKey:c,infrastructureParams:l,sentry:h}=e;this.sentry=h,this.clientId=i,this.companyKey=n,this.parentCompanyKey=c,this.widgetKey=s,this.tracker=r,this.funStorage=o,this.user=a,this.infrastructureParams=l;const{id:u,name:d,variants:p,disabledAccounts:g,enabledAccounts:m,enabled:f,enabledForWidgets:y}=t;this.name=d,this.id=u,this.disabledAccounts=g,this.enabledAccounts=m,this.enabledForWidgets=y,this.enabled=f,this.variants=new Map,p.forEach(e=>{this.variants.set(e.name,{percent:e.percent})}),this.variantSelectors=Ot.getDistributedSelectors(this.variants,d,h);const E=Array.isArray(window.FUN_DISABLED_EXPERIMENTS)?window.FUN_DISABLED_EXPERIMENTS:[],T=!window.FUN||window.FUN.config.allowExperiments;this.globalDisabled=!T||-1!==E.indexOf(u)}get active(){return this.isActive}get controlledByDebugPanel(){return this._controlledByDebugPanel}get currentVariantName(){return this._currentVariantName}set currentVariantName(e){this.previousVariantName=this._currentVariantName,this._currentVariantName=e}get variantName(){return this.currentVariantName}start(e){if(this.checkDisabled())return;this.init()&&(this.activate(),this.tracker.setEventTags(this.getTags()))}getTags(){const e=[this.id,`${this.id}-${this.currentVariantName}`];return this.excluded&&e.push(this.id+"-exclusion"),e}isVariant(e){return this.currentVariantName===e}activate(){this.isActive?this.sentry.captureException("4 "+this.name):this.isActive=!0}init(){var e,t,i,n,s,r;const o=this.getDebugPanelVariant();if(o)return this._controlledByDebugPanel=!0,this.setVariant(o),!0;if(null===(e=this.disabledAccounts)||void 0===e?void 0:e.find(e=>e===this.companyKey))return!1;const a=null===(t=this.enabledAccounts)||void 0===t?void 0:t.find(e=>e===this.companyKey);if((null===(i=this.enabledAccounts)||void 0===i?void 0:i.length)&&!a)return!1;const c=null===(n=this.enabledForWidgets)||void 0===n?void 0:n.find(e=>e===this.widgetKey);if((null===(s=this.enabledForWidgets)||void 0===s?void 0:s.length)&&!c)return!1;const l=this.getSelection(),h=[];return this.variantSelectors.forEach((e,t)=>{h.push([t,e])}),this.currentVariantName=null===(r=h.find(e=>{let[,[t,i]]=e;return l>=t&&l<i}))||void 0===r?void 0:r[0],!0}setVariant(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.variants.has(e)?(this.excluded=t,this.currentVariantName=e,this.tracker.removeEventTags([this.id]),this.tracker.setEventTags(this.getTags())):this.sentry.captureException("5 "+this.name)}restoreVariant(){this.previousVariantName&&this.setVariant(this.previousVariantName,!1)}checkDisabled(){if(-1!==this.alwaysDisabledCompanies.indexOf(this.companyKey))return!0;const e=this.getDebugPanelExperimentsSettings();if(e){const t=e[this.name];if(t&&t.enabled)return!1}return!this.enabled||this.globalDisabled}getDebugPanelExperimentsSettings(){const e=this.funStorage.get();return"object"!=typeof e?(this.sentry.captureException("6"),null):e}getDebugPanelVariant(){const e=this.funStorage.get();if(!e)return;const t=e[this.name];return t?t.variant:void 0}getSelection(){return Number(a(`${this.clientId}:${this.name}`)%1e3)}static getDistributedSelectors(e,t,i){let n=0;e.forEach(e=>{let{percent:t}=e;return n+=t}),100!==Math.floor(n)&&i.captureException(`7 ${t} ${n}`);let s=0;const r=new Map;return e.forEach((e,t)=>{let{percent:i}=e;r.set(t,[10*s,10*s+10*i]),s+=i}),r}}function bt(e,t){var i;const n=(null===(i=t.find(t=>t.group===e))||void 0===i?void 0:i.value)||[];return n.length<6?null:n}const Ct={[Tt.ADVANCED_SMART_FEE_COVERING]:class extends Ot{get isExperimentActive(){return this.isActive}start(e){const t=e;[It.DEFAULT_YES,It.DEFAULT_NO,It.SMART_COVERING].includes(t.includeFees)&&super.start()}getIncludeFeesDefault(e,t){var i,n,s;if(!this.isActive)return t;null===e&&(e=0);const r=null===(i=this.infrastructureParams)||void 0===i?void 0:i.OS,o="Mac OS"===r,a="Android"===r,c="iOS"===r,l="Windows"===r;if(this.isVariant(vt.TEST)){if((null===(s=null===(n=this.user)||void 0===n?void 0:n.address)||void 0===s?void 0:s.countryCode)===_t.UNITED_STATES){if(e>=0&&e<1e4)return It.DEFAULT_YES;if(e>=1e4&&e<25e3)return a||c||o||l?It.DEFAULT_YES:It.DEFAULT_NO;if(e>=25e3&&e<1e5)return c||o?It.DEFAULT_YES:It.DEFAULT_NO;if(e>=1e5)return It.DEFAULT_NO}if(e>=0&&e<2e3)return It.DEFAULT_NO;if(e>=2e3&&e<1e4)return It.DEFAULT_YES;if(e>=1e4&&e<1e5)return c||o?It.DEFAULT_YES:It.DEFAULT_NO;if(e>=1e5)return It.DEFAULT_NO}return t}},[Tt.DUMMY_EXPERIMENT]:class extends Ot{},[Tt.AVERAGE_DONATION_AMOUNT_AI_EXPERIMENT]:class extends Ot{get isTestGroup(){return this.active&&!this.isVariant(At.CONTROL)}getAmountOptions(e,t,i){if(!this.active||this.isVariant(At.CONTROL))return e;let n=null;return this.isVariant(At.TEST_1)&&(n=bt("aiAmountExperimentData_Test1",t)),this.isVariant(At.TEST_2)&&(n=bt("aiAmountExperimentData_Test2",t)),this.isVariant(At.TEST_3)&&(n=bt("aiAmountExperimentData_Test3",t)),n?i.beautify(n,"USD"):(this.setVariant(At.CONTROL,!0),e)}},[Tt.REMINDER_EMPHASIZED_BUTTON]:class extends Ot{shouldShowNewReminder(){return this.isVariant(vt.TEST)}},[Tt.STICKY_BUTTON_ANIMATION_EXPERIMENT]:class extends Ot{getAnimationParams(){const e={};return this.isActive?this.isVariant(St.TEST_1)?{animateOnHoverOnly:!0}:this.isVariant(St.TEST_2)?{stopAnimationTimeoutMs:4e3}:e:e}}},kt={id:Nt[Tt.ADVANCED_SMART_FEE_COVERING],name:Tt.ADVANCED_SMART_FEE_COVERING,autostart:!1,enabled:!1,variants:[{name:vt.CONTROL,percent:50},{name:vt.TEST,percent:50}],disabledAccounts:["ABGHKWJN"]},Lt={id:Nt[Tt.DUMMY_EXPERIMENT],name:Tt.DUMMY_EXPERIMENT,autostart:!0,enabled:!1,variants:[{name:vt.CONTROL,percent:50},{name:vt.TEST,percent:50}]},Rt={id:Nt[Tt.AVERAGE_DONATION_AMOUNT_AI_EXPERIMENT],name:Tt.AVERAGE_DONATION_AMOUNT_AI_EXPERIMENT,autostart:!0,enabledForWidgets:["FUNELYZXFBW","FUNVJWTZOTR","FUNNHMFLTDT","FUNSZEBLFZD","FUNKBHMZQDQ","FUNLDRLQTRE","FUNURPOJSSG"],enabled:!1,variants:[{name:vt.CONTROL,percent:25},{name:At.TEST_1,percent:25},{name:At.TEST_2,percent:25},{name:At.TEST_3,percent:25}]};function Pt(){return[kt,Lt,Rt]}const Dt={id:Nt[Tt.REMINDER_EMPHASIZED_BUTTON],name:Tt.REMINDER_EMPHASIZED_BUTTON,autostart:!0,enabled:!1,variants:[{name:vt.CONTROL,percent:50},{name:vt.TEST,percent:50}]},Ut={id:Nt[Tt.STICKY_BUTTON_ANIMATION_EXPERIMENT],name:Tt.STICKY_BUTTON_ANIMATION_EXPERIMENT,autostart:!0,enabled:!1,variants:[{name:St.CONTROL,percent:33},{name:St.TEST_1,percent:33},{name:St.TEST_2,percent:33},{name:St.TEST_3,percent:1}],disabledAccounts:["ABGHKWJN"]};function Mt(){return[Dt,Ut]}var Kt=function(e){return Mt().map(t=>{const i=e.experiments.find(e=>e.experimentId===t.id);return i?{id:t.id,autostart:t.autostart,enabledForWidgets:t.enabledForWidgets,name:i.name,enabled:i.enabled,variants:i.variants,disabledAccounts:i.disabledAccounts,enabledAccounts:i.enabledAccounts}:t})};class Ft{constructor(e){this.experiments=new Map;const{experimentsSettings:t,tracker:i,funStorage:n,companyKey:s,widgetKey:r,user:o,parentCompanyKey:a,infrastructureParams:c,sentry:l}=e;this.experimentsSettings=t,this.tracker=i,this.funStorage=n,this.companyKey=s,this.parentCompanyKey=a,this.widgetKey=r,this.user=o,this.infrastructureParams=c,this.sentry=l}init(){this.experimentsSettings.forEach(e=>{const{name:t,autostart:i}=e,n=Ct[t];if(!n)return void this.sentry.captureException(`8 "${t}"`);const s=new n({clientId:this.tracker.clientId,settings:e,companyKey:this.companyKey,parentCompanyKey:this.parentCompanyKey,tracker:this.tracker,funStorage:this.funStorage,user:this.user,widgetKey:this.widgetKey,infrastructureParams:this.infrastructureParams,sentry:this.sentry});this.experiments.set(t,s),Ft.isAutostartable(s,i)&&s.start()})}get(e){if(!this.experiments.has(e)){this.sentry.captureException(`9 "${e}"`);const i=(t=Nt[e],[...Pt(),...Mt()].find(e=>e.id===t)),n=new(0,Ct[e])({clientId:this.tracker.clientId,settings:i,companyKey:this.companyKey,parentCompanyKey:this.parentCompanyKey,tracker:this.tracker,funStorage:this.funStorage,user:this.user,widgetKey:this.widgetKey,infrastructureParams:this.infrastructureParams,sentry:this.sentry});return this.experiments.set(e,n),n}var t;return this.experiments.get(e)}static isAutostartable(e,t){return t}}class xt{constructor(e,t,i,n,s,r,o,a,c,l,h){this.checkout=e,this.elements=t,this.forms=i,this.services=n,this.config=s,this.tracker=r,this.resolver=o,this.keysKeeper=a,this.debug=c,this.experimentsStorage=l,this.collector=h,this.initialized=!1}init(){if(this.initialized)return this.debug.logCode(1),Promise.resolve();var e;document.head.insertAdjacentHTML("beforeend",'<link href="https://ucarecdn.com/" rel="dns-prefetch">'),function(e){if(window.FUN_WIDGET_KEYS){e.addWidgetKeys(window.FUN_WIDGET_KEYS);const t=window.FUN_WIDGET_KEYS.push;window.FUN_WIDGET_KEYS.push=function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return e.addWidgetKeys(n),t.apply(window.FUN_WIDGET_KEYS,n)}}}(this.keysKeeper),e=this.keysKeeper,window.FUN_ELEMENT_KEYS={add(t,i){e.addElementKeys(t,i)}},this.initTracker();new nt(window.FundraiseUp,this.checkout).init();const t=this.config.data.companies.find(e=>e.key===this.config.currentCompanyKey);return this.experiments=new Ft({companyKey:this.config.currentCompanyKey,parentCompanyKey:(null==t?void 0:t.parentKey)||null,tracker:this.tracker,experimentsSettings:Kt(this.config.experimentsConfig),funStorage:this.experimentsStorage,sentry:{captureException:e=>console.error(e)}}),this.experiments.init(),this.splitTesting=new ht({keysKeeper:this.keysKeeper,clientId:this.tracker.clientId,api:window.FundraiseUp,companyKey:this.config.currentCompanyKey,onVariantSelect:e=>{let{testName:t,variantName:i}=e;this.tracker.track(new ut(t,i))},onReset:()=>{this.splitTesting.allVariantNodes.forEach(e=>{if([].slice.call(e.querySelectorAll('a[href^="#X"],a[href^="#x"]')).some(e=>this.keysKeeper.exists("ELEMENT",e.hash.replace("#",""))))return;const t=this.collector.getNodeParams(e),i=this.collector.extractNodeParams(e)||t,n=null==i?void 0:i.key;n&&this.keysKeeper.exists(["WIDGET","ELEMENT"],n)||U().then(t=>t.createElementByType(ue.SPLIT_TESTING,{elementKey:"",elementType:ue.SPLIT_TESTING,elementName:ue.SPLIT_TESTING,config:{},elementFoundTimestamp:Date.now()},!1,e).catch(e=>console.error(e)))})}}),Promise.all([this.elements.initialize(),this.openByDirectUrl()]).then(()=>{this.initialized=!0,window.FUN_STARTUP_HOOK&&window.FUN_STARTUP_HOOK()})}initTracker(){this.tracker.track(new dt),window.addEventListener("beforeunload",()=>{this.tracker.track(new pt)}),this.resolver.onResolve((e,t)=>{this.tracker.track(new gt({widgets:[e.campaign.key],fundraisingPages:e.fundraisingPage?[e.fundraisingPage.key]:[],duration:t.duration}))})}openByDirectUrl(){this.debug.logCode(2,3);const e=[window.location.href];window.FundraiseUp.h&&window.FundraiseUp.h.match(/^https?:\/\/.+\..+\//)&&e.push(window.FundraiseUp.h);for(let t=0;t<e.length;t++){const i=e[t];this.debug.logCode(2,4,i);const n=se(i),s=n.form,r=ft(i),o={queryParams:n},a=this.keysKeeper.exists("WIDGET",s),c=this.keysKeeper.exists("WIDGET",r),l=a&&s||c&&r;if(l){const e=yt({elementType:this.keysKeeper.getElementType(n.element),elementKey:n.element,widgetKey:l,queryParams:n}),t=Et(e);Fe({tracker:this.tracker,elementParams:e,widgetKey:l,keysKeeper:this.keysKeeper,splitTestName:"",splitTestVariant:""});const i=Object.assign(Object.assign({},o),{launcher:t});return this.checkout.open(l,i)}const h=this.keysKeeper.getElementType(s);if(h===ue.P2P_BUTTON||h===ue.P2P_LINK)return this.debug.logCode(2,5),this.forms.open(s);if(We.test(s))return this.debug.logCode(2,6),this.forms.open(s)}return Promise.resolve()}showDebugPanel(){return function(e,t){t.get()||t.set({},{path:e.location.pathname});const i="#XFUNDEBUGPANEL";let n=e.querySelector(`[href="${i}"]`);n||(n=e.createElement("a"),n.setAttribute("href",i),n.style.display="none",e.body.appendChild(n))}(document,this.experimentsStorage)}get version(){return this.config.version}get livemode(){return this.config.livemode}}class Bt{constructor(e){this.config=e,this.abortRequest=null}getData(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=e.map(e=>({key:e}));return this.postElementsData(i,t)}searchData(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.postElementsData([{key:e,params:t}],i)}postElementsData(e,t){return t&&this.abortRequest&&this.abortRequest(),new Promise((t,i)=>{const{abort:n}=Ye({method:"POST",url:`${Ze}/elements/data?key=${this.config.currentCompanyKey}&livemode=${this.config.livemode}`,headers:{"content-type":"text/plain; charset=utf-8"},params:e},e=>{e&&t(e)},i);this.abortRequest=n})}}function Gt(e){return null!=e}class Vt{constructor(e,t){this.keysKeeper=e,this.debug=t,this.nodesMap=new WeakMap}getNodeParams(e){return this.nodesMap.get(e)}findElements(){const e=document.querySelectorAll(".fun-widget, a[href]");return this.debug.logCode(11,{primaryNodes:e}),this.createElementsParams([].slice.call(e))}extractNodeParams(e){if("fun"===e.getAttribute("data-ignore"))return null;const t=e.getAttribute("href")||"";let i=ae(t);const n=se(t);if(Be.test(t)){const e=Be.exec(t);if(e&&e[1]){const t=e[1];i||(i={}),i.key=t,i.type=ue.TEXT_LINK}}if(je.test(t)){const e=je.exec(t);if(e&&e[1]){const t=e[1];i||(i={}),i.key=t,i.type=ue.FUNDRAISING_PAGE_LINK}}if(He.test(t)){const e=He.exec(t);if(e&&e[1]){const t=e[1];i||(i={}),i.key=t,i.type=ue.FUNDRAISING_PAGE_INVITE_LINK}}"#XFUNDEBUGPANEL"===t&&(i||(i={}),i.key="XFUNDEBUGPANEL",i.type=ue.DEBUG_PANEL),n.form&&(i||(i={}),i.key=n.form,Object.assign(i,n));const s={type:ue.LINK,key:"",elementFoundTimestamp:0};if(i){if(!(i.type||function(e,t,i){if(/^[#?]/.test(i))return!0;const n=e.split("#")[0],s=t.split("#")[0],r=t.split("?")[0];return n===s||n===r||e.split("?")[0]===s}(e.href,window.location.href,t)))return null;s.key=i.key;const n=i.type||this.keysKeeper.getElementType(s.key);s.type=n||ue.LINK}else s.key=oe(e,"key")||"";return-1!==[ue.LINK,ue.FUNDRAISING_PAGE_LINK,ue.FUNDRAISING_PAGE_INVITE_LINK,ue.TEXT_LINK].indexOf(s.type)&&(s.queryParams=n),s.key&&(s.type!==ue.LINK||this.keysKeeper.exists("ELEMENT",s.key)||this.keysKeeper.exists("WIDGET",s.key))?(s.key=Me(this.keysKeeper,s.key),s.node=e,s.elementFoundTimestamp=Date.now(),this.debug.logCode(12,{params:s}),this.nodesMap.set(s.node,s),s):null}createElementsParams(e){return this.debug.logCode(13,{nodes:e}),e.filter(e=>!this.nodesMap.has(e)).filter(e=>Vt.domContains(e)).map(e=>this.extractNodeParams(e)).filter(Gt)}static domContains(e){return"function"!=typeof document.contains||document.contains(e)}}const jt=/#?(FUN.{8})/i;class Ht{constructor(e){this.customHashToKeyIndex=new Map,this.keyToCustomHashIndex=new Map,this.originalKeyIndex=new Map,this.elementsMap=new Map,this.fundraisersMap=new Map,this.index=new Map,this.processWidgetKeys(e.campaigns),this.processElementKeys(e.elements)}processWidgetKeys(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{const[t,i]=e,n=this.normalize(t);if(this.index.set(n,"WIDGET"),this.originalKeyIndex.set(n,t),i){const e=this.normalize(i);this.index.set(e,"WIDGET"),this.customHashToKeyIndex.set(e,t),this.keyToCustomHashIndex.set(n,i),this.originalKeyIndex.set(e,i)}})}processElementKeys(e){Object.keys(e).forEach(t=>{e[t].forEach(e=>{this.index.set(this.normalize(e),"ELEMENT"),this.elementsMap.set(this.normalize(e),t)})}),this.index.set(this.normalize("XFUNDEBUGPANEL"),"ELEMENT"),this.elementsMap.set(this.normalize("XFUNDEBUGPANEL"),ue.DEBUG_PANEL)}exists(e,t){return("string"==typeof e?[e]:e).some(e=>this.index.get(this.normalize(t))===e)}itLooksLikeKey(e,t){return"WIDGET"===e?jt.test(this.normalize(t)):"ELEMENT"===e?Ge.test(t):We.test(t)}normalize(e){if(!e)return"";const t=e.slice("#"===e[0]?1:0);return jt.test(t)||Ge.test(t)||We.test(t)?t.toUpperCase():t.toLowerCase()}getElementType(e){return this.elementsMap.get(e)}checkElementType(e,t){return this.getElementType(t)===e}addWidgetKeys(e){e.forEach(e=>{if(this.exists("WIDGET",e))return;const t=this.normalize(e);this.index.set(e,"WIDGET"),this.originalKeyIndex.set(t,t)})}addFundraisersKeys(e){e.filter(e=>We.test(e)).forEach(e=>{if(this.exists("FUNDRAISING_PAGE",e))return;const t=this.normalize(e);this.exists("WIDGET",t)||(this.index.set(t,"FUNDRAISING_PAGE"),this.fundraisersMap.set(t,t))})}getFundraisersKeys(){return[...this.fundraisersMap.keys()]}addElementKeys(e,t){this.index.set(this.normalize(t),"ELEMENT"),this.elementsMap.set(this.normalize(t),e)}getWidgetCustomHash(e){return this.keyToCustomHashIndex.get(this.normalize(e))}isWidgetCustomHash(e){return this.customHashToKeyIndex.has(this.normalize(e))}getOriginalWidgetKey(e){return this.originalKeyIndex.get(this.normalize(e))}getWidgetKeyByCustomHash(e){return this.customHashToKeyIndex.get(this.normalize(e))}}var Wt=i(1),zt=i.n(Wt);function Yt(e,t){if(e.body)return t();setTimeout(Yt.bind(null,e,t),10)}class Zt{constructor(e,t){this.targetWindow=e,this.scrollLocker=t,this.container=null,this.targetWindow=e,this.setStyle()}render(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.targetWindow.document.getElementById(Zt.styleId)||this.setStyle(),this.container||(this.container=this.targetWindow.document.createElement("div"),this.container.__funIgnoreInViewportTracker=!0,this.container.classList.add("fun-widget-backdrop-holder"),this.container.style.setProperty("background","rgba(57, 58, 63, 0.85)","important"),e&&this.showSpinner(),this.targetWindow.document.body?(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock()):Yt(this.targetWindow.document,()=>{this.container&&(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock())})),this}setStyle(){this.targetWindow.document.head.insertAdjacentHTML("afterbegin",`<style id="${Zt.styleId}">${zt.a}</style>`)}get isExists(){return!!this.container}remove(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.scrollLocker.unlock(),this.container?e?(this.container.remove(),this.container=null,this):(this.container.style.transition="opacity .2s ease",this.container.addEventListener("transitionend",()=>{this.container&&(this.container.remove(),this.container=null)}),this.container.style.opacity="0",this):this}hideSpinner(){if(!this.container)return console.warn(3),this;const e=this.container.querySelector("img");return e&&e.remove(),this}showSpinner(){return this.container?(this.container.insertAdjacentHTML("afterbegin",'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAACCCAMAAAC93eDPAAAAvVBMVEUAAADf39/i4uLh4eHi4uLk5OTj4+Pk5OTj4+NmZmZmZmZlZWVmZmZnZ2dkZGRmZmZlZWXi4uLj4+Pj4+NlZWXf399nZ2dgYGDj4+NlZWVkZGTj4+Pj4+Ph4eFoaGhmZmZnZ2dmZmZgYGBmZmZmZmbh4eFmZmZmZmbj4+NlZWVmZmbk5OTk5ORmZmbj4+Pk5OTf39/j4+NjY2Nra2tlZWXi4uLm5ubh4eFlZWVnZ2dlZWVgYGBwcHDi4uJnZ2d2Fsa/AAAAP3RSTlMAIFBwj5+/3///37+vj3BQMGDP72AQnxBA70B/b4AggL+gIH/PkO9wgJCPMF9fkHAwr1Afz7AfoLCvbzAQoJB3/jN7AAAEnUlEQVR4AbzRxYHFMAwEUJklh2P4zP3XuHBZDNMrQDAD0zAupNLGICIRWZukWV6UsBFWydrhN/ohyfzadwSuDP5Bf9hY7FbbX2mH/1GD1K9xxV46bESNDvEIy6o0tqE21sNiwslhO6L1jzg77EK09hF7gw1crS7VnrEAn67l0d/S+2GVI5jGf4yqGDQq/cPSP/G5bAdaMOh09Xf667VcBFoEGODq39s5CyzV1SAIN07Ck7jNmZ8RfNx99r+rp9y6aQ4JRP7OtW8D1OmqrjiTTTdOahmBO41ob6xjgzGbU3H8Lhew8KkQasljsQoLm+CUFQDUuJIZZ2wVez6VQjE7TIsKcJ6OgRNRaVTajdlFgSAOUyyoEsyNvUN5kO6hMwI1DOK0uIJLnyoTLrmGYi5cUS3Mi3lxnlrFiGrCSpmxM5NnLhQMWgRqDMTMolxaAy0KoGF3R/lcgSYNk7yu7jIF2jSscpZBowJoyF2LlqtFAVAxIpkVh69BOCMtJBjDaFcrXpEm5vlWtKDgkrSxzLWihyD4pI3QzLHCxhBapBELViTZWVyQVsYoycwhDEgzk6xEDiRs4Js5C7cPoUfawTntWHoIIIy/jIEPgWdRKJEeHwKODYJjGBGIhmu6RKJjSFgxIgmSY1jiXMkVWgew3NxLhPGahEg2A3mzVuCQGEc8kP5wjU1i/MGdaMuFEYTGmlu2D30ieScC9BJ8kHQCh+wzSR+AMtbcpVZyQKKYqbWcSvcSDtkoyD6iIIq3lnBPROLVyMMwI6TRJWFi5LEt3ApggnLqrCU8EDWTxzkW4pCEGWMlbvhCyK9EgJ2MSJgEx+sB30n5rTQh4bExCWgmkganDM1JoF8SvlUJfnMSml/K5iRYkPANFPRT04ep52/hYN0RPoEGLzhlafPLavlLultqNX36ahG5zWylhWYicpq9lBk1d0EXYCG+hcta5FE2DCcG0pi6xdERjwKeSjw1f6On3cApA3y45TdfO/I+GCH9R1/eiQkOkxs3gCPxavSIuBNT6V7CbXAUpOsLhzFgj0Qkz1tWWx6X9kXHcGKilwjYomM4TYcRuIJjONn+yPhQ8FFpwIYAfBfdID0EcDWUOo01N4cABkKJPN06BN4NwzMBG9gQQF/2RZIg962mrkAvGooAT6TmE4dXKBgT4FZo3sw3g2cxzwq3pfXYYMSwIduKQUufgvy3Ty+1aWAKlpSN72jSwBSY7028eMoUKPnXb7mC2KId2DW+CQ6S2Mgp5py1qK2jXou+Fr9IaejW8UI6WhmtWEhD9UC8mQUVwAtwUPX8oJALwHZrGkQySQmIvQofqpQUEQblP1RBR8GNVgkBp7GRYqKoIP4l0zDotkoJAMt3Ks6VO2T0zgpk4HcuIEYQy5kBHLu11wD+GBmckaKyoCFAf5cKhd+vNgLQ+tj6MWOGJcoL0EPVRwDs7Z909m8O7eis9f/glUq8cTDZ/klnQqBmEcDIAx5oFZEnYIxN1CUiX8LIo3qJPop96v2ZaPng/WZPCfHIe9f32f/HHp/9376TXs7saT9DQjz59BQJcdbuTG9SfwFxFHz+cauoFH8Di8aZosPihaAAAAAASUVORK5CYII=" alt="" width="60" height="60" class="fun-widget-backdrop">'),this):(console.warn(3),this)}}Zt.styleId="__funBackdropStyles";const Xt=(e,t,i)=>i.indexOf(e)===t;var qt=function(e,t,i,n){return new(i||(i=Promise))((function(s,r){function o(e){try{c(n.next(e))}catch(e){r(e)}}function a(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};class Jt{constructor(e,t,i,n){this.config=e,this.keysKeeper=t,this.debug=i,this.embedTracker=n,this.callbacks=[],this.cacheMap=new Map,this.resolveUrl=e.server.resolveUrls.common,this.request=ze,this.apiHost=Ze,this.companyKey=et.key,this.keysKeeper=t,this.config=e}resolveFundraisingPages(e){return this.debug.logCode(14,e),this.resolve(e)}resolveKeys(e){const t=e.filter(Xt).filter(e=>this.isKeyExists(e));return t.length?(this.debug.logCode(15,{keys:e}),this.resolve(t)):Promise.resolve()}static prepareRequestPayload(e,t,i,n){const s=t.filter(t=>e.exists("WIDGET",t)),r=t.filter(t=>e.itLooksLikeKey("FUNDRAISING_PAGE",t)),o={campaign:s[0],fundraisingPage:r.length?r[0]:void 0,locale:i,pageViewId:n},a=se(window.location.href).fundraiser;return a&&We.test(a)&&o.fundraisingPage!==a.toUpperCase()&&(o.fundraisingPage=a.toUpperCase()),o}resolve(e){var t;return qt(this,void 0,void 0,(function*(){const i=Jt.prepareRequestPayload(this.keysKeeper,e,this.config.locale.code,null===(t=this.embedTracker.page)||void 0===t?void 0:t.pageViewId);if(this.isEmptyRequestParams(i))return this.debug.logCode(16),Promise.resolve();this.debug.logCode(17,i);const n=Date.now();let s;const r=this.normalizeKeysToCacheKey(i),o=this.cacheMap.get(r);o?s=o:(s=yield this.request({method:"POST",url:this.resolveUrl,headers:{"content-type":"text/plain; charset=utf-8"},params:i}),this.cacheMap.set(r,s));const a={params:e,duration:Date.now()-n};return this.callbacks.forEach(e=>e(s,a)),this.debug.logCode(18,{data:s,info:a}),s}))}isEmptyRequestParams(e){return!e.campaign&&!e.fundraisingPage}isKeyExists(e){return this.keysKeeper.exists("WIDGET",e)||this.keysKeeper.itLooksLikeKey("FUNDRAISING_PAGE",e)}onResolve(e){this.callbacks.push(e)}normalizeKeysToCacheKey(e){const t=[];return e.campaign&&t.push(e.campaign),e.fundraisingPage&&t.push(e.fundraisingPage),t.join("_")}}class $t{constructor(){this.events=new Map}on(e,t){const i=this.events.get(e)||[];i.push(t),this.events.set(e,i)}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.events.get(e)||[]).forEach(e=>e(...i))}}class Qt{constructor(e){this.window=e,this.listenDOMEvents()}listenDOMEvents(){this.window.document.addEventListener("DOMContentLoaded",()=>{this.saveDocumentOriginalStyles()})}saveDocumentOriginalStyles(){const e=()=>{this.saveOriginalStyles(this.window.document.body),this.saveOriginalStyles(this.window.document.documentElement)};if(this.window.document.body)return e();Yt(this.window.document,e)}setStyle(e,t){t.setAttribute("style",e)}appendStyle(e,t){const i=(t.getAttribute("style")||"")+e;t.setAttribute("style",i)}restoreOriginalStyles(e){let t="";this.originalStyles.has(e)&&(t=this.originalStyles.get(e)),e.setAttribute("style",t),this.originalStyles.delete(e)}saveOriginalStyles(e){const t=e.getAttribute("style")||"";this.originalStyles.set(e,t)}get originalStyles(){return this._originalStyles||(this._originalStyles=new WeakMap),this._originalStyles}}class ei{constructor(e,t){this.window=e,this.isMobile=t,this.isLocked=!1}lock(){this.isLocked||(this.saveDefaultStyles(),this.bodyStyle.setProperty(ei.overflowStyleProp,"hidden","important"),this.isMobile||(this.bodyStyle.setProperty(ei.heightStyleProp,"auto","important"),this.bodyStyle.setProperty(ei.minHeightStyleProp,"100%","important")),this.isLocked=!0)}unlock(){this.isLocked&&this.overflow&&(this.restoreDefaultStyles(),this.isLocked=!1)}get bodyStyle(){return this.window.document.body.style}saveDefaultStyles(){this.overflow={value:this.bodyStyle.getPropertyValue(ei.overflowStyleProp),priority:this.bodyStyle.getPropertyPriority(ei.overflowStyleProp)},this.isMobile||(this.height={value:this.bodyStyle.getPropertyValue(ei.heightStyleProp),priority:this.bodyStyle.getPropertyPriority(ei.heightStyleProp)},this.minHeight={value:this.bodyStyle.getPropertyValue(ei.minHeightStyleProp),priority:this.bodyStyle.getPropertyPriority(ei.minHeightStyleProp)})}restoreDefaultStyles(){var e,t,i;(null===(e=this.overflow)||void 0===e?void 0:e.value)?this.bodyStyle.setProperty(ei.overflowStyleProp,this.overflow.value,this.overflow.priority):this.bodyStyle.removeProperty(ei.overflowStyleProp),this.isMobile||((null===(t=this.height)||void 0===t?void 0:t.value)?this.bodyStyle.setProperty(ei.heightStyleProp,this.height.value,this.height.priority):this.bodyStyle.removeProperty(ei.heightStyleProp),(null===(i=this.minHeight)||void 0===i?void 0:i.value)?this.bodyStyle.setProperty(ei.minHeightStyleProp,this.minHeight.value,this.minHeight.priority):this.bodyStyle.removeProperty(ei.minHeightStyleProp))}}ei.overflowStyleProp="overflow",ei.heightStyleProp="height",ei.minHeightStyleProp="min-height";class ti{constructor(e){this.topLevelDomain=e,this.storage=u(n.CID,s.STRING)}get(){return this.storage.get()}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.storage.set(e,t)}remove(e){this.storage.remove({domain:e})}}class ii{constructor(){this.subscribers={}}publish(e,t){this.subscribers[e]&&this.subscribers[e].forEach(e=>new Promise(()=>e(t)))}subscribe(e,t){return this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t),!0}}function ni(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:19;const t=window.crypto||window.msCrypto;let i="";if(t&&"function"==typeof t.getRandomValues){const n=new Uint8Array(e);t.getRandomValues(n);i=[].slice.call(n).map(e=>e%10).join("")}else for(let t=0;t<e;t++)i+=Math.floor(10*Math.random()).toString();return"0"!==i[0]?i:ni(e)}class si extends Pe{constructor(e){super(),this.merge({customEventType:e.customEventType,customEventData:JSON.stringify(e.customEventData)})}get eventType(){return"customEvent"}}class ri extends Pe{constructor(e){super(),this.payload={dataLayerEventName:e.event,dataLayerParams:JSON.stringify(e)}}get eventType(){return"dataLayer"}}class oi extends Pe{get eventType(){return"ping"}}function ai(){if(!function(){try{return void 0!==window.Intl}catch(e){return!1}}())return;const e=window.Intl;if(e&&"object"==typeof e&&"function"==typeof e.DateTimeFormat){const t=new e.DateTimeFormat("en-US");if("object"!=typeof t)return;const i="function"==typeof t.resolvedOptions&&t.resolvedOptions();if("object"!=typeof i)return;const n=i.timeZone;if(!n)return;return n}}function ci(){const e=ai();if(e)return e;const t=-(new Date).getTimezoneOffset()/60;return t>=0?"UTC+"+t:"UTC"+t}function li(e){const t=e.toString().replace(/[^0-9]/g,""),i={0:0,1:2,2:4,3:6,4:8,5:1,6:3,7:5,8:7,9:9};let n=0,s=1;for(let e=t.length-1;e>-1;e-=1)n+=s?i[t[e]]:parseFloat(t[e]),s^=1,n>0xffffffffffff&&(n%=10);return(10-n%10).toString().slice(-1)}class hi{constructor(e,t){var i;this.window=e,this.publicApi=t,this._pageScripts=[],this.sideLibrariesLookupTries=1,this.launchedSiteScripts=[],this.pageViewId=ni(),this.pageViewTimeCreate=this.publicApi&&this.publicApi.s||Date.now(),this.resolutionWidth=0,this.resolutionHeight=0,this.window.screen&&(this.resolutionWidth=this.window.screen.width,this.resolutionHeight=this.window.screen.height),this.funSnippetVersion=this.publicApi&&this.publicApi.v||"0",this.pageViewId=`${i=this.pageViewId.slice(0,-1)}${li(i)}`,this.searchedLibraries={ga:this.getGoogleAnalytics.bind(this),gtm:this.getGoogleTagManager.bind(this),fbpx:this.getFacebookPixel.bind(this),gtag:this.getGlobalSiteTagManager.bind(this),optimizely:this.getOptimizely.bind(this),"adobe.target":this.getAdobeTarget.bind(this),goptimize:this.getGoogleOptimize.bind(this),unbounce:this.getUnbounce.bind(this),hotjar:this.getHotjar.bind(this)},this.applyNavigatorVariables(navigator),this.collectPageScripts()}get pageScripts(){return this._pageScripts.length<Object.keys(this.searchedLibraries).length&&this.sideLibrariesLookupTries<=10&&this.collectPageScripts(),this._pageScripts}getSideLibraryByScriptSource(e){return this.launchedSiteScripts.some(t=>{let{src:i}=t;return i&&!!i.match(e)})}collectPageScripts(){this.sideLibrariesLookupTries+=1;const e=this.window.document.querySelectorAll("script");this.launchedSiteScripts=[].slice.call(e),Object.keys(this.searchedLibraries).forEach(e=>{const t=this.searchedLibraries[e];-1===this._pageScripts.indexOf(e)&&t()&&this._pageScripts.push(e)})}toObject(){return{pageViewId:this.pageViewId,pageViewTimeCreate:this.pageViewTimeCreate,pageViewLifetime:Math.max(Date.now()-this.pageViewTimeCreate,0),clientTimeZone:ci(),clientTime:Date.now(),URL:this.window.location.href,referer:this.window.document.referrer||void 0,title:this.window.document.title,uaHistoryLength:this.window.history.length,uaWebdriver:this.window.navigator.webdriver?1:0,resolutionWidth:Math.max(this.resolutionWidth,0),resolutionHeight:Math.max(this.resolutionHeight,0),windowWidth:Math.max(this.window.innerWidth,0),windowHeight:Math.max(this.window.innerHeight,0),windowScrollY:Math.max(this.window.scrollY||this.window.pageYOffset||0,0),windowScrollX:Math.max(this.window.scrollX||this.window.pageXOffset||0,0),pageScripts:this.pageScripts,clientOnLine:this.clientOnLine,clientDoNotTrack:this.clientDoNotTrack,clientDevicePixelRatio:this.clientDevicePixelRatio,clientDeviceMemory:this.clientDeviceMemory,clientHardwareConcurrency:this.clientHardwareConcurrency,clientConnectionType:this.clientConnectionType,clientConnectionDownlink:this.clientConnectionDownlink,clientConnectionRTT:this.clientConnectionRTT,clientConnectionEffectiveType:this.clientConnectionEffectiveType,clientBatteryCharging:this.clientBatteryCharging,clientBatteryChargingTime:this.clientBatteryChargingTime,clientBatteryDischargingTime:this.clientBatteryDischargingTime,clientBatteryLevel:this.clientBatteryLevel,funSnippetVersion:this.funSnippetVersion,funEmbedRelease:window.FUN?window.FUN.version:""}}applyNavigatorVariables(e){var t;const i=e.connection||e.mozConnection||e.webkitConnection;window.Navigator&&window.navigator instanceof window.Navigator&&"function"==typeof e.getBattery&&(null===(t=e.getBattery())||void 0===t||t.then(e=>{this.clientBatteryCharging=e.charging?1:0,this.clientBatteryChargingTime=e.chargingTime,this.clientBatteryDischargingTime=e.dischargingTime,this.clientBatteryLevel=e.level}).catch(e=>{console.warn(e),this.clientBatteryCharging=0,this.clientBatteryChargingTime=0,this.clientBatteryDischargingTime=0,this.clientBatteryLevel=0})),this.clientOnLine=e.onLine?1:0,this.clientDoNotTrack="1"===e.doNotTrack?1:0,this.clientDevicePixelRatio=window.devicePixelRatio,this.clientDeviceMemory=e.deviceMemory,this.clientHardwareConcurrency="number"!=typeof e.hardwareConcurrency?0:e.hardwareConcurrency,i&&(this.clientConnectionType=i.type,this.clientConnectionDownlink=i.downlink,this.clientConnectionRTT=i.rtt,this.clientConnectionEffectiveType=i.effectiveType)}getGoogleAnalytics(){return"function"==typeof this.window.ga}getGoogleTagManager(){return this.getSideLibraryByScriptSource(/gtm.js[?]id=([^=&]*)/)}getFacebookPixel(){return"function"==typeof this.window.fbq}getGlobalSiteTagManager(){return"function"==typeof this.window.gtag}getOptimizely(){return this.window.optimizely}getAdobeTarget(){return this.window.adobe&&this.window.adobe.target}getGoogleOptimize(){return!!this.window.google_optimize}getUnbounce(){return this.window.ube&&this.window.ube.init}getHotjar(){return this.window.hj&&this.window._hjSettings}}const ui=window.navigator.userAgent,di=[/FBAV|FBAN|FBSV|FBID|FBBV\/([0-9.]+)/,/Instagram\s([0-9.]+)/,/Snapchat\/([0-9.]+)/,/MicroMessenger\/([0-9.]+)/,/Twitter for iPhone[/]?([\d.]+)?/,/TikTok[/ ](\d+\.(?:[.\d]+))?/,/bytedance/i,/musical_ly/i];var pi;!function(e){e.DONOR_PORTAL="donorPortal",e.PARTNER_PORTAL="partnerPortal",e.DASHBOARD="dashboard"}(pi||(pi={}));const gi=[/^gtm\..*$/,/^__cmp.*$/,/^optimize\..*$/,/^setPromo$/,/^trackOptanonEvent$/,/^consentDataForTheRecord$/,/^optanonConsentUpdated$/,/^nextroll-consent$/,/^FundraiseUp\./],mi={subscribers:[],publish(e){this.subscribers.forEach(t=>{t.callback(e)})},subscribe(e,t){this.subscribers.find(e=>e.name===t)||this.subscribers.push({callback:e,name:t})}};class fi{constructor(e){let{window:t,companyKey:i,storage:n,trackerClient:s,source:r,supporterKey:o,agentKey:a,embedConfig:c}=e;this.observer=new ii,this.tags=new Set,this.uaIsInApp=!1,this.pointingDeviceIsUsed=!1,this.trackerEventClick=null,this._clientId="",this.eventSent=Date.now(),this.cookiesUnsetable=!1,this.started=!1,this.pingDelay=15e3,this.isTouchDevice=!1,this.window=t,this.trackerClient=s,this.livemode=c.livemode,this.companyKey=i,this.CIDStorage=n,this.subscriberStorage=mi,this.uaIsInApp=di.some(e=>e.exec(ui)),this.source=r,this.supporterKey=o,this.agentKey=a,this.clientLocale=c.locale.code}get page(){return this._page}get clientId(){return this._clientId}start(){if(this.source!==pi.PARTNER_PORTAL&&!this.companyKey)throw new Error("15");if(this.started)throw new Error("16");this._page=new hi(this.window,this.window.FundraiseUp),this.setupCookies(),this.started=!0,this.isTouchDevice="ontouchstart"in window||!!navigator.maxTouchPoints;const e=this.trackerEventClick;e&&this.window.addEventListener("click",t=>{t.target&&this.track(new e(t.target))}),this.initializeDataLayerTracking(),this.initializePointerUsageTracking()}setupCookies(){this.cookiesUnsetable||(this.read(),this.refresh())}subscribe(e,t){this.subscriberStorage.subscribe(e,t)}setEventTags(e){e.forEach(e=>this.tags.add(e))}removeEventTags(e){this.tags.forEach(t=>{e.some(e=>t.substring(0,e.length)===e)&&this.tags.delete(t)})}ping(e,t){if(Date.now()-this.eventSent<this.pingDelay)return;const i=e||new oi;this.track(i,t)}customTrack(e){this.track(new si({customEventType:e.type,customEventData:e.data}))}track(e,t){if(!this.started)return;const i=this.page&&this.page.toObject()||{},n=Object.assign({},this.trackerPayloadPartial);if(Object.keys(i).forEach(e=>{n[e]=i[e]}),n.livemode=this.livemode?1:0,e.merge(n),this.mergeEventTags(e),!e.validate())return;const s=e.toObject();s.source=this.source,this.observer.publish(e.eventType,s),this.trackerClient.send(s,t),this.eventSent=Date.now(),this.publishData(s)}initializePointerUsageTracking(e){if(this.pointingDeviceIsUsed)return;const t=e||this.window,i=()=>{this.pointingDeviceIsUsed=!0,t.removeEventListener("pointermove",i),t.removeEventListener("pointerdown",i),t.removeEventListener("pointerdown",i)};t.addEventListener("pointermove",i),t.addEventListener("pointerdown",i),t.addEventListener("pointerdown",i)}get trackerPayloadPartial(){return{companyKey:this.companyKey,clientId:this.clientId,uaIsInApp:this.uaIsInApp?1:0,supporterKey:this.supporterKey,clientLocale:this.clientLocale,pointingDeviceIsUsed:this.pointingDeviceIsUsed?1:0}}refresh(){this._clientId||this.createOrSetClientId(this.CIDStorage.get()),this.write()}createOrSetClientId(e){this._clientId=e&&"undefined"!==e&&20===e.length?e:Date.now().toString()+ni(7)}write(){this._clientId&&this.CIDStorage.set(this.clientId,{expires:3650,domain:this.CIDStorage.topLevelDomain,sameSite:"Lax"})}read(){const e=se(this.window.location.href).fun_cid||"",t=this.CIDStorage.get()||"",i=e=>e&&20===e.length?e:"";i(e)?this._clientId=e:i(t)?this._clientId=t:this._clientId=""}initializeDataLayerTracking(){if(this.window.dataLayer||(this.window.dataLayer=[]),!Array.isArray(this.window.dataLayer))return;const e=this.window.dataLayer;const t=e=>{(function(e){return"object"==typeof e&&"string"==typeof e.event&&!gi.some(t=>t.test(e.event))})(e)&&this.track(new ri(e))};e.forEach(t);const i=e.push;e.push=function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return t(s[0]),i.apply(e,s)}}publishData(e){this.subscriberStorage.publish(e)}mergeEventTags(e){let t=[];e.payload.eventTags&&(t=e.payload.eventTags.slice()),this.tags.forEach(e=>{-1===t.indexOf(e)&&t.push(e)}),e.payload.eventTags=t}}class yi extends class{constructor(e){this.tags=new Set,this.tracker=e}get companyKey(){return this.tracker.companyKey}get clientId(){return this.tracker.clientId}get livemode(){return this.tracker.livemode}get clientLocale(){return this.tracker.clientLocale}get debug(){return this.tracker.debug}get page(){return this.tracker.page}customTrack(e){return this.tracker.customTrack(e)}track(e,t){return this.tracker.track(e,t)}ping(e,t){const i=e||new oi;this.tracker.ping(i,t)}initializePointerUsageTracking(){this.tracker.initializePointerUsageTracking()}subscribe(e,t){return this.tracker.subscribe(e,t)}setEventTags(e){e.forEach(e=>this.tags.add(e))}removeEventTags(e){this.tags.forEach(t=>{e.some(e=>t.substring(0,e.length)===e)&&this.tags.delete(t)})}mergeEventTags(e){let t=[];e.payload.eventTags&&(t=e.payload.eventTags.slice()),this.tags.forEach(e=>{-1===t.indexOf(e)&&t.push(e)}),e.payload.eventTags=t}}{constructor(e,t){let{funEmbedRelease:i,isFundraiseupVisitor:n}=t;super(e),this.funEmbedRelease=i,this.isFundraiseupVisitor=n}track(e,t){this.addTrackerData(e),this.tracker.track(e,t)}addTrackerData(e){e.merge({funEmbedRelease:this.funEmbedRelease,isFundraiseupVisitor:this.isFundraiseupVisitor}),this.mergeEventTags(e)}}class Ei{constructor(e){this.timeoutInstance=0,this.items=[],this.timeout=e.timeout||1e3,this.limit=e.limit||30,this.onFlush=e.onFlush,this.resetTimeout()}push(e,t){this.items.push(e),(t||this.items.length>=this.limit)&&this.flush()}flush(){this.items.length?(this.onFlush(this.items),this.items=[],this.resetTimeout()):this.resetTimeout()}resetTimeout(){this.timeoutInstance&&clearTimeout(this.timeoutInstance),this.timeoutInstance=window.setTimeout(()=>{this.flush()},this.timeout)}}function Ti(e){return function(t,i){return null===i?wi(t,e):[wi(t,e),"=",wi(i,e)].join("")}}function wi(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):encodeURIComponent(e):e}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={encode:!0,strict:!0,arrayFormat:"none"};Object.assign(i,t),!1===i.sort&&(i.sort=function(){});const n=Ti(i);return e?Object.keys(e).sort(i.sort).map((function(t){const s=e[t];if(void 0===s)return"";if(null===s)return wi(t,i);if(Array.isArray(s)){const e=[];return s.slice().forEach((function(i){void 0!==i&&e.push(n(t,i,e.length))})),e.join("&")}return wi(t,i)+"="+wi(s,i)})).filter((function(e){return e.length>0})).join("&"):""}var vi;!function(e){e.CARD="creditCard",e.APPLE_PAY="applePay",e.GOOGLE_PAY="googlePay",e.CLICK_TO_PAY="clickToPay",e.ACH="ach",e.PLAID="plaid",e.PAYPAL="paypal",e.VENMO="venmo",e.AU_BECS="auBecsDebit",e.UK_BACS="ukBacs",e.ACSS="acss",e.SEPA="sepa",e.IDEAL="ideal",e.CRYPTO="crypto",e.STOCK="stock"}(vi||(vi={}));var Ai,Si=i(2);!function(e){e.CHECKOUT="checkout"}(Ai||(Ai={}));const _i=["pageLeave","click","pageView"];class Ii{constructor(e){this.request=ze,this.window=e.window,this.url=e.url,this.trackingTarget=e.trackingTarget,window.Navigator&&window.navigator instanceof window.Navigator&&"function"==typeof this.window.navigator.sendBeacon&&(this.sendBeacon=this.window.navigator.sendBeacon.bind(this.window.navigator)),this.bulk=new Ei({limit:30,onFlush:e=>this.sendRequests(e)})}send(e,t){if(window.FUN_DO_NOT_TRACK&&(!t||t&&t.trackerType!==Ai.CHECKOUT))return;const i=function(e){return e.elementParams&&"object"==typeof e.elementParams&&(e.elementParams=Ni(e.elementParams)),Ni(Object(Si.compressPayload)(e))}(e),n=(null==t?void 0:t.url)||this.url;let s=-1!==_i.indexOf(e.eventType);"dataLayer"===e.eventType&&-1!==this.window.location.href.indexOf("alz.org")&&(s=!0),this.bulk.push({url:n+this.trackingTarget,payload:i},s)}sendRequests(e){(function(e){const t=new Map;return e.forEach(e=>{let{url:i,payload:n}=e;const s=t.get(i)||[];s.push(n),t.set(i,s)}),t})(e).forEach((e,t)=>{const i=JSON.stringify(e);this.sendRequest(t,i)})}sendRequest(e,t){let i=!1;if(this.sendBeacon)try{this.sendBeacon(e,t)}catch(e){i=!0}i&&this.request({method:"POST",url:e,params:t}).catch(console.warn)}}function Oi(e){const t=v(),i=function(e){const t=window.FUN_AB_TEST_EVENT_URL;return t?{checkout:t,global:t}:e}(e.trackingUrls);return t.provide(2,()=>Object.freeze(e.staticConfig)).provide(7,()=>Object.freeze(i)).provide(8,()=>e.companies).provide(21,()=>new Qt(window)).provide(14,()=>new he(t.get(2),t.get(7),t.get(8),e.loadedTimestamp,e.version,et.key,Ze,Je,e.meta,e.knownKeys.inactiveWidgets)).provide(1,()=>new Zt(window,new ei(window,e.staticConfig.deviceData.isMobile))).provide(6,()=>new c("embed",e.debugLogCodes)).provide(3,()=>new Ht(e.knownKeys)).provide(9,()=>new m).provide(15,()=>function(e){let t;if(e.funTracker)t=e.funTracker;else{const i=le(),n=new Ii({window:e.window,url:e.globalURL,trackingTarget:"/tb"});t=new fi({trackerClient:n,window:e.window,embedConfig:e.embedConfig,companyKey:e.companyKey,storage:new ti(i)}),t.subscribe(t=>e.debug.log(t.eventType||"",t),"debug"),t.start()}return new yi(t,{funEmbedRelease:e.funEmbedRelease,isFundraiseupVisitor:e.isFundraiseupVisitor})}({window:window,companyKey:et.key,funEmbedRelease:e.version,embedConfig:t.get(14),debug:t.get(6).createInstance("Tracking"),globalURL:i.global,funTracker:window.FUN_TRACKER,isFundraiseupVisitor:e.staticConfig.isFundraiseupVisitor?1:0})).provide(4,()=>new Vt(t.get(3),t.get(6).createInstance("Collector"))).provide(5,()=>new Jt(t.get(14),t.get(3),t.get(6).createInstance("CommonResolver"),t.get(15))).provide(10,()=>new xe(t.get(4),t.get(5),t.get(3),t.get(11),t.get(14),t.get(6),et.key,t.get(15))).provide(18,()=>new Bt(t.get(14))).provide(11,()=>new K(t.get(5),t.get(6),t.get(14),t.get(1),t.get(3),t.get(15),t.get(20),t.get(21),t.get(9))).provide(13,()=>new it(t.get(10))).provide(12,()=>new xt(t.get(11),t.get(10),t.get(13),t,t.get(14),t.get(15),t.get(5),t.get(3),t.get(6).createInstance("InternalApi"),t.get(16),t.get(4))).provide(16,()=>u(n.EXPERIMENTS,s.OBJECT)).provide(20,()=>new $t)}const bi=new c("Embed");!function(){if(!window.Set||!window.WeakMap)return void(window.console&&window.console.warn&&window.console.warn("init","legacy browser, skip processing"));if(bi.log("init","initialization has started"),window.FUN)return void bi.log("init","already initialized, skip processing");!function(e,t){const i=function(e){return"function"==typeof e?i.l.push([arguments])&&i:function(){return i.l.push([e,arguments])&&i}};i.h=e.location.href,i.s=Date.now(),i.v="0",i.l=[];const n="call,catch,on,once,set,then,track".split(",");for(let e=0;e<7;e++)i[n[e]]=i(n[e]);e[t]=e[t]||i}(window,"FundraiseUp");const e=Oi({loadedTimestamp:Date.now(),trackingUrls:{"global":"https://fndrsp.net","checkout":"https://fndrsp-checkout.net"},staticConfig:{"elementsApiScriptUrl":"https://static.fundraiseup.com/b27704e118dc.elementsApi.js","checkoutAssets":{"scripts":["https://static.fundraiseup.com/checkout.044b6fb214a8df5a3c02.js","https://static.fundraiseup.com/checkout-vendors.679082d8c9279dd42265.js","https://static.fundraiseup.com/checkout-rtl-styles.e509deb612a31476206e.js","https://static.fundraiseup.com/checkout-styles.66f7e1b1256ed2f426bc.js"]},"currencyRates":{"AED":3.6724,"AFN":87.518945,"ALL":101.250057,"AMD":387.309976,"ANG":1.801732,"AOA":510.000171,"ARS":225.673897,"AUD":1.491504,"AWG":1.8,"AZN":1.698196,"BAM":1.767763,"BBD":2.018493,"BDT":106.456249,"BGN":1.775991,"BHD":0.377062,"BIF":2086,"BMD":1,"BND":1.326862,"BOB":6.907584,"BRL":4.984601,"BSD":0.999666,"BTC":0.000034544234,"BTN":81.77586,"BWP":13.153827,"BYN":2.523387,"BYR":19600,"BZD":2.01503,"CAD":1.352255,"CDF":2094.000361,"CHF":0.885295,"CLF":0.028943,"CLP":798.630072,"CNY":6.906704,"COP":4605.7,"CRC":541.581178,"CUC":1,"CUP":26.5,"CVE":100.450098,"CZK":21.259705,"DJF":177.719851,"DKK":6.756402,"DOP":54.401461,"DZD":135.327945,"EGP":30.948302,"ERN":15,"ETB":54.194114,"EUR":0.90699,"FJD":2.228696,"FKP":0.79704,"GBP":0.79465,"GEL":2.490069,"GGP":0.79704,"GHS":11.811502,"GIP":0.79704,"GMD":60.19942,"GNF":8650.000064,"GTQ":7.802925,"GYD":211.423923,"HKD":7.848455,"HNL":24.679447,"HRK":6.816133,"HTG":150.455996,"HUF":338.450292,"IDR":14684,"ILS":3.65455,"IMP":0.79704,"INR":81.71675,"IQD":1310,"IRR":42249.999963,"ISK":136.150157,"JEP":0.79704,"JMD":153.366414,"JOD":0.709501,"JPY":134.127001,"KES":136.396907,"KGS":87.305976,"KHR":4126.99967,"KMF":446.950271,"KPW":899.996517,"KRW":1320.460028,"KWD":0.30625,"KYD":0.833175,"KZT":445.131376,"LAK":17425.000115,"LBP":15259.999675,"LKR":319.441055,"LRD":165.750517,"LSL":18.279769,"LTL":2.95274,"LVL":0.60489,"LYD":4.769858,"MAD":10.004496,"MDL":17.870152,"MGA":4407.500097,"MKD":55.947263,"MMK":2099.388089,"MNT":3491.599,"MOP":8.082016,"MRO":356.999828,"MUR":45.497837,"MVR":15.360085,"MWK":1026.999931,"MXN":17.90117,"MYR":4.438052,"MZN":63.250437,"NAD":18.279809,"NGN":460.340124,"NIO":36.503947,"NOK":10.673685,"NPR":130.850439,"NZD":1.58895,"OMR":0.385026,"PAB":0.999607,"PEN":3.725797,"PGK":3.52496,"PHP":55.439778,"PKR":283.849655,"PLN":4.163568,"PYG":7155.833943,"QAR":3.640498,"RON":4.470101,"RSD":106.384992,"RUB":78.499729,"RWF":1117.5,"SAR":3.750193,"SBD":8.320043,"SCR":13.287436,"SDG":598.535183,"SEK":10.223745,"SGD":1.326895,"SHP":1.21675,"SLE":22.702238,"SLL":19750.000222,"SOS":568.485115,"SRD":37.494499,"STD":20697.981008,"SVC":8.747526,"SYP":2512.546405,"SZL":18.280262,"THB":33.7755,"TJS":10.916872,"TMT":3.51,"TND":3.044021,"TOP":2.355599,"TRY":19.493903,"TTD":6.7866,"TWD":30.694301,"TZS":2355.000032,"UAH":36.924537,"UGX":3721.178268,"UYU":39.019496,"UZS":11460.000224,"VEF":2475831.778374,"VES":24.998613,"VND":23452.5,"VUV":118.966884,"WST":2.719477,"XAF":592.930032,"XAG":0.038427,"XAU":0.000488,"XCD":2.702551,"XDR":0.740711,"XOF":592.999882,"XPF":108.799206,"YER":250.289513,"ZAR":18.29724,"ZMK":9001.199278,"ZMW":17.993339,"ZWL":321.999592,"USD":1},"stripePublicKey":{"live":"pk_live_9RzCojmneCvL31GhYTknluXp","test":"pk_test_PIcNaumXzkrpufsvKlKULLIZ"},"paypalClientId":"Afbm69ig8nMRLmZKS-QoONq7qIHPqlpYJ1l3vyxE_la-UZPU_eEkKH2HRpHFkl7SNJ8a_eKvDkcT9-My","googlePayInfo":{"stripeAPIVersion":"2022-11-15","allowedCardNetworks":["AMEX","DISCOVER","JCB","MASTERCARD","VISA"],"allowedAuthMethods":["PAN_ONLY","CRYPTOGRAM_3DS"],"merchantId":"BCR2DN6T7OI7T6IH"},"env":"production","sentryUri":"https://cb0af19166ad4bdeb8c3efc4848d6635@sentry.fundraiseup.com/2","uploadcareKey":"5a1e3737b731e848bee9","mainDomain":"fundraiseup.com","integrations":{"dtd":false},"isFundraiseupVisitor":false,"disablePreloading":false,"deviceData":{"isMobile":true,"isMobileOrTablet":false},"experimentsConfig":{"experiments":[{"experimentId":"40136","disabledAccounts":["ABGHKWJN"],"enabledAccounts":[],"startDate":"2023-04-10T06:54:20.030Z","enabled":true,"name":"AdvancedSmartFeeCoveringExperiment","variants":[{"name":"control","percent":50},{"name":"test","percent":50}]},{"experimentId":"38642","disabledAccounts":["ABGHKWJN"],"enabledAccounts":[],"startDate":"2023-03-14T14:56:04.068Z","enabled":true,"name":"StickyButtonAnimationExperiment","variants":[{"name":"control","percent":33},{"name":"test-1","percent":33},{"name":"test-2","percent":33},{"name":"test-3","percent":1}]},{"experimentId":"38507","disabledAccounts":[],"enabledAccounts":[],"startDate":"2023-03-14T14:56:12.359Z","enabled":true,"name":"ReminderEmphasizedButton","variants":[{"name":"control","percent":50},{"name":"test","percent":50}]},{"experimentId":"33514","disabledAccounts":[],"enabledAccounts":[],"startDate":"2023-03-13T11:51:45.057Z","enabled":false,"name":"AverageDonationAmountAIExperiment","variants":[{"name":"control","percent":25},{"name":"test1","percent":25},{"name":"test2","percent":25},{"name":"test3","percent":25}]},{"experimentId":"33802","disabledAccounts":[],"enabledAccounts":[],"startDate":null,"enabled":false,"name":"DummyExperiment","variants":[{"name":"control","percent":50},{"name":"test","percent":50}]}]}},knownKeys:{campaigns:[["FUNXFWDLPGU","give"],["FUNXZZRSEEZ"]],elements:{"reminder":["XUNSRURG"],"socialProof":["XUUFSPCG"]},inactiveWidgets:[]},companies:[{"key":"BEIKUYDU","parentKey":null,"name":"Pujols Family Foundation","country":"US","stripeFee":{"percent":220,"fixed":30,"currency":"USD"},"applicationFees":{"money":200,"stock":500,"crypto":500},"coverFees":{"custom":false,"amount":30,"percent":290},"nonProfit":true,"defaultCurrency":"USD","allowCentsForCharges":false,"useParentPaymentAccounts":false,"disabledWidgets":{"redirectTo":"nowhere","url":"","widgetKey":""},"clickToPayCheckoutId":"","trackToMarketingPixels":{"googleAnalytics":true,"facebookPixel":true,"trackTestData":false},"paypalSubscriptionsEnabled":false,"paypal":{"subscriptionsEnabled":false},"paypalCurrencies":[],"stripeCurrencies":{"list":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SZL","THB","TJS","TOP","TRY","TTD","TWD","TZS","UAH","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"default":"USD"},"coinbaseCommerceCurrencies":[],"stripe":{"ukBacsDisplayName":"Stripe"},"paymentOptions":{"test":{"creditCard":true,"paypal":false,"venmo":false,"applePay":false,"googlePay":true,"ach":false,"plaid":false,"acss":false,"clickToPay":false,"auBecsDebit":false,"ukBacs":false,"sepa":false,"ideal":false,"crypto":false,"stock":false},"live":{"creditCard":true,"paypal":false,"venmo":false,"applePay":false,"googlePay":true,"ach":false,"plaid":false,"acss":false,"clickToPay":false,"auBecsDebit":false,"ukBacs":false,"sepa":false,"ideal":false,"crypto":false,"stock":false}},"stripeAccount":"acct_14Yh6UGLOiUQjbFw","logoUuid":null,"localization":{"defaultLocale":"en-US","interfaceLocales":["en-US"],"matchBrowserLocale":false,"matchURL":false,"urlRules":[]},"cryptoProvider":null,"stockProvider":null,"isPlaidAccountActive":false,"recurringPlans":{"daily":true,"weekly":true,"biweekly":true,"bimonthly":true,"quarterly":true,"semiannual":true,"annual":true,"monthly":true}}],version:'230505-1421',meta:null});window.FUN=e.get(12),window.FUN.init().then(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"FundraiseUp.optimize.activate"}),bi.log("initialized")}).catch(e=>{console.error(e)})}()}]);