
/*! For license information please see 651087dda4b2.embed.js.LICENSE.txt */
(()=>{var e,t,n={"../../clickhouse/mapper/index.js":(e,t,n)=>{var i=n("../../clickhouse/mapper/clickhouseDictionary.json");e.exports={compressPayload:function(e){var t={};return Object.keys(i).forEach((function(n){var o=n,r=i[n];t[o]=e[r]})),t},expandPayload:function(e){var t={},n=["up"],o=Object.keys(e).filter((function(e){return-1===Object.keys(i).indexOf(e)&&!n.includes(e)}));return o.length&&(t.UNMATCHED={},o.forEach((function(n){t.UNMATCHED[n]=e[n]})),t.invalid=!0),Object.keys(i).forEach((function(o){if(!n.includes(o)){var r=o,s=i[o];e[r]&&(t[s]=e[r])}})),t}}},"./src/helpers/parseHref.ts":(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n("./src/helpers/parseQueryParams.ts");const o=/#(.+?)(&|$)/;function r(e){if(!e)return null;if(!o.test(e))return null;const t=/(#.+?)$/.exec(e);if(!t)return null;const n=t[0],r=o.exec(n);if(!r)return null;const s=r[1],a=(0,i.U)(n),c={key:s};return Object.assign(c,a),c}},"./src/helpers/parseQueryParams.ts":(e,t,n)=>{"use strict";function i(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}n.d(t,{U:()=>i})},"./src/splitTesting/getTLD.ts":(e,t,n)=>{"use strict";function i(e,t,n){t||(t=window.location.hostname);const i=t.split("."),o=e.getField("topLevelDomain");if(o)return o;let r="";if(1===i.length&&(r=i[0]),2===i.length&&(r="."+i.join(".")),3===i.length&&"www"===i[0]&&(r="."+i.slice(-2).join(".")),r)return e.setData({topLevelDomain:r},{domain:r}),r;r=i.splice(-1).join();for(let t=i.length;t>0;t--)if(r=i.splice(-1).join()+"."+r,e.setData({topLevelDomain:"."+r},{domain:"."+r}),!e.available||e.getField("topLevelDomain")||n&&!(null==n?void 0:n.get()))return"."+r}n.d(t,{f:()=>i})},"../fun-storage/src/funCookiesKeys.ts":(e,t,n)=>{"use strict";var i;n.d(t,{e:()=>i}),function(e){e.SESSION="fundraiseup_session",e.FUNC="fundraiseup_func",e.PERFORMANCE="fundraiseup_stat",e.CONSENT="fundraiseup_consent",e.MARKETING="fundraiseup_mark",e.CID="fundraiseup_cid",e.DEBUG="fundraiseup_debug",e.EXPERIMENTS="fundraiseup_experiments",e.FUN_AB_STORAGE="fundraiseup_ab_test",e.DEV_MODE="developmentMode"}(i||(i={}))},"../murmur/src/murmur.ts":(e,t,n)=>{"use strict";function i(e){let t,n,i,o,r,s,a,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(t=3&e.length,n=e.length-t,i=l,r=3432918353,s=461845907,c=0;c<n;)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)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=27492+(65535&o)+((58964+(o>>>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)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}n.d(t,{A:()=>i})},"../../shared/src/common/debug/Debug.ts":(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var i=n("../murmur/src/murmur.ts"),o=n("../fun-storage/src/funCookiesKeys.ts"),r=n("../../node_modules/js-cookie/dist/js.cookie.mjs");class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.codes=t,this.expose=void 0!==r.A.get(o.e.DEBUG),this.prefix=e}createInstance(e){return new s(e,this.codes)}stringToColor(e){const t=(0,i.A)(e);let n="#";for(let e=0;e<3;e++)n+=("00"+(t>>8*e&255).toString(16)).substr(-2);return n}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:700;color:white;border-radius: 2px;padding:2px 5px;background-color:"+this.stringToColor(e));for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];console.log(...n),console.groupEnd(),this.push(e,...n)}}logCode(e){const t=this.codes?this.codes[e]:String(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const r=i.map((e=>"number"!=typeof e?e:this.codes&&this.codes[e]||e));this.log(t,...r)}isExpose(){return this.expose}push(e){const t=window;if(Array.isArray(t.FUN_DEBUG_LOGS)){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t.FUN_DEBUG_LOGS.push({name:e,content:i})}}}},"../../shared/src/common/embed/getSharedContainer.ts":(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var i=n("../../shared/src/common/embed/serviceContainer.ts");function o(){return window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new i.T),window.FUN_SERVICE_CONTAINER}},"../../shared/src/common/embed/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{Ru:()=>r,UA:()=>o,cH:()=>s,dy:()=>a,i:()=>c});const i=/#(.+?)(&|$)/;function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}function r(e,t){let n=e;for(;;){if(t(n))return n;if(!n.parentNode)return;n=n.parentNode}}function s(e,t){if(e.getAttribute)return e.getAttribute("data-"+t)||void 0}function a(e){if(!e)return null;if(!i.test(e))return null;const t=/(#.+?)$/.exec(e);if(!t)return null;const n=t[0],r=i.exec(n);if(!r)return null;const s=r[1],a=o(n),c={key:s};return Object.assign(c,a),c}function c(e){const t=[];for(const[n,i]of e)t.push(`${encodeURIComponent(n)}=${encodeURIComponent(i)}`);return t.join("&")}},"../../shared/src/common/embed/serviceContainer.ts":(e,t,n)=>{"use strict";n.d(t,{T:()=>i});class i{constructor(){this.providers=new Map,this.cache=new Map}get(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.providers.get(e);if(!n)throw new Error(`${String(e)} is not provided`);if(t&&this.cache.has(e))return this.cache.get(e);const i=n();return t?(this.cache.has(e)||this.cache.set(e,i),i):i}provide(e,t){return this.providers.has(e)?(console.warn(`14 ${String(e)}`),this):(this.providers.set(e,t),this)}}},"../../shared/src/common/embed/splitTesting/constants.ts":(e,t,n)=>{"use strict";n.d(t,{$m:()=>o,AC:()=>i,_Q:()=>r});const i="fun_test",o="fun_variant",r=2},"../../shared/src/common/embed/tracking/constants.ts":(e,t,n)=>{"use strict";n.d(t,{v:()=>i});const i="clientId"},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/resolve-url-loader/index.js!./src/preloader/backdrop.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("../../node_modules/css-loader/dist/runtime/sourceMaps.js"),o=n.n(i),r=n("../../node_modules/css-loader/dist/runtime/api.js"),s=n.n(r)()(o());s.push([e.id,".fun-widget-backdrop-holder {\n  left: 0 !important;\n  top: 0 !important;\n  bottom: 0 !important;\n  right: 0 !important;\n  width: 100% !important;\n  height: 100% !important;\n  display: block !important;\n  position: fixed !important;\n  z-index: 2147483646 !important;\n  transition: opacity 0.2s ease-in-out !important;\n  transform: translateZ(99px) !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  left: 50% !important;\n  top: 50% !important;\n  animation:\n    fun-widget-backdrop-rotate 1.5s infinite linear,\n    fun-widget-backdrop-fadein 0.6s ease-in-out !important;\n  padding: 0 !important;\n  margin: -30px 0 0 -30px !important;\n  width: 60px !important;\n  min-width: 60px !important;\n  max-width: 60px !important;\n  height: 60px !important;\n  min-height: 60px !important;\n  max-height: 60px !important;\n  border-radius: 50% !important;\n  border: 4px solid !important;\n  border-color: #e3e3e3 #e3e3e3 #666666 #666666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n  33% {\n    opacity: 0;\n  }\n  66% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(359deg);\n  }\n}\n","",{version:3,sources:["webpack://./src/preloader/backdrop.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;EACtB,uBAAuB;EACvB,yBAAyB;EACzB,0BAA0B;EAC1B,8BAA8B;EAC9B,+CAA+C;EAC/C,sCAAsC;EACtC,0DAA0D;AAC5D;;AAEA;EACE,6BAA6B;EAC7B,oBAAoB;EACpB,mBAAmB;EACnB;;0DAEwD;EACxD,qBAAqB;EACrB,kCAAkC;EAClC,sBAAsB;EACtB,0BAA0B;EAC1B,0BAA0B;EAC1B,uBAAuB;EACvB,2BAA2B;EAC3B,2BAA2B;EAC3B,6BAA6B;EAC7B,4BAA4B;EAC5B,wDAAwD;AAC1D;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF",sourcesContent:[".fun-widget-backdrop-holder {\n  left: 0 !important;\n  top: 0 !important;\n  bottom: 0 !important;\n  right: 0 !important;\n  width: 100% !important;\n  height: 100% !important;\n  display: block !important;\n  position: fixed !important;\n  z-index: 2147483646 !important;\n  transition: opacity 0.2s ease-in-out !important;\n  transform: translateZ(99px) !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  left: 50% !important;\n  top: 50% !important;\n  animation:\n    fun-widget-backdrop-rotate 1.5s infinite linear,\n    fun-widget-backdrop-fadein 0.6s ease-in-out !important;\n  padding: 0 !important;\n  margin: -30px 0 0 -30px !important;\n  width: 60px !important;\n  min-width: 60px !important;\n  max-width: 60px !important;\n  height: 60px !important;\n  min-height: 60px !important;\n  max-height: 60px !important;\n  border-radius: 50% !important;\n  border: 4px solid !important;\n  border-color: #e3e3e3 #e3e3e3 #666666 #666666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n  33% {\n    opacity: 0;\n  }\n  66% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(359deg);\n  }\n}\n"],sourceRoot:""}]);const a=s},"../../node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);i&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},"../../node_modules/css-loader/dist/runtime/sourceMaps.js":e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),r="/*# ".concat(o," */");return[t].concat([r]).join("\n")}return[t].join("\n")}},"./src/preloader/backdrop.css":(e,t,n)=>{var i=n("../../node_modules/css-loader/dist/cjs.js!../../node_modules/resolve-url-loader/index.js!./src/preloader/backdrop.css");i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},"../../node_modules/js-cookie/dist/js.cookie.mjs":(e,t,n)=>{"use strict";function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}n.d(t,{A:()=>o});var o=function e(t,n){function o(e,o,r){if("undefined"!=typeof document){"number"==typeof(r=i({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in r)r[a]&&(s+="; "+a,!0!==r[a]&&(s+="="+r[a].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(i[a]=t.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){o(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({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:"/"})},"../../clickhouse/mapper/clickhouseDictionary.json":e=>{"use strict";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","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","cn":"clientCookieConsent","tt":"checkoutType"}')}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".76ee81c01ff6.SplitTesting.js",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@fundraiseup/embed:",o.l=(n,i,r,s)=>{if(e[n])e[n].push(i);else{var a,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+r){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+r),a.src=n),e[n]=[i];var p=(t,i)=>{a.onerror=a.onload=null,clearTimeout(E);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(i))),t)return t(i)},E=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://static.fundraiseup.com/",(()=>{if(void 0!==o){var e=o.u,t=o.e,n={},i={};o.u=function(t){return e(t)+(n.hasOwnProperty(t)?"?"+n[t]:"")},o.e=function(r){return t(r).catch((function(t){var s=i.hasOwnProperty(r)?i[r]:3;if(s<1){var a=e(r);throw t.message="Loading chunk "+r+" failed after 3 retries.\n("+a+")",t.request=a,t}return new Promise((function(e){var t=3-s+1;setTimeout((function(){var a="cache-bust=true&retry-attempt="+t;n[r]=a,i[r]=s-1,e(o.e(r))}),0)}))}))}}})(),(()=>{var e={722:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,o)=>i=e[t]=[n,o]));n.push(i[2]=r);var s=o.p+o.u(t),a=new Error;o.l(s,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,r,[s,a,c]=n,l=0;if(s.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);c&&c(o)}for(t&&t(n);l<s.length;l++)r=s[l],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0},n=self.funEmbed=self.funEmbed||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e,t,n,i=o("../../shared/src/common/debug/Debug.ts"),r=o("../fun-storage/src/funCookiesKeys.ts");!function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(e||(e={})),function(e){e.STRING="string",e.OBJECT="object"}(t||(t={})),function(e){e.ENABLED="1"}(n||(n={}));var s=o("../../node_modules/js-cookie/dist/js.cookie.mjs");function a(){const e=[],t=window.location.hostname.split(".");let n=t.splice(-1).join();for(let i=t.length;i>0;i--)n=t.splice(-1).join()+"."+n,e.push(n);return e}const c=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.A;function i(e,t){n.remove(e,t)}function o(e){return!!window.FUN_DO_NOT_TRACK||!!window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&e!==r.e.CID}return window.FUN_DO_NOT_TRACK&&a().forEach((e=>{i(r.e.CID,{domain:e}),i(r.e.SESSION,{domain:e}),i(r.e.FUNC,{domain:e}),i(r.e.PERFORMANCE,{domain:e})})),window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&a().forEach((e=>{i(r.e.SESSION,{domain:e}),i(r.e.FUNC,{domain:e}),i(r.e.PERFORMANCE,{domain:e})})),{get:function(i){if(o(i))return null;const r=n.get(i);if(!r)return null;if(e===t.OBJECT){let e=null;return e=JSON.parse(r),e}return r},set:function(i,r,s){o(i)||(e===t.OBJECT&&(r=JSON.stringify(r)),n.set(i,r,s))},remove:i}};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)}}var d;function u(e,t){if(!Object.keys(d).find((e=>d[e]===t)))throw new Error(`10 ${t}`);return new l(e,c(t))}!function(e){e.STRING="string",e.OBJECT="object"}(d||(d={}));const p={};function E(e){return function(e){const t=p[e];if(t)return t;const n=new Promise((function(t,n){setTimeout((()=>{const i=window.document.createElement("script");i.type="text/javascript",i.charset="UTF-8",i.async=!0,i.onerror=function(e){n(e)},i.onload=function(){t(!0)},i.src=e,window.document.documentElement.appendChild(i),E._immedeatly&&t(!0)}),0)}));return p[e]=n,n}(e)}var h,m,g,_;E._immedeatly=!1,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",e.JS_API="jsApi"}(h||(h={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(m||(m={})),function(e){e.type="type",e.recurring="recurring",e.amount="amount",e.modifyAmount="modifyAmount",e.designationId="designationId",e.fundraiser="fundraiser",e.modifyDesignation="modifyDesignation",e.firstName="firstName",e.lastName="lastName",e.email="email",e.fundraiseupLivemode="fundraiseupLivemode"}(g||(g={})),function(e){e.DUMMY_EXPERIMENT="DummyExperiment",e.UPSELL_CURTAIN_EXPERIMENT="UpsellCurtainExperiment",e.CHECKOUT_BUNDLE_EXPERIMENT="CheckoutBundleExperiment",e.UPSELL_SCREEN_V_3_EXPERIMENT="UpsellScreenV3Experiment",e.DONOR_PORTAL_TEST_EXPERIMENT="DonorPortalTestExperiment",e.CAMPAIGN_PAGE_TEST_EXPERIMENT="CampaignPageTestExperiment",e.EMBED_TEST_EXPERIMENT="EmbedTestExperiment",e.UPGRADE_LINKS_IN_INSTALLMENT_EMAILS_AI_V2_EXPERIMENT="UpgradeLinksInInstallmentEmailsAIv2Experiment",e.ML_POST_DONATION_UPSELL_CHECKOUT_EXPERIMENT="MlPostDonationUpsellCheckoutExperiment",e.ML_POST_DONATION_UPSELL_CAMPAIGN_PAGES_EXPERIMENT="MlPostDonationUpsellCampaignPagesExperiment",e.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CheckoutWithoutPreDonationUpsellExperiment",e.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CampaignPagesWithoutPreDonationUpsellExperiment",e.SMART_COVERING_FEE_CHECKOUT_V_2_EXPERIMENT="SmartCoveringFeeSuggestionCheckoutExperimentV2",e.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_2_EXPERIMENT="SmartCoveringFeeSuggestionCampaignPagesExperimentV2",e.AA_CHECKOUT_EXPERIMENT="AACheckoutExperiment",e.AMOUNT_PRESETS_CHECKOUT_V_3_1_EXPERIMENT="AmountPresetsCheckoutV31Experiment",e.SMART_POST_DONATION_UPSELL_CHECKOUT_V_2_EXPERIMENT="SmartPostDonationUpsellCheckoutV2Experiment",e.SMART_POST_DONATION_UPSELL_CAMPAIGN_PAGES_V_2_EXPERIMENT="SmartPostDonationUpsellCampaignPagesV2Experiment",e.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT="UpsellAmountsDatasetModalExperiment",e.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT="UpsellAmountsDatasetPagesExperiment",e.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT="UpgradeLinksPageAIv2Experiment",e.PRESETS_IN_DONATION_FORM_V_3_1_EXPERIMENT="PresetsInDonationFormV31Experiment",e.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT="SteplessMobileCheckoutExperiment",e.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CHECKOUT_V_3_EXPERIMENT="CollectDatasetPostDonationUpsellAmountCheckoutV3Experiment",e.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CAMPAIGN_PAGES_V_3_EXPERIMENT="CollectDatasetPostDonationUpsellAmountCampaignPagesV3Experiment",e.UPSELL_AMOUNTS_SUGGESTION_MODAL_EXPERIMENT="UpsellAmountsSuggestionModalExperiment",e.UPSELL_AMOUNTS_SUGGESTION_PAGES_EXPERIMENT="UpsellAmountsSuggestionPagesExperiment",e.AMOUNT_PRESETS_PAGES_V_3_1_EXPERIMENT="AmountPresetsPagesV31Experiment",e.DEFAULT_FREQUENCY_V_2_MODAL_EXPERIMENT="DefaultFrequencyV2ModalExperiment",e.DEFAULT_FREQUENCY_V_2_CAMPAIGN_PAGES_EXPERIMENT="DefaultFrequencyV2CampaignPagesExperiment",e.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_EXPERIMENT="MlDefaultFrequencyInDonationFormExperiment",e.SMART_PDU_CHECKOUT_V_3_EXPERIMENT="SmartPDUCheckoutV3Experiment",e.SMART_PDU_CAMPAIGN_PAGES_V_3_EXPERIMENT="SmartPDUCampaignPagesV3Experiment",e.RECURRING_FREQUENCY_HINT_CAMPAIGN_PAGES_EXPERIMENT="RecurringFrequencyHintCampaignPagesExperiment",e.RECURRING_FREQUENCY_HINT_CHECKOUT_DESKTOP_EXPERIMENT="RecurringFrequencyHintCheckoutDesktopExperiment",e.RECURRING_FREQUENCY_HINT_CHECKOUT_MOBILE_EXPERIMENT="RecurringFrequencyHintCheckoutMobileExperiment",e.CHECKOUT_STEPS_CAMPAIGN_PAGES_EXPERIMENT="CheckoutStepsCampaignPagesExperiment",e.CHECKOUT_STEPS_CHECKOUT_MODAL_EXPERIMENT="CheckoutStepsCheckoutModalExperiment",e.DONOR_RATING_CHECKOUT_EXPERIMENT="DonorRatingCheckoutExperiment",e.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT="DonorRatingCampaignPagesExperiment",e.CHECKOUT_WITHOUT_PRESETS_EXPERIMENT="CheckoutWithoutPresetsExperiment",e.CAMPAIGN_PAGES_WITHOUT_PRESETS_EXPERIMENT="CampaignPagesWithoutPresetsExperiment",e.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_V_3_EXPERIMENT="MlDefaultFrequencyInDonationFormV3Experiment",e.DEFAULT_FREQUENCY_V_3_MODAL_EXPERIMENT="DefaultFrequencyV3ModalExperiment",e.DEFAULT_FREQUENCY_V_3_CAMPAIGN_PAGES_EXPERIMENT="DefaultFrequencyV3CampaignPagesExperiment",e.LESS_PAYMENT_OPTIONS_V_3_CAMPAIGN_PAGES_EXPERIMENT="LessPaymentOptionsV3CampaignPagesExperiment",e.ML_DONATION_RETRY_V_3_EXPERIMENT="MlDonationRetryV3Experiment",e.UPSELL_SCREEN_DATA_COLLECT_CAMPAIGN_PAGES_EXPERIMENT="UpsellScreenDataCollectCampaignPagesExperiment",e.UPSELL_SCREEN_DATA_COLLECT_CHECKOUT_EXPERIMENT="UpsellScreenDataCollectCheckoutExperiment",e.AMOUNT_PRESETS_CHECKOUT_V_4_EXPERIMENT="AmountPresetsCheckoutV4Experiment",e.AMOUNT_PRESETS_PAGES_V_4_EXPERIMENT="AmountPresetsPagesV4Experiment"}(_||(_={}));const T={[_.DUMMY_EXPERIMENT]:"33802",[_.UPSELL_CURTAIN_EXPERIMENT]:"43030",[_.CHECKOUT_BUNDLE_EXPERIMENT]:"61172",[_.UPSELL_SCREEN_V_3_EXPERIMENT]:"65613",[_.DONOR_PORTAL_TEST_EXPERIMENT]:"68092",[_.CAMPAIGN_PAGE_TEST_EXPERIMENT]:"68383",[_.EMBED_TEST_EXPERIMENT]:"65492",[_.ML_POST_DONATION_UPSELL_CHECKOUT_EXPERIMENT]:"70084",[_.ML_POST_DONATION_UPSELL_CAMPAIGN_PAGES_EXPERIMENT]:"71732",[_.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73814",[_.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73816",[_.SMART_COVERING_FEE_CHECKOUT_V_2_EXPERIMENT]:"82767-modal",[_.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_2_EXPERIMENT]:"82767-pages",[_.AA_CHECKOUT_EXPERIMENT]:"77715",[_.AMOUNT_PRESETS_CHECKOUT_V_3_1_EXPERIMENT]:"108741-modal",[_.SMART_POST_DONATION_UPSELL_CHECKOUT_V_2_EXPERIMENT]:"79870-modal",[_.SMART_POST_DONATION_UPSELL_CAMPAIGN_PAGES_V_2_EXPERIMENT]:"79870-pages",[_.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT]:"87159-modal",[_.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT]:"87159-pages",[_.UPGRADE_LINKS_IN_INSTALLMENT_EMAILS_AI_V2_EXPERIMENT]:"87202",[_.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT]:"87190",[_.PRESETS_IN_DONATION_FORM_V_3_1_EXPERIMENT]:"107996",[_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT]:"60395",[_.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CHECKOUT_V_3_EXPERIMENT]:"89924-modal",[_.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CAMPAIGN_PAGES_V_3_EXPERIMENT]:"89924-pages",[_.UPSELL_AMOUNTS_SUGGESTION_MODAL_EXPERIMENT]:"89701-modal",[_.UPSELL_AMOUNTS_SUGGESTION_PAGES_EXPERIMENT]:"89701-pages",[_.AMOUNT_PRESETS_PAGES_V_3_1_EXPERIMENT]:"108741-pages",[_.DEFAULT_FREQUENCY_V_2_MODAL_EXPERIMENT]:"100054",[_.DEFAULT_FREQUENCY_V_2_CAMPAIGN_PAGES_EXPERIMENT]:"100058",[_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_EXPERIMENT]:"100053",[_.SMART_PDU_CHECKOUT_V_3_EXPERIMENT]:"89260-modal",[_.SMART_PDU_CAMPAIGN_PAGES_V_3_EXPERIMENT]:"89260-pages",[_.RECURRING_FREQUENCY_HINT_CAMPAIGN_PAGES_EXPERIMENT]:"59392-pages",[_.RECURRING_FREQUENCY_HINT_CHECKOUT_DESKTOP_EXPERIMENT]:"59392-desktop",[_.RECURRING_FREQUENCY_HINT_CHECKOUT_MOBILE_EXPERIMENT]:"59392-mobile",[_.CHECKOUT_STEPS_CAMPAIGN_PAGES_EXPERIMENT]:"59119-pages",[_.CHECKOUT_STEPS_CHECKOUT_MODAL_EXPERIMENT]:"59119-modal",[_.DONOR_RATING_CHECKOUT_EXPERIMENT]:"99706-modal",[_.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT]:"99706-pages",[_.CHECKOUT_WITHOUT_PRESETS_EXPERIMENT]:"59097-modal",[_.CAMPAIGN_PAGES_WITHOUT_PRESETS_EXPERIMENT]:"59097-pages",[_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_V_3_EXPERIMENT]:"103991-df",[_.DEFAULT_FREQUENCY_V_3_MODAL_EXPERIMENT]:"103991-modal",[_.DEFAULT_FREQUENCY_V_3_CAMPAIGN_PAGES_EXPERIMENT]:"103991-pages",[_.LESS_PAYMENT_OPTIONS_V_3_CAMPAIGN_PAGES_EXPERIMENT]:"106559",[_.ML_DONATION_RETRY_V_3_EXPERIMENT]:"99145",[_.UPSELL_SCREEN_DATA_COLLECT_CAMPAIGN_PAGES_EXPERIMENT]:"112996-pages",[_.UPSELL_SCREEN_DATA_COLLECT_CHECKOUT_EXPERIMENT]:"112996-modal",[_.AMOUNT_PRESETS_CHECKOUT_V_4_EXPERIMENT]:"110192-modal",[_.AMOUNT_PRESETS_PAGES_V_4_EXPERIMENT]:"110192-pages"};var f,A,N,y,v,C,I,S,O,R,w,P,D,L,b,U,M,x,k,F,G,B,K,V,H,Y,j,W,X,z,$,q,Q,Z,J,ee,te,ne,ie,oe,re,se,ae,ce,le,de,ue,pe,Ee,he,me,ge,_e,Te,fe,Ae,Ne,ye;Object.values(T),function(e){e.BILLING="billing",e.EMBED="embed",e.CAMPAIGN_PAGES="campaignPages",e.DONOR_PORTAL="donorPortal",e.EMAILS="emails"}(f||(f={})),function(e){e.CONTROL="control",e.TEST="test"}(A||(A={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(N||(N={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(y||(y={})),function(e){e.CONTROL="control",e.TEST="test"}(v||(v={})),function(e){e.CONTROL="control",e.TEST="test"}(C||(C={})),function(e){e.CONTROL="control",e.TEST="test"}(I||(I={})),function(e){e.CONTROL="control",e.TEST="test"}(S||(S={})),function(e){e.CONTROL="control",e.TEST="test"}(O||(O={})),function(e){e.CONTROL="control",e.TEST="test"}(R||(R={})),function(e){e.CONTROL="control",e.TEST="test"}(w||(w={})),function(e){e.CONTROL="control",e.TEST="test"}(P||(P={})),function(e){e.CONTROL="control",e.TEST="test"}(D||(D={})),function(e){e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(L||(L={})),function(e){e.CONTROL="control",e.TEST="test"}(b||(b={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(U||(U={})),function(e){e.CONTROL="control",e.TEST="test"}(M||(M={})),function(e){e.CONTROL="control",e.TEST="test"}(x||(x={})),function(e){e.CONTROL="control",e.TEST="test"}(k||(k={})),function(e){e.CONTROL="control",e.TEST="test"}(F||(F={})),function(e){e.CONTROL="control",e.TEST="test"}(G||(G={})),function(e){e.CONTROL="control",e.TEST="test"}(B||(B={})),function(e){e.CONTROL="control",e.TEST="test"}(K||(K={})),function(e){e.CONTROL="control",e.TEST="test"}(V||(V={})),function(e){e.CONTROL="control",e.TEST="test"}(H||(H={})),function(e){e.CONTROL="control",e.TEST="test"}(Y||(Y={})),function(e){e.CONTROL="control",e.TEST="test"}(j||(j={})),function(e){e.CONTROL="control",e.TEST="test"}(W||(W={})),function(e){e.CONTROL="control",e.TEST="test"}(X||(X={})),function(e){e.CONTROL="control",e.TEST="test"}(z||(z={})),function(e){e.CONTROL="control",e.TEST="test"}($||($={})),function(e){e.CONTROL="control",e.TEST="test"}(q||(q={})),function(e){e.CONTROL="control",e.TEST="test"}(Q||(Q={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(Z||(Z={})),function(e){e.CONTROL="control",e.TEST="test"}(J||(J={})),function(e){e.CONTROL="control",e.TEST="test"}(ee||(ee={})),function(e){e.CONTROL="control",e.TEST="test"}(te||(te={})),function(e){e.CONTROL="control",e.TEST="test"}(ne||(ne={})),function(e){e.CONTROL="control",e.TEST="test"}(ie||(ie={})),function(e){e.CONTROL="control",e.TEST="test"}(oe||(oe={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(re||(re={})),function(e){e.CONTROL="control",e.TEST="test"}(se||(se={})),function(e){e.CONTROL="control",e.TEST="test"}(ae||(ae={})),function(e){e.CONTROL="control",e.TEST="test"}(ce||(ce={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(le||(le={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(de||(de={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(ue||(ue={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(pe||(pe={})),function(e){e.CONTROL="control",e.TEST="test"}(Ee||(Ee={})),function(e){e.CONTROL="control",e.TEST="test"}(he||(he={})),function(e){e.CONTROL="control",e.TEST="test"}(me||(me={})),function(e){e.CONTROL="control",e.TEST="test"}(ge||(ge={})),function(e){e.CONTROL="control",e.TEST="test"}(_e||(_e={})),function(e){e.CONTROL="control",e.TEST="test"}(Te||(Te={})),function(e){e.CONTROL="control",e.TEST="test"}(fe||(fe={})),function(e){e.CONTROL="control",e.TEST="test"}(Ae||(Ae={})),function(e){e.CONTROL="control",e.TEST="test"}(Ne||(Ne={})),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",e.ISRAEL="IL"}(ye||(ye={}));const ve=[ye.UNITED_KINGDOM,ye.CANADA,ye.GERMANY],Ce=e=>!ve.includes(e),Ie=(e,t)=>{const{disabledAccounts:n,enabledAccounts:i}=e;if(null==n?void 0:n.find((e=>e===t)))return!1;const o=null==i?void 0:i.find((e=>e===t));return!((null==i?void 0:i.length)&&!o)};class Se extends Error{constructor(e){super(`4 - ${e}`)}}class Oe extends Error{constructor(e){super(`6 - ${e}`)}}class Re extends Error{constructor(e){super(`8 - ${e}`)}}class we extends Error{constructor(e){super(`5 - ${e}`)}}class Pe extends Error{constructor(e){super(`9 - ${e}`)}}class De{constructor(e){this.excluded=!1,this.isInitialized=!1,this.isActive=!1;const{settings:t,companyKey:n,widgetKey:i,tracker:o,funStorage:r,user:s,parentCompanyKey:a,infrastructureParams:c,sentry:l,distribution:d,allowExperiments:u=!0}=e;this.sentry=l,this.companyKey=n,this.parentCompanyKey=a,this.widgetKey=i,this.tracker=o,this.funStorage=r,this.user=s,this.infrastructureParams=c;const{experimentId:p,name:E,disabledAccounts:h,enabledAccounts:m,enabled:g,enabledWidgets:_}=t;this.name=E,this.experimentId=p,this.disabledAccounts=h,this.enabledAccounts=m,this.enabledWidgets=_,this.disabledWidgets=t.disabledWidgets,this.settings=t,this.enabled=g,this.distribution=d;const T=Array.isArray(window.FUN_DISABLED_EXPERIMENTS)?window.FUN_DISABLED_EXPERIMENTS:[];this.globalDisabled=!u||window.FUN_DISABLE_EXPERIMENTS||-1!==T.indexOf(p)}get isExperimentEnabled(){return((e,t)=>{var n;if(!t)return!1;const{enabled:i,name:o}=t,r=e.get(),s=r&&(null===(n=r.settings[o])||void 0===n?void 0:n.enabled);return i||Boolean(s)})(this.funStorage,this.settings)}getDebugPanelEnabled(){var e,t;const n=null===(e=this.funStorage.get())||void 0===e?void 0:e.settings;return Boolean(n&&(null===(t=n[this.name])||void 0===t?void 0:t.enabled))}get active(){return this.isActive}get variantName(){return this.distribution.currentVariantName}start(e){if(!this.checkDisabled()&&(this.isInitialized=this.init(),this.isInitialized)){this.activate();const e=this.getTags();this.tracker.setEventTags(e)}}getTags(){const e=[this.experimentId,`${this.experimentId}-${this.variantName}`];return this.excluded&&e.push(`${this.experimentId}-exclusion`),e}isVariant(e){return this.variantName===e}setVariant(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.distribution.setVariant(e),this.excluded=t;const n=[this.experimentId];this.tracker.removeEventTags(n);const i=this.getTags();this.tracker.setEventTags(i)}restoreVariant(){this.distribution.previousVariantName&&this.setVariant(this.distribution.previousVariantName,!1)}exposure(){this.isActive&&this.tracker.customTrack({type:"testGroupExposed",data:{exclusion:this.excluded,experimentId:this.experimentId,variantName:this.variantName}})}init(){var e,t,n,i;const o=this.getDebugPanelVariant();if(o.variant&&o.enabled)return this.setVariant(o.variant),!0;if(o.enabled&&!o.variant&&(this.excluded=!0),!Ie(this.settings,this.companyKey))return!1;const r=null===(e=this.enabledWidgets)||void 0===e?void 0:e.find((e=>e===this.widgetKey));if((null===(t=this.enabledWidgets)||void 0===t?void 0:t.length)&&!r)return!1;const s=null===(n=this.disabledWidgets)||void 0===n?void 0:n.find((e=>e===this.widgetKey));return!((null===(i=this.disabledWidgets)||void 0===i?void 0:i.length)&&s||(this.distribution.initCurrentVariantName(),0))}activate(){this.isActive?this.sentry.captureException(new Se(this.name)):this.isActive=!0}checkDisabled(){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(new Oe(e)),null):(null==e?void 0:e.settings)||null}getDebugPanelVariant(){var e;const t=null===(e=this.funStorage.get())||void 0===e?void 0:e.settings;if(!t)return{enabled:!1};const n=t[this.name];return n&&(null==n?void 0:n.enabled)?{enabled:!0,variant:n.variant}:{enabled:!1}}}var Le,be,Ue,Me,xe,ke,Fe,Ge,Be,Ke,Ve,He,Ye,je,We,Xe,ze,$e,qe,Qe,Ze,Je,et,tt,nt,it,ot,rt,st,at,ct,lt,dt,ut,pt,Et,ht,mt,gt,_t,Tt,ft,At,Nt,yt,vt,Ct,It,St,Ot,Rt,wt,Pt,Dt,Lt;!function(e){e.ACH_VERIFICATION_REQUIRED="ach_verification_required",e.INCOMPLETE="incomplete",e.RETRYING="retrying",e.WAITING_FOR_TRANSFER="waiting_for_transfer",e.PAYPAL_ACTION_REQUIRED="paypal_action_required",e.SCHEDULED="scheduled",e.DISPUTE_LOST="dispute_lost",e.ACCOUNT_CLOSED="account_closed",e.ACCOUNT_FROZEN="account_frozen",e.AUTHENTICATION_REQUIRED="authentication_required",e.BANK_ACCOUNT_RESTRICTED="bank_account_restricted",e.CARD_DECLINED="card_declined",e.CREDIT_CARD_ACTION_REQUIRED="credit_card_action_required",e.DEBIT_NOT_AUTHORIZED="debit_not_authorized",e.EXPIRED_CARD="expired_card",e.INCORRECT_CVC="incorrect_cvc",e.INCORRECT_NUMBER="incorrect_number",e.INCORRECT_ZIP="incorrect_zip",e.INSUFFICIENT_FUNDS="insufficient_funds",e.INVALID_ACCOUNT_NUMBER="invalid_account_number",e.NO_ACCOUNT="no_account",e.PARAMETER_INVALID_INTEGER="parameter_invalid_integer",e.PROCESSING_ERROR="processing_error",e.RESOURCE_MISSING="resource_missing",e.ACH_VERIFICATION_FAILED="ach_verification_failed",e.ACH_VERIFICATION_EXPIRED="ach_verification_expired",e.FUN_VERIFICATION_CANCEL="fun_verification_cancel",e.SUBSCRIPTION_CANCELLED_BY_COMPANY="subscription_cancelled_by_company",e.SUBSCRIPTION_CANCELLED_BY_CUSTOMER="subscription_cancelled_by_customer",e.SUBSCRIPTION_SKIPPED_BY_COMPANY="subscription_skipped_by_company",e.SUBSCRIPTION_SKIPPED_BY_CUSTOMER="subscription_skipped_by_customer",e.PAYMENT_METHOD_INVALIDATED="payment_method_invalidated",e.FAILED_BY_TERMINATION_FLOW="failed_by_termination_flow",e.NOT_ELIGIBLE="not_eligible",e.UNKNOWN_REASON="unknown_reason",e.CANCELLED_BY_CUSTOMER="cancelled_by_customer",e.CANCELLED_BY_COMPANY="cancelled_by_company"}(Le||(Le={})),(Lt=be||(be={})).CARD="creditCard",Lt.APPLE_PAY="applePay",Lt.GOOGLE_PAY="googlePay",Lt.CLICK_TO_PAY="clickToPay",Lt.ACH="ach",Lt.PLAID="plaid",Lt.PAYPAL="paypal",Lt.VENMO="venmo",Lt.AU_BECS="auBecsDebit",Lt.UK_BACS="ukBacs",Lt.ACSS="acss",Lt.SEPA="sepa",Lt.IDEAL="ideal",Lt.CRYPTO="crypto",Lt.STOCK="stock",Lt.US_BANK_ACCOUNT="usBankAccount",function(e){e.BITCOIN="bitcoin",e.ETHEREUM="ethereum",e.BITCOINCASH="bitcoincash",e.LITECOIN="litecoin",e.ZCASH="zcash",e.FILECOIN="filecoin",e.DOGECOIN="dogecoin",e.TEZOS="tezos",e.SOLANA="solana",e.POLKADOT="polkadot"}(Ue||(Ue={})),function(e){e.PENDING="pending",e.FAILED="failed",e.SUCCESS="success",e.REFUNDED="refunded"}(Me||(Me={})),function(e){e.FAIL="fail",e.FAIL_NOT_ELIGIBLE="fail_not_eligible",e.WAIT_FOR_TRANSFER="wait_for_transfer",e.SUCCEED="succeed"}(xe||(xe={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(ke||(ke={})),function(e){e.ACH="ach",e.GOOGLE_PAY="android_pay",e.APPLE_PAY="apple_pay",e.CLICK_TO_PAY="masterpass",e.PLAID="plaid"}(Fe||(Fe={})),function(e){e.CARD="card",e.BANK_ACCOUNT="bank_account",e.PAYPAL="paypal",e.VENMO="venmo",e.SOURCE="source",e.AU_BECS="au_becs_debit",e.UK_BACS="bacs_debit",e.ACSS="acss_debit",e.SEPA="sepa_debit",e.IDEAL="ideal",e.CRYPTO="crypto",e.STOCK="stock",e.US_BANK_ACCOUNT="us_bank_account"}(Ge||(Ge={})),function(e){e.CHARGEABLE="chargeable",e.NEW="new",e.VERIFICATION_FAILED="verification_failed",e.VERIFIED="verified",e.VALIDATED="validated",e.ERRORED="errored"}(Be||(Be={})),function(e){e.STRIPE="stripe",e.PAYPAL="paypal",e.GEMINI="gemini",e.MANUAL_BROKERAGE="manualBrokerage",e.COINBASE_COMMERCE="coinbaseCommerce"}(Ke||(Ke={})),function(e){e.STRIPE_TOKEN="stripeToken",e.STRIPE_PAYMENT_METHOD="stripePaymentMethod"}(Ve||(Ve={})),function(e){e.ACTIVE="active",e.CANCELLED="cancelled",e.FAILED="failed"}(He||(He={})),function(e){e.RETRYING="retrying",e.ACH_VERIFICATION_REQUIRED="ach_verification_required",e.SCHEDULED="scheduled",e.PAUSED="paused",e.CANCELLED_BY_COMPANY="cancelled_by_company",e.CANCELLED_BY_CUSTOMER="cancelled_by_customer",e.CANCELLED_BY_TERMINATION_FLOW="cancelled_by_termination_flow",e.CANCELLED_BY_DISPUTE_LOST="cancelled_by_dispute_lost",e.CANCELLED_BY_LIMIT="cancelled_by_limit",e.ACH_VERIFICATION_FAILED="ach_verification_failed",e.ACH_VERIFICATION_EXPIRED="ach_verification_expired",e.PAYMENT_METHOD_INVALIDATED="payment_method_invalidated",e.FAILED_BY_INSUFFICIENT="failed_by_insufficient_data"}(Ye||(Ye={})),function(e){e.CARD="card",e.BANK_ACCOUNT="bank_account",e.US_BANK_ACCOUNT="us_bank_account",e.AU_BECS="au_becs_debit",e.UK_BACS="bacs_debit",e.ACSS="acss_debit",e.SEPA="sepa_debit",e.IDEAL="ideal"}(je||(je={})),function(e){e.VISA="Visa",e.VISA_ELECTRON="Visa Electron",e.MASTER_CARD="MasterCard",e.AMERICAN_EXPRESS="American Express",e.DINERS_CLUB="Diners Club",e.DISCOVER="Discover",e.JCB="JCB",e.UNION_PAY="UnionPay"}(We||(We={})),function(e){e.VISA="visa",e.AMERICAN_EXPRESS="amex",e.MASTERCARD="mastercard",e.DISCOVER="discover"}(Xe||(Xe={})),function(e){e[e.STANDARD=290]="STANDARD",e[e.NON_PROFIT=220]="NON_PROFIT"}(ze||(ze={})),function(e){e[e.AUTO=-1]="AUTO",e[e.NEVER=0]="NEVER",e[e.ONE=1]="ONE",e[e.TWO=2]="TWO",e[e.THREE=3]="THREE",e[e.FOUR=4]="FOUR",e[e.FIVE=5]="FIVE",e[e.SIX=6]="SIX"}($e||($e={})),function(e){e.NEW="new",e.VALIDATED="validated",e.VERIFIED="verified",e.FAILED="verification_failed",e.ERRORED="errored"}(qe||(qe={})),function(e){e.INDIVIDUAL="individual",e.COMPANY="company"}(Qe||(Qe={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.DISABLED="disabled"}(Ze||(Ze={})),function(e){e.REQUIRES_ACTION="requires_action",e.REQUIRES_CONFIRMATION="requires_confirmation",e.REQUIRES_PAYMENT_METHOD="requires_payment_method",e.REQUIRES_CAPTURE="requires_capture",e.PROCESSING="processing",e.SUCCEEDED="succeeded",e.CANCELLED="canceled"}(Je||(Je={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(et||(et={})),function(e){e.ACH_VERIFICATION_REQUIRED="ach_verification_required",e.ACH_VERIFICATION_FAILED="ach_verification_failed",e.ACH_VERIFICATION_CANCELLED="ach_verification_cancelled",e.ACH_VERIFICATION_EXPIRED="ach_verification_expired",e.UNKNOWN_ERROR="unknown_error",e.DEACTIVATED_ON_PROVIDER_SIDE="deactivated_on_provider_side",e.ACCOUNT_CLOSED="account_closed",e.ACCOUNT_FROZEN="account_frozen",e.AUTHENTICATION_REQUIRED="authentication_required",e.BANK_ACCOUNT_RESTRICTED="bank_account_restricted",e.CARD_DECLINED="card_declined",e.DEBIT_NOT_AUTHORIZED="debit_not_authorized",e.EXPIRED_CARD="expired_card",e.FUN_VERIFICATION_CANCEL="fun_verification_cancel",e.FUN_WRONG_PAYMENT_METHOD="fun_wrong_payment_method",e.INCORRECT_CVC="incorrect_cvc",e.INCORRECT_NUMBER="incorrect_number",e.INCORRECT_ZIP="incorrect_zip",e.INSUFFICIENT_FUNDS="insufficient_funds",e.INVALID_ACCOUNT_NUMBER="invalid_account_number",e.NO_ACCOUNT="no_account",e.PROCESSING_ERROR="processing_error",e.RESOURCE_MISSING="resource_missing",e.MANDATE_INACTIVE="mandate_inactive",e.STRIPE_CUSTOMER_REQUIRED="stripe_customer_required",e.STRIPE_CUSTOMER_NONE="stripe_customer_none"}(tt||(tt={})),function(e){e.PAYMENT_METHOD_INVALIDATED="fun_payment_method_invalidated",e.CHARGE_VERIFICATION_CANCELLED="fun_verification_cancel",e.PAYMENT_METHOD_VERIFICATION_EXPIRED="fun_verification_expired",e.PAYMENT_METHOD_VERIFICATION_FAILED="fun_verification_failed",e.CHARGE_VERIFICATION_CANCELLED_BY_COMPANY="fun_verification_cancel_by_company",e.CHARGE_VERIFICATION_CANCELLED_BY_SUPPORTER="fun_verification_cancel_by_supporter",e.PAYMENT_WAS_CANCELLED="fun_payment_was_cancelled",e.ACCOUNT_WAS_TERMINATED="fun_account_was_terminated"}(nt||(nt={})),function(e){e.DUPLICATE_DONATION="duplicate_donation",e.FRAUD="fraud",e.REQUESTED_BY_SUPPORTER="requested_by_supporter",e.EXPIRED_UNCAPTURED_CHARGE="expired_uncaptured_charge",e.OTHER="other"}(it||(it={})),function(e){e.UPDATE_SUBSCRIPTION_CUSTOMER_ADDRESS="update_subscription_customer_address",e.UPDATE_SUBSCRIPTION_QUESTIONS="update_subscription_questions",e.UPDATE_SUBSCRIPTION_AMOUNT="update_subscription_amount",e.UPDATE_SUBSCRIPTION_CUSTOM_FIELDS="update_subscription_custom_fields",e.UPDATE_SUBSCRIPTION_UTM="update_subscription_utm",e.UPDATE_SUBSCRIPTION_GOAL="update_subscription_goal",e.UPDATE_SUBSCRIPTION_LIMITS="update_subscription_limits",e.UPDATE_SUBSCRIPTION_WIDGET="update_subscription_widget",e.UPDATE_SUBSCRIPTION_PAYMENT_METHOD="update_subscription_payment_method",e.UPDATE_CHARGE_CUSTOMER_ADDRESS="update_charge_customer_address",e.UPDATE_CHARGE_RECEIPT="update_charge_receipt",e.UPDATE_CHARGE_CUSTOM_FIELDS="update_charge_custom_fields",e.UPDATE_CHARGE_GOAL="update_charge_goal",e.UPDATE_CHARGE_WIDGET="update_charge_widget",e.REFUND_APPLICATION_FEE="refund_application_fee",e.UPDATE_CUSTOMER_NAME="update_customer_name"}(ot||(ot={})),function(e){e.PAYPAL_ERROR="PAYPAL_ERROR",e.PAYPAL_REQUEST_ERROR="PAYPAL_REQUEST_ERROR",e.REFUND_FAILED_INSUFFICIENT_FUNDS="REFUND_FAILED_INSUFFICIENT_FUNDS",e.TRANSACTION_REFUSED="TRANSACTION_REFUSED",e.TRANSACTION_ALREADY_REFUNDED="TRANSACTION_ALREADY_REFUNDED",e.USER_ACCOUNT_RESTRICTED="USER_ACCOUNT_RESTRICTED",e.INTERNAL="INTERNAL",e.UNAVAILABLE="UNAVAILABLE",e.EXECUTE_AGREEMENT_BUYER_NOT_ACCEPTED="EXECUTE_AGREEMENT_BUYER_NOT_ACCEPTED",e.ORDER_EXPIRED="ORDER_EXPIRED",e.VALIDATION_ERROR="VALIDATION_ERROR"}(rt||(rt={})),function(e){let t;!function(e){let t,n,i,o,r,s,a,c,l;!function(e){e.CREATED="charge.created",e.PENDING="charge.pending",e.REFUNDED="charge.refunded",e.FAILED="charge.failed",e.UPDATED="charge.updated",e.SUCCESS="charge.success",e.SUCCESS_EARLY_FRAUD_WARNING="charge.success_early_fraud_warning",e.PENDING_ACH_VERIFICATION_REQUIRED="charge.pending_ach_verification_required",e.PENDING_INCOMPLETE="charge.pending_incomplete",e.PENDING_SCHEDULED="charge.pending_scheduled",e.PENDING_WAITING_FOR_TRANSFER="charge.pending_waiting_for_transfer",e.PENDING_PAYPAL_ACTION_REQUIRED="charge.pending_paypal_action_required",e.PENDING_RETRYING="charge.pending_retrying",e.PERSONAL_DATA_DELETED="charge.personal_data_deleted",e.SUCCESS_DISPUTE_CREATED="charge.success_dispute_created",e.SUCCESS_DISPUTE_LOST="charge.success_dispute_lost",e.SUCCESS_DISPUTE_WON="charge.success_dispute_won",e.SUCCESS_DISPUTE_IN_REVIEW="charge.success_dispute_in_review"}(t=e.EChargeEvent||(e.EChargeEvent={})),function(e){e.ACTIVATED="subscription.activated",e.SCHEDULED="subscription.scheduled",e.FAILED="subscription.failed",e.COMPLETED="subscription.completed",e.CANCELLED="subscription.cancelled",e.TERMS_UPDATED="subscription.subscription_terms.updated",e.DETAILS_UPDATED="subscription.details.updated",e.PAUSED="subscription.paused",e.RETRYING="subscription.retrying",e.PERSONAL_DATA_DELETED="subscription.personal_data_deleted"}(n=e.ESubscriptionEvent||(e.ESubscriptionEvent={})),function(e){e.PENDING="charge_attempt.pending",e.SUCCESS="charge_attempt.success",e.FAILED="charge_attempt.failed"}(i=e.EChargeAttemptEvent||(e.EChargeAttemptEvent={})),function(e){e.ACTIVATE="payment_method.active",e.DEACTIVATE="payment_method.inactive",e.CREATED="payment_method.created",e.UPDATED="payment_method.updated",e.PERSONAL_DATA_DELETED="payment_method.personal_data_deleted"}(o=e.EPaymentMethodEvent||(e.EPaymentMethodEvent={})),function(e){e.CREATED="tribute.created",e.UPDATED="tribute.updated",e.SHARED="tribute.shared"}(r=e.ETributeEvent||(e.ETributeEvent={})),function(e){e.CREATED="abandoned_donation.created",e.OPEN="abandoned_donation.open",e.CANCELLED="abandoned_donation.cancelled",e.COMPLETED="abandoned_donation.completed",e.PERSONAL_DATA_DELETED="abandoned_donation.personal_data_deleted"}(s=e.EAbandonedDonationEvent||(e.EAbandonedDonationEvent={})),function(e){e.PERSONAL_DATA_DELETED="customer.personal_data_deleted",e.CREATED="customer.created",e.UPDATED="customer.updated"}(a=e.ECustomerEvent||(e.ECustomerEvent={})),function(e){e.CREATED="payment_attempt.created",e.PENDING="payment_attempt.pending",e.FAILED="payment_attempt.failed",e.SUCCEEDED="payment_attempt.succeeded"}(c=e.EPaymentAttemptEvent||(e.EPaymentAttemptEvent={})),function(e){e.CREATED="payment_intent.created",e.FAILED="payment_intent.failed",e.SUCCEEDED="payment_intent.succeeded",e.CANCELED="payment_intent.canceled",e.UPDATED="payment_intent.updated",e.REFUNDED="payment_intent.refunded"}(l=e.EPaymentIntentEvent||(e.EPaymentIntentEvent={}))}(t=e.DomainEvent||(e.DomainEvent={}))}(st||(st={})),function(e){e.REQUIRES_PAYMENT="requires_payment",e.REQUIRES_CAPTURE="requires_capture",e.REQUIRES_PAYMENT_METHOD_VERIFICATION="requires_payment_method_verification",e.FAILED="failed",e.SUCCEEDED="succeeded",e.CANCELED="canceled",e.PROCESSING="processing"}(at||(at={})),function(e){e.DEFAULT_YES="defaultYes",e.DEFAULT_NO="defaultNo",e.ONLY_YES="onlyYes",e.ONLY_NO="onlyNo",e.SMART_COVERING="smartCovering"}(ct||(ct={})),function(e){e.IN_HONOR_MEMORY="inHonorMemory",e.DEDICATION="dedication"}(lt||(lt={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(dt||(dt={})),function(e){e.DONOR_PORTAL="donorPortal",e.DASHBOARD="dashboard",e.DASHBOARD_USER="dashboardUser"}(ut||(ut={})),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",e.ISRAEL="IL"}(pt||(pt={})),function(e){e.PAN_ONLY="PAN_ONLY",e.CRYPTOGRAM_3DS="CRYPTOGRAM_3DS"}(Et||(Et={})),function(e){e.AMEX="AMEX",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MASTERCARD="MASTERCARD",e.VISA="VISA"}(ht||(ht={})),function(e){e.DEFAULT_MONTHLY="defaultMonthly",e.ONLY_MONTHLY="onlyMonthly",e.DEFAULT_ONETIME="defaultOnetime",e.ONLY_ONETIME="onlyOnetime"}(mt||(mt={})),function(e){e.FUNDRAISING_PAGE="fundraisingPage",e.REDIRECT="redirect",e.THANK_YOU_SCREEN="thankYouScreen"}(gt||(gt={})),function(e){e.NONE="none",e.GENERAL="general",e.CUSTOMIZED="customized"}(_t||(_t={})),function(e){e.ADAPTIVE_COST_COVERAGE="adaptiveCostCoverage",e.PRE_DONATION_UPSELL="preDonationUpsell",e.POST_DONATION_UPSELL="postDonationUpsell"}(Tt||(Tt={})),function(e){e.GENERAL="general",e.CUSTOMIZED="customized"}(ft||(ft={})),function(e){e.EMAIL="email",e.POSTAL_MAIL="postalMail",e.SMS="sms",e.PHONE_CALLS="phoneCalls",e.SOCIAL_MEDIA="socialMedia"}(At||(At={})),function(e){e.NOT_SUBMITTED="notSubmitted",e.OPTED_IN="optedIn",e.OPTED_OUT="optedOut"}(Nt||(Nt={})),function(e){e.EMAIL="email",e.SMS="sms",e.PHONE_CALLS="phoneCalls",e.POSTAL_MAIL="postalMail",e.SOCIAL_MEDIA="socialMedia"}(yt||(yt={})),function(e){e.DESKTOP="desktop",e.MOBILE="mobile"}(vt||(vt={})),function(e){e.DISABLED="disabled",e.DRY_RUN="dry-run",e.ENABLED="enabled"}(Ct||(Ct={})),function(e){e.LIVE="live",e.TEST="test"}(It||(It={})),function(e){e.TEXT="text",e.EMAIL="email"}(St||(St={})),function(e){e.WEBSITE="website",e.CAMPAIGN_PAGE="campaignPage",e.VIRTUAL_TERMINAL="virtualTerminal",e.DONOR_PORTAL="donorPortal",e.DASHBOARD="dashboard",e.RECURRING_MIGRATION="recurringMigration",e.API="api"}(Ot||(Ot={})),function(e){e.DAY_7="7d",e.MONTH="1m",e.MONTH_3="3m",e.YEAR_TO_DAY="ytd",e.YEAR="1y",e.YEAR_5="5y"}(Rt||(Rt={})),function(e){e.FULL="full",e.CHUNK="chunk"}(wt||(wt={})),function(e){e.CHARGES="charges",e.COMPANIES="companies",e.CUSTOMERS="customers",e.ELEMENTS="elements",e.SUBSCRIPTIONS="subscriptions",e.WIDGETS="widgets",e.FUNDRAISING_PAGES="fundraisingpages",e.USERS="users"}(Pt||(Pt={})),function(e){e.FULL="full",e.FROM="from"}(Dt||(Dt={})),Rt.DAY_7,Rt.MONTH,Rt.MONTH_3,Rt.YEAR_TO_DAY,Rt.YEAR,Rt.YEAR_5;const bt=[be.CARD,be.APPLE_PAY,be.GOOGLE_PAY,be.PAYPAL,be.VENMO,be.US_BANK_ACCOUNT,be.CRYPTO];class Ut extends De{tryStart(e){this.isActive||this.canBeStarted(e)&&super.start()}canBeStarted(e){let{isMobile:t,company:n,resolveData:i}=e;const{campaign:o,company:r}=i;return!(!t||!Ce(n.country)||o.config.showMailing||o.config.showDouble||o.config.donationTypes.crypto.enabled||!(e=>{const t=Object.keys(e).filter((t=>e[t]));return!!t.length&&t.every((e=>bt.includes(e)))})(r.paymentOptions)||i.fundraisingPage||o.config.consent.type===_t.CUSTOMIZED)}get isTestGroup(){return this.isActive&&this.isVariant(W.TEST)}tryTrackStart(){this.isActive&&this.tracker.customTrack({type:"steplessCheckoutExperimentStarted",data:{variantName:this.variantName,exclusion:this.excluded}})}}var Mt=o("../../shared/src/common/embed/serviceContainer.ts");function xt(){return window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new Mt.T),window.FUN_SERVICE_CONTAINER}let kt=null;function Ft(){if(kt)return Promise.resolve(kt);const e=xt();return E(e.get(2).elementsApiScriptUrl).then((()=>(kt=e.get(18),kt)))}const Gt=e=>"no"!==e.fundraiseupLivemode&&("boolean"!=typeof window.fundraiseup_livemode||window.fundraiseup_livemode);function Bt(e,t){let n=t;return e.isWidgetCustomHash(t)&&(n=e.getWidgetKeyByCustomHash(t)||t),n.toUpperCase()}const Kt="pageView",Vt="pageLeave",Ht="customEvent",Yt="dataLayer";var jt,Wt;!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",e.JS_API="jsApi"}(jt||(jt={}));class Xt{constructor(){this.payload={}}merge(e){const t={};for(const n in e)t[n]=e[n];for(const e in this.payload)t[e]=this.payload[e];var n;!e.elementType||(n=e.elementType)&&Object.values(jt).includes(n)||delete t.elementType,this.payload=t,e.eventComment&&this.mergeEventComment(e.eventComment)}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 this.payload.eventComment&&(e.eventComment=JSON.stringify(this.payload.eventComment)),e.eventType=this.eventType,e}mergeEventComment(e){this.payload.eventComment||(this.payload.eventComment={}),Object.assign(this.payload.eventComment,e)}}class zt extends Xt{constructor(e){if(super(),this.payload={widgetKey:e.widgetKey,elementKey:e.elementKey,elementType:e.elementType,elementLocale:e.elementLocale,elementReminderKey:e.elementReminderKey,splitTestName:e.splitTestName,splitTestVariant:e.splitTestVariant,fundraisingPageKey:e.fundraisingPageKey,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 $t extends zt{get eventType(){return"elementOpenCheckout"}}class qt extends zt{get eventType(){return"elementClick"}}class Qt extends Xt{constructor(e){super(),this.merge({customEventType:e.customEventType,customEventData:JSON.stringify(e.customEventData)})}get eventType(){return Ht}}function Zt(e){let{tracker:t,keysKeeper:n,widgetKey:i,splitTestVariant:o,splitTestName:r,elementKey:s,elementType:a}=e;return t.track(new $t({widgetKey:n?Bt(n,i):i,splitTestName:r,elementKey:s,elementType:a,splitTestVariant:o}))}!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",e.ES_US="es-US",e.PL_PL="pl-PL"}(Wt||(Wt={}));const Jt=[Wt.EN_US,Wt.EN_GB,Wt.EN_CA,Wt.FR_CA,Wt.FR_FR,Wt.ES,Wt.NL,Wt.NO,Wt.DE,Wt.FI_FI,Wt.SV,Wt.IT,Wt.PT_PT,Wt.PT_BR,Wt.AR_001,Wt.ZH_CN,Wt.ZH_TW,Wt.JA,Wt.KO,Wt.HU,Wt.DA,Wt.ES_US,Wt.PL_PL,Wt.RU_RU];var en;Wt.AR_001,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",e.PL="pl"}(en||(en={})),en.AR;const tn=[Wt.AR_001];function nn(e){return e.split("-")[0]}const on={"&amp;":"&"};function rn(e){let t=e;for(const o in on)Object.prototype.hasOwnProperty.call(on,o)&&e.includes(o)&&(n=o,i=on[o],t=t.replace(new RegExp(n,"g"),i));var n,i;return t}function sn(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!function(e){return tn.includes(e)}(e)?"ltr":"rtl"}var an=o("../../shared/src/common/embed/helpers.ts");const cn="_lang";var ln;!function(e){e.URL="URL",e.WINDOW="WINDOW",e.URL_MATCHING="URL_MATCHING",e.BROWSER="BROWSER"}(ln||(ln={}));var dn,un;class pn{constructor(e){this.checkoutTypes=e.checkoutTypes,this.donorPortalUrl=e.donorPortalUrl,this.window=e.window,this.campaignKey=e.campaignKey,this.customHash=e.customHash}shouldRedirect(){var e,t;return!!this.donorPortalUrl&&!!(null===(e=this.checkoutTypes)||void 0===e?void 0:e.campaignPage)&&!(null===(t=this.checkoutTypes)||void 0===t?void 0:t.checkoutModal)}getCampaignPageUrl(){return this.donorPortalUrl?function(e,t,n){const i=new URL(`${e}/page/${t}`);return i.toString()}(this.donorPortalUrl,this.customHash||this.campaignKey):""}openCampaignPage(e){return t=this,n=void 0,o=function*(){const{searchParams:t,elementType:n,element:i,checkoutData:o,checkoutIntent:r,elementTitle:s,elementName:a}=e||{},c=this.getCampaignPageUrl();if(!c)return;const l=new URL(c),d=null!=t?t:new URLSearchParams;d.set("embedClientId",e.clientId),d.set("eventTags",e.tags.join(",")),n&&d.set("elementType",n),s&&d.set("elementTitle",s),a&&d.set("elementName",a),i&&d.set("element",i),(null==o?void 0:o.fundraiser)&&d.set("fundraiser",o.fundraiser),o&&d.set("elementCheckoutData",this.encodeCheckoutData(o)),r&&d.set("checkoutIntent",this.encodeCheckoutData(r)),this.donorPortalUrl===this.window.location.origin&&d.set("fromDonorPortal","1"),e.locale.source&&[ln.URL,ln.WINDOW].includes(e.locale.source)&&d.set(cn,e.locale.code);const u=l.toString(),p=(0,an.i)(d),E=p?`?${p}`:"";(function(){const e=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);return Boolean(e)})()&&(yield new Promise((e=>setTimeout(e,200)))),this.window.location.href=`${u}${E}`},new((i=void 0)||(i=Promise))((function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}c((o=o.apply(t,n||[])).next())}));var t,n,i,o}encodeCheckoutData(e){const t=JSON.stringify(e),n=encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,((e,t)=>{const n=parseInt(t,16);return String.fromCharCode(n)}));return btoa(n)}}!function(e){e.ONLY_CAMPAIGN_PAGES="onlyCampaignPages",e.ONLY_CHECKOUT_MODAL="onlyCheckoutModal",e.BOTH_TYPES="bothTypes"}(dn||(dn={})),function(e){e.NOWHERE="nowhere",e.WIDGET="widget",e.URL="url"}(un||(un={}));var En=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const hn=(e,t,n,i,o,r,s,a,c,l,d,u,p)=>{let g=null;d.register(_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,Ut);const f=d.get(_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT);let A=!1,N=null;const y=e=>!!(n.inactiveWidgets||[]).find((t=>{let[n,i]=t;return n===e||i===e})),v=t=>En(void 0,void 0,void 0,(function*(){return e.needResolve(t)?(600,new Promise((e=>{setTimeout(e,600)}))):Promise.resolve()})),C=(e,t,n,i,o)=>En(void 0,void 0,void 0,(function*(){try{yield Promise.all([O(e,t,n,i,o),v(t)])}catch(e){A=!1,F(),console.error(e)}})),I=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return En(void 0,[e,...i],void 0,(function*(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;var o;if(A)return;const s=Gt(n.queryParams||{}),a=Date.now();N=a;const c=null===(o=t.checkoutData)||void 0===o?void 0:o.fundraiser,l=Bt(r,e),d=[l,c].filter((e=>Boolean(e)));return K(d)?""===e&&c?((e,t,n,i)=>En(void 0,void 0,void 0,(function*(){A=!0,k("",t),yield C("",e,t,n,i)})))([c],s,t,a):((e,t,n,i,o,r,s)=>En(void 0,void 0,void 0,(function*(){y(e)?U(r,e):G(e)?yield R(e,i,s):(A=!0,k(e,n),yield C(e,t,n,i,o))})))(l,d,s,t,a,n.currentCompany,i):void 0}))},S=(t,n,i)=>En(void 0,void 0,void 0,(function*(){var o;const r=yield e.resolveKeys({keys:t,livemode:n,externalQueryParams:i.queryParams});if(null===(o=null==r?void 0:r.campaign)||void 0===o?void 0:o.key){const e=r.campaign.key;if(r.forceCampaignPageOpen||G(e)){const t=new URLSearchParams(i.queryParams||{});return t.delete("form"),void(yield R(e,i,t))}}return r})),O=(e,i,o,d,E)=>En(void 0,void 0,void 0,(function*(){var h;const[m]=yield Promise.all([S(i,o,d)]),g=V(m)||H();f.tryTrackStart();const _=g?P:w,T=g?p:u;yield _(),a.emit("checkoutBeforeOpen",void 0);const A=yield T()(s,t,r,a,l,{resolvedConfig:m,trackingUrls:n.server.trackingUrls,currencyRates:n.data.currencyRates,env:n.server.env,paymentMethods:n.paymentMethods,livemode:n.livemode,isMobile:n.isMobile,isMobileSafari16:n.deviceData.isMobileSafari16,showcase:!1,externalConfig:d,integrations:n.integrations,localeCode:n.locale.code,userMeta:null===(h=n.meta)||void 0===h?void 0:h.user,infrastructureQueryParams:null==n?void 0:n.queryParams,test:d.test,checkoutOpenTimestamp:E,htmlElementStyleManager:c,embedVersion:n.version,mainDomain:n.server.mainDomain,experimentsConfig:n.experimentsConfig,browserData:n.browserData,isDebugMode:n.isDebugMode,isFundraiseupVisitor:n.isFundraiseupVisitor,isAbTestMode:n.abTestDemoMode,steplessCheckoutExperimentVariant:f.variantName,steplessCheckoutExperimentExcluded:f.excluded,fromDonorPortal:n.fromDonorPortal});A&&L({checkoutApi:A,key:e,options:d,isLivemode:o})})),R=(e,t,i)=>En(void 0,void 0,void 0,(function*(){var o,r,a,c,l,d;const u=i||new URL(window.location.href).searchParams,p=new pn({donorPortalUrl:n.staticConfig.donorPortalUrl,window,campaignKey:e}),E=(null===(o=t.checkoutData)||void 0===o?void 0:o.fundraiser)?{checkoutData:{fundraiser:null===(r=t.checkoutData)||void 0===r?void 0:r.fundraiser}}:void 0;yield p.openCampaignPage(Object.assign({elementType:null===(a=null==t?void 0:t.launcher)||void 0===a?void 0:a.elementType,elementTitle:null===(c=null==t?void 0:t.launcher)||void 0===c?void 0:c.elementTitle,elementName:null===(l=null==t?void 0:t.launcher)||void 0===l?void 0:l.elementName,element:null===(d=null==t?void 0:t.launcher)||void 0===d?void 0:d.elementKey,checkoutIntent:null==t?void 0:t.checkoutIntent,searchParams:u,clientId:s.clientId,tags:s.getTags(),locale:n.locale},E))})),w=()=>En(void 0,void 0,void 0,(function*(){const e=n.server.checkoutAssets.scripts.filter((e=>!(e.includes("checkout-rtl-styles")&&"ltr"===D()||e.includes("checkout-styles")&&"rtl"===D())));yield Promise.all(e.map((e=>E(e))))})),P=()=>En(void 0,void 0,void 0,(function*(){const e=n.server.checkoutSteplessAssets.scripts.filter((e=>!(e.includes("checkout-stepless-rtl-styles")&&"ltr"===D()||e.includes("checkout-stepless-styles")&&"rtl"===D())));yield Promise.all(e.map((e=>E(e))))})),D=()=>sn(n.locale.code),L=e=>{const{checkoutApi:t,key:n,options:o,isLivemode:r}=e;t.on("close",(e=>{const{shouldReopen:t,tributeSelected:r}=e,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["shouldReopen","tributeSelected"]);A=!1,M("checkoutClose",s),t?window.setTimeout((()=>{I(n,Object.assign(Object.assign({},o),{tributeSelected:r}))}),300):i.remove()})),t.on("checkoutIntent",(e=>{M("checkoutIntent",e)})),t.on("donationComplete",(e=>{M("donationComplete",e),x()}));const s=t.getOpenParams();M("checkoutOpen",s),setTimeout((()=>{F()}),150),b(t,r)},b=(e,t)=>{Ft().then((n=>{var i;(null===(i=null==e?void 0:e.iframeNode)||void 0===i?void 0:i.contentWindow)&&n.createTestModePanel(e.iframeNode.contentWindow,e.checkoutLocale,t)}))},U=(e,t)=>{const n=e.disabledWidgets.redirectTo;if(n===un.WIDGET)return y(e.disabledWidgets.widgetKey)?void i.remove(!0):void I(e.disabledWidgets.widgetKey);n===un.URL&&window.location.assign(e.disabledWidgets.url),i.remove(!0),console.warn(`Campaign is not active | Widget ${t} is archived`)},M=(e,n)=>{t.logCode(7,{event:e,payload:n}),setTimeout((()=>{try{a.emit(e,n)}catch(e){console.error(e)}}),0)},x=()=>{l.setField("lastSuccessDonationAt",Date.now())},k=(e,t)=>{const r="rtl"===sn(n.locale.code);i.render(!1),o.render({campaignKey:e,isMobile:n.isMobile,isLivemode:t,isRtl:r})},F=()=>{o.hide()},G=e=>!!B(e),B=e=>r.getCheckoutType(e)===dn.ONLY_CAMPAIGN_PAGES,K=e=>e.some((e=>r.exists("WIDGET",e)||r.exists("FUNDRAISING_PAGE",e))),V=e=>(f.tryStart({isMobile:n.isMobile,company:n.currentCompany,resolveData:e}),f.isTestGroup),H=()=>n.server.env!==m.PRODUCTION&&"true"===new URL(window.location.href).searchParams.get("stepless");return{getLatestStartOpenCheckoutTimestamp:()=>N,open:I,createShowcase:(e,i,o,d,p)=>(e.config.cryptoCurrencies=i,w().then((()=>{var i;return u()(s,t,r,a,l,{trackingUrls:n.server.trackingUrls,env:n.server.env,resolvedConfig:e,currencyRates:n.data.currencyRates,paymentMethods:n.paymentMethods,integrations:n.integrations,localeCode:n.locale.code,userMeta:null===(i=n.meta)||void 0===i?void 0:i.user,infrastructureQueryParams:null==n?void 0:n.queryParams,showcase:!0,isMobile:!1,isMobileSafari16:!1,livemode:!1,externalConfig:{},checkoutOpenTimestamp:0,node:d,initialScreen:p,htmlElementStyleManager:c,embedVersion:n.version,mainDomain:n.server.mainDomain,experimentsConfig:{experiments:[]},browserData:n.browserData,isDebugMode:n.isDebugMode,isFundraiseupVisitor:n.isFundraiseupVisitor,isAbTestMode:n.abTestDemoMode,fromDonorPortal:n.fromDonorPortal},o)}))),preloadCheckout:()=>{window.FUN_DISABLE_PRELOADING||(()=>{const e=n.experimentsConfig.experiments.find((e=>e.experimentId===T[_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT]));return function(e,t,n,i){if(!i||!i.enabled)return!1;const o=Ie(i,e),r=Ce(t);return o&&n&&r}(n.currentCompany.key,n.currentCompany.country,n.isMobile,e)?()=>Promise.all([w(),P()]).then():w})()()},on:(e,t)=>{a.on(e,t)},emit:M,openCheckout:(e,t)=>{var n;const{checkoutData:i,checkoutIntent:o,campaignPageSearchParams:a,queryParams:c}=(e=>{if(!e)return{};const t={},n={},i={},o=new URLSearchParams,{donation:r,supporter:s,tribute:a,designations:c,customFields:l,config:d,fundraiser:u}=e||{},p=e=>"string"==typeof e&&""!==e.trim();if(p(u)&&(n.fundraiser=u,i.fundraiser=u,o.set("fundraiser",u)),r){const{recurring:e,amount:t,currency:i}=r;p(e)&&(n.recurring=r.recurring,o.set("recurring",`${r.recurring}`)),void 0!==t&&Number.isFinite(t)&&(n.amount=Math.round(100*t),o.set("amount",`${t}`)),p(i)&&(n.currency=r.currency,o.set("currency",`${n.currency}`))}if(s){const e=Object.entries(s).filter((e=>{let[t,n]=e;return p(n)}));e.length&&(t.supporter=Object.fromEntries(e),o.set("supporter",JSON.stringify(t.supporter)))}if(a&&p(a.honoree)&&(t.tribute={inHonorOf:a.honoree,type:null,labelType:lt.IN_HONOR_MEMORY},o.set("tribute",JSON.stringify(t.tribute))),(null==c?void 0:c.length)&&p(c[0].id)&&(n.designationId=c[0].id,o.set("designationId",n.designationId)),l){n.customFields=Object.entries(l).map((e=>{let[t,n]=e;return{name:t,value:n}}));for(const{name:e,value:t}of n.customFields)o.set(e,t)}if(d){const{modifyAmount:e,modifyDesignation:t}=d;void 0!==e&&(n.modifyAmount=e,o.set("modifyAmount",n.modifyAmount?"yes":"no")),void 0!==t&&(n.modifyDesignation=t,o.set("modifyDesignation",n.modifyDesignation?"yes":"no"))}return{checkoutData:n,checkoutIntent:t,campaignPageSearchParams:o,queryParams:i}})(t);Zt({tracker:s,widgetKey:e,keysKeeper:r,elementType:h.JS_API,elementKey:"",splitTestName:"",splitTestVariant:""}),I(e,{checkoutData:i,checkoutIntent:o,queryParams:c,launcher:{elementType:h.JS_API,splitTestName:"",splitTestVariant:"",widgetKey:e,customFields:null!==(n=null==i?void 0:i.customFields)&&void 0!==n?n:[]}},a)},setOpenedCheckoutElementId:e=>{g=e},getLastOpenedCheckoutElementId:()=>g}},mn="test";let gn;class _n{static isLocaleCode(e){return void 0!==e&&Jt.includes(e)}constructor(e,t,n,i,o,r,s){this.translationService=e,this.dateFormatter=t,this.currencyFormatter=n,this.numberFormatter=i,this.company=o,this.donateToPayTokens=r,this._locale=_n.DEFAULT_LOCALE,this.availableLocales=s.availableLocales,this.locale=s.locale,this.company=o,this.donateToPayTokens=r,this.dateFormatter.intl=this}get locale(){return this._locale}get language(){return this.locale.split("-")[0]}getCurrencyFormat(){return this.currencyFormatter.getFormat()}setLocale(e){const t=this.locale;this.locale=e;const n=[this.translationService.changeLocale(this.locale)];return Promise.all(n).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){const n=rn(this.translationService.translate(e,t));return this.replaceDonateToPay(e,n)}safeTranslate(e,t){const n=rn(this.translationService.safeTranslate(e,t));return this.replaceDonateToPay(e,n)}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))}replaceDonateToPay(e,t){if("AFJCHFEK"===this.company&&this.locale===Wt.EN_US&&this.donateToPayTokens.includes(e)){const e={donation:"payment",Donation:"Payment",Donate:"Pay",donate:"pay",donating:"paying"};return t.replace(/donation|Donation|Donate|donate|donating/g,(t=>e[t]))}return t}set locale(e){this.isLocaleAvailable(e)?this._locale=e:this._locale=_n.DEFAULT_LOCALE}}function Tn(e,t){if(e===mn)return fn();const n=_n.isLocaleCode(e);return{code:n?e:_n.DEFAULT_LOCALE,source:n?t:void 0,isTest:!1}}function fn(){return{code:_n.DEFAULT_LOCALE,isTest:(void 0===gn&&(gn=!1),gn)}}function An(e,t){return{code:e,source:t,isTest:!1}}var Nn,yn;_n.DEFAULT_LOCALE=Wt.EN_US,function(e){e.DONOR="donor",e.EMBED="embed",e.TEST="test"}(Nn||(Nn={}));class vn{static get(e){switch(e){case Nn.DONOR:return Tn;case Nn.EMBED:return An;case Nn.TEST:return fn;default:throw new Error(`13 ${e}`)}}}function Cn(e){const t="^"+e.replace(/([[\]{}()+?.^$|\\/])/g,"\\$1").replace(/\*/g,".*")+"$";return new RegExp(t)}class In{constructor(e,t){this.locale=e,this.localizationConfig=t,this.next=null}setNext(e){this.next=e}handle(){return this.retrieveLocale()||(this.next?this.next.handle():null)}}class Sn extends In{retrieveLocale(){return-1!==this.localizationConfig.interfaceLocales.indexOf(this.locale)?(e=this.locale,Jt.includes(e)?this.locale:null):null;var e}}class On extends In{retrieveLocale(){var e;return(e=this.locale,this.localizationConfig.interfaceLocales.find((t=>nn(e)===nn(t))))||null}}class Rn extends In{retrieveLocale(){return nn(this.locale)===nn(this.localizationConfig.defaultLocale)?this.localizationConfig.defaultLocale:null}}class wn extends In{retrieveLocale(){return nn(this.localizationConfig.defaultLocale)===en.EN?this.localizationConfig.defaultLocale:null}}class Pn extends In{retrieveLocale(){return this.localizationConfig.interfaceLocales.find((e=>nn(e)===en.EN))||null}}!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"}(yn||(yn={}));class Dn extends In{retrieveLocale(){const e=Dn.fallbackLocales.get(this.locale);return e&&-1!==this.localizationConfig.interfaceLocales.indexOf(e)?e:null}}Dn.fallbackLocales=new Map([[yn.HA,Wt.AR_001],[yn.IU,Wt.EN_CA],[yn.GD,Wt.EN_GB],[yn.CY,Wt.EN_GB],[yn.BR,Wt.FR_FR],[yn.SQ,Wt.IT],[yn.SC,Wt.IT],[yn.NB,Wt.NO],[yn.NN,Wt.NO],[yn.HY,Wt.RU_RU],[yn.AZ,Wt.RU_RU],[yn.BE,Wt.RU_RU],[yn.CE,Wt.RU_RU],[yn.ET,Wt.RU_RU],[yn.KK,Wt.RU_RU],[yn.KY,Wt.RU_RU],[yn.LV,Wt.RU_RU],[yn.LT,Wt.RU_RU],[yn.MN,Wt.RU_RU],[yn.TG,Wt.RU_RU],[yn.UK,Wt.RU_RU],[yn.UZ,Wt.RU_RU],[yn.EU,Wt.ES],[yn.CA,Wt.ES],[yn.GL,Wt.ES]]);class Ln extends In{retrieveLocale(){return this.localizationConfig.defaultLocale}handle(){return this.retrieveLocale()}}function bn(e,t,n){const i=new Rn(e,t),o=new Sn(e,t),r=new On(e,t),s=new Dn(e,t),a=new Pn(e,t),c=new Ln(e,t),l=new wn(e,t);return o.setNext(i),i.setNext(r),r.setNext(s),n&&(s.setNext(l),l.setNext(a),a.setNext(c)),o}class Un{constructor(e,t){this.locales=e,this.companyLocalizationConfig=t}getUILocale(){const e=new Ln(this.locales[0]||"",this.companyLocalizationConfig);if(!this.locales.length)return e.handle();return function(e,t){if(!e.length)return null;for(let n=0;n<e.length;n++){const i=bn(e[n],t,n===e.length-1).handle();if(i)return i}return null}(this.locales,this.companyLocalizationConfig)||e.handle()}}class Mn{constructor(e){this.companyLocalizationSettings=e.companyLocalizationSettings,this.localeDetector=function(e){const t=e.currentUrl,n=e.queryParams,i=e.companyLocalizationSettings;return{detect:()=>{let o=n[cn],r=o?ln.URL:void 0;return o||(o=e.window[cn],r=o?ln.WINDOW:void 0),!o&&i.matchURL&&(o=(()=>{let e;return i.urlRules.forEach((n=>{const i=Cn(n.url).test(t);!e&&i&&(e=n.locale)})),e})(),r=o?ln.URL_MATCHING:void 0),!o&&i.matchBrowserLocale&&(o=e.window.navigator.languages?[...e.window.navigator.languages]:e.window.navigator.language,r=o?ln.BROWSER:void 0),{locale:(Array.isArray(o)?o:[o]).filter(Boolean),source:r}}}}({window:e.window,currentUrl:e.window.location.href,queryParams:e.queryParams,companyLocalizationSettings:e.companyLocalizationSettings})}getConfig(){const{source:e,locale:t}=this.localeDetector.detect();if(t.includes(mn))return vn.get(Nn.TEST)();const n=(i=t).filter((e=>{if(!e.includes("-")){const t=nn(e);return!i.some((n=>n!==e&&nn(n)===t&&n.includes("-")))}return!0}));var i;const o=new Un(n,this.companyLocalizationSettings).getUILocale(),r=t.includes(o)?e:void 0;return vn.get(Nn.EMBED)(o,r)}}var xn=o("./src/helpers/parseQueryParams.ts");function kn(){return"loading"!==document.readyState?Promise.resolve():new Promise((e=>{document.addEventListener("DOMContentLoaded",(()=>e()))}))}const Fn=e=>{let t=null,n=[],i=0;const o=t=>{[].forEach.call(t,(t=>{const o=r(t);if(o&&o.length){if(n.push(...o),i)return;i=window.setTimeout((()=>{i=0,e(n),n=[]}),50)}}))},r=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 n=e.querySelectorAll(".fun-widget, [href]");n&&[].forEach.call(n,(e=>t.push(e)))})),t):t};return{run:()=>{try{t=new MutationObserver(o),t.observe(document.documentElement,{childList:!0,subtree:!0})}catch(e){console.error(e)}}}},Gn=[jt.STICKY_BUTTON,jt.MESSAGE_BAR,jt.LIGHTBOX,jt.FLOATING_BUTTON];var Bn;!function(e){e.ALL="all",e.DESKTOP_ONLY="desktopOnly",e.MOBILE_ONLY="mobileOnly"}(Bn||(Bn={}));const Kn=["/","*"];function Vn(e){let t=e.replace(/(\?.*)/,"").replace(/(#.*)/,"");const n=t.charAt(t.length-1);return-1===Kn.indexOf(n)&&(t+="/"),t}const Hn=[jt.MESSAGE_BAR,jt.LIGHTBOX];const Yn=e=>{const t=document.createElement("link");t.rel="preload",t.as="script",t.href=e,document.head.appendChild(t);const n=document.createElement("script");n.src=e,n.async=!0,document.head.appendChild(n),n.onload=()=>{document.head.removeChild(t),document.head.removeChild(n)},n.onerror=()=>{document.head.removeChild(t),document.head.removeChild(n)}},jn="XFUNDEBUGPANEL",Wn=[jt.FUNDRAISING_PAGE_LINK,jt.FUNDRAISING_PAGE_INVITE_LINK,jt.LINK,jt.DIRECT_LINK,jt.DEBUG_PANEL,jt.TEST_MODE_PANEL,jt.SPLIT_TESTING,jt.JS_API];var Xn=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function zn(e,t,n,i,o,r,s){var a=this;const c=i.server.elementsUrl,l=[],d=new Map,u=new Map;let p=[];const E=()=>{window.addEventListener("popstate",A),window.addEventListener("hashchange",A);const e=history.pushState,t=history.replaceState;history.pushState=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const o=e.apply(this,n);return A(),o},history.replaceState=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];const o=t.apply(this,n);return A(),o}},m=()=>{const n=e.findElements();n.forEach((e=>{const t=d.get(e.key)||[];d.set(e.key,[...t,e]),g(e)}));const i=n.map((e=>{let{key:t}=e;return t}));t.addFundraisersKeys(i),v(n),N(i)},g=e=>{const i=t.exists("WIDGET",e.key||"");if(e.type!==h.LINK||!e.node||!i)return;const o=i=>{var s,a,c,l,d;null===(s=e.node)||void 0===s||s.removeEventListener("click",o);const u=i.target;if(u){const e=u.getAttribute("href");e&&function(e){let{tracker:t,href:n}=e;t.track(new Qt({customEventType:"urlOpenCheckout",customEventData:{href:n}}))}({tracker:r,href:e})}if(!(null===(a=e.node)||void 0===a?void 0:a.__funElement)&&(i.preventDefault(),i.stopPropagation(),e.key)){const i={queryParams:e.queryParams};if(e.node){const{test:t,variant:n}=(null===(c=window.FUN.splitTesting)||void 0===c?void 0:c.inspect(e.node))||{};t&&n&&(i.test={name:t,variant:n})}const o={tracker:r,widgetKey:e.key,keysKeeper:t,elementKey:"",elementType:h.LINK,splitTestVariant:(null===(l=i.test)||void 0===l?void 0:l.variant)||"",splitTestName:(null===(d=i.test)||void 0===d?void 0:d.name)||""};!function(e){let{tracker:t,keysKeeper:n,widgetKey:i,splitTestVariant:o,splitTestName:r,elementKey:s="",elementType:a=h.LINK}=e;t.track(new qt({widgetKey:n?Bt(n,i):i,elementKey:s,elementType:a,splitTestName:r,splitTestVariant:o}))}(o),Zt(o),n.open(e.key,i).catch((e=>console.error(e)))}};e.node.addEventListener("click",o)},_=(e,t)=>Ft().then((o=>{var r,s;o.addElements({elements:null!==(r=null==t?void 0:t.elements)&&void 0!==r?r:[],nodes:e,globalElements:null!==(s=null==t?void 0:t.globalElements)&&void 0!==s?s:[]}).then((()=>{i.disablePreloading||n.preloadCheckout()}))})),T=e=>Xn(this,void 0,void 0,(function*(){const t=s.getUrlParamsForElement(e),n=Object.assign(Object.assign({},e),{externalConfig:t,data:null});(function(e){return!Wn.includes(e.type)})(e)&&(n.data=i.livemode?e.data.live:e.data.test);const r=[n],a={params:[e.key]};o.logCode(8,{elements:r,info:a});const c=d.get(e.key);return c&&c.length?_(c,{elements:r}).then((()=>{d.delete(e.key),l.forEach((e=>e({elements:r},a)))})):(l.forEach((e=>e({elements:r},a))),Promise.resolve())})),f=e=>{const t=i.deviceData.isMobileOrTablet;p.length||(p=e);const n=e.filter((e=>{const n=function(e,t){if(function(e){return-1!==Gn.indexOf(e.type)}(e)){if(e.config.deviceRestriction===Bn.DESKTOP_ONLY&&t)return!1;if(e.config.deviceRestriction===Bn.MOBILE_ONLY&&!t)return!1}return!0}(e,t),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=Vn(e),o=0===t.length||t.some((e=>Cn(Vn(e)).test(i))),r=n.some((e=>Cn(Vn(e)).test(i)));return o&&!r}(window.location.href,e.config.urlAllow,e.config.urlBlock),o=function(e){if(function(e){return-1!==Hn.indexOf(e.type)}(e)){const{displayStartDate:t,displayEndDate:n}=e.data.live;if(!t&&!n)return!0;const i=Date.now(),o=t?Date.parse(t):null,r=n?Date.parse(n):null;if(o&&!r)return i>=o;if(!o&&r)return i<=r;if(o&&r)return i>=o&&i<r}return!0}(e),r=n&&i&&o;return r&&u.set(e.key,e),r})),r=n.map((e=>Object.assign(Object.assign({},e),{data:i.livemode?e.data.live:e.data.test})));return l.forEach((e=>e({elements:[],globalElements:r}))),o.logCode(9,{globalElements:r}),_([],{elements:[],globalElements:r})},A=()=>Xn(this,void 0,void 0,(function*(){try{if(!p.length)return;const e=p.filter((e=>!u.has(e.key)));if(!e.length)return;return o.logCode(10,{globalElements:e}),f(e)}catch(e){}})),N=e=>{-1!==e.indexOf(jn)&&T({key:jn,type:h.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}});const n=e.filter((e=>t.exists("ELEMENT",e)&&e!==jn)).map((e=>({key:e,type:t.getElementType(e)})));return!!n.length&&(n.forEach((e=>{let{key:t}=e;return y(t)})),!0)},y=e=>{Yn(`${c}elements/${e}.js`)},v=e=>{-1!==e.map((e=>{let{key:t}=e;return t})).indexOf(jn)&&T({key:jn,type:h.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}}),e.forEach((e=>{let{type:t,key:n}=e;t!==h.LINK&&t!==h.FUNDRAISING_PAGE_LINK&&t!==h.FUNDRAISING_PAGE_INVITE_LINK||T({key:n,type:t,name:"",config:{},data:{live:null,test:null}})}))};return{elementsUrl:c,initialize:()=>(Fn((()=>{var e,t;null===(e=window.FUN.splitTesting)||void 0===e||e.init(),o.logCode(19),m(),null===(t=window.FUN.splitTesting)||void 0===t||t.reset()})).run(),window.FUN_DISABLE_GLOBAL_ELEMENTS||Yn(`${c}elements-global/${i.currentCompanyKey}.js`),kn().then((()=>E())).then((()=>m())).catch((e=>console.error(e)))),createElement:function(e,t,n){for(var i=arguments.length,o=new Array(i>3?i-3:0),r=3;r<i;r++)o[r-3]=arguments[r];return Xn(a,[e,t,n,...o],void 0,(function*(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(yield Ft()).createElementByType(e,t,i,n)}))},onElementsLoad:e=>{l.push(e)},addElementContent:T,addGlobalElementsContent:f,getElements:N,getElementInstance:e=>Ft().then((t=>t.getElementInstance(e))),getRenderedElementsByType:e=>Ft().then((t=>t.getRenderedElementsByType(e)))}}const $n=/\/-\/(X[\dA-Z]{7})/,qn=/^X[\dA-Z]{7}/,Qn=new RegExp("\\/-\\/(N[\\dA-Z]{7})"),Zn=new RegExp(`${Qn.source}(?!\\/join)`),Jn=new RegExp(`${Qn.source}\\/join`),ei=/^N[\dA-Z]{7}/i,ti=/^[\dA-Z_-]{1,25}$/i,ni=/#?(FUN.{8})/i;function ii(e){return new Promise((function(t,n){oi(e,t,n)}))}function oi(e,t,n){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url),i.withCredentials=!("withCredentials"in e)||Boolean(e.withCredentials),i.onload=function(){if(this.status>=200&&this.status<300){const e=i.getResponseHeader("content-type");if(e&&-1!==e.indexOf("application/json"))try{return t(JSON.parse(i.response))}catch(e){n(e)}t(i.response)}else{if(e.validStatuses&&-1!==e.validStatuses.indexOf(this.status))return t();n(new Error(`[Shared]: Server ${e.method} response status ${this.status} for url ${e.url}, ${i.statusText}`))}},i.onerror=function(){n({status:this.status,statusText:i.statusText})};const o=e.headers;o&&Object.keys(o).forEach((function(e){i.setRequestHeader(e,o[e])}));let r=e.params;return r&&"object"==typeof r&&(r=JSON.stringify(r)),i.send(r),{abort(){i.abort()}}}const ri=window.FUN_HOST||"https://api.fundraiseup.com",si=(window.FUN_CDN,window.FUN_STATIC),ai=window.FUN_STATIC_S3||"https://static.fundraiseup.com";o.p=si||o.p;var ci=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function li(e){return(0,xn.U)(window.location.search.substring(1))[e]}var di=o("../murmur/src/murmur.ts");function ui(e){let{elementKey:t,elementType:n,widgetKey:i,queryParams:o}=e;return t&&n?Object.assign(Object.assign({},o),{type:n,elementKey:t,key:i}):Object.assign(Object.assign({},o),{type:h.DIRECT_LINK,elementKey:"",key:i})}function pi(e){const t={elementType:h.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}const Ei=/#([\da-z_-]{1,25})(\?|&|$)/i;function hi(e){const t=Ei.exec(e);return t&&t[1]?t[1]:""}class mi extends Xt{constructor(e){super(),this.payload={duration:e.duration,eventComment:{widgets:e.widgets}}}get eventType(){return"checkoutResolve"}}class gi extends Xt{get eventType(){return Vt}}var _i=o("../../shared/src/common/embed/splitTesting/constants.ts");class Ti extends Xt{constructor(e){super();const t=(0,an.UA)(location.href);t[_i.AC]&&(this.payload.splitTestName=t[_i.AC]),t[_i.$m]&&(this.payload.splitTestVariant=t[_i.AC]),e&&(this.payload.eventComment=Object.assign(Object.assign({},this.payload.eventComment),e))}get eventType(){return Kt}}class fi extends Xt{constructor(e,t){super(),this.payload={splitTestName:e,splitTestVariant:t}}get eventType(){return"testVariantSelected"}}const Ai=(e,t,n,i,r,s,a,c,l,d,u,p,E,m)=>{let g,_=!1;const T=r.fromDonorPortal,f=()=>{l.logCode(2,3);const t=[window.location.href];window.FundraiseUp.h&&window.FundraiseUp.h.match(/^https?:\/\/.+\..+\//)&&t.push(window.FundraiseUp.h);for(let i=0;i<t.length;i++){const o=t[i];l.logCode(2,4,o);const r=(0,xn.U)(o),a=r.form,d=hi(o),u={queryParams:r},p=c.exists("WIDGET",a),E=c.exists("WIDGET",d),m=p&&a||E&&d;if(m){const t=ui({elementType:c.getElementType(r.element),elementKey:r.element,widgetKey:m,queryParams:r}),n=pi(t);Zt({tracker:s,widgetKey:m,keysKeeper:c,elementType:t.type,elementKey:t.elementKey,splitTestName:"",splitTestVariant:""});const i=Object.assign(Object.assign({},u),{launcher:n});return e.open(m,i)}const g=c.getElementType(a);if(g===h.P2P_BUTTON||g===h.P2P_LINK)return l.logCode(2,5),n.open(a);if(ei.test(a))return l.logCode(2,6),n.open(a);if(a&&ti.test(a))return l.logCode(2,6),n.openByFundraiserSlug(a)}return Promise.resolve()},A=()=>{!function(e,t){if(t.get()||t.set({disableIsFundraiseupVisitor:!1,elements:{showAllGlobalElementsInTestEnv:!1},settings:{}},{path:e.location.pathname}),e.querySelector(`iframe#${jn}`))return;const n="#"+jn,i=e.createElement("a");i.setAttribute("href",n),i.style.display="none",e.body.appendChild(i)}(document,d)},N=()=>{return e=void 0,t=void 0,i=function*(){if(!r.abTestMode)return;const{SplitTesting:e}=yield o.e(707).then(o.bind(o,"./src/splitTesting/SplitTesting.ts"));g=new e({keysKeeper:c,clientId:s.clientId,api:window.FundraiseUp,companyKey:r.currentCompanyKey,demoMode:r.abTestDemoMode,onVariantSelect:e=>{let{testName:t,variantName:n}=e;s.track(new fi(t,n))},onReset:()=>{g.allVariantNodes.forEach((e=>{const t=[].slice.call(e.querySelectorAll('a[href^="#X"],a[href^="#x"]')).some((e=>c.exists("ELEMENT",e.hash.replace("#",""))));if(t)return void l.log("Split Testing: on reset",{hasElement:t});const n=u.getNodeParams(e),i=u.extractNodeParams(e)||n,o=null==i?void 0:i.key;o&&c.exists(["WIDGET","ELEMENT"],o)?l.log("Split Testing: known key",{key:o}):Ft().then((t=>t.createElementByType(h.SPLIT_TESTING,{elementKey:"",elementType:h.SPLIT_TESTING,elementName:h.SPLIT_TESTING,config:{},elementFoundTimestamp:Date.now()},!1,e).catch((e=>console.error(e)))))}))}}),g.init()},new((n=void 0)||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}));var e,t,n,i},y={get experiments(){return E},get splitTesting(){return g},get livemode(){return r.livemode},get version(){return r.version},get initialized(){return _},init:()=>_?(l.logCode(1),Promise.resolve()):(p.incrementSession(),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 n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.addWidgetKeys(i),t.apply(window.FUN_WIDGET_KEYS,i)}}}(c),function(e){window.FUN_ELEMENT_KEYS={add(t,n){e.addElementKeys(t,n)}}}(c),(()=>{const e=function(e){return{gaDetectResult:{gtag:Boolean(e.gtag),ga:Boolean(e.ga&&e.ga.create),ga4:Boolean(e.dataLayer)}}}(window),t=function(e){return e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches}(window);s.track(new Ti(Object.assign(Object.assign({},e),{darkMode:t}))),window.addEventListener("beforeunload",(()=>{s.track(new gi)})),a.onResolve(((e,t)=>{s.track(new mi({widgets:[e.campaign.key],fundraisingPages:e.fundraisingPage?[e.fundraisingPage.key]:[],duration:t.duration}))}))})(),function(e,t){const n=(e,n)=>"string"!=typeof e?e[0](t):t[e](...[].slice.call(n));return{init:()=>{e.l.forEach((e=>{n(...e)})),e.l.push=e=>(n(...e),e.length)}}}(window.FundraiseUp,e).init(),Promise.all([N(),t.initialize(),f(),T?Promise.resolve():function(){if("yes"===li("fundraiseupDebug")){const e=prompt("");if(e)return 1648622467===(0,di.A)(e)}return"yes"===li("fundraiseupABTestDebug")}()?kn().then((()=>A())):Promise.resolve()]).then((()=>{_=!0,window.FUN_STARTUP_HOOK&&window.FUN_STARTUP_HOOK(),null==g||g.reset()}))),checkout:e,elements:t,forms:n,services:i,config:r,tracker:s,debug:function(){const e=new Date;e.setFullYear(e.getFullYear()+5),m.set(!0,{expires:e})}};return T||(y.showDebugPanel=A),y};var Ni;function yi(e){return null!=e}!function(e){e.DATA="/data",e.DONATION_FORM_PRESETS="/default/predict_default_amounts/v3.1",e.DEFAULT_FREQUENCY="/getDefaultFrequency/v3"}(Ni||(Ni={}));var vi=o("./src/helpers/parseHref.ts");const Ci=(e,t)=>{const n=new WeakMap,i=i=>{if("fun"===i.getAttribute("data-ignore"))return null;const o=i.getAttribute("href")||"";let r=(0,vi.d)(o);const s=(0,xn.U)(o);if($n.test(o)){const e=$n.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=h.TEXT_LINK}}if(Zn.test(o)){const e=Zn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=h.FUNDRAISING_PAGE_LINK}}if(Jn.test(o)){const e=Jn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=h.FUNDRAISING_PAGE_INVITE_LINK}}o==="#"+jn&&(r||(r={}),r.key=jn,r.type=h.DEBUG_PANEL),s.form&&(r||(r={}),r.key=s.form,Object.assign(r,s));const a={type:h.LINK,key:"",elementFoundTimestamp:0};if(r){const t=r.type||function(e,t,n){if(/^[#?]/.test(n))return!0;const i=e.split("#")[0],o=t.split("#")[0],r=t.split("?")[0];return i===o||i===r||e.split("?")[0]===r}(i.href,window.location.href,o);if(!t)return null;a.key=r.key;const n=r.type||e.getElementType(a.key);a.type=n||h.LINK}else a.key=function(e,t){if(e.getAttribute)return e.getAttribute("data-key")||void 0}(i)||"";return-1!==[h.LINK,h.FUNDRAISING_PAGE_LINK,h.FUNDRAISING_PAGE_INVITE_LINK,h.TEXT_LINK].indexOf(a.type)&&(a.queryParams=s),a.key&&(a.type!==h.LINK||e.exists("ELEMENT",a.key)||e.exists("WIDGET",a.key))?(a.key=Bt(e,a.key),a.node=i,a.elementFoundTimestamp=Date.now(),t.logCode(12,{params:a}),n.set(a.node,a),a):null};return{getNodeParams:e=>n.get(e),findElements:()=>{const e=document.querySelectorAll(".fun-widget, a[href]");return t.logCode(11,{primaryNodes:e}),o=[].slice.call(e),t.logCode(13,{nodes:o}),o.filter((e=>!n.has(e))).filter((e=>(e=>"function"!=typeof document.contains||document.contains(e))(e))).map((e=>i(e))).filter(yi);var o},extractNodeParams:i}};class Ii{constructor(e){var t;this.customHashToKeyIndex=new Map,this.keyToCustomHashIndex=new Map,this.originalKeyIndex=new Map,this.elementsMap=new Map,this.fundraisersMap=new Map,this.campaignGroupMap=new Map,this.campaignSubGroupMap=new Map,this.index=new Map,this.processCampaignsKeys([...(t=e.campaignKeyGroups,Object.values(t).map((e=>Object.values(e))).flatMap((e=>e)).flatMap((e=>e))),...e.inactiveWidgets]),this.processCampaignsKeyGroups(e.campaignKeyGroups),this.processElementKeys(e.elements)}processCampaignsKeys(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{const[t,n]=e,i=this.normalize(t);if(this.index.set(i,"WIDGET"),this.originalKeyIndex.set(i,t),n){const e=this.normalize(n);this.index.set(e,"WIDGET"),this.customHashToKeyIndex.set(e,t),this.keyToCustomHashIndex.set(i,n),this.originalKeyIndex.set(e,n)}}))}processCampaignsKeyGroups(e){Object.entries(e).forEach((e=>{let[t,n]=e;Object.entries(n).forEach((e=>{let[n,i]=e;i.forEach((e=>{const[i]=e,o=this.normalize(i);this.campaignGroupMap.set(o,t),this.campaignSubGroupMap.set(o,n)}))}))}))}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(jn),"ELEMENT"),this.elementsMap.set(this.normalize(jn),jt.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?ni.test(this.normalize(t)):"ELEMENT"===e?qn.test(t):ei.test(t)}normalize(e){if(!e)return"";const t=e.slice("#"===e[0]?1:0);return ni.test(t)||qn.test(t)||ei.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=>ei.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))}getCheckoutType(e){return this.campaignGroupMap.get(this.normalize(e))}getAskPageType(e){return this.campaignSubGroupMap.get(this.normalize(e))}}var Si=o("./src/preloader/backdrop.css"),Oi=o.n(Si);function Ri(e,t){if(e.body)return t();setTimeout(Ri.bind(null,e,t),10)}const wi="fun-widget-backdrop-spinner";class Pi{constructor(e,t,n){this.targetWindow=e,this.scrollLocker=t,this.eventEmitter=n,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(Pi.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()):Ri(this.targetWindow.document,(()=>{this.container&&(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock())})),this.eventEmitter.emit("backdropOpen",void 0)),this}setStyle(){this.targetWindow.document.head.insertAdjacentHTML("afterbegin",`<style id="${Pi.styleId}">${Oi()}</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.eventEmitter.emit("backdropClose",null),this):(this.container.style.transition="opacity .2s ease",this.container.addEventListener("transitionend",(()=>{this.container&&(this.container.remove(),this.container=null,this.eventEmitter.emit("backdropClose",null))})),this.container.style.opacity="0",this):this}hideSpinner(){if(!this.container)return console.warn(3),this;const e=this.container.querySelector(`#${wi}`);return e&&e.remove(),this}showSpinner(){return this.container?(this.container.insertAdjacentHTML("afterbegin",`<div id=${wi} class="fun-widget-backdrop" />`),this):(console.warn(3),this)}}Pi.styleId="__funBackdropStyles";const Di=(e,t,n)=>n.indexOf(e)===t,Li=Symbol("CUSTOM_FINGERPRINT");var bi;Symbol("EXTRA"),Symbol("TAGS"),function(e){e.COMMON="common",e.ADMIN="admin",e.DASHBOARD="dashboard",e.DONOR_PORTAL="donorPortal",e.CAMPAIGN_PAGE="campaign-page",e.INTEGRATION="integration",e.BILLING="billing",e.CHECKOUT="checkout",e.CHECKOUT_STEPLESS="checkout-stepless",e.EMAILS="emails"}(bi||(bi={}));var Ui=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Mi=new Map;class xi{constructor(e){this.options=e,this.abortController=function(){try{return void 0!==window.AbortController}catch(e){return!1}}()?new AbortController:null}abort(){var e;null===(e=this.abortController)||void 0===e||e.abort()}send(){return Ui(this,void 0,void 0,(function*(){var e,t;const n=this.getUrl(),i=this.getHeaders(),o=this.getBody(),r=this.getCredentials();let s;try{s=yield fetch(n,{method:this.options.method,signal:null===(e=this.abortController)||void 0===e?void 0:e.signal,headers:i,credentials:r,body:o})}catch(e){const t=e instanceof Error?e.message:"Network Error";throw new ki(0,t,this.options.method,this.options.url,null==e?void 0:e.name,this.options.setCustomFingerprint)}const a=s.status;let c;const l=s.headers.get("content-type");if(c=(null==l?void 0:l.includes("application/json"))?yield s.json():yield s.text(),a>=500&&this.options.rejectOnInvalid)throw new ki(a,s.statusText,this.options.method,this.options.url,"",this.options.setCustomFingerprint);const d=a>=200&&a<400||(null===(t=this.options.validStatuses)||void 0===t?void 0:t.includes(a));return{data:c,valid:Boolean(d)}}))}getHeaders(){const e=new Headers,t=this.options.headers;return t&&Object.keys(t).forEach((n=>{const i=t[n];void 0!==i&&e.append(n,i)})),e}getBody(){return void 0!==this.options.params&&"GET"!==this.options.method?JSON.stringify(this.options.params):null}getUrl(){let e=this.options.url;if("GET"===this.options.method&&this.options.params){const t=new URLSearchParams;for(const e of Object.keys(this.options.params))void 0!==this.options.params[e]&&t.set(e,String(this.options.params[e]));e+=`?${t.toString()}`}return e}getCredentials(){return"withCredentials"in this.options?this.options.withCredentials?"include":"omit":"include"}}class ki extends Error{constructor(e,t,n,i,o,r){super(`[Checkout Shared]: Server ${n} response status ${e}, ${t} for url ${i}`),this.originalErrorName=o,r&&(this[Li]=[i,t]),this.statusCode=e}}Error;const Fi=(e,t,n,i,o)=>{const r=t.filter((t=>e.exists("WIDGET",t))),s=t.filter((t=>e.itLooksLikeKey("FUNDRAISING_PAGE",t))),a={campaign:r[0],fundraisingPage:void 0,locale:n,pageViewId:i},c=null==o?void 0:o.fundraiser;if(c){const e=(d=l=c,ei.test(d)?l.toUpperCase():(e=>ti.test(e))(l)?l:"");if(e)return a.fundraisingPage=e,a}var l,d;return s.length&&(a.fundraisingPage=s[0]),a};var Gi=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function Bi(e,t,n,i,o){const r=[],s=new Map,a=!0===window.FUN_DASHBOARD,c=c=>Gi(this,[c],void 0,(function*(c){let{keys:p,livemode:E,externalQueryParams:h}=c;var m;const g=Object.assign(e.queryParams||{},h),_=Fi(t,p,e.locale.code,null===(m=i.page)||void 0===m?void 0:m.pageViewId,g);if(l(_))return n.logCode(16),Promise.resolve();n.logCode(17,_);const T=u(E),f=Date.now();let A;const N=d(_),y=s.get(N);y&&!a?A=y:(A=yield function(e){return Ui(this,void 0,void 0,(function*(){const t=new xi(e),n=Mi.get(e.url);e.cancelSimilar&&n&&n(),Mi.set(e.url,t.abort.bind(t));try{const n=yield t.send();return Mi.delete(e.url),n}catch(t){throw"AbortError"!==(null==t?void 0:t.originalErrorName)&&Mi.delete(e.url),t}}))}({method:"POST",url:T,headers:{"content-type":"text/plain; charset=utf-8"},params:_}).then((e=>e.data)).catch((e=>{throw o.captureException(e),e})),s.set(N,A));const v={params:p,duration:Date.now()-f};return r.forEach((e=>e(A,v))),n.logCode(18,{data:A,info:v}),A})),l=e=>!e.campaign&&!e.fundraisingPage,d=e=>{const t=[];return e.campaign&&t.push(e.campaign),e.fundraisingPage&&t.push(e.fundraisingPage),t.join("_")},u=t=>{const n=null!=t?t:e.livemode;return`${e.server.resolveUrl}&livemode=${n?"true":"false"}`};return{resolveFundraisingPages:e=>(n.logCode(14,e),c({keys:e})),resolveKeys:e=>{let{keys:i,livemode:o,externalQueryParams:r}=e;const s=i.filter(Di).filter((e=>(e=>t.exists("WIDGET",e)||t.itLooksLikeKey("FUNDRAISING_PAGE",e))(e)));return s.length?(n.logCode(15,{keys:i}),c({keys:s,livemode:o,externalQueryParams:r})):Promise.resolve()},onResolve:e=>{r.push(e)},needResolve:e=>!s.has(e.join("_"))}}class Ki{constructor(){this.events=new Map}on(e,t){const n=this.events.get(e)||[];n.push(t),this.events.set(e,n)}off(e,t){const n=(this.events.get(e)||[]).filter((e=>e!==t));this.events.set(e,n)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.events.get(e)||[]).forEach((e=>e(...n)))}}class Vi{constructor(e){this.window=e}saveDocumentOriginalStyles(){const e=()=>{this.saveOriginalStyles(this.window.document.body),this.saveOriginalStyles(this.window.document.documentElement)};if(this.window.document.body)return e();Ri(this.window.document,e)}setStyle(e,t){t.setAttribute("style",e)}appendStyle(e,t){const n=(t.getAttribute("style")||"")+e;t.setAttribute("style",n)}restoreOriginalStyles(e){let t="";this.originalStyles.has(e)&&(t=this.originalStyles.get(e)),e.setAttribute("style",t),this.originalStyles.delete(e)}saveOriginalStyles(e){if(this.originalStyles.has(e))return;const t=e.getAttribute("style")||"";this.originalStyles.set(e,t)}get originalStyles(){return this._originalStyles||(this._originalStyles=new WeakMap),this._originalStyles}}class Hi{constructor(e,t){this.window=e,this.isMobile=t,this.isLocked=!1}lock(){this.isLocked||(this.saveDefaultStyles(),this.bodyStyle.setProperty(Hi.overflowStyleProp,"hidden","important"),this.isMobile||(this.bodyStyle.setProperty(Hi.heightStyleProp,"auto","important"),this.bodyStyle.setProperty(Hi.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(Hi.overflowStyleProp),priority:this.bodyStyle.getPropertyPriority(Hi.overflowStyleProp)},this.isMobile||(this.height={value:this.bodyStyle.getPropertyValue(Hi.heightStyleProp),priority:this.bodyStyle.getPropertyPriority(Hi.heightStyleProp)},this.minHeight={value:this.bodyStyle.getPropertyValue(Hi.minHeightStyleProp),priority:this.bodyStyle.getPropertyPriority(Hi.minHeightStyleProp)})}restoreDefaultStyles(){var e,t,n;(null===(e=this.overflow)||void 0===e?void 0:e.value)?this.bodyStyle.setProperty(Hi.overflowStyleProp,this.overflow.value,this.overflow.priority):this.bodyStyle.removeProperty(Hi.overflowStyleProp),this.isMobile||((null===(t=this.height)||void 0===t?void 0:t.value)?this.bodyStyle.setProperty(Hi.heightStyleProp,this.height.value,this.height.priority):this.bodyStyle.removeProperty(Hi.heightStyleProp),(null===(n=this.minHeight)||void 0===n?void 0:n.value)?this.bodyStyle.setProperty(Hi.minHeightStyleProp,this.minHeight.value,this.minHeight.priority):this.bodyStyle.removeProperty(Hi.minHeightStyleProp))}}Hi.overflowStyleProp="overflow",Hi.heightStyleProp="height",Hi.minHeightStyleProp="min-height";class Yi{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}}class ji extends Xt{constructor(e){super(),this.payload={dataLayerEventName:e.event,dataLayerParams:JSON.stringify(e)}}get eventType(){return Yt}}class Wi extends Xt{get eventType(){return"ping"}}function Xi(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):encodeURIComponent(e):e}function zi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:19;const t=window.crypto||window.msCrypto;let n="";if(t&&"function"==typeof t.getRandomValues){const i=new Uint8Array(e);t.getRandomValues(i),n=[].slice.call(i).map((e=>e%10)).join("")}else for(let t=0;t<e;t++)n+=Math.floor(10*Math.random()).toString();return"0"!==n[0]?n:zi(e)}var $i=o("../../clickhouse/mapper/index.js");function qi(e){return!!e&&20===e.length&&!/[^\d]/.test(e)}class Qi extends Error{constructor(e){super(e),this.name=this.constructor.name}}class Zi extends Qi{constructor(e){super(`Invalid client ID: ${e}`),this.name="InvalidClientIdError"}}class Ji{constructor(){this.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})}}function eo(){const e=function(){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 n="function"==typeof t.resolvedOptions&&t.resolvedOptions();if("object"!=typeof n)return;const i=n.timeZone;if(!i)return;return i}}();return e||function(){const e=-(new Date).getTimezoneOffset()/60;return e>=0?`UTC+${e}`:`UTC${e}`}()}class to{constructor(e,t){var n;this.window=e,this.publicApi=t,this._pageScripts=[],this.sideLibrariesLookupTries=1,this.launchedSiteScripts=[],this.clientCookieConsent=[],this.pageViewId=zi(),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=`${n=this.pageViewId.slice(0,-1)}${function(e){const t=e.toString().replace(/[^0-9]/g,""),n={0:0,1:2,2:4,3:6,4:8,5:1,6:3,7:5,8:7,9:9};let i=0,o=1;for(let e=t.length-1;e>-1;e-=1)i+=o?n[t[e]]:parseFloat(t[e]),o^=1,i>0xffffffffffff&&(i%=10);return(10-i%10).toString().slice(-1)}(n)}`,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),nextjs:this.getNextJs.bind(this),wix:this.getWix.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:n}=t;return n&&!!n.match(e)}))}collectFunCookies(){const e=this.window.document.cookie.split(";").filter((e=>-1!==e.indexOf("fundraiseup_")));this.clientCookieConsent=e.map((e=>e.split("=")[0].trim()))}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 this.collectFunCookies(),{pageViewId:this.pageViewId,pageViewTimeCreate:this.pageViewTimeCreate,pageViewLifetime:Math.max(Date.now()-this.pageViewTimeCreate,0),clientTimeZone:eo(),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:"",clientCookieConsent:this.clientCookieConsent}}applyNavigatorVariables(e){var t;const n=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="number"==typeof e.level?e.level:0})).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,n&&(this.clientConnectionType=n.type,this.clientConnectionDownlink=this.formatConnectionDownlink(n.downlink),this.clientConnectionRTT=n.rtt,this.clientConnectionEffectiveType=n.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}getNextJs(){var e;return window.next||window.__next_f||(null===(e=this.window.document)||void 0===e?void 0:e.querySelector('[src*="_next/static/"]'))}getWix(){return window.wixCustomElements||window.wixEmbedsAPI||window.wixTagManager}formatConnectionDownlink(e){const t=e||0;return"string"==typeof t?parseFloat(t)||0:t}}const no=[/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,/LinkedInApp/i,/gsa/i];var io=o("../../shared/src/common/embed/tracking/constants.ts");const oo=[/^gtm\..*$/,/^__cmp.*$/,/^optimize\..*$/,/^setPromo$/,/^trackOptanonEvent$/,/^consentDataForTheRecord$/,/^optanonConsentUpdated$/,/^nextroll-consent$/,/^FundraiseUp\./,/^youtube/i];class ro{constructor(e){let{window:t,companyKey:n,storage:i,trackerClient:o,source:r,supporterKey:s,agentKey:a,livemode:c,localeCode:l,isFundraiseupVisitor:d,shadowUserKey:u,shadowAdminId:p,isABTestMode:E,fromDonorPortal:h,serverClientId:m}=e;var g;this.observer=new Yi,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=o,this.livemode=c,this.companyKey=n,this.CIDStorage=i,this.subscriberStorage=new Ji,this.uaIsInApp=(g=t.navigator.userAgent,no.some((e=>e.exec(g)))),this.source=r,this.supporterKey=s,this.agentKey=a,this.clientLocale=l,this.isFundraiseupVisitor=d,this.shadowUserKey=u,this.shadowAdminId=p,this.isABTestMode=E,this.fromDonorPortal=h,this.serverClientId=m}get page(){return this._page}get clientId(){if(this._clientId&&!qi(this._clientId))throw new Zi(this._clientId);return this._clientId}get isPingAvailable(){return Date.now()-this.eventSent>this.pingDelay}start(){if(this.preStartOptionsValidation(),this.started)throw new Error("16");this._page=new to(this.window,this.window.FundraiseUp),this.setupCookies(),this.started=!0,this.isTouchDevice="ontouchstart"in window||!!navigator.maxTouchPoints,this.initializeHandleClick(),this.initializeDataLayerTracking(),this.initializePointerUsageTracking()}preStartOptionsValidation(){if(!this.companyKey)throw new Error("15")}setupCookies(){this.cookiesUnsetable||(this.read(),this.refresh())}subscribe(e,t){this.subscriberStorage.subscribe(e,t)}setEventTags(e){e.forEach((e=>this.tags.add(e)))}getTags(){return Array.from(this.tags)}removeEventTags(e){this.tags.forEach((t=>{e.some((e=>t.substring(0,e.length)===e))&&this.tags.delete(t)}))}ping(e,t){if(!this.isPingAvailable)return;const n=e||new Wi;this.track(n,t)}customTrack(e){this.track(new Qt({customEventType:e.type,customEventData:e.data}))}track(e,t){if(!this.started)return;const n=this.page&&this.page.toObject()||{},i=Object.assign({},this.trackerPayloadPartial);if(Object.keys(n).forEach((e=>{i[e]=n[e]})),i.livemode=this.livemode?1:0,e.merge(i),this.mergeEventTags(e),!e.validate())return;const o=e.toObject();o.source=this.source,this.observer.publish(e.eventType,o),this.trackerClient.send(o,t),this.eventSent=Date.now(),this.publishData(o)}initializePointerUsageTracking(e){if(this.pointingDeviceIsUsed)return;const t=e||this.window,n=()=>{this.pointingDeviceIsUsed=!0,t.removeEventListener("pointermove",n),t.removeEventListener("pointerdown",n),t.removeEventListener("pointerup",n)};t.addEventListener("pointermove",n),t.addEventListener("pointerdown",n),t.addEventListener("pointerup",n)}initializeHandleClick(){const e=this.trackerEventClick;e&&this.window.addEventListener("click",(t=>{t.target&&this.track(new e(t.target))}))}get trackerPayloadPartial(){const e={clientId:this.clientId,companyKey:this.companyKey,supporterKey:this.supporterKey,clientLocale:this.clientLocale,pointingDeviceIsUsed:this.pointingDeviceIsUsed?1:0,isFundraiseupVisitor:this.isFundraiseupVisitor,uaIsInApp:this.uaIsInApp?1:0};return this.fromDonorPortal&&(e.eventComment={fromDonorPortal:1}),e}refresh(){this._clientId||this.createOrSetClientId(this.CIDStorage.get()),this.write()}createOrSetClientId(e){this._clientId=e&&"undefined"!==e&&20===e.length?e:(Date.now().toString()+zi(20)).slice(0,20)}write(){this._clientId&&this.CIDStorage.set(this.clientId,{expires:3650,domain:this.CIDStorage.topLevelDomain,sameSite:"Lax"})}read(){const e=(0,an.UA)(this.window.location.href)[io.v]||"",t=this.CIDStorage.get()||"";qi(e)?this._clientId=e:qi(t)?this._clientId=t:qi(this.serverClientId)?this._clientId=this.serverClientId:this._clientId=""}initializeDataLayerTracking(){if(this.window.dataLayer||(this.window.dataLayer=[]),!Array.isArray(this.window.dataLayer))return;const e=this.window.dataLayer,t=e=>this.isABTestMode&&"object"==typeof e&&"string"==typeof e.event&&!oo.some((t=>t.test(e.event))),n=e=>{t(e)&&this.track(new ji(e))};e.forEach(n);const i=e.push;e.push=function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return n(o[0]),i.apply(e,o)}}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 so{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}get isPingAvailable(){return this.tracker.isPingAvailable}getTags(){return Array.from(this.tags)}customTrack(e){return this.tracker.customTrack(e)}track(e,t){return this.tracker.track(e,t)}ping(e,t){const n=e||new Wi;this.tracker.ping(n,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}}class ao extends so{constructor(e,t){let{funEmbedRelease:n,isFundraiseupVisitor:i}=t;super(e),this.funEmbedRelease=n,this.isFundraiseupVisitor=i}track(e,t){this.addTrackerData(e),this.tracker.track(e,t)}addTrackerData(e){e.merge({funEmbedRelease:this.funEmbedRelease,isFundraiseupVisitor:this.isFundraiseupVisitor}),this.mergeEventTags(e)}customTrack(e){this.track(new Qt({customEventType:e.type,customEventData:e.data}))}}class co{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)}}var lo;!function(e){e.CHECKOUT="checkout"}(lo||(lo={}));const uo=[Vt,"click",Kt,"checkoutClose",Ht];class po{constructor(e){this.request=ii,this.possibleAdBlockersErrorMessages=["Failed to fetch","NetworkError when attempting to fetch resource.","Load failed"],this.window=e.window,this.url=e.url,this.trackingTarget=e.trackingTarget,this.env=e.env,this.bulk=new co({limit:30,onFlush:e=>this.sendRequests(e)})}send(e,t){if((window.FUN_DO_NOT_TRACK||this.isBlockedByDomain())&&(!t||t&&t.trackerType!==lo.CHECKOUT))return;const n=function(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={encode:!0,strict:!0,arrayFormat:"none"};Object.assign(n,t),!1===n.sort&&(n.sort=function(){});const i=function(e){return function(t,n){return null===n?Xi(t,e):[Xi(t,e),"=",Xi(n,e)].join("")}}(n);return e?Object.keys(e).sort(n.sort).map((function(t){const o=e[t];if(void 0===o)return"";if(null===o)return Xi(t,n);if(Array.isArray(o)){const e=[];return o.slice().forEach((function(n){void 0!==n&&e.push(i(t,n,e.length))})),e.join("&")}return Xi(t,n)+"="+Xi(o,n)})).filter((function(e){return e.length>0})).join("&"):""}((0,$i.compressPayload)(e))}(e),i=(null==t?void 0:t.url)||this.url;let o=-1!==uo.indexOf(e.eventType);e.eventType===Yt&&-1!==this.window.location.href.indexOf("alz.org")&&(o=!0),this.bulk.push({url:i+this.trackingTarget,payload:n},o)}isBlockedByDomain(){return this.env===dt.PRODUCTION&&(!!window.location.protocol.includes("file")||/127\.0|192\.168|localhost|localtest\.me/.test(window.location.hostname))}sendRequests(e){const t=function(e){const t=new Map;return e.forEach((e=>{let{url:n,payload:i}=e;const o=t.get(n)||[];o.push(i),t.set(n,o)})),t}(e);t.forEach(((e,t)=>{const n=JSON.stringify(e);this.sendRequest(t,n)}))}sendRequest(e,t){let n=!1;try{this.sendFetchRequest(e,t)}catch(e){n=!0}n&&this.request({method:"POST",url:e,params:t}).catch(console.warn)}sendFetchRequest(e,t){fetch(e,{method:"POST",body:t,keepalive:!0}).catch((e=>{if(console.warn(e),!this.possibleAdBlockersErrorMessages.some((t=>e.message.includes(t))))throw e}))}}const Eo=["APZMZAGU","AZFMPNQE","ARVHGABZ","AGSTXLKM"];function ho(t,n){return function(t){return t!==e.TESTING}(t)?{domain:n,sameSite:"None",secure:!0}:{domain:n}}class mo{constructor(e,t,n,i){this.env=e,this.topLevelDomain=t,this.storage=n,this.options=i}setupFuncCookie(){var e,t;if(null===(e=this.options)||void 0===e?void 0:e.disableNewCookies)return;const n=this.getCookie(r.e.FUNC),i=this.getCookie(r.e.SESSION);!n&&i&&(this.setCookie(r.e.FUNC,i),(null===(t=this.options)||void 0===t?void 0:t.removeLegacyCookies)&&this.removeLegacyCookie())}removeLegacyCookie(){this.removeCookie(r.e.SESSION)}get cookieAttributes(){return ho(this.env,this.topLevelDomain)}getCookie(e){return this.storage.get(e)}setCookie(e,t){this.storage.set(e,t,this.cookieAttributes)}removeCookie(e){this.storage.remove(e,this.cookieAttributes)}}var go=o("../../shared/src/common/embed/getSharedContainer.ts"),_o=o("./src/splitTesting/getTLD.ts");class To{constructor(e){this.topLevelDomain=e,this.storage=u(r.e.PERFORMANCE,d.STRING)}get(){return this.storage.get()}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.storage.set(n.ENABLED,e)}}class fo{constructor(e,t){this.storage=e,this.initAt=t||(new Date).getTime(),this.read()}incrementSession(){this.sessionPage++,this.refresh()}refresh(){this.sessionAt||this.addSession(),this.write()}addSession(){this.sessionAt=this.initAt}write(){this.storage.setField("sessionAt",this.sessionAt.toString(10)),this.storage.setField("sessionPage",this.sessionPage)}read(){this.sessionAt=Number(this.storage.getField("sessionAt"))||0,this.sessionPage=Number(this.storage.getField("sessionPage"))||0}}class Ao{constructor(e){this.dictionary=new Map,this.reverseDictionary=new Map;for(const t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;const n=e[t];this.dictionary.set(t,n),this.reverseDictionary.set(n,t)}}zip(e){return this.zipKeys(this.toFlatData(e))}unzip(e){return this.fromFlatData(this.unzipKeys(e))}unzipKeys(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.dictionary.get(n);i?t[i]=e[n]:console.error(`The key for the "${n}" field was not found`)}return t}zipKeys(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.reverseDictionary.get(n);i?t[i]=e[n]:console.error(`The minification key for the "${n}" field was not found`)}return t}toFlatData(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=e[n];if(No(i)){t[n]=i;continue}const o=this.toFlatData(i);for(const i in o)Object.prototype.hasOwnProperty.call(e,n)&&(t[n+"."+i]=o[i])}return t}fromFlatData(e){let t={};return Object.keys(e).forEach((n=>{const i=e[n],o=n.split("."),r={};let s;o.forEach(((e,n)=>{if(o.length===n+1)return s?void(s[e]=i):void(r[e]=i);const a=e;if(t[a])s=t[a];else{if(s)return s[e]||(s[e]={}),void(s=s[e]);r[e]={},s=r[e]}})),t=Object.assign({},t,r)})),t}}function No(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e||Array.isArray(e)}class yo{constructor(e,t,n){this.storage=e,this.zipper=t,this.disableNewCookies=n}getData(){const e=this.storage.get(this.key);return e?this.zipper.unzip(e):{}}setData(e,t){const n=this.zipper.zip(e);this.storage.set(this.key,n,t)}removeData(e){this.storage.remove(this.key,e)}}class vo extends yo{constructor(){super(...arguments),this.key=r.e.FUNC}get available(){if(this.disableNewCookies)return!1;const e=Boolean(this.storage.get(r.e.CID));return!e||e&&Boolean(this.storage.get(this.key))}}class Co extends yo{constructor(){super(...arguments),this.key=r.e.SESSION}get available(){return!!this.disableNewCookies||Boolean(this.storage.get(r.e.CID))&&Boolean(this.storage.get(this.key))}}const Io={topLevelDomain:"topLevelDomain",t:"topLevelDomain",ida:"intent.donation.amount",idc:"intent.donation.currency",idr:"intent.donation.recurring",idf:"intent.donation.frequency",idh:"intent.donation.selectedHintId",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",ife:"intent.feeCovered",mm:"messageBar.manuallyClosed",pi:"popup.interactionAt",fbp:"floatingButtonPopupShown",sl:"socialProof.lastChargeAt",si:"socialProof.interactionAt",sls:"socialProof.lastShownCharge",nsa:"socialProof.nextShowAt",li:"lightbox.interactionAt",lsda:"lastSuccessDonationAt",s:"sessionAt",sp:"sessionPage",x:"xFactor"};class So{constructor(e,t,n){this.funLegacyStorage=e,this.funFuncStorage=t,this.disableNewCookies=n}get available(){return this.disableNewCookies?this.funLegacyStorage.available:this.funFuncStorage.available}get isFuncStorageInitialized(){const e=this.funFuncStorage.getData();return!!Object.keys(e).length}getData(){return this.funFuncStorage.available&&this.isFuncStorageInitialized?this.funFuncStorage.getData():this.funLegacyStorage.getData()}initialize(e,t){this.funFuncStorage.setData(e,t)}setData(e,t){this.funFuncStorage.available&&this.funFuncStorage.setData(e,t),this.funLegacyStorage.available&&this.funLegacyStorage.setData(e,t)}initFuncStorage(e,t){this.funFuncStorage.setData(e,t)}removeData(e){this.funFuncStorage.available&&this.funFuncStorage.removeData(e),this.funLegacyStorage.available&&this.funLegacyStorage.removeData(e)}}class Oo{constructor(e,t){this.STORAGE_KEY=e,this.storage=t}get(){return null!==this.storage.get(this.STORAGE_KEY)}set(e,t){e?this.storage.set(this.STORAGE_KEY,"",t):this.remove(t)}remove(e){this.storage.remove(this.STORAGE_KEY,e)}}class Ro extends Oo{constructor(e){super(r.e.DEBUG,e),this.storage=e}}var wo,Po;!function(e){e[e.CHECKOUT=9]="CHECKOUT",e[e.PRODUCT=2]="PRODUCT"}(wo||(wo={})),function(e){e.EMBED_WORKER="embedWorker",e.EMBED="embed"}(Po||(Po={}));class Do{constructor(e,t,n,i,o,r){this.requester=e,this.apiKey=t,this.scope=n,this.release=i,this.environment=o,this.url=`https://sentry.fundraiseup.com/api/${r}/envelope/?sentry_key=${this.apiKey}`}captureException(e,t){this.isIgnoredException(e)||this.requester(this.url,{method:"POST",body:this.getBody(e,t),headers:{"content-type":"text/plain; charset=utf-8"}}),console.error(e)}getEnrichData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{exception:{values:[{type:"Error",value:e.message,stacktrace:{frames:[]}}]},level:"error",platform:"javascript",timestamp:Date.now()/1e3,environment:this.environment,release:this.release,tags:Object.assign(Object.assign({},t),{scope:this.scope})}}getBody(e,t){return JSON.stringify(this.getInfo())+"\n"+JSON.stringify(this.getType())+"\n"+JSON.stringify(this.getEnrichData(e,t))}getInfo(){return{sent_at:(new Date).toISOString()}}getType(){return{type:"event"}}isIgnoredException(e){return 0===e.statusCode}}class Lo extends Do{constructor(e,t,n,i,o,r,s){super(e,t,n,i,o,r),this.embedConfig=s,this.ignoreErrors=[/Failed to fetch$/,/Loading chunk \d{3,5} failed/,/The operation is insecure\.$/,/parameter 1 is not of type ['"]?Element['"]?/,/Maximum call stack size exceeded/,/2 is not provided/]}getTagsFromConfig(){var e,t,n,i,o,r;return{userCountry:null===(t=null===(e=this.embedConfig.meta)||void 0===e?void 0:e.user.location)||void 0===t?void 0:t.country,isFundraiseupVisitor:this.embedConfig.isFundraiseupVisitor,isMobile:this.embedConfig.deviceData.isMobile,isMobileOrTablet:this.embedConfig.deviceData.isMobileOrTablet,osName:null===(i=null===(n=this.embedConfig.browserData)||void 0===n?void 0:n.os)||void 0===i?void 0:i.name,osVersion:null===(r=null===(o=this.embedConfig.browserData)||void 0===o?void 0:o.os)||void 0===r?void 0:r.version,companyKey:this.embedConfig.currentCompanyKey,isInAppBrowser:this.embedConfig.browserData.isInAppBrowser}}getBrowserTags(){var e,t;return{server_name:window.location.origin,platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,language:window.navigator.language,connectionType:null===(e=window.navigator.connection)||void 0===e?void 0:e.effectiveType,downlink:null===(t=window.navigator.connection)||void 0===t?void 0:t.downlink}}getBrowserExtra(){return{userAgent:window.navigator.userAgent,href:window.location.href}}getEnrichData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=super.getEnrichData(e);return Object.assign(Object.assign({},n),{tags:Object.assign(Object.assign(Object.assign(Object.assign({},n.tags),this.getTagsFromConfig()),this.getBrowserTags()),t),extra:Object.assign(Object.assign(Object.assign({},n.extra||{}),this.getBrowserExtra()),{stacktrace:e.stack})})}isIgnoredException(e){const t=!this.embedConfig.browserData.isSupported,n=""===window.navigator.userAgent||0===(null===(i=window.navigator.languages)||void 0===i?void 0:i.length)||window.navigator.webdriver;var i;const o=this.ignoreErrors.some((t=>t.test(e.message))),r=window.location.origin.includes("hubspotpreview");return t||n||o||r||super.isIgnoredException(e)}}const bo={experimentId:T[_.CHECKOUT_BUNDLE_EXPERIMENT],name:_.CHECKOUT_BUNDLE_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:y.CONTROL,weight:33},{name:y.TEST_1,weight:33},{name:y.TEST_2,weight:33},{name:y.TEST_3,weight:1}]},Uo={experimentId:T[_.EMBED_TEST_EXPERIMENT],name:_.EMBED_TEST_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:O.CONTROL,weight:1},{name:O.TEST,weight:1}]},Mo={experimentId:T[_.PRESETS_IN_DONATION_FORM_V_3_1_EXPERIMENT],name:_.PRESETS_IN_DONATION_FORM_V_3_1_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:j.CONTROL,weight:1},{name:j.TEST,weight:1}]},xo={experimentId:T[_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT],name:_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:W.CONTROL,weight:1},{name:W.TEST,weight:1}]},ko={experimentId:T[_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_EXPERIMENT],name:_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:te.CONTROL,weight:1},{name:te.TEST,weight:1}]},Fo={experimentId:T[_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_V_3_EXPERIMENT],name:_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_V_3_EXPERIMENT,enabled:!1,scope:f.EMBED,variants:[{name:Ee.CONTROL,weight:1},{name:Ee.TEST,weight:1}]};class Go{constructor(e){let{distributionId:t,name:n,variants:i,sentry:o}=e;this.variants=new Map,this.distributionId=t,this.name=n,this.sentry=o,i.forEach((e=>{this.variants.set(e.name,{name:e.name,weight:e.weight})})),this.variantSelectors=this.getDistributedSelectors()}get currentVariantName(){return this._currentVariantName}get previousVariantName(){return this._previousVariantName}initCurrentVariantName(){var e;const t=this.getSelection(),n=[];this.variantSelectors.forEach(((e,t)=>{n.push([t,e])})),this.currentVariantName=null===(e=n.find((e=>{let[,[n,i]]=e;return t>=n&&t<i})))||void 0===e?void 0:e[0]}setVariant(e){this.variants.has(e)?this.currentVariantName=e:this.sentry.captureException(new we(this.name))}set currentVariantName(e){this._previousVariantName=this._currentVariantName,this._currentVariantName=e}getSelection(){const e=this.getMaxDistributionValue();return Number((0,di.A)(`${this.distributionId}:${this.name}`)%e)}getDistributedSelectors(){let e=0;const t=new Map;return this.assertVariantsWithWeight(this.variants),this.variants.forEach(((n,i)=>{let{weight:o}=n;const r=this.getWeightSum(),s=this.getMaxDistributionValue()/r;t.set(i,[e,e+s*o]),e+=s*o})),t}getWeightSum(){let e=0;return this.assertVariantsWithWeight(this.variants),this.variants.forEach((t=>{let{weight:n}=t;return e+=n})),e}getMaxDistributionValue(){return 100*this.variants.size}assertVariantsWithWeight(e){if(![...e.entries()].every((e=>{let[,{weight:t}]=e;return void 0!==t})))throw new Error("Every variant should have weight")}}class Bo{constructor(e){this.experiments=new Map;const{experimentsSettings:t,tracker:n,funStorage:i,companyKey:o,widgetKey:r,user:s,parentCompanyKey:a,infrastructureParams:c,sentry:l,distributionId:d,isDebugMode:u,isFundraiseupVisitor:p,isAbTestMode:E=!1}=e;if(this.experimentsSettings=t,this.tracker=n,this.funStorage=i,this.companyKey=o,this.parentCompanyKey=a,this.widgetKey=r,this.user=s,this.infrastructureParams=c,this.sentry=l,this.distributionId=d,this.isDebugMode=u,this.isFundraiseupVisitor=p,this.isAbTestMode=E,!this.distributionId)throw new Error("ExperimentController: Distribution ID is required")}get allowExperiments(){return!!this.isDebugMode||!this.isFundraiseupVisitor&&!this.isAbTestMode}register(e,t){if(this.experiments.has(e))return;const n=this.createExperiment(e,t);n&&this.experiments.set(e,n)}get(e){if(!this.experiments.has(e)){const t=new Pe(e);throw this.sentry.captureException(t),t}return this.experiments.get(e)}registerAndGet(e,t){return this.register(e,t),this.get(e)}has(e){return this.experiments.has(e)}createExperiment(e,t){const n=this.experimentsSettings.find((t=>t.name===e));if(!n)return this.sentry.captureException(new Re(e)),null;const i=this.getDistributionExperimentName(n),o=new Go({distributionId:this.distributionId,name:i,variants:n.variants,sentry:this.sentry});return new t({settings:n,companyKey:this.companyKey,parentCompanyKey:this.parentCompanyKey,tracker:this.tracker,funStorage:this.funStorage,user:this.user,widgetKey:this.widgetKey,infrastructureParams:this.infrastructureParams,sentry:this.sentry,distribution:o,allowExperiments:this.allowExperiments})}getDistributionExperimentName(e){return e.experimentId===T[_.PRESETS_IN_DONATION_FORM_V_3_1_EXPERIMENT]||e.experimentId===T[_.AMOUNT_PRESETS_PAGES_V_3_1_EXPERIMENT]?_.AMOUNT_PRESETS_CHECKOUT_V_3_1_EXPERIMENT:e.experimentId===T[_.ML_DEFAULT_FREQUENCY_IN_DONATION_FORM_V_3_EXPERIMENT]||e.experimentId===T[_.DEFAULT_FREQUENCY_V_3_CAMPAIGN_PAGES_EXPERIMENT]?_.DEFAULT_FREQUENCY_V_3_MODAL_EXPERIMENT:e.name}}class Ko extends Bo{register(e,t,n){const i=this.getExperimentKey(e,n),o=this.createExperiment(e,t);o&&this.experiments.set(i,o)}get(e,t){const n=this.getExperimentKey(e,t);return super.get(n)}registerAndGet(e,t,n){return this.register(e,t,n),this.get(e,n)}has(e,t){const n=this.getExperimentKey(e,t);return super.has(n)}getExperimentKey(e,t){return t?`${e}_${t}`:e}}var Vo,Ho,Yo;!function(e){e.WITH_ASK_PAGE="withAskPage",e.NO_ASK_PAGE="noAskPage"}(Vo||(Vo={})),function(e){e.ONCE="once",e.DAILY="daily",e.WEEKLY="weekly",e.BIWEEKLY="biweekly",e.EVERY_4_WEEKS="every4weeks",e.MONTHLY="monthly",e.BIMONTHLY="bimonthly",e.QUARTERLY="quarterly",e.SEMIANNUAL="semiannual",e.ANNUAL="annual"}(Ho||(Ho={})),function(e){e.ELEMENT_ID="elementId",e.ELEMENT_KEY="elementKey",e.FORM="form",e.AMOUNT="amount",e.CURRENCY="currency",e.RECURRING="recurring",e.MODIFY_DESIGNATION="modifyDesignation",e.FIRST_NAME="firstName",e.LAST_NAME="lastName",e.EMAIL="email",e.DESIGNATION="designationId",e.TRIBUTE="tributeHonoree"}(Yo||(Yo={}));const jo=[h.DONATION_FORM];h.DONATION_FORM;class Wo{constructor(e,t){this.funStorageAdapter=e,this._inMemoryStorage={},this.env=t.env,this._allowWrite=t.allowWrite,this.inMemoryStorage=this.funStorageAdapter.getData()}get available(){return this.funStorageAdapter.available}get isFuncStorageInitialized(){return this.funStorageAdapter.isFuncStorageInitialized}get allowWrite(){return this._allowWrite}set allowWrite(e){this._allowWrite=e}getData(){return this.inMemoryStorage}setData(e,t){this.inMemoryStorage=e,this.allowWrite&&this.funStorageAdapter.setData(e,t)}removeData(e){}initialize(e,t){this.funStorageAdapter.initialize({topLevelDomain:e},t)}getField(e){const t=this.getData();return t&&e in t?t[e]:null}setField(e,t){const n=this.getData()||{};n[e]=t;const i=ho(this.env,n.topLevelDomain);this.setData(n,i)}removeField(e){const t=this.getData();delete t[e];const n=ho(this.env,t.topLevelDomain);this.setData(t,n)}setInMemoryDataToStorage(){if(!this.allowWrite)throw new Error("Session Storage error - Cannot save data to storage when write is not allowed");if(!this.inMemoryStorage.topLevelDomain)return void console.error("Session Storage error - Top level domain is not set");const e=ho(this.env,this.inMemoryStorage.topLevelDomain);this.funStorageAdapter.initFuncStorage(this.inMemoryStorage,e)}get inMemoryStorage(){return Object.assign({},this._inMemoryStorage)}set inMemoryStorage(e){this._inMemoryStorage=e}}const Xo=e=>e&&"object"==typeof e&&"consent"===e[0],zo=e=>Xo(e)&&"default"===e[1],$o=e=>Xo(e)&&"update"===e[1],qo=(e,t)=>({checkHasDefaultConsent:()=>{var e;return Boolean((null===(e=t.dataLayer)||void 0===e?void 0:e.length)&&t.dataLayer.some(zo))},initialize:()=>{t.dataLayer=t.dataLayer||[];const n=t.dataLayer.push;t.dataLayer.forEach((t=>{zo(t)&&e.emit("consentDefault",t[2]),$o(t)&&e.emit("consentUpdate",t[2])})),((t,n)=>{t.push=function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return o.forEach((t=>{$o(t)&&e.emit("consentUpdate",t[2])})),n.apply(t,o)}})(t.dataLayer,n)}});function Qo(e,t,n,i,o,r){const s=n=>{try{e.logCode(21,{consent:n}),"granted"===n.functionality_storage&&o.initializeFuncStorage(),"denied"===n.functionality_storage&&o.deniedWriteToFuncStorage(),"granted"===n.analytics_storage&&o.initializeStatStorage()}catch(n){e.logCode(23,{error:n}),t.captureException(new Error(`Consent API error: ${n.message}`))}},a=e=>{e.region||s(e)},c=e=>{s(e)};return{initialize:()=>{i.checkHasDefaultConsent()?(n.on("consentDefault",a),n.on("consentUpdate",c),i.initialize(),e.logCode(20,{dataLayer:window.dataLayer})):(r.setupFuncCookie(),o.initialize(),o.allowWriteToFuncStorage(),e.logCode(22,{dataLayer:window.dataLayer}))}}}class Zo{constructor(e,t,n,i,o){this.funSessionStorage=e,this.funStatStorage=t,this.topLevelDomain=n,this.env=i,this.disableNewCookies=o}initialize(){if(this.disableNewCookies)return;const e=ho(this.env,this.topLevelDomain);this.isStatStorageInitialized||this.funStatStorage.set(e),this.isFuncStorageInitialized||this.funSessionStorage.initialize(this.topLevelDomain,e)}initializeStatStorage(){const e=ho(this.env,this.topLevelDomain);this.isStatStorageInitialized||this.funStatStorage.set(e)}initializeFuncStorage(){this.allowWriteToFuncStorage(),this.funSessionStorage.setInMemoryDataToStorage()}allowWriteToFuncStorage(){this.funSessionStorage.allowWrite=!0}deniedWriteToFuncStorage(){this.funSessionStorage.allowWrite=!1}get isStatStorageInitialized(){return null!==this.funStatStorage.get()}get isFuncStorageInitialized(){return this.funSessionStorage.isFuncStorageInitialized}}class Jo{constructor(e){this.topLevelDomain=e,this.storage=u(r.e.CID,d.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})}}function er(e){const n=xt(),o=function(e){let{trackingUrls:t,isAbTestMode:n,donorPortalUrl:i,companyKey:o}=e;if(n){const e=Eo.includes(o)?"https://fundraiseupobjects.com":i;return{checkout:e,global:e}}return t}({trackingUrls:e.trackingUrls,isAbTestMode:e.staticConfig.abTestMode,donorPortalUrl:e.staticConfig.donorPortalUrl,companyKey:e.company.key});return n.provide(2,(()=>Object.freeze(e.staticConfig))).provide(7,(()=>Object.freeze(o))).provide(20,(()=>new Vi(window))).provide(13,(()=>function(e,t,n,i,o,a,c,l,d,u){const p=(0,xn.U)(window.FundraiseUp.h||window.location.href),E=Gt(p),h=void 0!==s.A.get(r.e.DEBUG),m=l.get(),g=(null==m?void 0:m.disableIsFundraiseupVisitor)||!1,_=n.clientId,T={version:o,livemode:E,locale:new Mn({window,queryParams:p,companyLocalizationSettings:t.localization}).getConfig(),currentCompanyKey:t.key,currentCompany:t,loadedTimestamp:i,meta:d,queryParams:p,staticConfig:n,inactiveWidgets:u,clientId:_,get isMobile(){return window.FUN_FORCE_MOBILE||T.deviceData.isMobile},get deviceData(){const e=n.deviceData;return{isMobile:e.isMobile,isMobileOrTablet:e.isMobileOrTablet,isMobileSafari16:e.isMobileSafari16}},get fontsAssets(){return n.fontsAssets},get browserData(){return n.browserData},get paymentMethods(){return{stripePublicKey:Object.assign({},n.stripePublicKey),paypalClientId:n.paypalClientId,googlePayInfo:Object.assign({},n.googlePayInfo)}},get integrations(){return{uploadcareKey:n.uploadcareKey,dtdEnabled:n.integrations.dtd,sentryUri:n.sentryUri}},get server(){return{mainDomain:n.mainDomain,env:n.env,elementsApiScriptUrl:n.elementsApiScriptUrl,trackingUrls:Object.assign({},e),resolveUrl:`${a}/checkout/resolve?key=${t.key}`,checkoutAssets:n.checkoutAssets,checkoutSteplessAssets:n.checkoutSteplessAssets,elementsUrl:`${c}/embed-data/`}},get data(){return{currencyRates:Object.assign({},n.currencyRates)}},get isDebugMode(){return h},get isFundraiseupVisitor(){return Boolean(n.isFundraiseupVisitor&&!g)},get disablePreloading(){return n.disablePreloading},get experimentsConfig(){return{experiments:n.experimentsConfig.experiments||[]}},get abTestMode(){return n.abTestMode},get abTestDemoMode(){return window.FUN_AB_TEST_DEMO_MODE||!1},get fromDonorPortal(){return n.fromDonorPortal}};return T}(n.get(7),e.company,n.get(2),e.loadedTimestamp,e.version,ri,ai,n.get(15),e.meta,e.knownKeys.inactiveWidgets))).provide(1,(()=>new Pi(window,new Hi(window,e.staticConfig.deviceData.isMobile),n.get(19)))).provide(29,(()=>((e,t)=>{let n;const i=e=>e?'<div class="fru-wmb">\n    <div class="fru-sg"></div>\n\n    <div class="fru-ch" data-qa="msh">\n    <div class="fru-sm" style="width: 121px !important; height: 32px !important; margin: 0 auto !important"></div>\n  </div>\n    <div data-qa="msa">\n    <div class="fru-cim"></div>\n    <div class="fru-cbm">\n      <div class="fru-fcm">\n        <div class="fru-sm" style="width: 251px !important; height: 24px !important; margin: 0 auto !important"></div>\n        <div class="fru-sm" style="height: 40px !important; margin-top: 16px !important"></div>\n      </div>\n    </div>\n  </div>\n    <div class="fru-wfm" data-qa="msf">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 187px; height: 28px; margin: 0 auto"></div>\n      <div class="fru-sm" style="height: 44px !important; margin-top: 28px !important"></div>\n      <div class="fru-sm" style="height: 160px !important; margin-top: 16px !important"></div>\n      <div class="fru-sm" style="height: 66px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="height: 20px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="width: 121px !important; height: 20px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 48px !important; margin-top: 24px !important"></div>\n    </div>\n  </div>\n  <div class="fru-wftm">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 212px !important; height: 24px !important"></div>\n      <div class="fru-sm" style="width: 271px !important; height: 76px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 46px !important; margin-top: 12px !important"></div>\n    </div>\n  </div>\n  </div>':'<div class="fru-wmb">\n    <div class="fru-sg"></div>\n\n    <div class="fru-ch" data-qa="msh">\n    <div class="fru-sm" style="width: 121px !important; height: 32px !important; margin: 0 auto !important"></div>\n  </div>\n    <div class="fru-wfm" data-qa="msf">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 187px; height: 28px; margin: 0 auto"></div>\n      <div class="fru-sm" style="height: 44px !important; margin-top: 28px !important"></div>\n      <div class="fru-sm" style="height: 160px !important; margin-top: 16px !important"></div>\n      <div class="fru-sm" style="height: 66px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="height: 20px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="width: 121px !important; height: 20px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 48px !important; margin-top: 24px !important"></div>\n    </div>\n  </div>\n  <div class="fru-wftm">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 212px !important; height: 24px !important"></div>\n      <div class="fru-sm" style="width: 271px !important; height: 76px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 46px !important; margin-top: 12px !important"></div>\n    </div>\n  </div>\n  </div>',o=e=>e?'<div class="fru-wd">\n    <div class="fru-wmd">\n      <div class="fru-wcd" data-qa="dsa">\n    <div class="fru-sg fru-sgc"></div>\n\n    <div class="fru-cid"></div>\n    <div class="fru-cbd">\n      <div class="fru-sd" style="width: 116px !important; height: 50px !important"></div>\n      <div class="fru-sd" style="height: 24px !important; margin-top: 16px !important"></div>\n      <div class="fru-sd" style="height: 120px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="width: 206px !important; height: 16px !important; margin-top: auto !important"></div>\n    </div>\n  </div>\n      <div class="fru-wfd" data-qa="dsf">\n    <div class="fru-sg fru-sgf"></div>\n\n    <div class="fru-fcd">\n      <div class="fru-sd" style="width: 188px !important; height: 32px !important; margin: 0 auto !important"></div>\n      <div class="fru-sd" style="height: 40px !important; margin-top: 22px !important"></div>\n      <div class="fru-sd" style="height: 90px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="height: 52px !important; margin-top: 10px !important"></div>\n      <div class="fru-sd" style="width: 189px !important; height: 18px !important; margin-top: 25px !important"></div>\n      <div class="fru-sd" style="width: 221px !important; height: 18px !important; margin-top: auto !important"></div>\n      <div class="fru-sd" style="width: 89px !important; height: 18px !important; margin-top: 13px !important"></div>\n      <div class="fru-sd" style="height: 48px !important; margin-top: 21px !important"></div>\n    </div>\n  </div>\n    </div>\n  </div>':'<div class="fru-wd">\n    <div class="fru-wmd">\n      <div class="fru-wfd" data-qa="dsf">\n    <div class="fru-sg fru-sgf"></div>\n\n    <div class="fru-fcd">\n      <div class="fru-sd" style="width: 188px !important; height: 32px !important; margin: 0 auto !important"></div>\n      <div class="fru-sd" style="height: 40px !important; margin-top: 22px !important"></div>\n      <div class="fru-sd" style="height: 90px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="height: 52px !important; margin-top: 10px !important"></div>\n      <div class="fru-sd" style="width: 189px !important; height: 18px !important; margin-top: 25px !important"></div>\n      <div class="fru-sd" style="width: 221px !important; height: 18px !important; margin-top: auto !important"></div>\n      <div class="fru-sd" style="width: 89px !important; height: 18px !important; margin-top: 13px !important"></div>\n      <div class="fru-sd" style="height: 48px !important; margin-top: 21px !important"></div>\n    </div>\n  </div>\n    </div>\n  </div>';return{render:r=>{const s=(a=r.campaignKey,t.getAskPageType(a)===Vo.WITH_ASK_PAGE);var a;n=e.document.createElement("div"),n.classList.add("fru-m"),s&&n.classList.add("fru-hc"),r.isLivemode||n.classList.add("fru-nlm"),r.isRtl&&n.setAttribute("dir","rtl"),e.document.body?e.document.body.appendChild(n):Ri(e.document,(()=>{e.document.body.appendChild(n)})),n.innerHTML=(e=>{let{isMobile:t,showAskPage:n}=e;return t?i(n):o(n)})({isMobile:r.isMobile,showAskPage:s}),(()=>{if(!n)return;const t=e.document.createElement("style");t.appendChild(e.document.createTextNode("\n  [class^='fru-'] {\n    all: initial;\n    display: block !important;\n    box-sizing: border-box !important;\n  }\n\n  .fru-sd {\n    width: 100% !important;\n    background: #efefef !important;\n    border-radius: 6px !important;\n  }\n\n  .fru-sm {\n    width: 100% !important;\n    background: #efefef !important;\n    border-radius: 4px !important;\n  }\n\n  .fru-sg {\n    position: absolute !important;\n    inset: 0 !important;\n    z-index: 1 !important;\n\n    background: linear-gradient(90deg, #FFFFFF00 35%, #FFFFFFE6 50%, #FFFFFF00 65%) 0 0 / 300% 100%;\n    animation: fru-ld 1s linear infinite !important;\n  }\n\n  [dir='rtl'] .fru-sg {\n    animation-name: fru-ld-rtl !important;\n  }\n\n  @keyframes fru-ld {\n    0% {\n      background-position: 100% 50%;\n    }\n    30% {\n      background-position: 0 50%;\n    }\n    100% {\n      background-position: 0 50%;\n    }\n  }\n\n  @keyframes fru-ld-rtl {\n    0% {\n      background-position: 0 50%;\n    }\n    30% {\n      background-position: 100% 50%;\n    }\n    100% {\n      background-position: 100% 50%;\n    }\n  }\n\n  .fru-m {\n    position: fixed !important;\n    inset: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    align-items: flex-start !important;\n    overflow-x: hidden !important;\n    overflow-y: auto !important;\n    z-index: 2147483647 !important;\n    transform: translateZ(100px) !important;\n    overscroll-behavior-y: none !important;\n  }\n\n  .fru-m-a {\n    animation: fru-fade-out 0.15s forwards !important;\n  }\n\n  @keyframes fru-fade-out {\n    to {\n      opacity: 0 !important;\n    }\n  }\n\n  .fru-wd {\n    display: flex !important;\n    flex-direction: column !important;\n    width: 100% !important;\n    max-width: 376px !important;\n    padding: 16px 8px !important;\n    margin: auto !important;\n  }\n\n  .fru-wmb {\n    flex-grow: 1 !important;\n    width: 100% !important;\n    position: relative !important;\n    background: #fff !important;\n  }\n\n  .fru-wmd {\n    min-height: 0 !important;\n    flex-grow: 1 !important;\n    flex-shrink: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    border-radius: 16px !important;\n    box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n    margin-bottom: 86px !important;\n  }\n\n  .fru-wcd {\n    flex-shrink: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    position: relative !important;\n    width: 100% !important;\n    height: 640px !important;\n    background: #fff !important;\n    border-radius: 16px 16px 0 0 !important;\n    overflow: hidden !important;\n  }\n\n  .fru-ch {\n    padding: 8px 44px !important;\n  }\n\n  .fru-cid {\n    width: 100% !important;\n    height: 202px !important;\n    background: #efefef !important;\n    border-radius: 16px 16px 0 0 !important;\n  }\n\n  .fru-cim {\n    width: 100% !important;\n    height: 59vw !important;\n    background: #efefef !important;\n  }\n\n  .fru-cbd {\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    padding: 20px 28px 28px !important;\n  }\n\n  .fru-cbm {\n    padding: 24px 20px !important;\n  }\n\n  .fru-wfd {\n    flex-shrink: 0 !important;\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    position: relative !important;\n    height: 640px !important;\n    background: #fff !important;\n    padding: 28px 32px !important;\n    border-radius: 16px !important;\n    border-top: 1px solid #c7cdd6 !important;\n    overflow: hidden !important;\n  }\n\n  .fru-hc .fru-wfd {\n    border-radius: 0 0 16px 16px !important;\n  }\n\n  .fru-wfm {\n    padding: 32px 20px 40px !important;\n    border-top: 1px solid #c7cdd6 !important;\n  }\n\n  .fru-wftm {\n    background: #fff !important;\n    padding: 24px 20px 60px !important;\n    border-top: 1px solid #c7cdd6 !important;\n  }\n\n  .fru-fcd {\n    min-height: 0 !important;\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    width: 100% !important;\n    max-width: 296px !important;\n    margin: auto !important;\n  }\n\n  .fru-fcm {\n    width: 100% !important;\n    max-width: 390px !important;\n    margin: auto !important;\n  }\n\n  .fru-nlm {\n    margin-bottom: 40px !important;\n  }\n\n  @media (min-width: 536px) {\n    .fru-wd {\n      width: 360px !important;\n      max-width: none !important;\n      padding-inline-start: 0 !important;\n      padding-inline-end: 0 !important;\n    }\n\n    .fru-hc .fru-wd {\n      width: 516px !important;\n    }\n\n    .fru-cid {\n      height: 289px !important;\n    }\n  }\n\n  @media (min-width: 916px) {\n    .fru-hc .fru-wd {\n      width: calc(516px + 20px + 360px) !important;\n    }\n\n    .fru-sgc {\n      animation-delay: 0.1s !important;\n    }\n\n    .fru-sgf {\n      animation-delay: 0.25s !important;\n    }\n\n    .fru-wmd {\n      flex-direction: row !important;\n      border-radius: 0 !important;\n      box-shadow: none !important;\n    }\n\n    .fru-hc .fru-wmd {\n      margin-bottom: 34px !important;\n    }\n\n    .fru-wcd {\n      width: 516px !important;\n      border-radius: 16px !important;\n      box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n      margin-inline-end: 20px !important;\n    }\n\n    .fru-wfd {\n      border-top: 0 !important;\n      box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n    }\n\n    .fru-hc .fru-wfd {\n      width: 360px !important;\n      border-radius: 16px !important;\n    }\n  }\n")),n.prepend(t)})()},hide:()=>{n&&(n.classList.add("fru-m-a"),n.remove())}}})(window,n.get(3)))).provide(27,(()=>{return t=n.get(2),i=n.get(13),o=e.version,new Lo(((e,t)=>fetch(e,t)),t.sentryApiKey,Po.EMBED,o,t.env,wo.CHECKOUT,i);var t,i,o})).provide(6,(()=>new i.y("embed",e.debugLogCodes))).provide(3,(()=>new Ii(e.knownKeys))).provide(8,(()=>new Wo(function(){const e=c(t.OBJECT),n=new Ao(Io),i=new Co(e,n,window.FUN_DISABLE_NEW_COOKIES),o=new vo(e,n,window.FUN_DISABLE_NEW_COOKIES);return new So(i,o,window.FUN_DISABLE_NEW_COOKIES)}(),{env:e.staticConfig.env,allowWrite:!1}))).provide(25,(()=>new fo(n.get(8)))).provide(24,(()=>function(e,t,n,i){const o=(0,go.F)().get(8),r=(0,_o.f)(o);return new Zo(e,t,r,n,i)}(n.get(8),n.get(22),e.staticConfig.env,window.FUN_DISABLE_NEW_COOKIES))).provide(22,(()=>function(){const e=(0,go.F)().get(8),t=(0,_o.f)(e);return new To(t)}())).provide(21,(()=>function(){const e=(0,go.F)().get(8),t=(0,_o.f)(e);return new Jo(t)}())).provide(23,(()=>function(e,t){const n=(0,go.F)().get(8),i=(0,_o.f)(n);return new mo(e,i,s.A,{disableNewCookies:t})}(e.staticConfig.env,window.FUN_DISABLE_NEW_COOKIES))).provide(14,(()=>function(e){let t;if(e.funTracker)t=e.funTracker;else{const n=new po({window:e.window,url:e.globalURL,trackingTarget:"/tb",env:e.env});t=new ro({trackerClient:n,window:e.window,companyKey:e.embedConfig.currentCompanyKey,storage:e.funTrackerStorage,localeCode:e.embedConfig.locale.code,livemode:e.embedConfig.livemode,isABTestMode:e.embedConfig.abTestMode,source:e.source,serverClientId:e.embedConfig.clientId}),t.subscribe((t=>e.debug.log(t.eventType||"",t)),"debug"),t.start()}return new ao(t,{funEmbedRelease:e.funEmbedRelease,isFundraiseupVisitor:e.isFundraiseupVisitor})}({window,funEmbedRelease:e.version,embedConfig:n.get(13),debug:n.get(6).createInstance("Tracking"),globalURL:o.global,funTracker:window.FUN_TRACKER,isFundraiseupVisitor:e.staticConfig.isFundraiseupVisitor?1:0,funTrackerStorage:n.get(21),source:e.staticConfig.fromDonorPortal?ut.DONOR_PORTAL:void 0,env:e.staticConfig.env}))).provide(28,(()=>{return t=n.get(13),i=n.get(14),o=n.get(15),new Ko({companyKey:t.currentCompanyKey,parentCompanyKey:(null===(r=t.currentCompany)||void 0===r?void 0:r.parentKey)||null,tracker:i,experimentsSettings:(e=t.experimentsConfig.experiments,[bo,Uo,Mo,xo,ko,Fo].map((t=>{const n=e.find((e=>e.experimentId===t.experimentId));return n?{experimentId:n.experimentId,enabledWidgets:n.enabledWidgets,disabledWidgets:n.disabledWidgets,scope:n.scope,name:n.name,enabled:n.enabled,variants:n.variants,disabledAccounts:n.disabledAccounts,enabledAccounts:n.enabledAccounts}:t}))),funStorage:o,sentry:{captureException:e=>console.error(e),getCurrentScope:()=>null},isDebugMode:t.isDebugMode,isFundraiseupVisitor:t.isFundraiseupVisitor,isAbTestMode:t.abTestMode,distributionId:i.clientId});var e,t,i,o,r})).provide(4,(()=>Ci(n.get(3),n.get(6).createInstance("Collector")))).provide(5,(()=>Bi(n.get(13),n.get(3),n.get(6).createInstance("CommonResolver"),n.get(14),n.get(27)))).provide(9,(()=>zn(n.get(4),n.get(3),n.get(10),n.get(13),n.get(6),n.get(14),n.get(30)))).provide(30,(()=>function(e){const t=function(e){const t=e.get(Yo.ELEMENT_KEY),n=e.get(Yo.ELEMENT_ID),i=e.get(Yo.FORM);if(!t&&!n||i)return null;const o=Number(e.get(Yo.AMOUNT)),r=o?100*o:null,s=(e.get(Yo.CURRENCY)||"").toUpperCase(),a=e.get(Yo.RECURRING),c=e.get(Yo.MODIFY_DESIGNATION),l="yes"===c||"no"===c,d=Object.values(Ho);return{elementKey:t||n,amount:r,currency:s,recurring:a&&d.includes(a)?a:null,modifyDesignation:l?"yes"===c:null,firstName:e.get(Yo.FIRST_NAME),lastName:e.get(Yo.LAST_NAME),email:e.get(Yo.EMAIL),designationId:e.get(Yo.DESIGNATION),tributeHonoree:e.get(Yo.TRIBUTE)}}(new URLSearchParams(e.location.search)),n=(e,n)=>jo.includes(n)&&e===(null==t?void 0:t.elementKey);return{getUrlParamsForElement:e=>n(e.key,e.type)?t:null,checkAmountInUrlApiForElement:(e,i)=>n(e,i)&&Boolean(null==t?void 0:t.amount)}}(window))).provide(17,(()=>function(e){let t=null;const n=(n,i)=>(i&&t&&t(),new Promise(((i,o)=>{const{abort:r}=oi({method:"POST",url:`${s=ri,a=Ni.DATA,`${s}/elements${a}`}?key=${e.currentCompanyKey}&livemode=${e.livemode}`,headers:{"content-type":"text/plain; charset=utf-8"},params:n},(e=>{e&&i(e)}),o);var s,a;t=r})));return{config:e,getData:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=e.map((e=>({key:e})));return n(i,t)},searchData:function(e,t){return n([{key:e,params:t}],!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}}}(n.get(13)))).provide(10,(()=>hn(n.get(5),n.get(6),n.get(13),n.get(1),n.get(29),n.get(3),n.get(14),n.get(19),n.get(20),n.get(8),n.get(28),(()=>n.get(16)),(()=>n.get(31))))).provide(12,(()=>(e=>{const t=e=>ci(void 0,void 0,void 0,(function*(){const t=yield Ft();t.emitEvent("backdropWillOpen");const i=yield n(e);yield t.formOpener.openForm(e,"p2p",{fundraisingPage:i})})),n=e=>ci(void 0,void 0,void 0,(function*(){return new Promise(((t,n)=>{oi({method:"GET",url:`${ri}/p2p/fundraiser/${e}`,headers:{"content-type":"text/plain; charset=utf-8"}},(e=>{e&&t(e)}),n)}))}));return{open:n=>ei.test(n)?t(n):(t=>Ft().then((n=>{e.getElements([t]),n.emitEvent("backdropWillOpen"),e.onElementsLoad((e=>{const i=e.elements.find((e=>e.key===t));if(i)return n.addElements({nodes:[],elements:[i],globalElements:e.globalElements}),n.formOpener.openForm(t,"p2p",{fundraisingPage:null})}))})))(n),openByFundraiserSlug:e=>t(e)}})(n.get(9)))).provide(11,(()=>Ai(n.get(10),n.get(9),n.get(12),n,n.get(13),n.get(14),n.get(5),n.get(3),n.get(6).createInstance("InternalApi"),n.get(15),n.get(4),n.get(25),n.get(28),n.get(26)))).provide(15,(()=>u(r.e.EXPERIMENTS,d.OBJECT))).provide(19,(()=>new Ki)).provide(26,(()=>function(){const e=c(t.STRING);return new Ro(e)}())).provide(32,(()=>((e,t,n,i,o,r)=>Qo(t,n,i,qo(i,e),o,r))(window,n.get(6).createInstance("Consent API Manager"),n.get(27),n.get(19),n.get(24),n.get(23))))}function tr(e,t){if(e.body)return t();setTimeout(tr.bind(null,e,t),10)}function nr(e){return t=this,n=void 0,o=function*(){return new Promise((t=>{const n=e.document.createElement("iframe");n.style.display="none",tr(e.document,(()=>{const i=(()=>{try{e.document.body.appendChild(n);const t=n.contentWindow;if(!t)return!1;const i=t.Date.now,o=t.Array.prototype.push,r=t.Object.keys,s=t.Map.prototype.set,a=t.String.prototype.replace;document.body.removeChild(n);const c=o.toString()===Array.prototype.push.toString(),l=r.toString()===Object.keys.toString(),d=s.toString()===Map.prototype.set.toString(),u=i.toString()===Date.now.toString(),p=a.toString()===String.prototype.replace.toString();return!(c&&l&&d&&u&&p)}catch(e){return!0}})();t(i)}))}))},new((i=void 0)||(i=Promise))((function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}c((o=o.apply(t,n||[])).next())}));var t,n,i,o}const ir=new i.y("Embed");!function(){var e,t;if(nr(window).then((e=>{window.FUN_IS_MALFORMED_ENV=e})),!window.Set||!window.WeakMap)return void(window.console&&window.console.warn&&window.console.warn("init","legacy browser, skip processing"));if(null===(e=window.FUN)||void 0===e?void 0:e.initialized)return void ir.log("init","already initialized, skip processing");ir.log("init","initialization has started"),function(e,t){const n=function(e){return"function"==typeof e?n.l.push([arguments])&&n:function(){return n.l.push([e,arguments])&&n}};n.h=e.location.href,n.s=Date.now(),n.v="0",n.l=[];const i="call,catch,on,once,set,then,track,openCheckout".split(",");for(let e=0;e<8;e++)n[i[e]]=n(i[e]);e[t]=e[t]||n}(window,"FundraiseUp");const n=er({loadedTimestamp:Date.now(),trackingUrls:{"global":"https://fndrsp.net","checkout":"https://fndrsp-checkout.net"},staticConfig:{"elementsApiScriptUrl":"https://static.fundraiseup.com/b641039f792c.elementsApi.js","checkoutAssets":{"scripts":["https://static.fundraiseup.com/checkout.ee23270eeebda8cd948e.js","https://static.fundraiseup.com/checkout-vendors.08a8f04be05ba6bfdda1.js","https://static.fundraiseup.com/checkout-rtl-styles.6f2bc0f48aad6ecd51fb.js","https://static.fundraiseup.com/checkout-styles.5d7f6d222b2f7436ebec.js","https://static.fundraiseup.com/checkout-sentry-vendor.e62d89161ab6b8642243.js","https://static.fundraiseup.com/sentry.f3782e3eedf5f3dd8683.js"]},"checkoutSteplessAssets":{"scripts":["https://static.fundraiseup.com/checkout-stepless.945361a1b11912150066.js","https://static.fundraiseup.com/checkout-stepless-vendors.d55c9f91615d4604e0e5.js","https://static.fundraiseup.com/cs.checkout-stepless-rtl-styles.cda23e07bbe969322a40.js","https://static.fundraiseup.com/cs.checkout-stepless-styles.a90d8ab313388dd85a5e.js","https://static.fundraiseup.com/cs.checkout-stepless-sentry-vendor.8fd66c623e0491f7244c.js","https://static.fundraiseup.com/sentry.f3782e3eedf5f3dd8683.js"]},"currencyRates":{"rates":{"SHP":0.785843,"EUR":0.890125,"AED":3.67295,"AFN":70.194145,"XCD":2.702551,"ALL":87.342841,"AMD":388.911102,"AOA":917.000336,"ARS":1128.870599,"USD":1,"AUD":1.55792,"ANG":1.80229,"AWG":1.8,"AZN":1.712043,"BAM":1.737794,"BBD":2.017593,"INR":85.40855,"PKR":281.409214,"BDT":121.409214,"XOF":582.839753,"BGN":1.737794,"BHD":0.376738,"BIF":2972.677596,"BMD":1,"MYR":4.296975,"BND":1.297259,"BOB":6.904794,"BRL":5.651099,"BSD":0.999245,"BTN":85.280554,"NOK":10.360598,"ZAR":18.213585,"BWP":13.549247,"BYN":3.27007,"BZD":2.007197,"CAD":1.393825,"CDF":2871.999891,"XAF":582.839753,"CHF":0.834245,"NZD":1.689261,"CLP":934.829818,"CNY":7.237303,"COP":4248.7,"CRC":507.174908,"CVE":97.974144,"CZK":22.195992,"DJF":177.937714,"DKK":6.64072,"DOP":58.79426,"DZD":133.028566,"EGP":50.681146,"MAD":9.244125,"ETB":134.071527,"FJD":2.269206,"FKP":0.751681,"JPY":145.950948,"GBP":0.75275,"GEL":2.744977,"GHS":13.139633,"GIP":0.751681,"GMD":71.500354,"GNF":8653.427518,"GTQ":7.685815,"GYD":209.667244,"HKD":7.779499,"HNL":25.959394,"HRK":6.705503,"HTG":130.498912,"HUF":359.393992,"IDR":16550,"ILS":3.537675,"ISK":130.759965,"JMD":158.834244,"JOD":0.709298,"KES":129.149859,"KGS":87.449736,"KHR":4000.177707,"KMF":436.502352,"KRW":1394.469965,"KWD":0.306702,"KYD":0.832734,"KZT":515.695944,"LAK":21600.248789,"LBP":89531.298592,"LKR":298.556133,"LRD":199.848949,"LSL":18.174153,"MDL":17.126483,"MGA":4495.979386,"MKD":54.671465,"MMK":2099.733149,"MNT":3573.792034,"MOP":8.005864,"MUR":45.709725,"MVR":15.396067,"MWK":1732.640277,"MXN":19.444435,"MZN":63.899408,"NAD":18.174153,"XPF":105.966502,"NGN":1608.770169,"NIO":36.767515,"SEK":9.71339,"NPR":136.448532,"OMR":0.384771,"PAB":0.999245,"PEN":3.630192,"PGK":4.147674,"PHP":55.379009,"PLN":3.76585,"PYG":7988.804478,"QAR":3.646186,"RON":4.555502,"RSD":104.145009,"RUB":83.478694,"RWF":1436.403216,"SAR":3.750897,"SBD":8.343881,"SCR":14.203006,"SGD":1.298155,"SLL":20969.483762,"SLE":22.750282,"SOS":571.060465,"SRD":36.702503,"STD":20697.981008,"SVC":8.743169,"SZL":18.166067,"THB":33.039853,"TJS":10.342085,"TND":3.007952,"TOP":2.342098,"TRY":38.748875,"TTD":6.788396,"TWD":30.261402,"TZS":2695.45497,"UAH":41.510951,"UYU":41.769959,"UZS":12870.407393,"VND":25978.5,"VUV":121.00339,"WST":2.778525,"YER":244.449483,"ZMW":26.305034},"id":"682148103a1dae5461157070"},"campaignPageAssets":{"scripts":{"main":"https://static.fundraiseup.com/campaignPages.9e96f07f24c122ce9375.js","vendors":"https://static.fundraiseup.com/campaignPagesVendors.0b4049721dd36c3702a1.js"},"css":{"ltr":"https://static.fundraiseup.com/campaignPages.aa00efefad0be6d86baf.css","rtl":"https://static.fundraiseup.com/campaignPages.aa00efefad0be6d86baf.rtl.css"},"fonts":{"ibmPlexSans400":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.woff2","ibmPlexSans500":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.woff2","ibmPlexSans600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.woff2","ibmPlexSans700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-700.woff2","ibmPlexSansArabic600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-600.woff2","ibmPlexSansArabic700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-700.woff2","verveine400":"https://static.fundraiseup.com/common-fonts/verveine/verveine-400.woff2"}},"apiUrl":"https://api.fundraiseup.com","staticUrl":"https://static.fundraiseup.com","trackingUrl":"https://fndrsp.net","donorPortalUrl":"https://kennedykrieger.donorsupport.co","stripePublicKey":{"live":"pk_live_9RzCojmneCvL31GhYTknluXp","test":"pk_test_PIcNaumXzkrpufsvKlKULLIZ"},"paypalClientId":"Afbm69ig8nMRLmZKS-QoONq7qIHPqlpYJ1l3vyxE_la-UZPU_eEkKH2HRpHFkl7SNJ8a_eKvDkcT9-My","googlePayInfo":{"stripeAPIVersion":"2023-10-16","allowedCardNetworks":["AMEX","DISCOVER","JCB","MASTERCARD","VISA"],"allowedAuthMethods":["PAN_ONLY","CRYPTOGRAM_3DS"],"merchantId":"BCR2DN6T7OI7T6IH"},"env":"production","sentryUri":"https://e4f08d23cf4e4dd080d8b4853ea3f102@sentry.fundraiseup.com/9","uploadcareKey":"5a1e3737b731e848bee9","mainDomain":"fundraiseup.com","integrations":{"dtd":true},"sentryApiKey":"e4f08d23cf4e4dd080d8b4853ea3f102","isFundraiseupVisitor":false,"disablePreloading":false,"deviceData":{"isMobile":false,"isMobileOrTablet":false,"isMobileSafari16":false},"experimentsConfig":{"experiments":[{"name":"DummyExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"33802","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"LessPaymentOptionsExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1},{"name":"test-3","weight":1},{"name":"test-4","weight":1}],"experimentId":"40193","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellCurtainExperiment","enabled":false,"variants":[{"name":"control","weight":33},{"name":"test-1","weight":33},{"name":"test-2","weight":33},{"name":"test-3","weight":1}],"experimentId":"43030","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutModalVsCampaignPagesExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"58415","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MatchDonationInSocialProofExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1}],"experimentId":"59325","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SteplessMobileCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"60395","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenV3Experiment","enabled":true,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"65613","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPostDonationUpsellCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"70084","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPreDonationUpsellExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"73814","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPresetsInDonationFormV2Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"82987","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SendBeaconVsFetchKeepAliveExperiment","enabled":false,"variants":[{"name":"control","weight":80},{"name":"test","weight":20}],"experimentId":"87177","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV3Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"92387","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV31Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"107996","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutMobileExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"59392-mobile","enabledAccounts":[],"disabledAccounts":["AJZSDMZE","AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS","AKVYFUBL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutDesktopExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1}],"experimentId":"59392-desktop","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV4Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"110192-modal","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPresetsExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1}],"experimentId":"59097-modal","enabledAccounts":[],"disabledAccounts":["AWFXWKCB","AVCYLAJJ","AUVYPFTF","AJQQEYDC","APKJZMBK","ASQMJVUY","AQEGFEES","AGSVAXHS","ALGWNCES","AWWXMPZR","AXLVWKZF","AYSXGFLA","ALJRVDPY","AGNTWTBJ","AFHDMWFQ","ARPSFYJG","ARHVGWAD","ALNSLQRP","AXLWVTGK","ABXQVBCC","AWPTDYZS","ABLAYHFK","ACYYCJSS","AERPMFNV","AHLNTGLT","ACACYXKN","ANCBYMWS","AVRUAVBN"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenDataCollectCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":9},{"name":"test","weight":1}],"experimentId":"112996-modal","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV31Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"108741-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutStepsCheckoutModalExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"59119-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonorRatingCheckoutExperiment","enabled":true,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1}],"experimentId":"99706-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPDUCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"89260-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlDefaultFrequencyInDonationFormV3Experiment","enabled":true,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"103991-df","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DefaultFrequencyV3ModalExperiment","enabled":true,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"103991-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"107649-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FloatingLabelsCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test-1","weight":1},{"name":"test-2","weight":1}],"experimentId":"60368-modal","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPostDonationUpsellCheckoutV2Experiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"79870-modal","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsDatasetModalExperiment","enabled":false,"variants":[{"name":"control","weight":0},{"name":"test","weight":1}],"experimentId":"87159-modal","enabledAccounts":[],"disabledAccounts":["AZFMPNQE","ARVHGABZ","AVLMPSRU","AEJGNVQN","APZMZAGU","AGSTXLKM","ALCUDRVC","AJGERPHC","AFHQHUFB","AUPRPMUE","AVALTECL","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CollectDatasetPostDonationUpsellAmountCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","weight":0},{"name":"test","weight":1}],"experimentId":"89924-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsSuggestionModalExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"89701-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"BirthdayDonationCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":1},{"name":"test","weight":1}],"experimentId":"84301-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS","AVYLHELK"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmazonPayCheckoutExperiment","enabled":false,"variants":[{"name":"control","weight":0},{"name":"test","weight":1}],"experimentId":"87699-modal","enabledAccounts":[],"disabledAccounts":["AVLMPSRU","AFHQHUFB","AUPRPMUE","AAMRKAJS"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"}]},"abTestMode":false,"browserData":{"browser":{"name":"Firefox","version":"60.0","major":"60"},"device":{},"engine":{"name":"Gecko","version":"60.0"},"os":{"name":"Windows","version":"7"},"isSupported":false,"isCommonBrowser":true,"isInAppBrowser":false},"fontsAssets":["https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.woff2"],"fromDonorPortal":false,"currentCompanyKey":"ACDKZLNU","clientId":"17470558818115411740"},knownKeys:{campaignKeyGroups:{"onlyCampaignPages":{"withAskPage":[["FUNPALJGGKS"],["FUNTLZWQXTN"],["FUNRVNNZKYA"]],"noAskPage":[]},"onlyCheckoutModal":{"withAskPage":[["FUNLMVMGKEZ","MainForm"],["FUNSQYKMGGG"],["FUNCRKGGWCH","Tributes"],["FUNMBCEMJKF","Society"],["FUNXLCWHSEM","Monthly"],["FUNMSTWJHXZ","FestivalOfTrees"],["FUNKQPQQLMD","Sturge-Weber"],["FUNUZGZHWCU","ICSCI"],["FUNVNBATHWJ","CARD"],["FUNTWJJWTKE","PCS"],["FUNKNKPQNLZ","LBSL"],["FUNHDTCBEVQ","EndofYear"],["FUNFEJNWVHY"],["FUNCJHRENAP","NDW"],["FUNZPLURUSM"],["FUNZKZMKQZE"],["FUNXTCNYKFY","EDEC"],["FUNAFJYQJPR","Schools"],["FUNGMPJSMAP"],["FUNGBMWFQDR","HELP"],["FUNQJRMYXMM","ALD"],["FUNHHALCDRA"],["FUNTUMPQFHK"],["FUNCKCGUGZQ"],["FUNVHLHUMFF"],["FUNSXMLTUKM"],["FUNERQGMWNS"],["FUNWGQELSFH"],["FUNPVXFGJWP"],["FUNPMEJSDKT"],["FUNMCSEHDZS"],["FUNJSACHGED"],["FUNYVDEBCJS"],["FUNULDDSULE"],["FUNNSQGXTMT"],["FUNKHEXVPMX"],["FUNUFKMSHWZ"],["FUNKBHSVRGD"],["FUNQKMDRQEZ"],["FUNPKYUERLA"],["FUNRECPXEGC"],["FUNQXRLVQVZ"],["FUNRBEFQLJJ"],["FUNZBRLWAHX"],["FUNBQJRELRJ"],["FUNPHBSEQVN"],["FUNCULLPFVP"],["FUNYZWMSZAP"],["FUNATUGKFUJ"],["FUNDFWEAKFC"],["FUNNEJHLNEB"],["FUNSYZTGASC"],["FUNTSNBKUQW"],["FUNABHFJRKA"]],"noAskPage":[]},"bothTypes":{"withAskPage":[["FUNDBYHZSZZ"]],"noAskPage":[]}},elements:{"reminder":["XKPCSUAD","XBRPVPNK","XMNNYJVK","XQKZUKMD","XWBJNRMY","XPBMFCNQ"],"donationForm":["XYEDULRZ","XXPYJMMZ","XPMZYTBN","XRRMRSSN","XAPBPLGC","XGNAKYQY","XGAVSRVT","XDSAZPDN","XMALXFQC","XQBFBNKV","XPLNWUMV","XRSYXEJR"],"textLink":["XPESBLQU","XSJNRSEH","XQFUMJNQ","XCFANKBS","XKYCZQFT","XNGKJXDP","XGDRCGLW","XYAWDHXL","XKAERHRB","XZPTNGHT","XRWTJBFK","XXVQJSXM","XLQZDFBF","XDWYRNRV","XPTLVTVU","XQPJDVQH","XBGJBJBK","XBLYUAJE","XGYCZMRN","XYJUGYDC","XRGJMDYP","XNLYXRHW","XHQSREQP","XNCZKGBY","XGCYXSFE","XRKCVNDX","XTYXGHGF","XBDNEENQ","XYLXTVWC","XMEHSFVJ","XLSTNZPQ","XFUZRTDC","XKXAXVRU","XNLYFAWL","XEDTSPVG","XFAJVSUC","XZWUZTKW","XPDJKUGA","XRENYUMV","XMCGQCCJ","XNYLHMVM","XJTEDKZH","XQAXFLDU","XCLKBSYV","XMWNMKDY","XNUNNCGQ","XRRSVZZL","XCDGKQJW","XNDULDWA","XMGWRKGF","XCMKCAPG","XTQXFEHA","XTTFYFKS","XDHYEEKB","XHBDLSWR","XFTCQYMD","XGEDRAAP","XGUXUWRG","XRFLQTJD","XELBABZJ","XQGXMNGF","XLHPASMW","XYNNJFMX","XTALRRWW","XABZCTGV","XHDJWHKY","XFALUJYS","XAWYBCSF","XAJMKULK","XPWTLJCV","XQNZKGPP","XYDVRLVS","XPPQKCGR","XADHVSAG","XNRJXZEJ","XNQSQBXK","XTPPJMZH","XEHPLDNL","XRXZTNEZ","XHEHJTRX","XKKXMXSL","XBPKFLVG","XMRZTCTD","XDLBVCJJ","XAUJHQFP","XKUBJEVP","XRTSXPNT","XZKPHEQD","XUKULUKJ","XXRHYJQH","XBBFABSS","XBNXLFQL","XTALBKBK","XAGADJGR","XAJZCCTJ","XBGGAAUP","XQRTLWGC","XCXYMLUX","XLRPGCKQ","XFFNXRGT","XBBCBEJB","XQWWDPNA","XZCEYJKY","XMRFETHC","XRSUYMXQ","XSNALZGL","XBHQETVE","XWTXPMBU","XAUEBTGA","XWXDEZCQ","XFVDNVBW","XVDYKYXS","XEVQKUTH","XHVULRAZ","XUDMAHQH","XZJPQEYB","XZEWBTQS","XFFKFJFR","XGCVVLSM","XRGLGKJF","XAAPHRKA","XFQFWGXS","XUUAEEDH","XTQBTVMP","XQCNGLKB","XDEUAGBR","XTTVREQE","XVNAGTQV","XEHHJPGN","XFERYPWN","XYJJBQMZ","XLDEJNXQ","XJLVXFQF","XPNAGCMJ","XKDSSVXN","XJXHSZWJ","XCALJYZA","XVTCQWVH","XQAVVHRR","XHSEKKTY","XKKPABNW","XLEZNWZL","XAPGCSEW","XXUGLQMP","XULPKZUU","XPGGSBFS","XMWJFUUN","XFTTPXBP","XWJLFZXM","XJLWCGBA","XCNUWLDM","XCGWCZJD","XGECQJXH","XWUETZZR","XUMBDCWN","XKDAEUJZ","XTMXQEWS","XMSAXFVE","XUBVZJSH","XNAFLSJH","XHJZVSFP","XVMWKKMJ","XUYZRWXL","XFZGGQEV","XMLPCYZE","XYSDAJZZ","XFZEZWDD","XYLYZBLB","XZPMVZAE","XKTRYCUV","XXDWHDAY","XYSSLAGQ","XRQSCRCK","XTYWJBAA","XDGJGZJG","XVTZVNUK","XNXTBDXQ","XMMPSMJP","XPQKEMCS","XXMAHXVQ","XAPMRGQL","XKLEAWVE","XDYGEWCW","XSUZLKYM","XPDKQPPT","XUAHBARK","XBMKRMNF","XFGWLLFE","XSXGTKRZ","XQKNAYZX","XHTCYNRE","XFTUNHGG","XSWEUHCB","XXNHBVUE","XVJCEMZZ","XLTAJZXL","XMLTHCQM","XBCGATGE","XCZYDWJQ","XQXAVNQB","XLVEZSVN","XNGWNVQY","XESPAUZF","XGWZWGMZ","XYDCSLNS","XMHGWTGK","XCGWCGNZ","XRPEENJK","XEYBZCYX","XZEFEFYW","XPYWHMVC","XVQZQSDL","XRCKZQDB","XVSFRHWN","XDAJMJMB","XFFQHZVF","XKYWKCPV","XABESHLF","XRKXDSPL","XCLQZUDF","XAMCJBGQ","XGSUUJSY","XGCLBSZQ","XFFBDSVQ","XUMUGHXT","XYDHDPFQ","XDTDYFQL","XXTKGTZV","XBHRKMSF","XEZHCLVJ","XFCWTKXW","XXLNJLDA","XJQJQEXL","XUUYWMYA","XWCABVNA","XGDSVMSH","XRLZHNZT","XWMZWLVN","XNFGKBXP","XQZKZKKE","XZYMQMPJ","XUSNKXXZ","XPRBHZUN","XUUQFWDZ","XADXQXHS","XLKBYBYL","XQLHREEY","XMPPAZKN","XHABUSXB","XBSMNCZK","XKFUJLXZ","XGYTCWXS","XMMJJHCB","XQNYKXLV","XFJTPJGE","XRMTTKNP","XNVRYPYA","XJUTBDAU","XCRKDQUW","XEXDTXWQ","XHYSDXAE","XLNWRVVV","XXKAYKGA","XZHNEXYQ","XPRHXQJN","XBNENLNZ","XSTFGGEU","XNLSURUE","XTCWALFK","XVCZMDQB","XZJTRXTV","XFNLHPEP","XXUJQRRS","XAJBTQFH","XBWMWEEA","XGBDMBNT","XYRTKVZQ","XPETWSWT","XZLYHGYW","XKVGEASA","XYSETSMY","XKQNZXEF","XHDQMRKX","XPVQVVDM","XQBRVCSL","XUPHDJKL","XHXNQBHG","XTKWZDNW","XTMXAHQH","XNCVNHEP","XBQUGGPW","XBQFKDYS","XGSWWFWN","XWEDCQFY","XFXVRAYR","XNBPCCUW","XMCURHAR","XCNTWNWH","XBRXKHHD","XHTCRMRN","XYXJMBUU","XFKQVYKF","XSEBXRMU","XLMDUUZE","XXZCJXST","XSLHETVP","XQQWPZYA","XLJEGWBJ","XVFDPHGP","XUESWWQY","XPPRHLFK","XCQUSYEG","XNQKVRPB","XWKFQNAG","XWRDJWPR","XEULEGUB","XXYDCLSW","XWZPCLKL","XJXZLYQV","XYDZBQTL"],"stickyButton":["XDMLVXHX","XJVZFGME","XJLNZMHH","XGBKAPDS","XVQSTDVX"],"qrCode":["XUDKXQSL","XXAXTYHZ","XMFCEDAT","XKFECPEP","XPXYQQSW","XWFLNQVG","XYTMSKNT","XGLFQMCN","XUTHNAJE","XDDMKCHN","XQSKTYZE","XRHZBGHD","XCGBGDJY","XXTDSGHB","XHHRFWMX","XSPTBBEQ","XUHVWQPJ","XNSJSKKX","XZDGSSMS","XJWFWJXS","XCQRBQLK","XPMLZRTU","XKLBHXDF","XGNMFCCD","XTJTEQZX","XVBBEPCM","XLNFTSXM","XSPNPRAU","XZTTBLLG","XNQVXYAM","XRLVFART","XUDQYJLW","XTWEXWUF","XZMJJQSA","XEZKLMNZ","XWHNYEDG","XGFTQQMJ","XPHTMNKG","XZSVRVVD","XLQPHDBG","XKZZLRMP","XBHUUYFQ","XJWDATSP","XMSRJTFE","XZREYNHE","XZSXYKZW","XFKULQDM","XKPYVUYV","XJHMPYRZ"],"goalMeter":["XZYSJDHQ","XKCLVHRW","XZRTSKPB","XWVXJTWX","XSEGVTJP"],"imageCard":["XKWLGMLB","XHAXCHDZ","XWKMVEKJ","XDQRGQGL","XUSXBDFM","XUXHBUYR","XNGPTHZB","XHLKHMWQ","XLNYYZTA","XKKSTLML","XPSZNTDD","XJZRUDEJ","XAMAQRBE","XSLNFMUT","XPHXUQLW","XKMYRXVT","XRTGPPGC","XUCUDPBC","XQCUYBBT","XPSVABTX","XRXXPYCH","XPXTBDNB","XSYAHBYM","XTQAHPEL","XDWXMUUS","XGVEUCNG","XCGYMPUY","XGGLVLLN","XVGPAASH","XLEKSPBD","XDDJERAD","XFJBBGYA","XJPBHTFZ"],"simpleForm":["XZTNDELG"],"donationLevels":["XEMRXLWG"],"socialProof":["XNTXLFWE","XLPQRQGX","XNTFCNLG","XJABSTAB"],"donateButton":["XABRDPMM","XVKNCCTB","XJBXNLAA","XRQDQDTU","XWMXPFZW","XEPPJELR","XPQUPZDA"],"recentDonations":["XUSEVDFF","XGKHCVYT"],"lightbox":["XVLLBLNV"]},inactiveWidgets:[]},company:{"key":"ACDKZLNU","disabledWidgets":{"redirectTo":"widget","url":"","widgetKey":"FUNLMVMGKEZ"},"localization":{"defaultLocale":"en-US","interfaceLocales":["ar-001","zh-CN","zh-TW","da","nl","en-CA","en-GB","en-US","fi-FI","fr-CA","fr-FR","de","hu","it","ja","ko","no","pt-BR","pt-PT","ru-RU","es","sv"],"matchBrowserLocale":true,"matchURL":false,"urlRules":[]},"parentKey":null,"country":"US"},version:'250512-0924',meta:null}),i=n.get(13),o=n.get(11),a=n.get(32);(e=>{const t=e.get();t&&!("settings"in t)&&s.A.remove(r.e.EXPERIMENTS,{path:window.location.pathname})})(n.get(15)),a.initialize(),i.fromDonorPortal&&(null===(t=window.FUN)||void 0===t?void 0:t.showDebugPanel)&&(o.showDebugPanel=window.FUN.showDebugPanel),window.FUN=o,window.FUN.init().then((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"FundraiseUp.optimize.activate"}),ir.log("initialized")})).catch((e=>{console.error(e)}))}()})()})();
