
/*! For license information please see c5be95cc7e33.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(n=>{var o=n,r=i[n];t[o]=e[r]}),t},expandPayload:function(e){var t={},n=["up"],o=Object.keys(e).filter(e=>-1===Object.keys(i).indexOf(e)&&!n.includes(e));return o.length&&(t.UNMATCHED={},o.forEach(n=>{t.UNMATCHED[n]=e[n]}),t.invalid=!0),Object.keys(i).forEach(o=>{if(!n.includes(o)){var r=o,a=i[o];e[r]&&(t[a]=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 a=r[1],s=(0,i.U)(n),c={key:a};return Object.assign(c,s),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,a]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(a):i[r]=a}catch(e){console.error(e)}}return i}n.d(t,{U:()=>i})},"./src/helpers/waitBody.ts":(e,t,n)=>{"use strict";function i(e,t){if(e.body)return t();setTimeout(i.bind(null,e,t),10)}n.d(t,{c:()=>i})},"./src/keysKeeper/types.ts":(e,t,n)=>{"use strict";var i;n.d(t,{$:()=>i}),function(e){e.WIDGET="WIDGET",e.ELEMENT="ELEMENT",e.FUNDRAISING_PAGE="FUNDRAISING_PAGE"}(i||(i={}))},"./src/serviceContainer/getFrontendContainer.ts":(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var i=n("./src/shared/types/embed/errorCode.ts");class o{providers=(()=>new Map)();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(`${i.k.SERVICE_HAS_ALREADY_BEEN_PROVIDED} ${String(e)}`),this):(this.providers.set(e,t),this)}}function r(){return window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new o),window.FUN_SERVICE_CONTAINER}},"./src/shared/common/debug/Debug.ts":(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var i=n("../murmur/dist/murmur.js"),o=n("../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs"),r=n("../fun-storage/dist/webpack/funCookiesKeys.js");class a{codes;expose;prefix;constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.codes=t,this.expose=void 0!==o.A.get(r.e.DEBUG),this.prefix=e}createInstance(e){return new a(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)}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})}}}},"./src/shared/common/embed/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{Ru:()=>o,cH:()=>r,dy:()=>a,i:()=>s});const i=/#(.+?)(&|$)/;function o(e,t){let n=e;for(;;){if(t(n))return n;if(!n.parentNode)return;n=n.parentNode}}function r(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],o=i.exec(n);if(!o)return null;const r=o[1],a=function(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,a]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(a):i[r]=a}catch(e){console.error(e)}}return i}(n),s={key:r};return Object.assign(s,a),s}function s(e){const t=[];for(const[n,i]of e)t.push(`${encodeURIComponent(n)}=${encodeURIComponent(i)}`);return t.join("&")}},"./src/shared/types/embed/errorCode.ts":(e,t,n)=>{"use strict";var i;n.d(t,{k:()=>i}),function(e){e[e.COMPANY_NOT_FOUND=1]="COMPANY_NOT_FOUND",e[e.UNSUPPORTED_STORAGE_TYPE=2]="UNSUPPORTED_STORAGE_TYPE",e[e.BACKDROP_CONTAINER_IS_NOT_AVAILABLE=3]="BACKDROP_CONTAINER_IS_NOT_AVAILABLE",e[e.EXPERIMENT_ALREADY_STARTED=4]="EXPERIMENT_ALREADY_STARTED",e[e.INVALID_VARIANT_NAME_FOR_EXPERIMENT=5]="INVALID_VARIANT_NAME_FOR_EXPERIMENT",e[e.STORED_SETTINGS_MUST_BE_AN_OBJECT=6]="STORED_SETTINGS_MUST_BE_AN_OBJECT",e[e.INVALID_DISTRIBUTION_IN_EXPERIMENT=7]="INVALID_DISTRIBUTION_IN_EXPERIMENT",e[e.NO_SUCH_SETTINGS_FOR_EXPERIMENT=8]="NO_SUCH_SETTINGS_FOR_EXPERIMENT",e[e.NO_SUCH_EXPERIMENT=9]="NO_SUCH_EXPERIMENT",e[e.UNSUPPORTED_TYPE_OF_STORAGE=10]="UNSUPPORTED_TYPE_OF_STORAGE",e[e.FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED=11]="FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED",e[e.NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED=12]="NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED",e[e.UNSUPPORTED_LOCALE_CONFIG_TYPE=13]="UNSUPPORTED_LOCALE_CONFIG_TYPE",e[e.SERVICE_HAS_ALREADY_BEEN_PROVIDED=14]="SERVICE_HAS_ALREADY_BEEN_PROVIDED",e[e.MUST_PROVIDE_COMPANY_KEY=15]="MUST_PROVIDE_COMPANY_KEY",e[e.TRACKER_ALREADY_STARTED=16]="TRACKER_ALREADY_STARTED"}(i||(i={}))},"./src/shared/types/embed/frontendEmbedService.ts":(e,t,n)=>{"use strict";var i;n.d(t,{i:()=>i}),function(e){e[e.BACKDROP=1]="BACKDROP",e[e.STATIC_CONFIG=2]="STATIC_CONFIG",e[e.KEYS_KEEPER=3]="KEYS_KEEPER",e[e.COLLECTOR=4]="COLLECTOR",e[e.RESOLVER=5]="RESOLVER",e[e.DEBUG=6]="DEBUG",e[e.TRACKING_URLS=7]="TRACKING_URLS",e[e.FUN_SESSION_STORAGE=8]="FUN_SESSION_STORAGE",e[e.EMBED_ELEMENTS_API=9]="EMBED_ELEMENTS_API",e[e.EMBED_CHECKOUT_API=10]="EMBED_CHECKOUT_API",e[e.EMBED_INTERNAL_API=11]="EMBED_INTERNAL_API",e[e.EMBED_FORMS_API=12]="EMBED_FORMS_API",e[e.EMBED_CONFIG=13]="EMBED_CONFIG",e[e.EMBED_TRACKER=14]="EMBED_TRACKER",e[e.FUN_EXPERIMENTS_STORAGE=15]="FUN_EXPERIMENTS_STORAGE",e[e.CHECKOUT=16]="CHECKOUT",e[e.EMBED_ELEMENTS_SERVICE=17]="EMBED_ELEMENTS_SERVICE",e[e.ELEMENTS_API=18]="ELEMENTS_API",e[e.EVENT_EMITTER=19]="EVENT_EMITTER",e[e.HTML_ELEMENT_STYLE_MANAGER=20]="HTML_ELEMENT_STYLE_MANAGER",e[e.FUN_TRACKER_STORAGE=21]="FUN_TRACKER_STORAGE",e[e.FUN_STAT_STORAGE=22]="FUN_STAT_STORAGE",e[e.FUN_COOKIES_MIGRATOR=23]="FUN_COOKIES_MIGRATOR",e[e.FUN_COOKIES_MANAGER=24]="FUN_COOKIES_MANAGER",e[e.USER_SESSION=25]="USER_SESSION",e[e.FUN_DEBUG_STORAGE=26]="FUN_DEBUG_STORAGE",e[e.SENTRY_CLIENT=27]="SENTRY_CLIENT",e[e.EXPERIMENTS_CONTROLLER=28]="EXPERIMENTS_CONTROLLER",e[e.CHECKOUT_SKELETON=29]="CHECKOUT_SKELETON",e[e.EMBED_ELEMENTS_URL_API=30]="EMBED_ELEMENTS_URL_API",e[e.CHECKOUT_STEPLESS=31]="CHECKOUT_STEPLESS",e[e.GIFT_CATALOG_CHECKOUT=32]="GIFT_CATALOG_CHECKOUT",e[e.CONSENT_MANAGER_API=33]="CONSENT_MANAGER_API",e[e.GOALS_LOADER=34]="GOALS_LOADER",e[e.EMBED_GIFT_CATALOG_API=35]="EMBED_GIFT_CATALOG_API",e[e.GIFT_CATALOG_CART=36]="GIFT_CATALOG_CART",e[e.GIFT_CATALOG_API=37]="GIFT_CATALOG_API",e[e.EMBED_GIFT_CATALOG_CHECKOUT_API=38]="EMBED_GIFT_CATALOG_CHECKOUT_API",e[e.GIFT_CATALOG_CHECKOUT_SKELETON=39]="GIFT_CATALOG_CHECKOUT_SKELETON",e[e.GIFT_CATALOG_CART_COOKIE_SERVICE=40]="GIFT_CATALOG_CART_COOKIE_SERVICE",e[e.FUN_GIFT_STORAGE=41]="FUN_GIFT_STORAGE",e[e.GIFT_ITEM_DESCRIPTION=42]="GIFT_ITEM_DESCRIPTION",e[e.GIVING_CART_BASKET_BUTTON=43]="GIVING_CART_BASKET_BUTTON",e[e.GIVING_CART_BASKET_API=44]="GIVING_CART_BASKET_API",e[e.GIVING_CART_VALIDATION_POPUP=45]="GIVING_CART_VALIDATION_POPUP",e[e.P2P_FORM=46]="P2P_FORM"}(i||(i={}))},"../../node_modules/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/node_modules/css-loader/dist/cjs.js!../../node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./src/preloader/backdrop.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n("../../node_modules/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/node_modules/css-loader/dist/runtime/sourceMaps.js"),o=n.n(i),r=n("../../node_modules/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/node_modules/css-loader/dist/runtime/api.js"),a=n.n(r)()(o());a.push([e.id,".fun-widget-backdrop-holder {\n  inset: 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  translate: 0 0 99px !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  inset-inline-start: 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 #666 #666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n\n  33% {\n    opacity: 0;\n  }\n\n  66% {\n    opacity: 0;\n  }\n\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    rotate: 0deg;\n  }\n\n  100% {\n    rotate: 359deg;\n  }\n}\n","",{version:3,sources:["webpack://./src/preloader/backdrop.css"],names:[],mappings:"AAAA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,uBAAuB;EACvB,yBAAyB;EACzB,0BAA0B;EAC1B,8BAA8B;EAC9B,+CAA+C;EAC/C,8BAA8B;EAC9B,0DAA0D;AAC5D;;AAEA;EACE,6BAA6B;EAC7B,kCAAkC;EAClC,mBAAmB;EACnB;;0DAEwD;EACxD,qBAAqB;EACrB,kCAAkC;EAClC,sBAAsB;EACtB,0BAA0B;EAC1B,0BAA0B;EAC1B,uBAAuB;EACvB,2BAA2B;EAC3B,2BAA2B;EAC3B,6BAA6B;EAC7B,4BAA4B;EAC5B,kDAAkD;AACpD;;AAEA;EACE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,YAAY;EACd;;EAEA;IACE,cAAc;EAChB;AACF",sourcesContent:[".fun-widget-backdrop-holder {\n  inset: 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  translate: 0 0 99px !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  inset-inline-start: 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 #666 #666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n\n  33% {\n    opacity: 0;\n  }\n\n  66% {\n    opacity: 0;\n  }\n\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    rotate: 0deg;\n  }\n\n  100% {\n    rotate: 359deg;\n  }\n}\n"],sourceRoot:""}]);const s=a},"../../node_modules/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/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 a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);i&&a[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/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/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/.pnpm/css-loader@6.10.0_@rspack+core@1.7.8_@swc+helpers@0.5.19__webpack@5.90.3/node_modules/css-loader/dist/cjs.js!../../node_modules/.pnpm/resolve-url-loader@5.0.0/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()},"../fun-storage/dist/webpack/funCookiesKeys.js":(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/dist/murmur.js":(e,t)=>{"use strict";t.A=function(e,t=0){let n,i,o,r,a,s,c,l;for(n=3&e.length,i=e.length-n,o=t,a=3432918353,s=461845907,l=0;l<i;)c=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,c=(65535&c)*a+(((c>>>16)*a&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,r=5*(65535&o)+((5*(o>>>16)&65535)<<16)&4294967295,o=27492+(65535&r)+(((r>>>16)+58964&65535)<<16);switch(c=0,n){case 3:c^=(255&e.charCodeAt(l+2))<<16;break;case 2:c^=(255&e.charCodeAt(l+1))<<8;break;case 1:c^=255&e.charCodeAt(l),c=(65535&c)*a+(((c>>>16)*a&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,o^=c}return o^=e.length,o^=o>>>16,o=2246822507*(65535&o)+((2246822507*(o>>>16)&65535)<<16)&4294967295,o^=o>>>13,o=3266489909*(65535&o)+((3266489909*(o>>>16)&65535)<<16)&4294967295,o^=o>>>16,o>>>0}},"../../node_modules/.pnpm/js-cookie@3.0.5/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 a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}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("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(i[s]=t.read(a,s),e===s)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","pi":"paymentIntentId","ds":"donationItems","pt":"productType","gd":"giftCartData","pd":"p2pData"}')}},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+"."+{140:"e09d2572e405",707:"12a15023301f"}[e]+"."+{140:"emptyGiftCheckoutScreen",707:"SplitTesting"}[e]+".js",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@fundraiseup/embed:",o.l=(n,i,r,a)=>{if(e[n])e[n].push(i);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var E=l[d];if(E.getAttribute("src")==n||E.getAttribute("data-webpack")==t+r){s=E;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+r),s.src=n),e[n]=[i];var u=(t,i)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(i)),t)return t(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},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 a=i.hasOwnProperty(r)?i[r]:3;if(a<1){var s=e(r);throw t.message="Loading chunk "+r+" failed after 3 retries.\n("+s+")",t.request=s,t}return new Promise(function(e){var t=3-a+1;setTimeout(function(){var s="cache-bust=true&retry-attempt="+t;n[r]=s,i[r]=a-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 a=o.p+o.u(t),s=new Error;o.l(a,n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,i[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var i,r,[a,s,c]=n,l=0;if(a.some(t=>0!==e[t])){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);c&&c(o)}for(t&&t(n);l<a.length;l++)r=a[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=o("./src/helpers/waitBody.ts");var t,n,i,r,a=o("../fun-storage/dist/webpack/funCookiesKeys.js");function s(e,t){return function(e){return e!==n.TESTING}(e)?{domain:t,sameSite:"None",secure:!0}:{domain:t}}!function(e){e.TOP_LEVEL_DOMAIN="topLevelDomain",e.INTENT="intent",e.MESSAGE_BAR="messageBar",e.SOCIAL_PROOF="socialProof",e.POPUP="popup",e.SESSION_AT="sessionAt",e.SESSION_PAGE="sessionPage",e.X_FACTOR="xFactor",e.LIGHTBOX="lightbox",e.LAST_SUCCESS_DONATION_AT="lastSuccessDonationAt",e.FLOATING_BUTTON_POPUP_SHOWN="floatingButtonPopupShown",e.GIFT_CATALOG_CART_ITEMS="giftsCatalogCartItems",e.GIFT_CATALOG_CHECKOUT="giftsCatalogCheckout",e.ZAKAT_CALCULATOR="zakatCalculator",e.GIVING_CART_STATE="givingCartState"}(t||(t={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing",e.LOAD="load"}(n||(n={})),function(e){e.STRING="string",e.OBJECT="object"}(i||(i={})),function(e){e.ENABLED="1"}(r||(r={}));class c{funStorageAdapter;env;_allowWrite;_inMemoryStorage={};constructor(e,t){this.funStorageAdapter=e,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,n){this.funStorageAdapter.initialize({[t.TOP_LEVEL_DOMAIN]:e},n)}getField(e){const t=this.getData();return t&&e in t?t[e]:null}getPersistedField(e){const t=this.funStorageAdapter.getPersistedData();return t&&e in t?t[e]:null}setField(e,n){const i=this.getData()||{};i[e]=n;const o=s(this.env,i[t.TOP_LEVEL_DOMAIN]);this.setData(i,o)}removeField(e){const n=this.getData();delete n[e];const i=s(this.env,n[t.TOP_LEVEL_DOMAIN]);this.setData(n,i)}setInMemoryDataToStorage(){if(!this.allowWrite)throw new Error("Session Storage error - Cannot save data to storage when write is not allowed");if(!this.inMemoryStorage[t.TOP_LEVEL_DOMAIN])return void console.error("Session Storage error: Top level domain is not set");const e=s(this.env,this.inMemoryStorage[t.TOP_LEVEL_DOMAIN]);this.funStorageAdapter.initFuncStorage(this.inMemoryStorage,e)}get inMemoryStorage(){return{...this._inMemoryStorage}}set inMemoryStorage(e){this._inMemoryStorage=e}}class l{storage;sessionPage;sessionAt;initAt;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(t.SESSION_AT,this.sessionAt.toString(10)),this.storage.setField(t.SESSION_PAGE,this.sessionPage)}read(){this.sessionAt=Number(this.storage.getField(t.SESSION_AT))||0,this.sessionPage=Number(this.storage.getField(t.SESSION_PAGE))||0}}class d{field;storage;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 E=o("../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs");function u(){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 p=(e,t=E.A)=>{function n(e,n){t.remove(e,n)}function o(e){return!!window.FUN_DO_NOT_TRACK||!!window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&e!==a.e.CID}return window.FUN_DO_NOT_TRACK&&u().forEach(e=>{n(a.e.CID,{domain:e}),n(a.e.SESSION,{domain:e}),n(a.e.FUNC,{domain:e}),n(a.e.PERFORMANCE,{domain:e})}),window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&u().forEach(e=>{n(a.e.SESSION,{domain:e}),n(a.e.FUNC,{domain:e}),n(a.e.PERFORMANCE,{domain:e})}),{get:function(n){if(o(n))return null;const r=t.get(n);if(!r)return null;if(e===i.OBJECT){let e=null;return e=JSON.parse(r),e}return r},set:function(n,r,a){o(n)||(e===i.OBJECT&&(r=JSON.stringify(r)),t.set(n,r,a))},remove:n}};var m,T,_;function h(e,t){if(!Object.keys(m).find(e=>m[e]===t))throw new Error(`UNSUPPORTED_TYPE_OF_STORAGE ${t}`);return new d(e,p(t))}!function(e){e.STRING="string",e.OBJECT="object"}(m||(m={})),function(e){e.DONOR_PORTAL="donorPortal",e.DASHBOARD="dashboard",e.DASHBOARD_USER="dashboardUser"}(T||(T={})),function(e){e.DUMMY_EXPERIMENT="DummyExperiment",e.CHECKOUT_BUNDLE_EXPERIMENT="CheckoutBundleExperiment",e.DONOR_PORTAL_TEST_EXPERIMENT="DonorPortalTestExperiment",e.CAMPAIGN_PAGE_TEST_EXPERIMENT="CampaignPageTestExperiment",e.EMBED_TEST_EXPERIMENT="EmbedTestExperiment",e.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CheckoutWithoutPreDonationUpsellExperiment",e.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CampaignPagesWithoutPreDonationUpsellExperiment",e.AA_CHECKOUT_EXPERIMENT="AACheckoutExperiment",e.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT="UpsellAmountsDatasetModalExperiment",e.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT="UpsellAmountsDatasetPagesExperiment",e.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT="UpgradeLinksPageAIv2Experiment",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.DONOR_RATING_CHECKOUT_EXPERIMENT="DonorRatingCheckoutExperiment",e.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT="DonorRatingCampaignPagesExperiment",e.ML_DONATION_RETRY_V_3_EXPERIMENT="MlDonationRetryV3Experiment",e.AVERAGE_DONATION_HINT_EXPERIMENT="AverageDonationHintExperiment",e.AVERAGE_DONATION_HINT_CAMPAIGN_PAGES_EXPERIMENT="AverageDonationHintCampaignPagesExperiment",e.FAST_TRACK_CAMPAIGN_PAGES_EXPERIMENT="FastTrackCampaignPagesExperiment",e.SMART_COVERING_FEE_CHECKOUT_V_4_EXPERIMENT="SmartCoveringFeeCheckoutV4Experiment",e.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_4_EXPERIMENT="SmartCoveringFeeCampaignPagesV4Experiment",e.MULTIPLE_RECURRING_PLAN_CHECKOUT_EXPERIMENT="MultipleRecurringPlanCheckoutExperiment",e.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT="AmountPresetsDonationFormV5Experiment",e.DONATE_BY_VOICE_V2_MODAL_EXPERIMENT="DonateByVoiceV2ModalExperiment",e.DONATE_BY_VOICE_V2_PAGES_EXPERIMENT="DonateByVoiceV2PagesExperiment",e.LAPSED_DONOR_REENGAGEMENT_EXPERIMENT="LapsedDonorReengagementExperiment",e.SOFT_UPGRADE_LINKS_EXPERIMENT="SoftUpgradeLinksExperiment",e.DONOR_PORTAL_DONATION_SHARING_BUTTON_EXPERIMENT="DonorPortalDonationSharingButtonExperiment",e.QUARTERLY_UPSELL_V2_MODAL_EXPERIMENT="QuarterlyUpsellV2ModalExperiment",e.QUARTERLY_UPSELL_PAGES_EXPERIMENT="QuarterlyUpsellPagesExperiment",e.CLOUDFLARE_WORKER_STRATEGY_FOR_ELEMENTS_EXPERIMENT="CloudflareWorkerStrategyForElementsExperiment",e.CHECKOUT_CAPTCHA_MODAL_EXPERIMENT="CheckoutCaptchaModalExperiment",e.CHECKOUT_CAPTCHA_PAGES_EXPERIMENT="CheckoutCaptchaPagesExperiment",e.CAMPAIGN_UPSELL_CHECKOUT_EXPERIMENT="CampaignUpsellCheckoutExperiment",e.CAMPAIGN_UPSELL_PAGES_EXPERIMENT="CampaignUpsellPagesExperiment",e.PRE_DONATION_UPSELL_PERSONALIZATION_CHECKOUT_EXPERIMENT="PreDonationUpsellPersonalizationCheckoutExperiment",e.FAST_TRACK_CAMPAIGN_PAGES_V_2_EXPERIMENT="FastTrackCampaignPagesV2Experiment",e.CAMPAIGN_UPSELL_BLOCK_EMAILS_EXPERIMENT="CampaignUpsellBlockEmailsExperiment",e.CAMPAIGN_UPSELL_BLOCK_DP_EXPERIMENT="CampaignUpsellBlockDPExperiment",e.FAST_TRACK_FIRST_SCREEN_CHECKOUT_EXPERIMENT="FastTrackFirstScreenCheckoutExperiment",e.CAMPAIGN_UPSELL_VS_PDU_CHECKOUT_EXPERIMENT="CampaignUpsellVsPduCheckoutExperiment",e.ML_IMPACT_DESCRIPTIONS_CHECKOUT_EXPERIMENT="MLImpactDescriptionsCheckoutExperiment",e.ML_IMPACT_DESCRIPTIONS_CAMPAIGN_PAGES_EXPERIMENT="MLImpactDescriptionsCampaignPagesExperiment",e.AMOUNT_PRESETS_PAGES_V_7_EXPERIMENT="AmountPresetsPagesV7Experiment",e.ML_IMPACT_DESCRIPTIONS_DONATION_FORM_EXPERIMENT="MLImpactDescriptionsDonationFormExperiment",e.AMOUNT_PRESETS_CHECKOUT_V_7_EXPERIMENT="AmountPresetsCheckoutV7Experiment",e.CHECKOUT_UNIVERSAL_STYLE_EXPERIMENT="CheckoutUniversalStyleExperiment",e.SOCIAL_PROOF_RECURRING_HIGHLIGHT_EXPERIMENT="SocialProofRecurringHighlightExperiment",e.ROUND_UP_ABANDONED_DONATIONS_EXPERIMENT="RoundUpAbandonedDonationsExperiment",e.SOCIAL_PROOF_DP_EXPERIMENT="SocialProofDPExperiment",e.ROUND_UP_PDU_CHECKOUT_EXPERIMENT="RoundUpPduCheckoutExperiment",e.DONOR_PORTAL_AA_EMAILS_EXPERIMENT="DonorPortalAAEmailsExperiment",e.DONOR_PORTAL_AA_EXPERIMENT="DonorPortalAAExperiment"}(_||(_={}));const g={[_.DUMMY_EXPERIMENT]:"33802",[_.CHECKOUT_BUNDLE_EXPERIMENT]:"61172",[_.DONOR_PORTAL_TEST_EXPERIMENT]:"68092",[_.CAMPAIGN_PAGE_TEST_EXPERIMENT]:"68383",[_.EMBED_TEST_EXPERIMENT]:"65492",[_.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73814",[_.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73816",[_.AA_CHECKOUT_EXPERIMENT]:"77715",[_.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT]:"87159-modal",[_.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT]:"87159-pages",[_.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT]:"87190",[_.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",[_.DONOR_RATING_CHECKOUT_EXPERIMENT]:"99706-modal",[_.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT]:"99706-pages",[_.ML_DONATION_RETRY_V_3_EXPERIMENT]:"99145",[_.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT]:"115114-DF",[_.AVERAGE_DONATION_HINT_EXPERIMENT]:"101523-modal",[_.AVERAGE_DONATION_HINT_CAMPAIGN_PAGES_EXPERIMENT]:"101523-pages",[_.FAST_TRACK_CAMPAIGN_PAGES_EXPERIMENT]:"101284-pages",[_.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_4_EXPERIMENT]:"113277-pages",[_.SMART_COVERING_FEE_CHECKOUT_V_4_EXPERIMENT]:"113277-modal",[_.MULTIPLE_RECURRING_PLAN_CHECKOUT_EXPERIMENT]:"114635-modal",[_.DONATE_BY_VOICE_V2_MODAL_EXPERIMENT]:"138976-modal",[_.DONATE_BY_VOICE_V2_PAGES_EXPERIMENT]:"138976-pages",[_.LAPSED_DONOR_REENGAGEMENT_EXPERIMENT]:"120522",[_.SOFT_UPGRADE_LINKS_EXPERIMENT]:"124937",[_.DONOR_PORTAL_DONATION_SHARING_BUTTON_EXPERIMENT]:"119139",[_.QUARTERLY_UPSELL_V2_MODAL_EXPERIMENT]:"167518-modal",[_.QUARTERLY_UPSELL_PAGES_EXPERIMENT]:"133727-pages",[_.CLOUDFLARE_WORKER_STRATEGY_FOR_ELEMENTS_EXPERIMENT]:"143564",[_.CHECKOUT_CAPTCHA_MODAL_EXPERIMENT]:"138382-modal",[_.CHECKOUT_CAPTCHA_PAGES_EXPERIMENT]:"138382-pages",[_.CAMPAIGN_UPSELL_CHECKOUT_EXPERIMENT]:"99700-modal",[_.CAMPAIGN_UPSELL_PAGES_EXPERIMENT]:"99700-pages",[_.PRE_DONATION_UPSELL_PERSONALIZATION_CHECKOUT_EXPERIMENT]:"118659-modal",[_.FAST_TRACK_CAMPAIGN_PAGES_V_2_EXPERIMENT]:"142680-pages",[_.CAMPAIGN_UPSELL_BLOCK_EMAILS_EXPERIMENT]:"118132",[_.CAMPAIGN_UPSELL_BLOCK_DP_EXPERIMENT]:"118325",[_.FAST_TRACK_FIRST_SCREEN_CHECKOUT_EXPERIMENT]:"141536",[_.CAMPAIGN_UPSELL_VS_PDU_CHECKOUT_EXPERIMENT]:"156882-modal",[_.ML_IMPACT_DESCRIPTIONS_CHECKOUT_EXPERIMENT]:"122570-modal",[_.ML_IMPACT_DESCRIPTIONS_CAMPAIGN_PAGES_EXPERIMENT]:"122570-pages",[_.AMOUNT_PRESETS_PAGES_V_7_EXPERIMENT]:"151699",[_.ML_IMPACT_DESCRIPTIONS_DONATION_FORM_EXPERIMENT]:"122570-df",[_.AMOUNT_PRESETS_CHECKOUT_V_7_EXPERIMENT]:"151661",[_.CHECKOUT_UNIVERSAL_STYLE_EXPERIMENT]:"136199",[_.SOCIAL_PROOF_RECURRING_HIGHLIGHT_EXPERIMENT]:"149381",[_.ROUND_UP_ABANDONED_DONATIONS_EXPERIMENT]:"141823",[_.SOCIAL_PROOF_DP_EXPERIMENT]:"143677",[_.ROUND_UP_PDU_CHECKOUT_EXPERIMENT]:"160383-modal",[_.DONOR_PORTAL_AA_EMAILS_EXPERIMENT]:"176587",[_.DONOR_PORTAL_AA_EXPERIMENT]:"176586"};var A,C,S,I,N,O,R,f,y,P,D,L,v,w,U,M,b,k,F,x,K,G,B,H,V,Y,W,X,z,$,j,Z,J,q,Q,ee,te,ne,ie,oe,re,ae,se,ce,le,de,Ee,ue,pe,me,Te,_e,he,ge,Ae,Ce,Se,Ie,Ne,Oe,Re,fe;Object.values(g),function(e){e.BILLING="billing",e.EMBED="embed",e.CAMPAIGN_PAGES="campaignPages",e.DONOR_PORTAL="donorPortal",e.EMAILS="emails"}(A||(A={})),function(e){e.CONTROL="control",e.TEST="test"}(C||(C={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(S||(S={})),function(e){e.CONTROL="control",e.TEST="test"}(I||(I={})),function(e){e.CONTROL="control",e.TEST="test"}(N||(N={})),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"}(f||(f={})),function(e){e.CONTROL="control",e.TEST="test"}(y||(y={})),function(e){e.CONTROL="control",e.TEST="test"}(P||(P={})),function(e){e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(D||(D={})),function(e){e.CONTROL="control",e.TEST="test"}(L||(L={})),function(e){e.CONTROL="control",e.TEST="test"}(v||(v={})),function(e){e.CONTROL="control",e.TEST="test"}(w||(w={})),function(e){e.CONTROL="control",e.TEST="test"}(U||(U={})),function(e){e.CONTROL="control",e.TEST="test"}(M||(M={})),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"}(F||(F={})),function(e){e.CONTROL="control",e.TEST="test"}(x||(x={})),function(e){e.CONTROL="control",e.TEST="test"}(K||(K={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing",e.LOAD="load"}(G||(G={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(B||(B={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(H||(H={})),function(e){e.CONTROL="control",e.TEST="test"}(V||(V={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3",e.TEST_4="test-4"}(Y||(Y={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(W||(W={})),function(e){e.CONTROL="control",e.TEST="test"}(X||(X={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(z||(z={})),function(e){e.CONTROL="control",e.TEST="test"}($||($={})),function(e){e.CONTROL="control",e.TEST="test"}(j||(j={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(Z||(Z={})),function(e){e.CONTROL="control",e.TEST="test"}(J||(J={})),function(e){e.CONTROL="control",e.TEST="test"}(q||(q={})),function(e){e.CONTROL="control",e.TEST="test"}(Q||(Q={})),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.TEST1="test-1",e.TEST2="test-2"}(ne||(ne={})),function(e){e.CONTROL="control",e.TEST="test"}(ie||(ie={})),function(e){e.CONTROL="control",e.TEST_1="test-1"}(oe||(oe={})),function(e){e.CONTROL="control",e.TEST="test"}(re||(re={})),function(e){e.CONTROL="control",e.TEST="test"}(ae||(ae={})),function(e){e.CONTROL="control",e.TEST="test"}(se||(se={})),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"}(Ee||(Ee={})),function(e){e.CONTROL="control",e.TEST="test"}(ue||(ue={})),function(e){e.CONTROL="control",e.TEST="test"}(pe||(pe={})),function(e){e.CONTROL="control",e.TEST="test"}(me||(me={})),function(e){e.CONTROL="control",e.TEST="test"}(Te||(Te={})),function(e){e.CONTROL="control",e.TEST="test"}(_e||(_e={})),function(e){e.CONTROL="control",e.TEST="test"}(he||(he={})),function(e){e.CONTROL="control",e.TEST="test"}(ge||(ge={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(Ae||(Ae={})),function(e){e.CONTROL="control",e.TEST="test"}(Ce||(Ce={})),function(e){e.CONTROL="control",e.TEST="test"}(Se||(Se={})),function(e){e.CONTROL="control",e.TEST="test"}(Ie||(Ie={})),function(e){e.CONTROL="control",e.TEST="test"}(Ne||(Ne={})),function(e){e.CONTROL="control",e.TEST="test"}(Oe||(Oe={})),function(e){e[e.COMPANY_NOT_FOUND=1]="COMPANY_NOT_FOUND",e[e.UNSUPPORTED_STORAGE_TYPE=2]="UNSUPPORTED_STORAGE_TYPE",e[e.BACKDROP_CONTAINER_IS_NOT_AVAILABLE=3]="BACKDROP_CONTAINER_IS_NOT_AVAILABLE",e[e.EXPERIMENT_ALREADY_STARTED=4]="EXPERIMENT_ALREADY_STARTED",e[e.INVALID_VARIANT_NAME_FOR_EXPERIMENT=5]="INVALID_VARIANT_NAME_FOR_EXPERIMENT",e[e.STORED_SETTINGS_MUST_BE_AN_OBJECT=6]="STORED_SETTINGS_MUST_BE_AN_OBJECT",e[e.INVALID_DISTRIBUTION_IN_EXPERIMENT=7]="INVALID_DISTRIBUTION_IN_EXPERIMENT",e[e.NO_SUCH_SETTINGS_FOR_EXPERIMENT=8]="NO_SUCH_SETTINGS_FOR_EXPERIMENT",e[e.NO_SUCH_EXPERIMENT=9]="NO_SUCH_EXPERIMENT",e[e.UNSUPPORTED_TYPE_OF_STORAGE=10]="UNSUPPORTED_TYPE_OF_STORAGE",e[e.FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED=11]="FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED",e[e.NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED=12]="NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED",e[e.UNSUPPORTED_LOCALE_CONFIG_TYPE=13]="UNSUPPORTED_LOCALE_CONFIG_TYPE",e[e.SERVICE_HAS_ALREADY_BEEN_PROVIDED=14]="SERVICE_HAS_ALREADY_BEEN_PROVIDED",e[e.MUST_PROVIDE_COMPANY_KEY=15]="MUST_PROVIDE_COMPANY_KEY",e[e.TRACKER_ALREADY_STARTED=16]="TRACKER_ALREADY_STARTED"}(Re||(Re={})),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"}(fe||(fe={}));const ye=[fe.UNITED_KINGDOM,fe.CANADA,fe.GERMANY],Pe=e=>!ye.includes(e),De=(e,t)=>{const{disabledAccounts:n,enabledAccounts:i}=e,o=n?.find(e=>e===t);if(o)return!1;const r=i?.find(e=>e===t);return!(i?.length&&!r)};var Le;!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.DE_X_INFORMAL="de-x-informal",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"}(Le||(Le={}));const ve=[Le.EN_US,Le.EN_GB,Le.EN_CA,Le.FR_CA,Le.FR_FR,Le.ES,Le.NL,Le.NO,Le.DE,Le.FI_FI,Le.SV,Le.IT,Le.PT_PT,Le.PT_BR,Le.AR_001,Le.ZH_CN,Le.ZH_TW,Le.JA,Le.KO,Le.HU,Le.DA,Le.ES_US,Le.PL_PL,Le.DE_X_INFORMAL,Le.RU_RU],we=[Le.AR_001];var Ue,Me;function be(e,t,n){return e.replace(new RegExp(t,"g"),n)}function ke(e){return e.split("-")[0]}(Me=Ue||(Ue={})).LTR="ltr",Me.RTL="rtl";const Fe={"&amp;":"&"};function xe(e){let t=e;for(const n in Fe)Object.prototype.hasOwnProperty.call(Fe,n)&&e.includes(n)&&(t=be(t,n,Fe[n]));return t}function Ke(e,t=!1){return!t&&function(e){return we.includes(e)}(e)?Ue.RTL:Ue.LTR}function Ge(e){const t=e.split("-");if(t.length<2)return!1;const n=t.indexOf("x");return-1===n||n>1}class Be extends Error{constructor(e){super(`${Re.EXPERIMENT_ALREADY_STARTED} - ${e}`)}}class He extends Error{constructor(e){super(`${Re.STORED_SETTINGS_MUST_BE_AN_OBJECT} - ${e}`)}}class Ve extends Error{constructor(e){super(`${Re.NO_SUCH_SETTINGS_FOR_EXPERIMENT} - ${e}`)}}class Ye extends Error{constructor(e){super(`${Re.INVALID_VARIANT_NAME_FOR_EXPERIMENT} - ${e}`)}}class We extends Error{constructor(e){super(`${Re.NO_SUCH_EXPERIMENT} - ${e}`)}}class Xe{name;experimentId;excluded=!1;isInitialized=!1;tracker;funStorage;companyKey;parentCompanyKey;widgetKey;globalDisabled;user;featureConfig;enabled;infrastructureParams;enabledWidgets;disabledWidgets;sentry;settings;isActive=!1;disabledAccounts;enabledAccounts;distribution;constructor(e){const{settings:t,companyKey:n,widgetKey:i,tracker:o,funStorage:r,user:a,parentCompanyKey:s,infrastructureParams:c,sentry:l,distribution:d,allowExperiments:E=!0}=e;this.sentry=l,this.companyKey=n,this.parentCompanyKey=s,this.widgetKey=i,this.tracker=o,this.funStorage=r,this.user=a,this.infrastructureParams=c;const{experimentId:u,name:p,disabledAccounts:m,enabledAccounts:T,enabled:_,enabledWidgets:h}=t;this.name=p,this.experimentId=u,this.disabledAccounts=m,this.enabledAccounts=T,this.enabledWidgets=h,this.disabledWidgets=t.disabledWidgets,this.settings=t,this.enabled=_,this.distribution=d;const g=Array.isArray(window.FUN_DISABLED_EXPERIMENTS)?window.FUN_DISABLED_EXPERIMENTS:[];this.globalDisabled=!E||window.FUN_DISABLE_EXPERIMENTS||-1!==g.indexOf(u)}get isExperimentEnabled(){return((e,t)=>{if(!t)return!1;const{enabled:n,experimentId:i}=t,o=e.get(),r=o&&o.settings[i]?.enabled;return n||Boolean(r)})(this.funStorage,this.settings)}getDebugPanelEnabled(){const e=this.funStorage.get()?.settings;return Boolean(e&&e[this.experimentId]?.enabled)}get active(){return this.isActive}get variantName(){return this.distribution.currentVariantName}get variantKey(){return this.distribution.currentVariantKey}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.variantKey===e}setVariant(e,t=!0){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(){const e=this.getDebugPanelVariant();if(e.variant&&e.enabled)return this.setVariant(e.variant),!0;if(e.enabled&&!e.variant&&(this.excluded=!0),!De(this.settings,this.companyKey))return!1;const t=this.enabledWidgets?.find(e=>e===this.widgetKey);if(this.enabledWidgets?.length&&!t)return!1;const n=this.disabledWidgets?.find(e=>e===this.widgetKey);return!(this.disabledWidgets?.length&&n||(this.distribution.initCurrentVariantName(),0))}activate(){this.isActive?this.sentry.captureException(new Be(this.name)):this.isActive=!0}checkDisabled(){const e=this.getDebugPanelExperimentsSettings();if(e){const t=e[this.experimentId];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 He(e)),null):e?.settings||null}getDebugPanelVariant(){const e=this.funStorage.get()?.settings;if(!e)return{enabled:!1};const t=e[this.experimentId];return t&&t?.enabled?{enabled:!0,variant:t.variant}:{enabled:!1}}}var ze,$e,je,Ze,Je,qe;(qe=ze||(ze={})).CARD="creditCard",qe.APPLE_PAY="applePay",qe.GOOGLE_PAY="googlePay",qe.CLICK_TO_PAY="clickToPay",qe.ACH="ach",qe.PLAID="plaid",qe.PAYPAL="paypal",qe.VENMO="venmo",qe.AU_BECS="auBecsDebit",qe.UK_BACS="ukBacs",qe.ACSS="acss",qe.SEPA="sepa",qe.IDEAL="ideal",qe.CRYPTO="crypto",qe.STOCK="stock",qe.US_BANK_ACCOUNT="usBankAccount",function(e){e.PAN_ONLY="PAN_ONLY",e.CRYPTOGRAM_3DS="CRYPTOGRAM_3DS"}($e||($e={})),function(e){e.AMEX="AMEX",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MASTERCARD="MASTERCARD",e.VISA="VISA"}(je||(je={})),function(e){e.FUNDRAISING_PAGE="fundraisingPage",e.REDIRECT="redirect",e.THANK_YOU_SCREEN="thankYouScreen"}(Ze||(Ze={})),function(e){e.NONE="none",e.GENERAL="general",e.CUSTOMIZED="customized"}(Je||(Je={}));const Qe=[ze.CARD,ze.APPLE_PAY,ze.GOOGLE_PAY,ze.PAYPAL,ze.VENMO,ze.US_BANK_ACCOUNT,ze.CRYPTO];class et extends Xe{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||!Pe(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=>Qe.includes(e))})(r.paymentOptions)||i.fundraisingPage||o.config.consent.type===Je.CUSTOMIZED)}get isTestGroup(){return this.isActive&&this.isVariant(k.TEST)}tryTrackStart(){this.isActive&&this.tracker.customTrack({type:"steplessCheckoutExperimentStarted",data:{variantName:this.variantName,exclusion:this.excluded}})}}const tt=JSON.parse('{"SHP":{"name":"St. Helena Pound","code":"SHP","symbol":"£","digits":2},"EUR":{"name":"Euro","code":"EUR","symbol":"€","digits":2},"AED":{"name":"United Arab Emirates Dirham","code":"AED","symbol":"","digits":2},"AFN":{"name":"Afghan Afghani","code":"AFN","symbol":"؋","digits":2},"XCD":{"name":"East Caribbean Dollar","code":"XCD","symbol":"$","digits":2},"ALL":{"name":"Albanian Lek","code":"ALL","symbol":"","digits":2},"AMD":{"name":"Armenian Dram","code":"AMD","symbol":"֏","digits":2},"AOA":{"name":"Angolan Kwanza","code":"AOA","symbol":"Kz","digits":2},"ARS":{"name":"Argentine Peso","code":"ARS","symbol":"$","digits":2},"USD":{"name":"US Dollar","code":"USD","symbol":"$","digits":2},"AUD":{"name":"Australian Dollar","code":"AUD","symbol":"$","digits":2},"ANG":{"name":"Netherlands Antillean Guilder","code":"ANG","symbol":"","digits":2},"AWG":{"name":"Aruban Florin","code":"AWG","symbol":"","digits":2},"AZN":{"name":"Azerbaijani Manat","code":"AZN","symbol":"₼","digits":2},"BAM":{"name":"Bosnia-Herzegovina Convertible Mark","code":"BAM","symbol":"KM","digits":2},"BBD":{"name":"Barbadian Dollar","code":"BBD","symbol":"$","digits":2},"INR":{"name":"Indian Rupee","code":"INR","symbol":"₹","digits":2},"PKR":{"name":"Pakistani Rupee","code":"PKR","symbol":"Rs","digits":2},"BDT":{"name":"Bangladeshi Taka","code":"BDT","symbol":"৳","digits":2},"XOF":{"name":"West African CFA Franc","code":"XOF","symbol":"","digits":0},"BGN":{"name":"Bulgarian Lev","code":"BGN","symbol":"","digits":2},"BHD":{"name":"Bahraini Dinar","code":"BHD","symbol":"","digits":2},"BIF":{"name":"Burundian Franc","code":"BIF","symbol":"","digits":0},"BMD":{"name":"Bermudan Dollar","code":"BMD","symbol":"$","digits":2},"MYR":{"name":"Malaysian Ringgit","code":"MYR","symbol":"RM","digits":2},"BND":{"name":"Brunei Dollar","code":"BND","symbol":"$","digits":2},"BOB":{"name":"Bolivian Boliviano","code":"BOB","symbol":"Bs","digits":2},"BRL":{"name":"Brazilian Real","code":"BRL","symbol":"R$","digits":2},"BSD":{"name":"Bahamian Dollar","code":"BSD","symbol":"$","digits":2},"BTN":{"name":"Bhutanese Ngultrum","code":"BTN","symbol":"","digits":2},"NOK":{"name":"Norwegian Krone","code":"NOK","symbol":"kr","digits":2},"ZAR":{"name":"South African Rand","code":"ZAR","symbol":"R","digits":2},"BWP":{"name":"Botswanan Pula","code":"BWP","symbol":"P","digits":2},"BYN":{"name":"Belarusian Ruble","code":"BYN","symbol":"","digits":2},"BZD":{"name":"Belize Dollar","code":"BZD","symbol":"$","digits":2},"CAD":{"name":"Canadian Dollar","code":"CAD","symbol":"$","digits":2},"CDF":{"name":"Congolese Franc","code":"CDF","symbol":"","digits":2},"XAF":{"name":"Central African CFA Franc","code":"XAF","symbol":"","digits":0},"CHF":{"name":"Swiss Franc","code":"CHF","symbol":"","digits":2},"NZD":{"name":"New Zealand Dollar","code":"NZD","symbol":"$","digits":2},"CLP":{"name":"Chilean Peso","code":"CLP","symbol":"$","digits":0},"CNY":{"name":"Chinese Yuan","code":"CNY","symbol":"¥","digits":2},"COP":{"name":"Colombian Peso","code":"COP","symbol":"$","digits":2},"CRC":{"name":"Costa Rican Colón","code":"CRC","symbol":"₡","digits":2},"CVE":{"name":"Cape Verdean Escudo","code":"CVE","symbol":"","digits":2},"CZK":{"name":"Czech Koruna","code":"CZK","symbol":"Kč","digits":2},"DJF":{"name":"Djiboutian Franc","code":"DJF","symbol":"","digits":0},"DKK":{"name":"Danish Krone","code":"DKK","symbol":"kr","digits":2},"DOP":{"name":"Dominican Peso","code":"DOP","symbol":"$","digits":2},"DZD":{"name":"Algerian Dinar","code":"DZD","symbol":"","digits":2},"EGP":{"name":"Egyptian Pound","code":"EGP","symbol":"E£","digits":2},"MAD":{"name":"Moroccan Dirham","code":"MAD","symbol":"","digits":2},"ETB":{"name":"Ethiopian Birr","code":"ETB","symbol":"","digits":2},"FJD":{"name":"Fijian Dollar","code":"FJD","symbol":"$","digits":2},"FKP":{"name":"Falkland Islands Pound","code":"FKP","symbol":"£","digits":2},"JPY":{"name":"Japanese Yen","code":"JPY","symbol":"¥","digits":0},"GBP":{"name":"British Pound","code":"GBP","symbol":"£","digits":2},"GEL":{"name":"Georgian Lari","code":"GEL","symbol":"₾","digits":2},"GHS":{"name":"Ghanaian Cedi","code":"GHS","symbol":"GH₵","digits":2},"GIP":{"name":"Gibraltar Pound","code":"GIP","symbol":"£","digits":2},"GMD":{"name":"Gambian Dalasi","code":"GMD","symbol":"","digits":2},"GNF":{"name":"Guinean Franc","code":"GNF","symbol":"FG","digits":0},"GTQ":{"name":"Guatemalan Quetzal","code":"GTQ","symbol":"Q","digits":2},"GYD":{"name":"Guyanaese Dollar","code":"GYD","symbol":"$","digits":2},"HKD":{"name":"Hong Kong Dollar","code":"HKD","symbol":"$","digits":2},"HNL":{"name":"Honduran Lempira","code":"HNL","symbol":"L","digits":2},"HRK":{"name":"Croatian Kuna","code":"HRK","symbol":"kn","digits":2},"HTG":{"name":"Haitian Gourde","code":"HTG","symbol":"","digits":2},"HUF":{"name":"Hungarian Forint","code":"HUF","symbol":"Ft","digits":2},"IDR":{"name":"Indonesian Rupiah","code":"IDR","symbol":"Rp","digits":2},"ILS":{"name":"Israeli New Shekel","code":"ILS","symbol":"₪","digits":2},"ISK":{"name":"Icelandic Króna","code":"ISK","symbol":"kr","digits":2},"JMD":{"name":"Jamaican Dollar","code":"JMD","symbol":"$","digits":2},"JOD":{"name":"Jordanian Dinar","code":"JOD","symbol":"","digits":2},"KES":{"name":"Kenyan Shilling","code":"KES","symbol":"","digits":2},"KGS":{"name":"Kyrgystani Som","code":"KGS","symbol":"","digits":2},"KHR":{"name":"Cambodian Riel","code":"KHR","symbol":"៛","digits":2},"KMF":{"name":"Comorian Franc","code":"KMF","symbol":"CF","digits":0},"KRW":{"name":"South Korean Won","code":"KRW","symbol":"₩","digits":0},"KWD":{"name":"Kuwaiti Dinar","code":"KWD","symbol":"","digits":2},"KYD":{"name":"Cayman Islands Dollar","code":"KYD","symbol":"$","digits":2},"KZT":{"name":"Kazakhstani Tenge","code":"KZT","symbol":"₸","digits":2},"LAK":{"name":"Laotian Kip","code":"LAK","symbol":"₭","digits":2},"LBP":{"name":"Lebanese Pound","code":"LBP","symbol":"L£","digits":2},"LKR":{"name":"Sri Lankan Rupee","code":"LKR","symbol":"Rs","digits":2},"LRD":{"name":"Liberian Dollar","code":"LRD","symbol":"$","digits":2},"LSL":{"name":"Lesotho Loti","code":"LSL","symbol":"","digits":2},"MDL":{"name":"Moldovan Leu","code":"MDL","symbol":"","digits":2},"MGA":{"name":"Malagasy Ariary","code":"MGA","symbol":"Ar","digits":0},"MKD":{"name":"Macedonian Denar","code":"MKD","symbol":"","digits":2},"MMK":{"name":"Myanmar Kyat","code":"MMK","symbol":"K","digits":2},"MNT":{"name":"Mongolian Tugrik","code":"MNT","symbol":"₮","digits":2},"MOP":{"name":"Macanese Pataca","code":"MOP","symbol":"","digits":2},"MRO":{"name":"Mauritanian Ouguiya (1973–2017)","code":"MRO","symbol":"","digits":2},"MUR":{"name":"Mauritian Rupee","code":"MUR","symbol":"Rs","digits":2},"MVR":{"name":"Maldivian Rufiyaa","code":"MVR","symbol":"","digits":2},"MWK":{"name":"Malawian Kwacha","code":"MWK","symbol":"","digits":2},"MXN":{"name":"Mexican Peso","code":"MXN","symbol":"$","digits":2},"MZN":{"name":"Mozambican Metical","code":"MZN","symbol":"","digits":2},"NAD":{"name":"Namibian Dollar","code":"NAD","symbol":"$","digits":2},"XPF":{"name":"CFP Franc","code":"XPF","symbol":"","digits":0},"NGN":{"name":"Nigerian Naira","code":"NGN","symbol":"₦","digits":2},"NIO":{"name":"Nicaraguan Córdoba","code":"NIO","symbol":"C$","digits":2},"SEK":{"name":"Swedish Krona","code":"SEK","symbol":"kr","digits":2},"NPR":{"name":"Nepalese Rupee","code":"NPR","symbol":"Rs","digits":2},"OMR":{"name":"Omani Rial","code":"OMR","symbol":"","digits":2},"PAB":{"name":"Panamanian Balboa","code":"PAB","symbol":"","digits":2},"PEN":{"name":"Peruvian Sol","code":"PEN","symbol":"","digits":2},"PGK":{"name":"Papua New Guinean Kina","code":"PGK","symbol":"","digits":2},"PHP":{"name":"Philippine Peso","code":"PHP","symbol":"₱","digits":2},"PLN":{"name":"Polish Zloty","code":"PLN","symbol":"zł","digits":2},"PYG":{"name":"Paraguayan Guarani","code":"PYG","symbol":"₲","digits":0},"QAR":{"name":"Qatari Riyal","code":"QAR","symbol":"","digits":2},"RON":{"name":"Romanian Leu","code":"RON","symbol":"lei","digits":2},"RSD":{"name":"Serbian Dinar","code":"RSD","symbol":"","digits":2},"RUB":{"name":"Russian Ruble","code":"RUB","symbol":"₽","digits":2},"RWF":{"name":"Rwandan Franc","code":"RWF","symbol":"RF","digits":0},"SAR":{"name":"Saudi Riyal","code":"SAR","symbol":"","digits":2},"SBD":{"name":"Solomon Islands Dollar","code":"SBD","symbol":"$","digits":2},"SCR":{"name":"Seychellois Rupee","code":"SCR","symbol":"","digits":2},"SGD":{"name":"Singapore Dollar","code":"SGD","symbol":"$","digits":2},"SLL":{"name":"Sierra Leonean Leone (1964—2022)","code":"SLL","symbol":"","digits":2},"SLE":{"name":"Sierra Leonean Leone","code":"SLE","symbol":"","digits":2},"SOS":{"name":"Somali Shilling","code":"SOS","symbol":"","digits":2},"SRD":{"name":"Surinamese Dollar","code":"SRD","symbol":"$","digits":2},"STD":{"name":"São Tomé & Príncipe Dobra (1977–2017)","code":"STD","symbol":"","digits":2},"SVC":{"name":"Salvadoran Colón","code":"SVC","symbol":"","digits":2},"SZL":{"name":"Swazi Lilangeni","code":"SZL","symbol":"","digits":2},"THB":{"name":"Thai Baht","code":"THB","symbol":"฿","digits":2},"TJS":{"name":"Tajikistani Somoni","code":"TJS","symbol":"","digits":2},"TND":{"name":"Tunisian Dinar","code":"TND","symbol":"","digits":2},"TOP":{"name":"Tongan Paʻanga","code":"TOP","symbol":"T$","digits":2},"TRY":{"name":"Turkish Lira","code":"TRY","symbol":"₺","digits":2},"TTD":{"name":"Trinidad & Tobago Dollar","code":"TTD","symbol":"$","digits":2},"TWD":{"name":"New Taiwan Dollar","code":"TWD","symbol":"$","digits":2},"TZS":{"name":"Tanzanian Shilling","code":"TZS","symbol":"","digits":2},"UAH":{"name":"Ukrainian Hryvnia","code":"UAH","symbol":"₴","digits":2},"UYU":{"name":"Uruguayan Peso","code":"UYU","symbol":"$","digits":2},"UZS":{"name":"Uzbekistani Som","code":"UZS","symbol":"","digits":2},"VND":{"name":"Vietnamese Dong","code":"VND","symbol":"₫","digits":0},"VUV":{"name":"Vanuatu Vatu","code":"VUV","symbol":"","digits":0},"WST":{"name":"Samoan Tala","code":"WST","symbol":"","digits":2},"YER":{"name":"Yemeni Rial","code":"YER","symbol":"","digits":2},"ZMW":{"name":"Zambian Kwacha","code":"ZMW","symbol":"ZK","digits":2}}');var nt,it;!function(e){e.IN_HONOR_MEMORY="inHonorMemory",e.DEDICATION="dedication"}(nt||(nt={})),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.P2P_FUNDRAISING_BUTTON="p2pFundraisingButton",e.TOP_FUNDRAISERS="topFundraisers",e.DONOR_MAP="donorMap",e.LIGHTBOX="lightbox",e.ZAKAT_CALCULATOR="zakatCalculator",e.AI_ASSISTANT="aiAssistant",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"}(it||(it={}));const ot=e=>"string"==typeof e&&""!==e.trim()?e:void 0;var rt;!function(e){e.V5_1="v5.1",e.V5_2="v5.2",e.V5_3="v5.3",e.V5_4="v5.4"}(rt||(rt={}));const at=/^E[A-Z\d]{7}$/,st=(Y.TEST_1,rt.V5_1,Y.TEST_2,rt.V5_2,Y.TEST_3,rt.V5_3,Y.TEST_4,rt.V5_4,e=>"no"!==e.fundraiseupLivemode&&("boolean"!=typeof window.fundraiseup_livemode||window.fundraiseup_livemode));function ct(e,t){let n=t;return e.isWidgetCustomHash(t)&&(n=e.getWidgetKeyByCustomHash(t)||t),n.toUpperCase()}const lt={};function dt(e){return function(e){const t=lt[e];if(t)return t;const n=new Promise((t,n)=>{setTimeout(()=>{const i=window.document.createElement("script");i.type="text/javascript",i.charset="UTF-8",i.async=!0,i.onerror=e=>{n(e)},i.onload=()=>{t(!0)},i.src=e,window.document.documentElement.appendChild(i),dt._immedeatly&&t(!0)},0)});return lt[e]=n,n}(e)}dt._immedeatly=!1;const Et="pageView",ut="pageLeave",pt="customEvent",mt="dataLayer",Tt="fun_test";var _t,ht;!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.P2P_FUNDRAISING_BUTTON="p2pFundraisingButton",e.TOP_FUNDRAISERS="topFundraisers",e.DONOR_MAP="donorMap",e.LIGHTBOX="lightbox",e.ZAKAT_CALCULATOR="zakatCalculator",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.AI_ASSISTANT="aiAssistant",e.SPLIT_TESTING="splitTesting",e.JS_API="jsApi"}(_t||(_t={}));class gt{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(_t).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)),this.payload.giftCartData&&(e.giftCartData=JSON.stringify(this.payload.giftCartData)),this.payload.p2pData&&(e.p2pData=JSON.stringify(this.payload.p2pData)),e.eventType=this.eventType,e}mergeEventComment(e){this.payload.eventComment||(this.payload.eventComment={}),Object.assign(this.payload.eventComment,e)}}class At extends gt{constructor(e){super(),this.merge({customEventType:e.customEventType,customEventData:JSON.stringify(e.customEventData)})}get eventType(){return pt}}class Ct extends gt{constructor(e){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};const t=e.getElementTrackingData?.();t&&(this.payload.elementData=JSON.stringify(t))}}class St extends Ct{constructor(e,t){super(e),t&&t.elementPartName&&this.merge({eventComment:{source:t.elementPartName}})}get eventType(){return"elementClick"}}class It extends Ct{get eventType(){return"elementOpenCheckout"}}function Nt(e){let{tracker:t,keysKeeper:n,widgetKey:i,splitTestVariant:o,splitTestName:r,elementKey:a,elementType:s}=e;t.track(new It({widgetKey:n?ct(n,i):i,splitTestName:r,elementKey:a,elementType:s,splitTestVariant:o}))}!function(e){e.URL="URL",e.WINDOW="WINDOW",e.URL_MATCHING="URL_MATCHING",e.BROWSER="BROWSER"}(ht||(ht={}));var Ot=o("./src/shared/common/embed/helpers.ts");const Rt="_lang";class ft{checkoutTypes;window;donorPortalUrl;campaignKey;customHash;hasBenefits;constructor(e){this.checkoutTypes=e.checkoutTypes,this.donorPortalUrl=e.donorPortalUrl,this.window=e.window,this.campaignKey=e.campaignKey,this.customHash=e.customHash,this.hasBenefits=e.hasBenefits||!1}shouldRedirect(){return!(!this.donorPortalUrl||!this.checkoutTypes?.campaignPage||!this.hasBenefits&&this.checkoutTypes?.checkoutModal)}getCampaignPageUrl(){if(!this.donorPortalUrl)return"";const e=this.customHash||this.campaignKey;return function(e,t){const n=new URL(`${e}/page/${t}`);return n.toString()}(this.donorPortalUrl,e)}async openCampaignPage(e){const{searchParams:t,elementType:n,element:i,checkoutData:o,checkoutIntent:r,elementTitle:a,elementName:s,elementLocale:c}=e||{},l=this.getCampaignPageUrl();if(!l)return;const d=new URL(l),E=t??new URLSearchParams;E.set("embedClientId",e.clientId),E.set("eventTags",e.tags.join(",")),n&&E.set("elementType",n),a&&E.set("elementTitle",a),s&&E.set("elementName",s),c&&E.set("elementLocale",c),i&&E.set("element",i),o?.fundraiser&&E.set("fundraiser",o.fundraiser),o&&E.set("elementCheckoutData",this.encodeCheckoutData(o)),r&&E.set("checkoutIntent",this.encodeCheckoutData(r)),this.donorPortalUrl===this.window.location.origin&&E.set("fromDonorPortal","1"),e.locale.source&&[ht.URL,ht.WINDOW].includes(e.locale.source)&&E.set(Rt,e.locale.code);const u=d.toString(),p=(0,Ot.i)(E),m=p?`?${p}`:"";(function(){const e=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);return Boolean(e)})()&&await new Promise(e=>setTimeout(e,200)),this.window.location.href=`${u}${m}`}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)}}var yt,Pt,Dt,Lt,vt,wt;!function(e){e[e.INTERNAL_API_INITIALIZED=1]="INTERNAL_API_INITIALIZED",e[e.INIT=2]="INIT",e[e.TRY_TO_OPEN_BY_DIRECT_LINK=3]="TRY_TO_OPEN_BY_DIRECT_LINK",e[e.TRY_TO_OPEN_BY_URL=4]="TRY_TO_OPEN_BY_URL",e[e.TRY_TO_OPEN_BY_ELEMENT_KEY_URL=5]="TRY_TO_OPEN_BY_ELEMENT_KEY_URL",e[e.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL=6]="TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL",e[e.EMIT_EVENT=7]="EMIT_EVENT",e[e.GOT_ELEMENT_RESPONSE=8]="GOT_ELEMENT_RESPONSE",e[e.GOT_GLOBAL_ELEMENTS_RESPONSE=9]="GOT_GLOBAL_ELEMENTS_RESPONSE",e[e.TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS=10]="TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS",e[e.FIND_ELEMENTS=11]="FIND_ELEMENTS",e[e.EXTRACT_NODE_PARAMS=12]="EXTRACT_NODE_PARAMS",e[e.CREATE_ELEMENTS_PARAMS=13]="CREATE_ELEMENTS_PARAMS",e[e.RESOLVE_FUNDRAISING_PAGE=14]="RESOLVE_FUNDRAISING_PAGE",e[e.RESOLVE_KEYS=15]="RESOLVE_KEYS",e[e.EMPTY_RESOLVE_REQUEST=16]="EMPTY_RESOLVE_REQUEST",e[e.SEND_RESOLVE_REQUEST=17]="SEND_RESOLVE_REQUEST",e[e.GOT_RESOLVE_RESPONSE=18]="GOT_RESOLVE_RESPONSE",e[e.DOM_OBSERVER_INIT=19]="DOM_OBSERVER_INIT",e[e.CONSENT_API_INITIALIZED=20]="CONSENT_API_INITIALIZED",e[e.CONSENT_API_UPDATE=21]="CONSENT_API_UPDATE",e[e.CONSENT_API_DISABLED=22]="CONSENT_API_DISABLED",e[e.CONSENT_API_ERROR=23]="CONSENT_API_ERROR",e[e.FIND_GIFT_CATALOGS=24]="FIND_GIFT_CATALOGS",e[e.LOADED_GIFT_CATALOG=25]="LOADED_GIFT_CATALOG",e[e.OPEN_GIFT_CART=26]="OPEN_GIFT_CART",e[e.OPEN_GIFT_CHECKOUT=27]="OPEN_GIFT_CHECKOUT"}(yt||(yt={})),function(e){e.CLOSE="close",e.OPEN="open",e.DONATION_COMPLETE="donationComplete",e.CHECKOUT_INTENT="checkoutIntent"}(Pt||(Pt={})),function(e){e.COMMENT="comment",e.DATES_EDIT="datesEdit"}(Dt||(Dt={})),function(e){e.ONLY_CAMPAIGN_PAGES="onlyCampaignPages",e.ONLY_CHECKOUT_MODAL="onlyCheckoutModal",e.BOTH_TYPES="bothTypes",e.ONLY_GIFT_CATALOGS="onlyGiftCatalogs"}(Lt||(Lt={})),function(e){e.WIDGET="widget",e.URL="url",e.NOWHERE="nowhere"}(vt||(vt={})),function(e){e.CHECKOUT_BEFORE_OPEN="checkoutBeforeOpen",e.CHECKOUT_OPEN="checkoutOpen",e.CHECKOUT_CLOSE="checkoutClose",e.CHECKOUT_INTENT="checkoutIntent",e.DONATION_COMPLETE="donationComplete"}(wt||(wt={}));var Ut,Mt,bt,kt,Ft=o("./src/shared/types/embed/frontendEmbedService.ts");!function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing",e.LOAD="load"}(Ut||(Ut={})),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"}(Mt||(Mt={})),function(e){e.ELEMENTS="ELEMENTS",e.CHECKOUT="CHECKOUT"}(bt||(bt={})),function(e){e.POPUP="POPUP",e.AI_ASSISTANT="AI_ASSISTANT",e.CHECKOUT="CHECKOUT",e.P2P_FORM="P2P_FORM",e.P2P_REGISTRATION_FORM="P2P_REGISTRATION_FORM",e.GIFT_CATALOG="GIFT_CATALOG",e.ZAKAT_CALCULATOR="ZAKAT_CALCULATOR"}(kt||(kt={}));const xt=(e,n,i,o,r,a,s,c,l,d,E,u,p,m,T)=>{let h=null;E.register(_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,et);const A=E.get(_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT);let C=!1,S=null;const I=e=>!!(i.inactiveWidgets||[]).find(t=>{let[n,i]=t;return n===e||i===e}),N=async t=>e.needResolve(t)?new Promise(e=>{setTimeout(e,600)}):Promise.resolve(),O=async(e,t,n,i,o)=>{try{await Promise.all([P(e,t,n,i,o),N(t)])}catch(e){C=!1,x(),console.error(e)}},R=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(C)return;const o=st(i.queryParams||{}),r=Date.now();S=r;const s=t.launcher?.checkoutInitialData?.campaign?.fundraiser,c=ct(a,e),l=[c,s].filter(e=>Boolean(e));return a.isWidgetKeyExists(l)?""===e&&s?(async(e,t,n,i)=>{C=!0,F("",t,!0),await O("",e,t,n,i)})([s],o,t,r):(async(e,t,n,i,o,r,a)=>{if(I(e))return void M(r,e,i);if(K(e))return void await D(e,i,a);C=!0;const s=Boolean(i.launcher?.checkoutInitialData?.campaign?.fundraiser||i.queryParams?.fundraiser);F(e,n,s),await O(e,t,n,i,o)})(c,l,o,t,r,i.currentCompany,n):void 0},f=async(t,n,i)=>{const o=i.launcher?.element?.type===it.DIRECT_LINK,r=await e.resolveKeys({keys:t,livemode:n,externalQueryParams:i.queryParams,isDirectOpen:o});if(r?.campaign?.key){const e=r.campaign.key;if(r.forceCampaignPageOpen||K(e)){const t=new URLSearchParams(i.queryParams||{});return t.delete("form"),await D(e,i,t),r}}return r},y=e=>m().load({widgetKey:e,locale:i.locale.code,source:bt.CHECKOUT}),P=async(e,t,n,o,r)=>{const[E]=await Promise.all([f(t,n,o)]),m=B(E)||H();A.tryTrackStart();let _=L,h=u;m&&(_=v,h=p),await _(),c.emit(wt.CHECKOUT_BEFORE_OPEN,void 0);const g=await h()(s,a,c,d,{resolvedConfig:E,trackingUrls:i.server.trackingUrls,currencyRates:i.data.currencyRates,env:i.server.env,pendingRequests:{goals:y(E.campaign.key)},paymentMethods:i.paymentMethods,livemode:i.livemode,isMobile:i.isMobile,isMobileSafari16:i.deviceData.isMobileSafari16,showcase:!1,externalParams:o,integrations:i.integrations,localeCode:i.locale.code,userMeta:i.meta?.user,infrastructureQueryParams:i?.queryParams,checkoutOpenTimestamp:r,htmlElementStyleManager:l,embedVersion:i.version,mainDomain:i.server.mainDomain,experimentsConfig:i.experimentsConfig,browserData:i.browserData,isDebugMode:i.isDebugMode,isFundraiseupVisitor:i.isFundraiseupVisitor,isAbTestMode:i.abTestDemoMode,steplessCheckoutExperimentVariant:A.variantName,steplessCheckoutExperimentExcluded:A.excluded,fromDonorPortal:i.fromDonorPortal,initialMarketingCookieConsent:T.getUserSessionConsent()});g&&U({checkoutApi:g,key:e,options:o,isLivemode:n})},D=async(e,t,n)=>{const o=n||new URL(window.location.href).searchParams,r=t.launcher?.element?.customHash,a=new ft({donorPortalUrl:i.staticConfig.donorPortalUrl,window,campaignKey:e,customHash:r}),c=t.launcher?.checkoutInitialData?.campaign?.fundraiser,l=c?{checkoutData:{fundraiser:c}}:void 0;await a.openCampaignPage({elementType:t?.launcher?.element?.type,elementTitle:t?.launcher?.element?.title,elementName:t?.launcher?.element?.name,elementLocale:t?.launcher?.element?.locale,element:t?.launcher?.element?.key,checkoutIntent:t?.intent,searchParams:o,clientId:s.clientId,tags:s.getTags(),locale:i.locale,...l})},L=async()=>{const e=i.server.checkoutAssets.scripts.filter(e=>!(e.includes("checkout-rtl-styles")&&w()===Ue.LTR||e.includes("checkout-styles")&&w()===Ue.RTL));await Promise.all(e.map(e=>dt(e)))},v=async()=>{const e=i.server.checkoutSteplessAssets.scripts.filter(e=>!(e.includes("checkout-stepless-rtl-styles")&&w()===Ue.LTR||e.includes("checkout-stepless-styles")&&w()===Ue.RTL));await Promise.all(e.map(e=>dt(e)))},w=()=>Ke(i.locale.code),U=e=>{const{checkoutApi:t,key:n,options:i}=e;t.on(Pt.CLOSE,e=>{const{shouldReopen:t,tributeSelected:r,skipRoundUp:a,...s}=e;C=!1,b(wt.CHECKOUT_CLOSE,s),t?window.setTimeout(()=>{const e={...i,launcher:{...i.launcher,checkoutInitialData:{...i.launcher?.checkoutInitialData,skipRoundUp:a,tribute:{...i.launcher?.checkoutInitialData?.tribute,isSelected:r}}}};R(n,e)},300):o.remove()}),t.on(Pt.CHECKOUT_INTENT,e=>{b(wt.CHECKOUT_INTENT,e)}),t.on(Pt.DONATION_COMPLETE,e=>{b(wt.DONATION_COMPLETE,e),k()});const r=t.getOpenParams();b(wt.CHECKOUT_OPEN,r),setTimeout(()=>{x()},150)},M=(e,t,n)=>{const i=e.disabledWidgets.redirectTo;if(i===vt.WIDGET){if(I(e.disabledWidgets.widgetKey))return void o.remove(!0);const t=n?.launcher?{launcher:{element:n.launcher.element,elementTrackingData:n.launcher.elementTrackingData}}:void 0;return void R(e.disabledWidgets.widgetKey,t)}i===vt.URL&&window.location.assign(e.disabledWidgets.url),o.remove(!0),console.warn(`Campaign is not active | Widget ${t} is archived`)},b=(e,t)=>{n.logCode(yt.EMIT_EVENT,{event:e,payload:t}),setTimeout(()=>{try{c.emit(e,t)}catch(e){console.error(e)}},0)},k=()=>{d.setField(t.LAST_SUCCESS_DONATION_AT,Date.now())},F=(e,t,n)=>{const a=Ke(i.locale.code)===Ue.RTL;o.render({source:kt.CHECKOUT}),r.render({campaignKey:e,isMobile:i.isMobile,isLivemode:t,isRtl:a,hasFundraiser:n})},x=()=>{r.hide()},K=e=>!!G(e),G=e=>a.getCheckoutType(e)===Lt.ONLY_CAMPAIGN_PAGES,B=e=>(A.tryStart({isMobile:i.isMobile,company:i.currentCompany,resolveData:e}),A.isTestGroup),H=()=>i.server.env!==Ut.PRODUCTION&&"true"===new URL(window.location.href).searchParams.get("stepless");return{getLatestStartOpenCheckoutTimestamp:()=>S,open:R,createShowcase:(e,t,n,o,r)=>(e.config.cryptoCurrencies=t,L().then(()=>u()(s,a,c,d,{trackingUrls:i.server.trackingUrls,env:i.server.env,resolvedConfig:e,currencyRates:i.data.currencyRates,paymentMethods:i.paymentMethods,integrations:i.integrations,localeCode:i.locale.code,userMeta:i.meta?.user,infrastructureQueryParams:i?.queryParams,showcase:!0,isMobile:!1,isMobileSafari16:!1,livemode:!1,externalParams:{},checkoutOpenTimestamp:0,node:o,initialScreen:r,htmlElementStyleManager:l,embedVersion:i.version,mainDomain:i.server.mainDomain,experimentsConfig:{experiments:[]},browserData:i.browserData,isDebugMode:i.isDebugMode,isFundraiseupVisitor:i.isFundraiseupVisitor,isAbTestMode:i.abTestDemoMode,fromDonorPortal:i.fromDonorPortal},n))),preloadCheckout:()=>{window.FUN_DISABLE_PRELOADING||(()=>{const e=i.experimentsConfig.experiments.find(e=>e.experimentId===g[_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT]);return function(e,t,n,i){if(!i||!i.enabled)return!1;const o=De(i,e),r=Pe(t);return o&&n&&r}(i.currentCompany.key,i.currentCompany.country,i.isMobile,e)?()=>Promise.all([L(),v()]).then():L})()()},on:(e,t)=>{c.on(e,t)},emit:b,openCheckout:(e,t)=>{const{checkoutExternalParams:n,campaignPageSearchParams:i}=(e=>{if(!e)return{checkoutExternalParams:{launcher:{element:{type:it.JS_API}}}};const t=e.customFields,n=ot(e.fundraiser),i=ot(e.fundraiserMember),o=ot(e.donation?.recurring),r=ot(e.donation?.currency),a=(s=e.donation?.amount,"number"==typeof s&&Number.isFinite(s)?s:void 0);var s;const c=e.config?.modifyAmount,l=ot(e.designations?.[0]?.id),d=e.config?.modifyDesignation,E=ot(e.tribute?.honoree),u=ot(e.supporter?.firstName),p=ot(e.supporter?.lastName),m=ot(e.supporter?.email),T=r?(e=>{const t=e.toUpperCase(),n=tt[t];return n?.digits??2})(r):2,_=void 0!==a?Math.round(a*10**T):void 0,h={queryParams:{fundraiser:n,...i&&{member:i}},launcher:{element:{type:it.JS_API,customFields:t?Object.entries(t).map(e=>{let[t,n]=e;return{name:t,value:n}}):void 0},checkoutInitialData:{campaign:{fundraiser:n},donation:{frequency:o,currency:r,amount:_,isAmountEditable:c},designation:{id:l,isEditable:d},tribute:{inHonorOf:E,labelType:E?nt.IN_HONOR_MEMORY:void 0},supporter:{firstName:u,lastName:p,email:m}}}},g=new URLSearchParams;if(n&&g.set("fundraiser",n),o&&g.set("recurring",o),r&&g.set("currency",r),void 0!==a&&g.set("amount",a.toString()),void 0!==c&&g.set("modifyAmount",c?"yes":"no"),l&&g.set("designationId",l),void 0!==d&&g.set("modifyDesignation",d?"yes":"no"),E&&g.set("tributeHonoree",E),u&&g.set("firstName",u),p&&g.set("lastName",p),m&&g.set("email",m),t)for(const[e,n]of Object.entries(t))g.set(e,n);return{checkoutExternalParams:h,campaignPageSearchParams:g}})(t);Nt({tracker:s,widgetKey:e,keysKeeper:a,elementType:it.JS_API,elementKey:"",splitTestName:"",splitTestVariant:""}),R(e,n,i)},setOpenedCheckoutElementId:e=>{h=e},getLastOpenedCheckoutElementId:()=>h}},Kt=[Le.DE_X_INFORMAL],Gt={[Le.DE]:Le.DE_X_INFORMAL},Bt={[Le.DE_X_INFORMAL]:Le.DE},Ht=["HRMEIGNS","ASMHWLHL","ACQQJBWP"];class Vt{static initializeUserLocales(e,t){return e.map(e=>this.initializeUserLocale(e,t))}static initializeUserLocale(e,t){const n=Ht.includes(t.companyKey);if(Kt.includes(e))return n?e:Bt[e];const i=Gt[e];return i&&n?i:e}static getOriginalLocale(e){return e&&Bt[e]?Bt[e]:e}static isPrivateUseLocale(e){return Kt.includes(e)}static stripPrivateUse(e){return this.getOriginalLocale(e)}}class Yt{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 Wt extends Yt{retrieveLocale(){if(e=this.locale,!ve.includes(e))return null;var e;if(this.localizationConfig.interfaceLocales.includes(this.locale))return this.locale;if(Vt.isPrivateUseLocale(this.locale)){const e=Vt.getOriginalLocale(this.locale);if(e&&this.localizationConfig.interfaceLocales.includes(e))return this.locale}return null}}class Xt extends Yt{retrieveLocale(){var e;return(e=this.locale,this.localizationConfig.interfaceLocales.find(t=>ke(e)===ke(t)))||null}}class zt extends Yt{retrieveLocale(){return ke(this.locale)===ke(this.localizationConfig.defaultLocale)?this.localizationConfig.defaultLocale:null}}var $t,jt;!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"}($t||($t={}));class Zt extends Yt{retrieveLocale(){return ke(this.localizationConfig.defaultLocale)===$t.EN?this.localizationConfig.defaultLocale:null}}class Jt extends Yt{retrieveLocale(){return this.localizationConfig.interfaceLocales.find(e=>ke(e)===$t.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"}(jt||(jt={}));class qt extends Yt{retrieveLocale(){const e=qt.fallbackLocales.get(this.locale);return e&&-1!==this.localizationConfig.interfaceLocales.indexOf(e)?e:null}}qt.fallbackLocales=new Map([[jt.HA,Le.AR_001],[jt.IU,Le.EN_CA],[jt.GD,Le.EN_GB],[jt.CY,Le.EN_GB],[jt.BR,Le.FR_FR],[jt.SQ,Le.IT],[jt.SC,Le.IT],[jt.NB,Le.NO],[jt.NN,Le.NO],[jt.HY,Le.RU_RU],[jt.AZ,Le.RU_RU],[jt.BE,Le.RU_RU],[jt.CE,Le.RU_RU],[jt.ET,Le.RU_RU],[jt.KK,Le.RU_RU],[jt.KY,Le.RU_RU],[jt.LV,Le.RU_RU],[jt.LT,Le.RU_RU],[jt.MN,Le.RU_RU],[jt.TG,Le.RU_RU],[jt.UK,Le.RU_RU],[jt.UZ,Le.RU_RU],[jt.EU,Le.ES],[jt.CA,Le.ES],[jt.GL,Le.ES]]);class Qt extends Yt{retrieveLocale(){return this.localizationConfig.defaultLocale}handle(){return this.retrieveLocale()}}function en(e,t,n){const i=new zt(e,t),o=new Wt(e,t),r=new Xt(e,t),a=new qt(e,t),s=new Jt(e,t),c=new Qt(e,t),l=new Zt(e,t);return o.setNext(i),i.setNext(r),r.setNext(a),n&&(a.setNext(l),l.setNext(s),s.setNext(c)),o}class tn{constructor(e,t){this.locales=e,this.companyLocalizationConfig=t}getUILocale(){const e=new Qt(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=en(e[n],t,n===e.length-1).handle();if(i)return i}return null}(this.locales,this.companyLocalizationConfig)||e.handle()}}function nn(e){const t="^"+e.replace(/([[\]{}()+?.^$|\\/])/g,"\\$1").replace(/\*/g,".*")+"$";return new RegExp(t)}class on{static isLocaleCode(e){return void 0!==e&&ve.includes(e)}constructor(e,t,n,i,o,r){this.translationService=e,this.dateFormatter=t,this.currencyFormatter=n,this.numberFormatter=i,this.company=o,this._locale=on.DEFAULT_LOCALE,this._translationLocale=on.DEFAULT_LOCALE,this._donateToPayCompanyKeys=["AFJCHFEK","APRQUTCN","AFPEVBKG","AMRQSLUN"],this.availableLocales=r.availableLocales,this.locale=r.locale,this.company=o,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,n=this._translationLocale;this.locale=e;const i=[this.translationService.changeLocale(this._translationLocale)];return Promise.all(i).then(()=>this.locale).catch(e=>(this.locale=t,this._translationLocale=n,Promise.reject(e))).finally(()=>{this.dateFormatter.changeLocale(this.locale),this.currencyFormatter.changeLocale(this.locale),this.numberFormatter.changeLocale(this.locale)})}translate(e,t){const n=xe(this.translationService.translate(e,t));return this.replaceDonateToPay(n)}safeTranslate(e,t){const n=xe(this.translationService.safeTranslate(e,t));return this.replaceDonateToPay(n)}formatDate(e,t){return this.dateFormatter.format(e,t)}formatCurrency(e,t){return this.currencyFormatter.format(e,t)}formatAmount(e){return this.currencyFormatter.formatAmount(e)}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){if(this._donateToPayCompanyKeys.includes(this.company)&&this.locale===Le.EN_US){const t=/donations|Donations|Donating|donating|donation|Donation|Donate|donate/g;if(!t.test(e))return e;const n={donations:"payments",Donations:"Payments",Donating:"Paying",donating:"paying",donation:"payment",Donation:"Payment",Donate:"Pay",donate:"pay"};return e.replace(t,e=>n[e])}return e}set locale(e){if(!this.isLocaleAvailable(e))return this._locale=on.DEFAULT_LOCALE,void(this._translationLocale=on.DEFAULT_LOCALE);this._locale=Vt.stripPrivateUse(e),this._translationLocale=this.company?Vt.initializeUserLocale(e,{companyKey:this.company}):e}}let rn;var an,sn;function cn(e,t){if("test"===e)return ln();const n=on.isLocaleCode(e);return{code:n?e:on.DEFAULT_LOCALE,source:n?t:void 0,isTest:!1}}function ln(){return{code:on.DEFAULT_LOCALE,isTest:(void 0===rn&&(rn=!1),rn)}}function dn(e,t){return{code:e,source:t,isTest:!1}}on.DEFAULT_LOCALE=Le.EN_US,function(e){e[e.COMPANY_NOT_FOUND=1]="COMPANY_NOT_FOUND",e[e.UNSUPPORTED_STORAGE_TYPE=2]="UNSUPPORTED_STORAGE_TYPE",e[e.BACKDROP_CONTAINER_IS_NOT_AVAILABLE=3]="BACKDROP_CONTAINER_IS_NOT_AVAILABLE",e[e.EXPERIMENT_ALREADY_STARTED=4]="EXPERIMENT_ALREADY_STARTED",e[e.INVALID_VARIANT_NAME_FOR_EXPERIMENT=5]="INVALID_VARIANT_NAME_FOR_EXPERIMENT",e[e.STORED_SETTINGS_MUST_BE_AN_OBJECT=6]="STORED_SETTINGS_MUST_BE_AN_OBJECT",e[e.INVALID_DISTRIBUTION_IN_EXPERIMENT=7]="INVALID_DISTRIBUTION_IN_EXPERIMENT",e[e.NO_SUCH_SETTINGS_FOR_EXPERIMENT=8]="NO_SUCH_SETTINGS_FOR_EXPERIMENT",e[e.NO_SUCH_EXPERIMENT=9]="NO_SUCH_EXPERIMENT",e[e.UNSUPPORTED_TYPE_OF_STORAGE=10]="UNSUPPORTED_TYPE_OF_STORAGE",e[e.FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED=11]="FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED",e[e.NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED=12]="NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED",e[e.UNSUPPORTED_LOCALE_CONFIG_TYPE=13]="UNSUPPORTED_LOCALE_CONFIG_TYPE",e[e.SERVICE_HAS_ALREADY_BEEN_PROVIDED=14]="SERVICE_HAS_ALREADY_BEEN_PROVIDED",e[e.MUST_PROVIDE_COMPANY_KEY=15]="MUST_PROVIDE_COMPANY_KEY",e[e.TRACKER_ALREADY_STARTED=16]="TRACKER_ALREADY_STARTED"}(an||(an={})),function(e){e.DONOR="donor",e.EMBED="embed",e.TEST="test"}(sn||(sn={}));class En{static get(e){switch(e){case sn.DONOR:return cn;case sn.EMBED:return dn;case sn.TEST:return ln;default:throw new Error(`${an.UNSUPPORTED_LOCALE_CONFIG_TYPE} ${e}`)}}}class un{localeDetector;companyLocalizationSettings;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[Rt],r=o?ht.URL:void 0;return o||(o=e.window[Rt],r=o?ht.WINDOW:void 0),!o&&i.matchURL&&(o=(()=>{let e;return i.urlRules.forEach(n=>{const i=nn(n.url).test(t);!e&&i&&(e=n.locale)}),e})(),r=o?ht.URL_MATCHING:void 0),!o&&i.matchBrowserLocale&&(o=e.window.navigator.languages?[...e.window.navigator.languages]:e.window.navigator.language,r=o?ht.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("test"))return En.get(sn.TEST)();const n=(i=t).filter(e=>{if(!Ge(e)){const t=ke(e);return!i.some(n=>n!==e&&ke(n)===t&&(Ge(n)||n.includes("-")))}return!0});var i;const o=new tn(n,this.companyLocalizationSettings).getUILocale(),r=t.includes(o)?e:void 0;return En.get(sn.EMBED)(o,r)}}var pn=o("./src/helpers/parseQueryParams.ts");const mn=[it.DONATION_FORM],Tn=(it.DONATION_FORM,"smartassistant");class _n extends Xe{baseUrl="";isTestGroup(){return this.isActive&&this.isVariant(oe.TEST_1)}tryStart(e){this.baseUrl=e.elementsUrl,this.isActive||(super.start(),this.tryExpose())}getElementUrl(e){return this.isActive&&this.isTestGroup()?`${window.FUN_CDN||this.baseUrl.replace("static","cdn").replace(/\/embed-data\/?$/,"")}/elements-data/${e}.js`:`${this.baseUrl}elements/${e}.js`}tryExpose(){this.isActive&&this.exposure()}}const hn=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)}};var gn=o("./src/serviceContainer/getFrontendContainer.ts");let An=null;function Cn(){if(An)return Promise.resolve(An);const e=(0,gn.w)();return dt(e.get(Ft.i.STATIC_CONFIG).elementsApiScriptUrl).then(()=>(An=e.get(Ft.i.ELEMENTS_API),An))}const Sn=[it.MESSAGE_BAR,it.LIGHTBOX];const In=[it.FUNDRAISING_PAGE_LINK,it.FUNDRAISING_PAGE_INVITE_LINK,it.LINK,it.DIRECT_LINK,it.DEBUG_PANEL,it.TEST_MODE_PANEL,it.AI_ASSISTANT,it.SPLIT_TESTING,it.JS_API];function Nn(){return"loading"!==document.readyState?Promise.resolve():new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e())})}var On=o("./src/keysKeeper/types.ts");const Rn=[it.STICKY_BUTTON,it.MESSAGE_BAR,it.LIGHTBOX,it.FLOATING_BUTTON];var fn;!function(e){e.ALL="all",e.DESKTOP_ONLY="desktopOnly",e.MOBILE_ONLY="mobileOnly"}(fn||(fn={}));const yn=["/","*"];function Pn(e){let t=e.replace(/(\?.*)/,"").replace(/(#.*)/,"");const n=t.charAt(t.length-1);return-1===yn.indexOf(n)&&(t+="/"),t}const Dn="XFUNDEBUGPANEL";class Ln extends gt{constructor(e){super(),this.payload.eventComment={elementsKeys:e.elementsKeys}}get eventType(){return"elementsDataLoadingError"}}function vn(e,t,n,i,o,r,a,s){const c=i.server.elementsUrl,l=[],d=new Map,E=new Map;let u=[];const p=new Map,m=[];let T;const h=()=>{window.addEventListener("popstate",N),window.addEventListener("hashchange",N);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];e.apply(this,n),N()},history.replaceState=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(this,n),N()}},g=()=>{const n=e.findElements();n.forEach(e=>{const t=d.get(e.key)||[];d.set(e.key,[...t,e]),A(e)});const i=n.map(e=>{let{key:t}=e;return t});t.addFundraisersKeys(i),f(n),O(i)},A=e=>{const o=t.exists(On.$.WIDGET,e.key||"");if(e.type!==it.LINK||!e.node||!o)return;const a=o=>{e.node?.removeEventListener("click",a);const s=o.target;if(s){const e=s.getAttribute("href");e&&function(e){let{tracker:t,href:n}=e;t.track(new At({customEventType:"urlOpenCheckout",customEventData:{href:n}}))}({tracker:r,href:e})}const c=e.node?.__funElement;if(!c&&(o.preventDefault(),o.stopPropagation(),e.key)){const o={queryParams:e.queryParams,launcher:{element:{type:it.LINK,locale:i.locale.code}}};if(e.node){const{test:t,variant:n}=window.FUN.splitTesting?.inspect(e.node)||{};t&&n&&(o.launcher.element.splitTestName=t,o.launcher.element.splitTestVariant=n)}const a={tracker:r,widgetKey:e.key,keysKeeper:t,elementKey:"",elementType:it.LINK,splitTestVariant:o.launcher?.element?.splitTestVariant||"",splitTestName:o.launcher?.element?.splitTestName||""};!function(e){let{tracker:t,keysKeeper:n,widgetKey:i,splitTestVariant:o,splitTestName:r,elementKey:a="",elementType:s=it.LINK}=e;t.track(new St({widgetKey:n?ct(n,i):i,elementKey:a,elementType:s,splitTestName:r,splitTestVariant:o}))}(a),Nt(a),n.open(e.key,o).catch(e=>console.error(e))}};e.node.addEventListener("click",a)},C=(e,t)=>Cn().then(o=>{o.addElements({elements:t?.elements??[],nodes:e,globalElements:t?.globalElements??[]}).then(()=>{i.disablePreloading||n.preloadCheckout()})}),S=async e=>{const t=a.getUrlParamsForElement(e),n={...e,externalConfig:t,data:null};(function(e){return!In.includes(e.type)})(e)&&(n.data=i.livemode?e.data.live:e.data.test);const r=[n],s={params:[e.key]};o.logCode(yt.GOT_ELEMENT_RESPONSE,{elements:r,info:s});const c=d.get(e.key);return c&&c.length?C(c,{elements:r}).then(()=>{d.delete(e.key),l.forEach(e=>{e({elements:r},s)})}):(l.forEach(e=>{e({elements:r},s)}),Promise.resolve())},I=e=>{const t=i.deviceData.isMobileOrTablet;u.length||(u=e);const n=e.filter(e=>{const n=function(e,t){if(function(e){return-1!==Rn.indexOf(e.type)}(e)){if(e.config.deviceRestriction===fn.DESKTOP_ONLY&&t)return!1;if(e.config.deviceRestriction===fn.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=Pn(e),o=0===t.length||t.some(e=>nn(Pn(e)).test(i)),r=n.some(e=>nn(Pn(e)).test(i));return o&&!r}(window.location.href,e.config.urlAllow,e.config.urlBlock),o=function(e){if(function(e){return-1!==Sn.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&&E.set(e.key,e),r}),r=n.map(e=>({...e,data:i.livemode?e.data.live:e.data.test}));return o.logCode(yt.GOT_GLOBAL_ELEMENTS_RESPONSE,{globalElements:r}),i.livemode||r.push({...y(),data:null}),v()&&r.push({...L(),data:null}),l.forEach(e=>{e({elements:[],globalElements:r})}),C([],{elements:[],globalElements:r})},N=async()=>{try{if(!u.length)return;const e=u.filter(e=>!E.has(e.key));if(!e.length)return;return o.logCode(yt.TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS,{globalElements:e}),I(e)}catch{}},O=e=>{-1!==e.indexOf(Dn)&&S({key:Dn,type:it.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}});const n=e.filter(e=>t.exists(On.$.ELEMENT,e)&&e!==Dn).map(e=>({key:e,type:t.getElementType(e)}));return!!n.length&&(n.forEach(e=>{let{key:t}=e;R(t)}),!0)},R=e=>{T||P(),T.tryStart({elementsUrl:c}),(e=>{const{src:t,onSuccess:n,onFail:i}=e,o=Date.now(),r=document.createElement("link");r.rel="preload",r.as="script",r.href=t,document.head.appendChild(r);const a=document.createElement("script");a.src=t,a.async=!0,document.head.appendChild(a),a.onload=()=>{const e=Date.now()-o;document.head.removeChild(r),document.head.removeChild(a),n&&n(e)},a.onerror=()=>{document.head.removeChild(r),document.head.removeChild(a),i&&i()}})({src:T.getElementUrl(e),onSuccess:t=>{p.set(e,t)},onFail:()=>{m.push(e)}})},f=e=>{-1!==e.map(e=>{let{key:t}=e;return t}).indexOf(Dn)&&S({key:Dn,type:it.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}}),e.forEach(e=>{let{type:t,key:n}=e;t!==it.LINK&&t!==it.FUNDRAISING_PAGE_LINK&&t!==it.FUNDRAISING_PAGE_INVITE_LINK||S({key:n,type:t,name:"",config:{},data:{live:null,test:null}})})},y=()=>({type:it.TEST_MODE_PANEL,key:"test-panel",name:"test-panel",config:{}}),P=()=>{const e=s().experiments;T=e.registerAndGet(_.CLOUDFLARE_WORKER_STRATEGY_FOR_ELEMENTS_EXPERIMENT,_n),setTimeout(()=>{D()},2e4)},D=()=>{m.length&&r.track(new Ln({elementsKeys:m}))},L=()=>{const e=window.funAiAssistant||{},t={isTestMode:e.isTestMode,maxCallDuration:e.maxCallDuration,participantLeftTimeout:e.participantLeftTimeout,participantAbsentTimeout:e.participantAbsentTimeout,requireQueryParam:e.requireQueryParam};return{type:it.AI_ASSISTANT,key:"ai-assistant",name:"ai-assistant",config:t}},v=()=>{const e=window.funAiAssistant;return!!e&&(!e.requireQueryParam||(new URLSearchParams(window.location.search).has(Tn)||window.location.search.includes(Tn)))};return{elementsUrl:c,initialize:()=>(P(),(()=>{let e=null,t=[],n=0;const i=e=>{[].forEach.call(e,e=>{const i=r(e);if(i&&i.length){if(t.push(...i),n)return;n=window.setTimeout(()=>{n=0,window.FUN.splitTesting?.init(),o.logCode(yt.DOM_OBSERVER_INIT),g(),window.FUN.splitTesting?.reset(),t=[]},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{e=new MutationObserver(i),e.observe(document.documentElement,{childList:!0,subtree:!0})}catch(e){console.error(e)}}}})().run(),window.FUN_DISABLE_GLOBAL_ELEMENTS||hn(`${i.server.globalElementsUrl}/${i.currentCompanyKey}.js`),Nn().then(()=>h()).then(()=>g()).catch(e=>console.error(e))),createElement:async function(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];try{const o=await Cn();return await o.createElementByType(e,t,i,n)}catch(e){if("IframeRemovedError"===e?.name)return void console.warn("Element creation cancelled: iframe was removed from DOM");throw console.error("Error while creating element",e),e}},onElementsLoad:e=>{l.push(e)},addElementContent:S,addGlobalElementsContent:I,getElements:O,getElementInstance:e=>Cn().then(t=>t.getElementInstance(e)),getRenderedElementsByType:e=>Cn().then(t=>t.getRenderedElementsByType(e)),checkWasOpenedByDirectUrl:()=>s().wasOpenedByDirectUrl,getElementDataLoadTime:e=>p.get(e)??null}}const wn=window.FUN_HOST||"https://api.fundraiseup.com",Un=window.FUN_STATIC,Mn=window.FUN_STATIC_S3||"https://static.fundraiseup.com";function bn(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 void t(JSON.parse(i.response))}catch(e){n(e)}t(i.response)}else e.validStatuses&&-1!==e.validStatuses.indexOf(this.status)?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(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()}}}var kn,Fn,xn,Kn;function Gn(e,t){return`${e}/elements${t}`}o.p=Un||o.p,function(e){e.DATA="/data",e.DONATION_FORM_PRESETS="/default/predict_default_amounts/v4",e.DONATION_FORM_PRESETS_V5="/donationFormPresets/v5",e.DEFAULT_FREQUENCY="/getDefaultFrequency/v3",e.GOALS="/goals",e.DONATION_FORM_AMOUNT_HINTS="/donationFormAmountHints",e.AI_ASSISTANT_CONFIG="/ai-assistant/config"}(kn||(kn={})),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"}(Fn||(Fn={})),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"}(xn||(xn={})),function(e){e.BACKDROP_OPEN="backdropOpen",e.BACKDROP_CLOSE="backdropClose",e.BACKDROP_WILL_OPEN="backdropWillOpen"}(Kn||(Kn={}));const Bn=/\/-\/(X[\dA-Z]{7})/,Hn=/^X[\dA-Z]{7}/,Vn=new RegExp("\\/-\\/(N[\\dA-Z]{7})"),Yn=new RegExp(`${Vn.source}(?!\\/join)`),Wn=new RegExp(`${Vn.source}\\/join`),Xn=/^N[\dA-Z]{7}/i,zn=/^[\dA-Z_-]{1,25}$/i,$n=/#?(FUN.{8})/i,jn=/(#FUN[\dA-Z]{8})/;var Zn;!function(e){e.P2P="p2p",e.P2P_REGISTRATION="p2pRegistration"}(Zn||(Zn={}));class Jn extends gt{constructor(e){super(),this.payload={duration:e.duration,eventComment:{widgets:e.widgets}}}get eventType(){return"checkoutResolve"}}class qn extends gt{get eventType(){return ut}}function Qn(e,t=!0){if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,a]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(a):i[r]=a}catch(e){console.error(e)}}return i}class ei extends gt{constructor(e){super();const t=Qn(location.href);t[Tt]&&(this.payload.splitTestName=t[Tt]),t.fun_variant&&(this.payload.splitTestVariant=t[Tt]),e&&(this.payload.eventComment={...this.payload.eventComment,...e})}get eventType(){return Et}}class ti extends gt{constructor(e,t){super(),this.payload={splitTestName:e,splitTestVariant:t}}get eventType(){return"testVariantSelected"}}var ni=o("../murmur/dist/murmur.js");function ii(e){return(0,pn.U)(window.location.search.substring(1))[e]}function oi(e){let{elementKey:t,elementType:n,widgetKey:i,queryParams:o}=e;return t&&n?{...o,type:n,elementKey:t,key:i}:{...o,type:it.DIRECT_LINK,elementKey:"",key:i}}function ri(e){const t={elementType:it.DIRECT_LINK,splitTestName:"",splitTestVariant:"",widgetKey:""};return e.elementKey&&e.type?{...t,...e,elementType:e.type,widgetKey:e.key}:t}const ai=/#([\da-z_-]{1,25})(\?|&|$)/i;function si(e){const t=ai.exec(e);return t&&t[1]?t[1]:""}const ci=(e,t,n,i,r,a,s,c,l,d,E,u,p,m,T)=>{let _,h=!1,g=!1;const A=r.fromDonorPortal,C=()=>{l.logCode(yt.INIT,yt.TRY_TO_OPEN_BY_DIRECT_LINK);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(yt.INIT,yt.TRY_TO_OPEN_BY_URL,o);const r=(0,pn.U)(o),s=r.form,d=si(o),E={queryParams:r},u=c.exists(On.$.WIDGET,s),p=c.exists(On.$.WIDGET,d),m=u&&s||p&&d;if(m){const t=oi({elementType:c.getElementType(r.element),elementKey:r.element,widgetKey:m,queryParams:r}),n=ri(t);Nt({tracker:a,widgetKey:m,keysKeeper:c,elementType:t.type,elementKey:t.elementKey,splitTestName:"",splitTestVariant:""});const i={...E,launcher:{element:{key:n.elementKey,type:n.elementType}}};return g=!0,c.getCheckoutType(m)===Lt.ONLY_GIFT_CATALOGS?T.openCheckoutByUrl(m,i):e.open(m,i)}const _=c.getElementType(s);if(_===it.P2P_BUTTON||_===it.P2P_LINK)return l.logCode(yt.INIT,yt.TRY_TO_OPEN_BY_ELEMENT_KEY_URL),g=!0,n.open(s);if(Xn.test(s))return l.logCode(yt.INIT,yt.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL),g=!0,n.open(s);if(s&&zn.test(s))return l.logCode(yt.INIT,yt.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL),g=!0,n.openByFundraiserSlug(s)}return Promise.resolve()},S=()=>{!function(e,t){if(t.get()||t.set({disableIsFundraiseupVisitor:!1,elements:{showAllGlobalElementsInTestEnv:!1},settings:{}},{path:e.location.pathname}),e.querySelector(`iframe#${Dn}`))return;const n="#"+Dn,i=e.createElement("a");i.setAttribute("href",n),i.style.display="none",e.body.appendChild(i)}(document,d)},I=async()=>{if(!r.abTestMode)return;const{SplitTesting:e}=await o.e(707).then(o.bind(o,"./src/splitTesting/SplitTesting.ts"));_=new e({keysKeeper:c,clientId:a.clientId,api:window.FundraiseUp,companyKey:r.currentCompanyKey,demoMode:r.abTestDemoMode,onVariantSelect:e=>{let{testName:t,variantName:n}=e;a.track(new ti(t,n))},onReset:()=>{_.allVariantNodes.forEach(e=>{const t=[].slice.call(e.querySelectorAll('a[href^="#X"],a[href^="#x"]')).some(e=>c.exists(On.$.ELEMENT,e.hash.replace("#","")));if(t)return void l.log("Split Testing: on reset",{hasElement:t});const n=E.getNodeParams(e),i=E.extractElementNodeParams(e)||n,o=i?.key;o&&c.exists([On.$.WIDGET,On.$.ELEMENT],o)?l.log("Split Testing: known key",{key:o}):Cn().then(t=>t.createElementByType(it.SPLIT_TESTING,{elementKey:"",elementType:it.SPLIT_TESTING,elementName:it.SPLIT_TESTING,config:{},elementFoundTimestamp:Date.now()},!1,e).catch(e=>console.error(e)))})}}),_.init()},N={get experiments(){return p},get splitTesting(){return _},get livemode(){return r.livemode},get version(){return r.version},get initialized(){return h},get wasOpenedByDirectUrl(){return g},init:()=>{if(h)return l.logCode(yt.INTERNAL_API_INITIALIZED),Promise.resolve();u.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);a.track(new ei({...e,darkMode:t})),window.addEventListener("beforeunload",()=>{a.track(new qn)}),s.onResolve((e,t)=>{a.track(new Jn({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();const n=[I(),t.initialize(),C(),A?Promise.resolve():function(){if("yes"===ii("fundraiseupDebug")){const e=prompt("");if(e)return 1648622467===(0,ni.A)(e)}return"yes"===ii("fundraiseupABTestDebug")}()?Nn().then(()=>S()):Promise.resolve(),T.initialize()];return Promise.all(n).then(()=>{h=!0,window.FUN_STARTUP_HOOK&&window.FUN_STARTUP_HOOK(),_?.reset()})},checkout:e,elements:t,giftCatalogs:T,forms:n,services:i,config:r,tracker:a,debug:function(){const e=new Date;e.setFullYear(e.getFullYear()+5),m.set(!0,{expires:e})}};return A||(N.showDebugPanel=S),N};function li(e){return e.map(e=>({...e,key:e.name}))}const di={experimentId:g[_.CHECKOUT_BUNDLE_EXPERIMENT],name:_.CHECKOUT_BUNDLE_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:S.CONTROL,weight:33},{name:S.TEST_1,weight:33},{name:S.TEST_2,weight:33},{name:S.TEST_3,weight:1}]},Ei={experimentId:g[_.EMBED_TEST_EXPERIMENT],name:_.EMBED_TEST_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:R.CONTROL,weight:1},{name:R.TEST,weight:1}]},ui={experimentId:g[_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT],name:_.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:k.CONTROL,weight:1},{name:k.TEST,weight:1}]},pi={experimentId:g[_.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT],name:_.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:Y.CONTROL,weight:1},{name:Y.TEST_1,weight:1},{name:Y.TEST_2,weight:1},{name:Y.TEST_3,weight:1},{name:Y.TEST_4,weight:1}]},mi={experimentId:g[_.CLOUDFLARE_WORKER_STRATEGY_FOR_ELEMENTS_EXPERIMENT],name:_.CLOUDFLARE_WORKER_STRATEGY_FOR_ELEMENTS_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:oe.CONTROL,weight:1},{name:oe.TEST_1,weight:1}],documentationUrl:"https://www.notion.so/fundraiseup/Experiment-Cloudflare-Worker-strategy-for-Elements-29a7e95f5bc58097a2e6f304c1e4dc2b",featureUrl:"https://fundraiseup.tpondemand.com/entity/143564-experiment-cloudflare-worker-strategy-for-elements"},Ti={experimentId:g[_.ML_IMPACT_DESCRIPTIONS_DONATION_FORM_EXPERIMENT],name:_.ML_IMPACT_DESCRIPTIONS_DONATION_FORM_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:_e.CONTROL,weight:1},{name:_e.TEST,weight:1}],documentationUrl:"https://www.notion.so/fundraiseup/ML-Experiment-Impact-Descriptions-2177e95f5bc5807d9be5e3ef4e0c542a",featureUrl:"https://fundraiseup.tpondemand.com/entity/138337-develements-experiment-impact-descriptions"},_i={experimentId:g[_.SOCIAL_PROOF_RECURRING_HIGHLIGHT_EXPERIMENT],name:_.SOCIAL_PROOF_RECURRING_HIGHLIGHT_EXPERIMENT,enabled:!1,scope:A.EMBED,variants:[{name:Ae.CONTROL,weight:1},{name:Ae.TEST_1,weight:1},{name:Ae.TEST_2,weight:1}],featureUrl:"https://fundraiseup.tpondemand.com/entity/149396-dev-experiment-highlight-recurring-donations"};const hi=function(e){return[di,Ei,ui,pi,mi,Ti,_i].map(e=>({...e,variants:li(e.variants)})).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:li(n.variants),disabledAccounts:n.disabledAccounts,enabledAccounts:n.enabledAccounts}:t})};class gi{distributionId;name;variants=new Map;variantSelectors;sentry;_currentVariantName;_previousVariantName;constructor({distributionId:e,name:t,variants:n,sentry:i}){this.distributionId=e,this.name=t,this.sentry=i,n.forEach(e=>{this.variants.set(e.name,{name:e.name,key:e.key,weight:e.weight})}),this.variantSelectors=this.getDistributedSelectors()}get currentVariantName(){return this._currentVariantName}get currentVariantKey(){return this._currentVariantName?this.variants.get(this._currentVariantName)?.key:void 0}get previousVariantName(){return this._previousVariantName}initCurrentVariantName(){const e=this.getSelection(),t=[];this.variantSelectors.forEach((e,n)=>{t.push([n,e])}),this.currentVariantName=t.find(([,[t,n]])=>e>=t&&e<n)?.[0]}setVariant(e){this.variants.has(e)?this.currentVariantName=e:this.sentry.captureException(new Ye(this.name))}set currentVariantName(e){this._previousVariantName=this._currentVariantName,this._currentVariantName=e}getSelection(){const e=this.getMaxDistributionValue();return Number((0,ni.A)(`${this.distributionId}:${this.name}`)%e)}getDistributedSelectors(){let e=0;const t=new Map;return this.assertVariantsWithWeight(this.variants),this.variants.forEach(({weight:n},i)=>{const o=this.getWeightSum(),r=this.getMaxDistributionValue()/o;t.set(i,[e,e+r*n]),e+=r*n}),t}getWeightSum(){let e=0;return this.assertVariantsWithWeight(this.variants),this.variants.forEach(({weight:t})=>{e+=t}),e}getMaxDistributionValue(){return 100*this.variants.size}assertVariantsWithWeight(e){if(![...e.entries()].every(([,{weight:e}])=>void 0!==e))throw new Error("Every variant should have weight")}}class Ai{experimentsSettings;tracker;funStorage;experiments=new Map;companyKey;parentCompanyKey;sentry;widgetKey;user;infrastructureParams;distributionId;isDebugMode;isFundraiseupVisitor;isAbTestMode;constructor(e){const{experimentsSettings:t,tracker:n,funStorage:i,companyKey:o,widgetKey:r,user:a,parentCompanyKey:s,infrastructureParams:c,sentry:l,distributionId:d,isDebugMode:E,isFundraiseupVisitor:u,isAbTestMode:p=!1}=e;if(this.experimentsSettings=t,this.tracker=n,this.funStorage=i,this.companyKey=o,this.parentCompanyKey=s,this.widgetKey=r,this.user=a,this.infrastructureParams=c,this.sentry=l,this.distributionId=d,this.isDebugMode=E,this.isFundraiseupVisitor=u,this.isAbTestMode=p,!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 We(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=g[e];if(!n)throw new Error(`ExperimentController: Experiment ID not found for experiment ${e}`);const i=this.experimentsSettings.find(e=>e.experimentId===n);if(!i)return this.sentry.captureException(new Ve(e)),null;const o=this.getDistributionExperimentName(i),r=new gi({distributionId:this.distributionId,name:o,variants:i.variants,sentry:this.sentry});return new t({settings:i,companyKey:this.companyKey,parentCompanyKey:this.parentCompanyKey,tracker:this.tracker,funStorage:this.funStorage,user:this.user,widgetKey:this.widgetKey,infrastructureParams:this.infrastructureParams,sentry:this.sentry,distribution:r,allowExperiments:this.allowExperiments})}getDistributionExperimentName(e){return e.name}}class Ci extends Ai{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}}const Si="giftCatalogCartItemsCountUpdated",Ii="givingCartValidationError",Ni=e=>"string"==typeof e&&""!==e.trim()?e:void 0,Oi=e=>{if(!(e=>!!e&&(e=>void 0!==e.designations&&Array.isArray(e.designations)&&e.designations.length>0)(e)&&(e=>void 0!==e.donation?.donationItems&&Array.isArray(e.donation.donationItems)&&e.donation.donationItems.length>0)(e)&&(e=>void 0!==e.donation&&void 0!==e.donation.currency)(e))(e))return{checkoutExternalParams:{launcher:{element:{type:it.JS_API}}}};const t=e.designations.filter(e=>!Ni(e.key));if(t.length>0)throw new Error(`Invalid designations: each designation must have a valid key. Found ${t.length} invalid designation(s).`);const n=e.donation.donationItems.filter(e=>"number"!=typeof e.amount||!e.frequency||!Ni(e.goalKey));if(n.length>0)throw new Error(`Invalid donationItems: each donationItem must have required fields (amount, frequency, goalKey). Found ${n.length} invalid donationItem(s).`);const i=e.designations.map(e=>({id:Ni(e.id),isEditable:e.isEditable,key:Ni(e.key),code:Ni(e.code),repeat:e.repeat,default:e.default??null,localization:e.localization,frequency:e.frequency??null,image:e.image??null})),o=e.donation.donationItems.map(e=>({amount:e.amount,frequency:e.frequency,goalKey:Ni(e.goalKey)})),r={currency:Ni(e.donation.currency),shouldApplyDonationItems:e.donation.shouldApplyDonationItems,donationItems:o};return{checkoutExternalParams:{launcher:{element:{type:it.JS_API},checkoutInitialData:{designations:i,donation:r}}}}};let Ri=null,fi=null;function yi(){if(Ri)return Promise.resolve(Ri);if(fi)return fi;const e=(0,gn.w)(),t=e.get(Ft.i.STATIC_CONFIG);return fi=Promise.all([dt(t.giftItemDescriptionApiScriptUrl),dt(t.giftCatalogApiScriptUrl),dt(t.givingCartBasketButtonScriptUrl)]).then(()=>{const t=e.get(Ft.i.GIFT_CATALOG_API);if(!t)throw new Error("Gift Catalog API not found in container");return Ri=t,t}).catch(e=>{throw fi=null,e}),fi}const Pi=(e,t,n,i,o,r,a,s,c,l)=>{const d=new Map;let E=null,u=null,p=0;const m=()=>Promise.all([dt(o.server.givingCartBasketButtonScriptUrl),...o.server.giftCatalogCartAssets.scripts.map(e=>dt(e))]),T=()=>dt(o.server.givingCartValidationPopupScriptUrl).catch(e=>(console.error("Failed to load gift catalog validation popup script:",e),!1)),_=async(n,i,s)=>{r.logCode(yt.OPEN_GIFT_CART);const l=++p,d=c.getDataByWidget(n),E=s&&s.length?s:d.items;if(await Promise.all([m().catch(e=>{throw new Error(`Unable to load Cart for widget ${n}: ${e}`)}),T()]),l!==p)return;const _=await e.resolveGiftCatalogCart(n,E).catch(e=>{throw new Error(`Unable to load Cart for widget ${n}: ${e}`)});l===p&&(u=a()(t,o.locale.code,o.data.currencyRates.rates),u.openCart(n,i,d.currency,_.defaultCurrency,_.items.upsell,_.items.cart,_.config.button))};return t.on("openGiftCatalogCheckout",e=>{let{widgetKey:t,currency:n,donationItems:i,checkoutOpenAttemptId:o}=e;c.saveCheckoutState(t,n,i);const r={launcher:{checkoutInitialData:{donation:{currency:n,shouldApplyDonationItems:!0,donationItems:i}}}};o&&(r.checkoutOpenAttemptId=o),s.open(t,r)}),t.on("openGiftCatalogCheckoutFromCatalog",e=>{c.saveCheckoutState(e.widgetKey,e.currency,e.donationItems);const t={launcher:{checkoutInitialData:{donation:{currency:e.currency,shouldApplyDonationItems:!0,donationItems:e.donationItems}}}};e.checkoutOpenAttemptId&&(t.checkoutOpenAttemptId=e.checkoutOpenAttemptId),s.open(e.widgetKey,t)}),t.on("openGiftCatalogCartFromCatalog",e=>{let{widgetKey:t,currency:n,items:i}=e;_(t,n,i)}),{initialize:()=>Nn().then(()=>(async()=>{const e=n.findGiftCatalogs();e.forEach(e=>{const t=d.get(e.key)||[];d.set(e.key,[...t,e])});const t=e.map(e=>{let{key:t}=e;return t}).filter(e=>i.exists(On.$.WIDGET,e));if(!t.length)return;await m(),T();(e=>{const t=o.server.giftCatalogsUrl;hn(`${t}/${e}.js`)})(t[0])})()).catch(e=>console.error(e)),addCatalogContent:e=>{r.logCode(yt.LOADED_GIFT_CATALOG,{catalog:e});const t=e.data;if(!t)return Promise.resolve();const n={key:e.key,config:e.config,data:t};if(E)return Promise.resolve();const i=d.get(e.key);return i&&i.length?(E=e.key,((e,t)=>yi().then(n=>(n.initialize(t.config,t.data),n.renderGiftCatalog(e.node))))(i[0],n).then(()=>{d.delete(e.key)})):Promise.resolve()},createShowcase:async(e,t,n,i)=>{if(n?.signal.aborted)return Promise.resolve();const o=await yi();return n?.signal.aborted?Promise.resolve():(o.initialize(t.config,t.data),o.setRestoreFocus(!1),await o.renderGiftCatalog(e),n?.signal.aborted?Promise.resolve():(i&&o.openItemDescription(i),o))},openCart:_,openCartPreview:async(e,n,i,s,c)=>{r.logCode(yt.OPEN_GIFT_CART);const l=++p;await m().catch(t=>{throw new Error(`Unable to load Cart for widget ${e}: ${t}`)}),l===p&&(u=a()(t,o.locale.code,o.data.currencyRates.rates),u.openCart(e,n,null,n,s,i,c))},closeCart:()=>{p+=1,u?.closeCart()},openCheckout:(e,t)=>{r.logCode(yt.OPEN_GIFT_CHECKOUT);const{checkoutExternalParams:n}=Oi(t);return s.open(e,n),Promise.resolve()},openCheckoutByUrl:(e,t)=>{r.logCode(yt.OPEN_GIFT_CHECKOUT);const n=l.getCheckoutState();if(!n||n.widgetKey!==e)return Promise.resolve();const i=t||{},o=n.donationItems.map(e=>({giftKey:e.giftKey,amount:e.amount,frequency:e.frequency,goalKey:e.goalKey}));return i.launcher={...i.launcher,checkoutInitialData:{...i.launcher?.checkoutInitialData,donation:{currency:n.currency,shouldApplyDonationItems:!0,donationItems:o}}},s.open(e,i),Promise.resolve()}}},Di=e=>{let t=0;for(const n of e)t+=n.amount;return t};function Li(e){return{giftKey:e.giftKey,goalKey:e.goalKey,amount:e.amount,frequency:e.frequency}}const vi=(e,t,n,i,r,a,s,c,l,d,E,u,p)=>{let m=!1;const T=Ke(n.locale.code)===Ue.RTL,_=async(t,i,p,_)=>{try{const C=await(async(e,t,n,i)=>{const o=(e=>{const t=(0,pn.U)(window.location.href),n={...e?.queryParams,...t};return{queryParams:n,hasRestoreToken:Boolean(n.restoreToken&&n.clientId)}})(t),r=((e,t)=>{const n=e.launcher?.checkoutInitialData?.donation?.donationItems;if(!t&&!n?.length)throw new Error("Donation items are missing");return n||[]})(i,o.hasRestoreToken),a=await n.resolveGiftCheckout(e,r),s=((e,t,n)=>{const i=e.launcher||{},o=i.checkoutInitialData||{},r=o.donation||{};return n||(r.donationItems=t.catalog.donationItems,r.shouldApplyDonationItems=!0),o.designations=t.catalog.goals,o.donation=r,i.checkoutInitialData=o,i})(i,a,o.hasRestoreToken);return{infrastructureQueryParams:o.queryParams,resolveData:a,launcher:s}})(t,n,e,p);p.launcher=C.launcher,await(async(e,t,i,p,_,C)=>{if(!i.catalog.donationItems.length){u.clear(e),h();const{getEmptyGiftCheckoutScreen:t}=await o.e(140).then(o.bind(o,"./src/services/giftCart/emptyGiftCheckoutScreen/EmptyGiftCheckoutScreen.ts"));return void t(window).render({title:i.emptyCheckoutLabels.title,subtitle:i.emptyCheckoutLabels.subtitle,button:i.emptyCheckoutLabels.button,isRtl:T,onClose:()=>{m=!1}})}await A(),s.emit(wt.CHECKOUT_BEFORE_OPEN,void 0);const S=await d()(a,r,s,l,{resolvedConfig:i,trackingUrls:n.server.trackingUrls,currencyRates:n.data.currencyRates,env:n.server.env,pendingRequests:{goals:new Promise(e=>e(null))},paymentMethods:n.paymentMethods,livemode:n.livemode,isMobile:n.isMobile,isMobileSafari16:n.deviceData.isMobileSafari16,showcase:!1,externalParams:t,integrations:n.integrations,localeCode:n.locale.code,userMeta:n.meta?.user,infrastructureQueryParams:p,checkoutOpenTimestamp:_,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:"",steplessCheckoutExperimentExcluded:!0,fromDonorPortal:n.fromDonorPortal,initialMarketingCookieConsent:E.getUserSessionConsent()});S&&g({checkoutApi:S,key:e,options:t,isLivemode:C})})(t,p,C.resolveData,C.infrastructureQueryParams,_,i),setTimeout(()=>{h()},150)}catch(e){throw m=!1,h(),console.error(e),e}},h=()=>{i.hide()},g=e=>{const{checkoutApi:t,key:n}=e;t.on(Pt.CLOSE,()=>{m=!1}),t.on(Pt.DONATION_COMPLETE,()=>{const e=u.getCheckoutState();e?.widgetKey===n&&(p.resetItemsByWidget(n,e.currency,[]),u.clearCheckoutState())})},A=async()=>{const e=n.server.giftCatalogCheckoutAssets.scripts.filter(e=>!(!T&&e.includes("gift-catalog-checkout-rtl-styles")||T&&e.includes("gift-catalog-checkout-styles")));await Promise.all(e.map(e=>dt(e)))};return{loadGiftCatalogCheckoutScripts:A,open:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m)return;if(!r.isWidgetKeyExists(e))return;const o=st(n.queryParams||{}),a=Date.now();return m=!0,((e,t)=>{i.render({campaignKey:e,isMobile:n.isMobile,isLivemode:t,isRtl:T})})(e,o),_(e,o,t,a)}}};function wi(e){const t=function(e){return"IDR"===e?12:8}(e),n="9".repeat(t);return parseInt(n,10)}function Ui(e){const t=wi(e),n=function(e){var t;if(!e)return 2;const n=tt[e];return null!==(t=null==n?void 0:n.digits)&&void 0!==t?t:2}(e);if(0===n)return t;const i=Math.pow(10,n);return Math.floor(t/i)*i}var Mi;!function(e){e.ITEMS_LIMIT_EXCEEDED="ITEMS_LIMIT_EXCEEDED",e.AMOUNT_LIMIT_EXCEEDED="AMOUNT_LIMIT_EXCEEDED"}(Mi||(Mi={}));const bi=e=>"function"!=typeof document.contains||document.contains(e);var ki=o("./src/helpers/parseHref.ts");function Fi(e){return null!=e}const xi=(e,t)=>{const n=new WeakMap,i=i=>{if("fun"===i.getAttribute("data-ignore"))return null;const o=i.getAttribute("href")||"";let r=(0,ki.d)(o);const a=(0,pn.U)(o);if(Bn.test(o)){const e=Bn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=it.TEXT_LINK}}if(Yn.test(o)){const e=Yn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=it.FUNDRAISING_PAGE_LINK}}if(Wn.test(o)){const e=Wn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=it.FUNDRAISING_PAGE_INVITE_LINK}}if(o==="#"+Dn&&(r||(r={}),r.key=Dn,r.type=it.DEBUG_PANEL),jn.test(o)){const t=jn.exec(o),n=(0,ki.d)(o);if(t&&n?.key&&e.getCheckoutType(n?.key)===Lt.ONLY_GIFT_CATALOGS)return null}a.form&&(r||(r={}),r.key=a.form,Object.assign(r,a));const s={type:it.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;s.key=r.key;const n=r.type||e.getElementType(s.key);s.type=n||it.LINK}else s.key=function(e){if(e.getAttribute)return e.getAttribute("data-key")||void 0}(i)||"";return-1!==[it.LINK,it.FUNDRAISING_PAGE_LINK,it.FUNDRAISING_PAGE_INVITE_LINK,it.TEXT_LINK].indexOf(s.type)&&(s.queryParams=a),s.key?e.exists(On.$.ELEMENT,s.key)&&a.form===s.key?null:s.type!==it.LINK||e.exists(On.$.ELEMENT,s.key)||e.exists(On.$.WIDGET,s.key)?(r&&r.designationId&&(c=r.designationId)&&at.test(c)&&(s.designationId=r.designationId),s.key=ct(e,s.key),s.node=i,s.elementFoundTimestamp=Date.now(),t.logCode(yt.EXTRACT_NODE_PARAMS,{params:s}),n.set(s.node,s),s):null:null;var c};return{getNodeParams:e=>n.get(e),findElements:()=>{const e=document.querySelectorAll(".fun-widget, a[href]");return t.logCode(yt.FIND_ELEMENTS,{primaryNodes:e}),o=[].slice.call(e),t.logCode(yt.CREATE_ELEMENTS_PARAMS,{nodes:o}),o.filter(e=>!n.has(e)).filter(e=>bi(e)).map(e=>i(e)).filter(Fi);var o},findGiftCatalogs:()=>{const i=[...document.querySelectorAll("a[href]")];return t.logCode(yt.FIND_GIFT_CATALOGS,{primaryNodes:i}),i.filter(e=>!n.has(e)).filter(e=>bi(e)).map(n=>(n=>{if("fun"===n.getAttribute("data-ignore"))return null;const i=n.getAttribute("href")||"",o=(0,ki.d)(i);if(!jn.test(i)||!o?.key)return null;if(e.getCheckoutType(o.key)!==Lt.ONLY_GIFT_CATALOGS)return null;const r={key:o.key,giftCatalogFoundTimestamp:Date.now(),node:n};return t.logCode(yt.EXTRACT_NODE_PARAMS,{params:r}),r})(n)).filter(Fi)},extractElementNodeParams:i}};var Ki,Gi,Bi;!function(e){e.DEFAULT="consentDefault",e.UPDATE="consentUpdate"}(Ki||(Ki={})),function(e){e.GRANTED="granted",e.DENIED="denied"}(Gi||(Gi={})),function(e){e.UPDATE="update",e.DEFAULT="default"}(Bi||(Bi={}));const Hi=e=>e&&"object"==typeof e&&"consent"===e[0],Vi=e=>Hi(e)&&e[1]===Bi.DEFAULT,Yi=e=>Hi(e)&&e[1]===Bi.UPDATE,Wi=(e,t)=>({checkHasDefaultConsent:()=>Boolean(t.dataLayer?.length&&t.dataLayer.some(Vi)),initialize:()=>{t.dataLayer=t.dataLayer||[];const n=t.dataLayer.push;t.dataLayer.forEach(t=>{Vi(t)&&e.emit(Ki.DEFAULT,t[2]),Yi(t)&&e.emit(Ki.UPDATE,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=>{Yi(t)&&e.emit(Ki.UPDATE,t[2])}),n.apply(t,o)}})(t.dataLayer,n)}});var Xi,zi;function $i(e,t,n,i,o,r){let a=!1;const s=i=>{try{e.logCode(yt.CONSENT_API_UPDATE,{consent:i}),i.functionality_storage===Gi.GRANTED&&(o.initializeFuncStorage(),r.setupFuncCookie()),i.functionality_storage===Gi.DENIED&&o.deniedWriteToFuncStorage(),i.analytics_storage===Gi.GRANTED&&o.initializeStatStorage(),i.ad_user_data&&(a=i.ad_user_data===Gi.GRANTED,n.emit(Xi.UPDATE,{marketingCookieConsent:a}))}catch(n){e.logCode(yt.CONSENT_API_ERROR,{error:n}),t.captureException(new Error(`Consent API error: ${n.message}`))}},c=e=>{e.region||s(e)},l=e=>{s(e)};return{getUserSessionConsent:()=>a,initialize:t=>{i.checkHasDefaultConsent()?(o.topLevelDomain=t,r.topLevelDomain=t,r.initialize(),n.on(Ki.DEFAULT,c),n.on(Ki.UPDATE,l),i.initialize(),e.logCode(yt.CONSENT_API_INITIALIZED,{dataLayer:window.dataLayer})):(o.allowWriteToFuncStorage(),o.topLevelDomain=t,o.initialize(),r.topLevelDomain=t,r.initialize(),r.setupFuncCookie(),e.logCode(yt.CONSENT_API_DISABLED,{dataLayer:window.dataLayer}))}}}!function(e){e.UPDATE="sessionConsentUpdate"}(Xi||(Xi={}));class ji{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)})}}!function(e){e.TRILLIUM="AFHQHUFB",e.ANIMAL_HUMANE_SOCIETY="APZFWQVA",e.SOS_INTERNATIONAL="ASYXEBAM",e.MUSLIMI="APRVBZRU",e.DAILY_GIVING="AYEWEYZD",e.UNFPA="ACSRWCJP",e.UNICEF_NORGE="AMUBFBCE",e.ASCRS_FOUNDATION="ACYFHBCY",e.CLINTON_FOUNDATION="ACUVFNNB",e.BLINKNOW="AEDSCDSM",e.HICT_PARENT="AJDZGJPP",e.HICT="AKVNXBFW",e.GREATER_GOOD_CHARITIES="AHTMBNKF",e.STC="VMZETRCF",e.UNICEF="APQJSHGS",e.PIH="AJDEFYWC",e.AHA_PARENT="ARMPCVPV",e.AHA="ADQRERLU",e.BEST_FRIENDS="AFZUYXBL",e.NEVERTHIRSTWATER="RWHMSQPD",e.CORG="AZCENQQL",e.AUS="AGZKYDGZ",e.NDSTREET="ALTVXKWG",e.ALZ="AJGEZYBE",e.LUST="AEDVPKAW",e.ARTHRITIS="AUSMBFYM",e.FREEDOM_BAKERIES="AFKPNPQY",e.MASJID_AL_FURGAN="ASYLMXZK",e.FCA="AFLRJKTK",e.FOOD_FOR_THE_POOR="AGPURJCY",e.MPAC="ANSRXGKF",e.RFT="ACMRCWPB",e.CHILDMIND="ZSNREIBR",e.FUNDRAISE_UP_NYC="APWCYEMD",e.SALVATION_ARMY_UK="ASNVRJLX",e.MERCY_SHIPS_AU="AWKKWSUU",e.LONELY_ORPHANS="AUKZQSFX",e.ALZHEIMER_ASSOCIATION="AJGEZYBE",e.PANCREATIC_CANCER_UK="ATBTMWDS",e.THE_BAIL_PROJECT="AYHQYPSQ",e.OBAMA_FOUNDATION="AHNVSXNQ",e.SAFE_HORIZON="AWBJEPNJ",e.FEED_THE_CHILDREN="AHQLCMJQ",e.STAGING_FORWARD_BLUE="ANGUPPGC",e.STAGING_HELPING_HAND="HRMEIGNS",e.STAGING_HELPING_HAND_UK="AWKXSTZX",e.HELPING_HAND="MCJZDSLZ",e.INTERNATIONAL_JUSTICE_MISSION_UK="AGMQWWLR",e.GUIDE_DOGS="APLFUNKH",e.ROPSI="AJZSDMZE",e.ROPSI_AU="AESYHEDW",e.ROPSI_UK="ASHPENZB",e.ROPSI_CA="AZRBXHWY",e.FAMILY_ELDERCARE="ARRCDXDL",e.ENTERTAINMENT_INDUSTRY="ASXBZCVR",e.ONE_FOR_ISRAEL="ASBGJCET",e.TREVOR="ABGHKWJN",e.PARKINSON="AWQWPUEN",e.NAVY="ALAWCVJC",e.HONEST_REPORTING="ARBELMET",e.KCET="AEJGNVQN",e.OPSMILE="ATVPVDAJ",e.WIKIMEDIA_FOUNDATION="AVLMPSRU",e.ARBOR="ALPEXDKM",e.CANADIAN_RED_CROSS="ATVNLEWE",e.CANADIAN_CANCER_SOCIETY="APZMZAGU",e.WORLDWISH="AZFMPNQE",e.LUPUS="ARVHGABZ",e.CONCERN_WORLDWIDE="AGSTXLKM",e.DURHAM_RESCUE_MISSION="ALCUDRVC",e.MUSCULAR_DYSTROPHY_ASSOCIATION="AJGERPHC",e.TRILLIUM_HEALTH_FOUNDATION="AFHQHUFB",e.CANADIAN_WILDLIFE_FEDERATION="ASBNVYMX",e.HARVEST_MANITOBA="AVALTECL",e.MUSLIM_LEGAL_FUND="AAMRKAJS",e.WISHORG="AKVYFUBL",e.FORWARD_BLUE="AETRGCDZ",e.BRIGHTFOCUS="ASPUXQFL",e.BRIGHTFOCUS_ALZ="ABLMUZMD",e.IFAW_DE="AHEESHPV",e.MATE_HOSPITAL_FOUNDATION="AMSFLMWE",e.EVERYTOWN_FOR_GUN_SAFETY="AMNBTWFT",e.OXFAM="AHPFYYUL",e.LIGONER="ARNXLWYU",e.END_CITIZEN_UNITED="AJAQPESZ",e.PROGRESSIVE_TURNOUT_PROJECT="ASYNMFUG"}(zi||(zi={}));const Zi=[zi.CANADIAN_CANCER_SOCIETY,zi.WORLDWISH,zi.LUPUS,zi.CONCERN_WORLDWIDE];class Ji{index;customHashToKeyIndex;keyToCustomHashIndex;originalKeyIndex;elementsMap;fundraisersMap;campaignGroupMap;campaignSubGroupMap;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,On.$.WIDGET),this.originalKeyIndex.set(i,t),n){const e=this.normalize(n);this.index.set(e,On.$.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),On.$.ELEMENT),this.elementsMap.set(this.normalize(e),t)})}),this.index.set(this.normalize(Dn),On.$.ELEMENT),this.elementsMap.set(this.normalize(Dn),it.DEBUG_PANEL)}exists(e,t){const n="string"==typeof e?[e]:e,i=this.normalize(t);return n.some(e=>this.index.get(i)===e)}isWidgetKeyExists(e){const t=e=>this.exists(On.$.WIDGET,e)||this.exists(On.$.FUNDRAISING_PAGE,e);return"string"==typeof e?t(e):e.some(e=>t(e))}itLooksLikeKey(e,t){return e===On.$.WIDGET?$n.test(this.normalize(t)):e===On.$.ELEMENT?Hn.test(t):Xn.test(t)}normalize(e){if(!e)return"";const t=e.slice("#"===e[0]?1:0);return $n.test(t)||Hn.test(t)||Xn.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(On.$.WIDGET,e))return;const t=this.normalize(e);this.index.set(e,On.$.WIDGET),this.originalKeyIndex.set(t,t)})}addFundraisersKeys(e){e.filter(e=>Xn.test(e)).forEach(e=>{if(this.exists(On.$.FUNDRAISING_PAGE,e))return;const t=this.normalize(e);this.exists(On.$.WIDGET,t)||(this.index.set(t,On.$.FUNDRAISING_PAGE),this.fundraisersMap.set(t,t))})}getFundraisersKeys(){return[...this.fundraisersMap.keys()]}addElementKeys(e,t){this.index.set(this.normalize(t),On.$.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 qi=o("./src/shared/types/embed/errorCode.ts"),Qi=o("./src/preloader/backdrop.css"),eo=o.n(Qi);const to="fun-widget-backdrop-spinner";class no{targetWindow;scrollLocker;eventEmitter;isExists=!1;container=null;static styleId="__funBackdropStyles";activeSource=null;constructor(e,t,n){this.targetWindow=e,this.scrollLocker=t,this.eventEmitter=n,this.targetWindow=e,this.setStyle()}render(t){let{showSpinner:n=!1,source:i}=t;return this.isExists=!0,this.targetWindow.document.getElementById(no.styleId)||this.setStyle(),this.activeSource=i,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"),n&&this.showSpinner(),this.targetWindow.document.body?(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock()):(0,e.c)(this.targetWindow.document,()=>{this.container&&(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock())}),this.eventEmitter.emit(Kn.BACKDROP_OPEN,void 0)),this}setStyle(){this.targetWindow.document.head.insertAdjacentHTML("afterbegin",`<style id="${no.styleId}">${eo()}</style>`)}remove(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isExists=!1,this.scrollLocker.unlock(),this.container?e?(this.removeContainer(),this.notifyBackdropClosed(),this):(this.container.style.transition="opacity .2s ease",this.container.addEventListener("transitionend",()=>{this.container&&(this.removeContainer(),this.notifyBackdropClosed())}),this.container.style.opacity="0",this):this}removeContainer(){this.container&&(this.container.remove(),this.container=null)}notifyBackdropClosed(){this.activeSource=null,this.eventEmitter.emit(Kn.BACKDROP_CLOSE,null)}hideSpinner(){if(!this.container)return console.warn(qi.k.BACKDROP_CONTAINER_IS_NOT_AVAILABLE),this;const e=this.container.querySelector(`#${to}`);return e&&e.remove(),this}showSpinner(){return this.container?(this.container.insertAdjacentHTML("afterbegin",`<div id=${to} class="fun-widget-backdrop" />`),this):(console.warn(qi.k.BACKDROP_CONTAINER_IS_NOT_AVAILABLE),this)}getActiveSource(){return this.activeSource}}var io;!function(e){e.WITH_ASK_PAGE="withAskPage",e.NO_ASK_PAGE="noAskPage"}(io||(io={}));const oo=Symbol("CUSTOM_FINGERPRINT"),ro=(Symbol("EXTRA"),Symbol("TAGS"),new Map);async function ao(e){const t=new so(e),n=ro.get(e.url);e.cancelSimilar&&n&&n(),ro.set(e.url,t.abort.bind(t));try{const n=await t.send();return ro.delete(e.url),n}catch(t){throw"AbortError"!==t?.originalErrorName&&ro.delete(e.url),t}}class so{options;abortController=(()=>function(){try{return void 0!==window.AbortController}catch{return!1}}()?new AbortController:null)();constructor(e){this.options=e}abort(){this.abortController?.abort()}async send(){const e=this.getUrl(),t=this.getHeaders(),n=this.getBody(),i=this.getCredentials();let o;try{o=await fetch(e,{method:this.options.method,signal:this.abortController?.signal,headers:t,credentials:i,body:n})}catch(e){const t=e instanceof Error?e.message:"Network Error";throw new co(0,t,this.options.method,this.options.url,e?.name,this.options.setCustomFingerprint)}const r=o.status;let a;const s=o.headers.get("content-type");if(a=s?.includes("application/json")?await o.json():await o.text(),r>=500&&this.options.rejectOnInvalid)throw new co(r,o.statusText,this.options.method,this.options.url,"",this.options.setCustomFingerprint);const c=r>=200&&r<400||this.options.validStatuses?.includes(r);return{data:a,valid:Boolean(c)}}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 co extends Error{originalErrorName;isRequestError=!0;statusCode;constructor(e,t,n,i,o,r){super(`[Checkout Shared]: Server ${n} response status ${e}, ${t} for url ${i}`),this.originalErrorName=o,r&&(this[oo]=[i,t]),this.statusCode=e}}const lo=(e,t,n)=>n.indexOf(e)===t;function Eo(e,t,n,i,o){const r=[],a=new Map,s=!0===window.FUN_DASHBOARD,c=async c=>{let{keys:u,livemode:p,externalQueryParams:m,isDirectOpen:T}=c;const _=T?e.queryParams:(0,pn.U)(window.location.href),h=Object.assign(_||{},m),g=((e,t,n,i,o)=>{const r=t.filter(t=>e.exists(On.$.WIDGET,t)),a=t.filter(t=>e.itLooksLikeKey(On.$.FUNDRAISING_PAGE,t)),s={campaign:r[0],fundraisingPage:void 0,locale:n,pageViewId:i},c=o?.fundraiser,l=o?.member;if(l&&(s.fundraiserMember=l),c){const e=(E=d=c,Xn.test(E)?d.toUpperCase():(e=>zn.test(e))(d)?d:"");if(e)return s.fundraisingPage=e,s}var d,E;return a.length&&(s.fundraisingPage=a[0]),s})(t,u,e.locale.code,i.page?.pageViewId,h);if(l(g))return n.logCode(yt.EMPTY_RESOLVE_REQUEST),Promise.resolve();n.logCode(yt.SEND_RESOLVE_REQUEST,g);const A=E(p),C=Date.now();let S;const I=d(g),N=a.get(I);N&&!s?S=N:(S=await ao({method:"POST",url:A,headers:{"content-type":"text/plain; charset=utf-8"},params:g}).then(e=>e.data).catch(e=>{throw o.captureException(e),e}),a.set(I,S));const O={params:u,duration:Date.now()-C};return r.forEach(e=>{e(S,O)}),n.logCode(yt.GOT_RESOLVE_RESPONSE,{data:S,info:O}),S},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("_")},E=t=>{const n=t??e.livemode;return`${e.server.resolveUrl}&livemode=${n?"true":"false"}`};return{resolveFundraisingPages:e=>(n.logCode(yt.RESOLVE_FUNDRAISING_PAGE,e),c({keys:e})),resolveKeys:e=>{let{keys:i,livemode:o,externalQueryParams:r,isDirectOpen:a}=e;const s=i.filter(lo).filter(e=>(e=>t.exists(On.$.WIDGET,e)||t.itLooksLikeKey(On.$.FUNDRAISING_PAGE,e))(e));return s.length?(n.logCode(yt.RESOLVE_KEYS,{keys:i}),c({keys:s,livemode:o,externalQueryParams:r,isDirectOpen:a})):Promise.resolve()},onResolve:e=>{r.push(e)},needResolve:e=>!a.has(e.join("_")),resolveGiftCatalogCart:async(t,n)=>{try{return(await ao({method:"POST",url:e.server.giftCatalogResolveUrl,headers:{"content-type":"text/plain; charset=utf-8"},params:{campaign:t,items:n||[],locale:e.locale.code}})).data}catch(e){throw o.captureException(e),e}},resolveGiftCheckout:async(t,n)=>{try{const i=`${e.server.giftCheckoutResolveUrl}?key=${e.currentCompanyKey}`;return(await ao({method:"POST",url:i,headers:{"content-type":"text/plain; charset=utf-8"},params:{campaign:t,items:n||[],locale:e.locale.code}})).data}catch(e){throw o.captureException(e),e}}}}class uo{funSessionStorage;funStatStorage;env;disableNewCookies;topLevelDomain="";constructor(e,t,n,i){this.funSessionStorage=e,this.funStatStorage=t,this.env=n,this.disableNewCookies=i}initialize(){if(this.disableNewCookies)return;const e=s(this.env,this.topLevelDomain);this.isStatStorageInitialized||this.funStatStorage.set(e),this.isFuncStorageInitialized||this.funSessionStorage.initialize(this.topLevelDomain,e)}initializeStatStorage(){const e=s(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 po{env;storage;options;topLevelDomain="";cookieAttributes;constructor(e,t,n){this.env=e,this.storage=t,this.options=n}initialize(){this.cookieAttributes=s(this.env,this.topLevelDomain)}setupFuncCookie(){if(this.options?.disableNewCookies)return;const e=this.getCookie(a.e.FUNC),t=this.getCookie(a.e.SESSION);!e&&t&&(this.setCookie(a.e.FUNC,t),this.options?.removeLegacyCookies&&this.removeLegacyCookie())}removeLegacyCookie(){this.removeCookie(a.e.SESSION)}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)}}class mo{STORAGE_KEY;storage;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 To extends mo{storage;constructor(e){super(a.e.DEBUG,e),this.storage=e}}function _o(e){if(!e)return[];const t=[],n=e.split(";");for(const e of n){if(!e)continue;const n=e.split(",");if(4!==n.length)continue;const[i,o,r,a]=n;if(!(i&&o&&a&&r&&""!==r.trim()))continue;const s=Number(r);Number.isFinite(s)&&t.push({giftKey:i,goalKey:o,amount:s,frequency:a})}return t}function ho(e){let t="";for(const n of e)t+=`${n.giftKey},${n.goalKey},${n.amount},${n.frequency};`;return t}class go{funSessionStorage;constructor(e){this.funSessionStorage=e}getDataByWidget(e){const t=this.getCartStateByWidget(e);return{items:t?_o(t.items):[],currency:t?t.currency:null}}addItem(e,t,n){const i=this.getCartStateByWidget(e),o=i?[..._o(i.items),n]:[n];this.saveCartState({widgetKey:e,currency:t,items:ho(o)})}resetItemsByWidget(e,t,n){n.length?this.saveCartState({widgetKey:e,currency:t,items:ho(n)}):this.clear(e)}clear(e){const n=this.getCartState();n&&n.widgetKey===e&&this.funSessionStorage.removeField(t.GIFT_CATALOG_CART_ITEMS)}getItemCount(e){return this.getDataByWidget(e).items.length}setCheckoutState(e,n,i){this.funSessionStorage.setField(t.GIFT_CATALOG_CHECKOUT,{widgetKey:e,currency:n,donationItems:ho(i)})}getCheckoutState(){const e=this.funSessionStorage.getField(t.GIFT_CATALOG_CHECKOUT);return function(e){if(!e||"object"!=typeof e)return!1;const t=e;return Boolean(t.widgetKey&&t.currency&&"string"==typeof t.donationItems&&t.donationItems.length)}(e)?{...e,donationItems:_o(e.donationItems)}:null}clearCheckoutState(){this.funSessionStorage.removeField(t.GIFT_CATALOG_CHECKOUT)}getCartState(){const e=this.funSessionStorage.getField(t.GIFT_CATALOG_CART_ITEMS);return e?Array.isArray(e)?null:e:null}getCartStateByWidget(e){const n=this.funSessionStorage.getField(t.GIFT_CATALOG_CART_ITEMS);return n?Array.isArray(n)?null:n.widgetKey===e?n:null:null}saveCartState(e){this.funSessionStorage.setField(t.GIFT_CATALOG_CART_ITEMS,e)}}class Ao{storage=h(a.e.PERFORMANCE,m.STRING);get(){return this.storage.get()}set(e={}){this.storage.set(r.ENABLED,e)}}class Co{dictionary=new Map;reverseDictionary=new Map;constructor(e){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(So(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 a;o.forEach((e,n)=>{if(o.length===n+1)return a?void(a[e]=i):void(r[e]=i);const s=e;if(t[s])a=t[s];else{if(a)return a[e]||(a[e]={}),void(a=a[e]);r[e]={},a=r[e]}}),t=Object.assign({},t,r)}),t}}function So(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e||Array.isArray(e)}class Io{storage;zipper;disableNewCookies;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 No extends Io{key=a.e.FUNC;get available(){if(this.disableNewCookies)return!1;const e=Boolean(this.storage.get(a.e.CID));return!e||e&&Boolean(this.storage.get(this.key))}}class Oo extends Io{key=a.e.SESSION;get available(){return!!this.disableNewCookies||Boolean(this.storage.get(a.e.CID))&&Boolean(this.storage.get(this.key))}}const Ro={topLevelDomain:"topLevelDomain",t:"topLevelDomain",gciw:"giftsCatalogCartItems.widgetKey",gcic:"giftsCatalogCartItems.currency",gcid:"giftsCatalogCartItems.items",gccw:"giftsCatalogCheckout.widgetKey",gccc:"giftsCatalogCheckout.currency",gccd:"giftsCatalogCheckout.donationItems",gsw:"givingCartState.widgetKey",gsq:"givingCartState.searchQuery",gsp:"givingCartState.currentPage",ida:"intent.donation.amount",idc:"intent.donation.currency",idr:"intent.donation.recurring",idf:"intent.donation.frequency",idh:"intent.donation.selectedHintId",idi:"intent.donation.donationItems",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",zccs:"zakatCalculator.currentStep",zccc:"zakatCalculator.currentCurrency",zcic:"zakatCalculator.initCurrency",zccm:"zakatCalculator.currentMetal",zcza:"zakatCalculator.zakatAmount",zcob:"zakatCalculator.ownsBusiness",zcbi:"zakatCalculator.businessInventory",zcbr:"zakatCalculator.businessAccountsReceivable",zcbc:"zakatCalculator.businessCashInAccounts",zcbl:"zakatCalculator.businessShortTermLiabilities",zcch:"zakatCalculator.cashOnHand",zcbb:"zakatCalculator.bankBalances",zccv:"zakatCalculator.cryptocurrencyValue",zcgm:"zakatCalculator.goldMode",zcgg:"zakatCalculator.goldGrams",zcgv:"zakatCalculator.goldValueManual",zcsm:"zakatCalculator.silverMode",zcsg:"zakatCalculator.silverGrams",zcsv:"zakatCalculator.silverValueManual",zcre:"zakatCalculator.resaleAssetsEnabled",zche:"zakatCalculator.holdingAssetsEnabled",zcti:"zakatCalculator.tradingInvestmentsAmount",zcrr:"zakatCalculator.realEstateForResaleAmount",zchs:"zakatCalculator.holdingStockAmount",zcrf:"zakatCalculator.retirementFundsAmount",zcrt:"zakatCalculator.receivablesTotal",zcce:"zakatCalculator.currentExpenses",zcab:"zakatCalculator.accruedBills",zctx:"zakatCalculator.taxes",zcdo:"zakatCalculator.debtsOwed",zcld:"zakatCalculator.longtermDebts"};class fo{funLegacyStorage;funFuncStorage;disableNewCookies;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()}getPersistedData(){if(this.funFuncStorage.available){const e=this.funFuncStorage.getData();if(Object.keys(e).length>0)return e}return 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 yo{topLevelDomain="";storage=h(a.e.CID,m.STRING);constructor(e){this.topLevelDomain=e||""}get(){return this.storage.get()}set(e,t={}){this.storage.set(e,t)}remove(e){this.storage.remove({domain:e})}}class Po{apiUrl;constructor(e){this.apiUrl=e}data={};async load(e){const{source:t,widgetKey:n,locale:i}=e,o=`${n}-${i}`;if(this.data[o])return this.data[o];const r=t===bt.ELEMENTS?await this.downloadFromElements(e):await this.downloadFromCheckout(e);return this.data[o]=r,r}async downloadFromElements(e){let{widgetKey:t,locale:n}=e;const i=new URL(Gn(this.apiUrl,kn.GOALS));i.searchParams.set("widgetKey",t),i.searchParams.set("locale",n);const o=i.toString();let r;try{r=await fetch(o,{method:"GET"})}catch(e){const t=e instanceof Error?e.message:"Network Error";throw new co(0,t,"GET",o,e instanceof Error?e.name:void 0)}if(!r.ok)throw new co(r.status,r.statusText,"GET",o);return r.json()}async downloadFromCheckout(e){let{widgetKey:t,locale:n}=e;return(await ao({method:"POST",url:`${this.apiUrl}/checkout/getGoals`,params:{widgetKey:t,locale:n}})).data}}var Do=o("./src/shared/common/debug/Debug.ts");let Lo;var vo;!function(e){e[e.FOUR_HUNDRED_DAYS=400]="FOUR_HUNDRED_DAYS"}(vo||(vo={}));class wo extends gt{constructor(e,t){super(),this.payload={dataLayerEventName:e,dataLayerParams:JSON.stringify(t)}}get eventType(){return mt}}class Uo extends gt{get eventType(){return"ping"}}var Mo,bo,ko,Fo=o("../../clickhouse/mapper/index.js");function xo(e=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:xo(e)}function Ko(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()):encodeURIComponent(e):e}function Go(e){return!!e&&20===e.length&&!/[^\d]/.test(e)}class Bo extends Error{name;constructor(e){super(`Invalid client ID: ${e}`),this.name="InvalidClientIdError"}}class Ho{subscribers=[];publish(e){this.subscribers.forEach(t=>{t.callback(e)})}subscribe(e,t){this.subscribers.find(e=>e.name===t)||this.subscribers.push({callback:e,name:t})}}class Vo{subscribers={};publish(e,t){this.subscribers[e]&&this.subscribers[e].forEach(e=>{try{e(t)}catch{}})}subscribe(e,t){return this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t),!0}}function Yo(){return function(){if(!function(){try{return void 0!==window.Intl}catch{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}}()||function(){const e=-(new Date).getTimezoneOffset()/60;return e>=0?`UTC+${e}`:`UTC${e}`}()}class Wo{window;publicApi;pageViewTimeCreate;resolutionWidth;resolutionHeight;pageViewId;_pageScripts=[];sideLibrariesLookupTries=1;launchedSiteScripts=[];searchedLibraries;funSnippetVersion;clientOnLine;clientDoNotTrack;clientDevicePixelRatio;clientDeviceMemory;clientHardwareConcurrency;clientConnectionType;clientConnectionDownlink;clientConnectionRTT;clientConnectionEffectiveType;clientBatteryCharging;clientBatteryChargingTime;clientBatteryDischargingTime;clientBatteryLevel;clientCookieConsent=[];constructor(e,t){var n;this.window=e,this.publicApi=t,this.pageViewId=xo(),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,2,4,6,8,1,3,5,7,9];let i=0,o=1;for(let e=t.length-1;e>-1;e-=1)i+=o?n[parseFloat(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(({src:t})=>t&&!!t.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:Yo(),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){const t=e.connection||e.mozConnection||e.webkitConnection;window.Navigator&&window.navigator instanceof window.Navigator&&"function"==typeof e.getBattery&&e.getBattery()?.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,t&&(this.clientConnectionType=t.type,this.clientConnectionDownlink=this.formatConnectionDownlink(t.downlink),this.clientConnectionRTT=t.rtt,this.clientConnectionEffectiveType=t.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(){return window.next||window.__next_f||this.window.document?.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}}!function(e){e.PROFILE_OPENED="donorPortalCustomerProfileOpened",e.CLICK_NAME_CHANGE="donorPortalCustomerProfileNameChangeClicked",e.CLICK_EMAIL_CHANGE="donorPortalCustomerProfileEmailChangeClicked",e.PROFILE_NAME_CHANGE_CONFIRMED="donorPortalCustomerProfileNameChangeConfirmed",e.PROFILE_NAME_UPDATED="donorPortalCustomerProfileNameUpdated",e.PROFILE_EMAIL_CHANGE_CONFIRMED="donorPortalCustomerProfileEmailChangeConfirmed",e.PROFILE_EMAIL_UPDATED="donorPortalCustomerProfileEmailUpdated",e.SUBSCRIPTION_DETAILS_OPENED="donorPortalSubscriptionDetailsOpened",e.SUBSCRIPTION_DETAILS_AMOUNT_CLICKED="donorPortalSubscriptionDetailsAmountClicked",e.SUBSCRIPTION_DETAILS_FEE_COVER_CLICKED="donorPortalSubscriptionDetailsFeeCoverClicked",e.SUBSCRIPTION_DETAILS_FEE_UNCOVER_CLICKED="donorPortalSubscriptionDetailsFeeUncoverClicked",e.SUBSCRIPTION_DETAILS_INSTALLMENT_DAY_CLICKED="donorPortalSubscriptionDetailsInstallmentDayClicked",e.SUBSCRIPTION_DETAILS_PAYMENT_METHOD_CLICKED="donorPortalSubscriptionDetailsPaymentMethodClicked",e.SUBSCRIPTION_DETAILS_CHANGES_CONFIRMED="donorPortalSubscriptionDetailsChangesConfirmed",e.SUBSCRIPTION_DETAILS_UPDATED="donorPortalSubscriptionDetailsUpdated",e.SUBSCRIPTION_DETAILS_FREQUENCY_CLICKED="donorPortalSubscriptionDetailsPeriodClicked",e.SUBSCRIPTION_DETAILS_ACH_INSTANT_FLOW_SELECTED="donorPortalSubscriptionDetailsAchInstantVerifySelected",e.SUBSCRIPTION_DETAILS_ACH_ABAV_FLOW_SELECTED="donorPortalSubscriptionDetailsAchAbavVerifySelected",e.SUBSCRIPTION_REACTIVATION_OPENED="donorPortalSubscriptionReactivationOpened",e.SUBSCRIPTION_REACTIVATION_AMOUNT_CLICKED="donorPortalSubscriptionReactivationAmountClicked",e.SUBSCRIPTION_REACTIVATION_FEE_COVER_CLICKED="donorPortalSubscriptionReactivationFeeCoverClicked",e.SUBSCRIPTION_REACTIVATION_FEE_UNCOVER_CLICKED="donorPortalSubscriptionReactivationFeeUncoverClicked",e.SUBSCRIPTION_REACTIVATION_INSTALLMENT_DAY_CLICKED="donorPortalSubscriptionReactivationInstallmentDayClicked",e.SUBSCRIPTION_REACTIVATION_PAYMENT_METHOD_CLICKED="donorPortalSubscriptionReactivationPaymentMethodClicked",e.SUBSCRIPTION_REACTIVATION_CHANGES_CONFIRMED="donorPortalSubscriptionReactivationConfirmed",e.SUBSCRIPTION_REACTIVATION_UPDATED="donorPortalSubscriptionReactivated",e.SUBSCRIPTION_REACTIVATION_FREQUENCY_CLICKED="donorPortalSubscriptionReactivationPeriodClicked",e.COMPLETE_DEDICATION="donorPortalTributeConfigClicked",e.TRIBUTE_OPENED="donorPortalTributeConfigOpened",e.TRIBUTE_TYPE_CLICKED="donorPortalTributeConfigTypeClicked",e.TRIBUTE_NAME_CLICKED="donorPortalTributeConfigNameClicked",e.TRIBUTE_SHARING_METHOD_CLICKED="donorPortalTributeConfigSharingMethodClicked",e.TRIBUTE_FROM_CLICKED="donorPortalTributeConfigFromClicked",e.TRIBUTE_MESSAGE_CLICKED="donorPortalTributeConfigMessageClicked",e.TRIBUTE_HIDE_AMOUNT_CLICKED="donorPortalTributeConfigHideAmountClicked",e.TRIBUTE_SHOW_AMOUNT_CLICKED="donorPortalTributeConfigShowAmountClicked",e.TRIBUTE_FIRST_NAME_CLICKED="donorPortalTributeConfigRecipientFirstNameClicked",e.TRIBUTE_LAST_NAME_CLICKED="donorPortalTributeConfigRecipientLastNameClicked",e.TRIBUTE_EMAIL_CLICKED="donorPortalTributeConfigRecipientEmailClicked",e.TRIBUTE_ADDRESS_CLICKED="donorPortalTributeConfigRecipientAddressClicked",e.TRIBUTE_SEND_CLICKED="donorPortalTributeConfigSendClicked",e.TRIBUTE_COMPLETED="donorPortalTributeCompleted",e.TRIBUTE_CREATE_CLICKED="donorPortalTributeCreateClicked",e.TRIBUTE_CREATE_OPENED="donorPortalTributeCreateOpened",e.TRIBUTE_CREATE_TYPE_CLICKED="donorPortalTributeCreateTypeClicked",e.TRIBUTE_CREATE_NAME_CLICKED="donorPortalTributeCreateNameClicked",e.TRIBUTE_CREATE_SEND_CARD_CLICKED="donorPortalTributeCreateSendCardClicked",e.TRIBUTE_CREATE_CONFIRM_CLICKED="donorPortalTributeCreateConfirmClicked",e.TRIBUTE_CREATED="donorPortalTributeCreated",e.TRIBUTE_CREATE_CONFIG_CLICKED="donorPortalTributeCreateConfigClicked",e.TRIBUTE_PREVIEW_CLICKED="donorPortalTributePreviewClicked",e.TRIBUTE_PREVIEW_OPENED="donorPortalTributePreviewOpened",e.TRIBUTE_MOBILE_SHOW_PREVIEW_CLICKED="donorPortalMobileShowPreviewClicked",e.TRIBUTE_EDIT_CLICKED="donorPortalTributeEditClicked",e.TRIBUTE_EDIT_OPENED="donorPortalTributeEditOpened",e.TRIBUTE_EDIT_TYPE_CLICKED="donorPortalTributeEditTypeClicked",e.TRIBUTE_EDIT_NAME_CLICKED="donorPortalTributeEditNameClicked",e.TRIBUTE_EDIT_SEND_CARD_CLICKED="donorPortalTributeEditSendCardClicked",e.TRIBUTE_EDIT_CONFIG_CLICKED="donorPortalTributeEditConfigClicked",e.TRIBUTE_EDIT_CONFIRM_CLICKED="donorPortalTributeEditConfirmClicked",e.TRIBUTE_EDITED="donorPortalTributeEdited",e.SUBSCRIPTION_CANCEL_BUTTON_VIEWED="donorPortalSubscriptionCancelButtonViewed",e.SUBSCRIPTION_CANCEL_ATTEMPTED="donorPortalSubscriptionCancelAttempted",e.SUBSCRIPTION_CANCEL_ATTEMPT_CHANGE_AMOUNT_CLICKED="donorPortalSubscriptionCancelAttemptChangeAmountClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_CANCEL_CLICKED="donorPortalSubscriptionCancelAttemptCancelClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_CANCEL_CONFIRMED="donorPortalSubscriptionCancelAttemptCancelConfirmed",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_ONE_MONTH_CLICKED="donorPortalSubscriptionCancelAttemptSkipOneMonthClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_THREE_MONTHS_CLICKED="donorPortalSubscriptionCancelAttemptSkipThreeMonthsClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_CUSTOM_MONTHS_CLICKED="donorPortalSubscriptionCancelAttemptSkipCustomMonthsClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_ONE_MONTH_CONFIRMED="donorPortalSubscriptionCancelAttemptSkipOneMonthConfirmed",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_THREE_MONTHS_CONFIRMED="donorPortalSubscriptionCancelAttemptSkipThreeMonthsConfirmed",e.SUBSCRIPTION_CANCEL_ATTEMPT_SKIP_CUSTOM_MONTHS_CONFIRMED="donorPortalSubscriptionCancelAttemptSkipCustomMonthsConfirmed",e.SUBSCRIPTION_CANCEL_ATTEMPT_INSTALLMENT_SKIPPED="donorPortalSubscriptionCancelAttemptInstallmentSkipped",e.SUBSCRIPTION_CANCEL_ATTEMPT_KEEP_SUBSCRIPTION_CLICKED="donorPortalSubscriptionCancelAttemptKeepSubscriptionClicked",e.SUBSCRIPTION_CANCEL_REJECTED="donorPortalSubscriptionCancelRejected",e.SUBSCRIPTION_CANCEL_ATTEMPT_AMOUNT_INPUT_CLICKED="donorPortalSubscriptionCancelAttemptAmountInputClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_COVER_FEE_CLICKED="donorPortalSubscriptionCancelAttemptCoverFeeClicked",e.SUBSCRIPTION_CANCEL_ATTEMPT_CHANGE_AMOUNT_CONFIRMED="donorPortalSubscriptionCancelAttemptChangeAmountConfirmed",e.SUBSCRIPTION_CANCEL_ATTEMPT_AMOUNT_CHANGED="donorPortalSubscriptionCancelAttemptAmountChanged",e.SUBSCRIPTION_CANCELLED="donorPortalSubscriptionCancelled",e.SUBSCRIPTION_CONTACT_DETAILS_OPENED="donorPortalSubscriptionContactDetailsOpened",e.SUBSCRIPTION_CONTACT_DETAILS_CHANGES_CONFIRMED="donorPortalSubscriptionContactDetailsChangesConfirmed",e.SUBSCRIPTION_CONTACT_DETAILS_UPDATED="donorPortalSubscriptionContactDetailsUpdated",e.SUBSCRIPTION_RESUME_CLICKED="donorPortalSubscriptionResumeClicked",e.SUBSCRIPTION_RESUME_SUCCESS="donorPortalSubscriptionResumed",e.SUBSCRIPTION_RESUME_VIEWED="donorPortalSubscriptionResumeViewed",e.SUBSCRIPTION_RESUME_PAYMENT_METHOD_FAILED="donorPortalSubscriptionResumePaymentMethodFailed",e.SUBSCRIPTION_RETRY_VIEWED="donorPortalSubscriptionRetryViewed",e.SUBSCRIPTION_RETRY_CLICKED="donorPortalSubscriptionRetryClicked",e.SUBSCRIPTION_RETRY_SUCCESS="donorPortalSubscriptionRetried",e.SUBSCRIPTION_RETRY_FAILED="donorPortalSubscriptionRetryError",e.ALL_RECEIPTS_DOWNLOADED="donorPortalAllReceiptsDownloaded",e.RECEIPT_DOWNLOADED="donorPortalReceiptDownloaded",e.ANNUAL_RECEIPT_DOWNLOADED="donorPortalAnnualReceiptDownloaded",e.DONOR_PORTAL_MAIL_RECEIPT_DOWNLOADED="donorPortalMailReceiptDownloaded",e.UPSELL_LINK_OPENED="donorPortalUpsellLinkOpened",e.UPSELL_LINK_ERROR="donorPortalUpsellLinkError",e.UPSELL_LINK_CONFIRMED="donorPortalUpsellLinkConfirmed",e.UPSELL_LINK_REJECT_CLICKED="donorPortalUpsellLinkRejectClicked",e.UPSELL_LINK_CHECK_YOUR_EMAIL_OPENED="donorPortalUpsellLinkCheckYourEmailOpened",e.UPSELL_LINK_THANK_YOU_OPENED="donorPortalUpsellLinkThankYouOpened",e.UPSELL_LINK_THANK_YOU_CONFIRMED="donorPortalUpsellLinkThankYouConfirmed",e.UPSELL_LINK_NO_CHANGES_BACK_CLICKED="donorPortalUpsellLinkNoChangesBackClicked",e.UPSELL_LINK_NO_CHANGES_OPENED="donorPortalUpsellLinkNoChangesOpened",e.UPSELL_LINK_404_PAGE_OPENED="donorPortalUpsellLink404PageOpened",e.UPSELL_LINK_CLICKED="donorPortalUpsellLinkClicked",e.UPSELL_LINK_VIEWED="donorPortalUpsellLinkViewed",e.UPGRADE_TO_RECURRING_LINK_CLICKED="donorPortalUpgradeToRecurringLinkClicked",e.UPGRADE_TO_RECURRING_BLOCK_VIEWED="donorPortalUpgradeToRecurringBlockViewed",e.DONOR_PORTAL_FUNDRAISER_DETAILS_OPENED="donorPortalFundraiserDetailsOpened",e.DONOR_PORTAL_FUNDRAISER_UPDATED="donorPortalFundraiserUpdated",e.DONOR_PORTAL_FUNDRAISER_GET_QR_CODE_CLICKED="donorPortalFundraiserGetQRCodeClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_BUTTON_VIEWED="donorPortalFundraiserShareButtonViewed",e.DONOR_PORTAL_FUNDRAISER_SHARE_BUTTON_CLICKED="donorPortalFundraiserShareButtonClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_ON_FACEBOOK_CLICKED="donorPortalFundraiserShareOnFacebookClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_ON_TWITTER_CLICKED="donorPortalFundraiserShareOnTwitterClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_ON_LINKEDIN_CLICKED="donorPortalFundraiserShareOnLinkedinClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_VIA_EMAIL_CLICKED="donorPortalFundraiserShareViaEmailClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_LINK_COPIED="donorPortalFundraiserShareLinkCopied",e.DONOR_PORTAL_FUNDRAISER_LEAVE_BUTTON_CLICKED="donorPortalFundraiserLeaveButtonClicked",e.DONOR_PORTAL_FUNDRAISER_SUPPORTER_LEFT="donorPortalFundraiserSupporterLeft",e.DONOR_PORTAL_DONATE_BUTTON_VIEWED="donorPortalDonateButtonViewed",e.DONOR_PORTAL_DONATE_BUTTON_CLICKED="donorPortalDonateButtonClicked",e.DONOR_PORTAL_SHARE_MORE_OPTIONS_ABORTED="shareMoreOptionsAborted",e.DONOR_PORTAL_FUNDRAISER_SHARE_MORE_OPTIONS_CLICKED="donorPortalFundraiserShareOnMoreOptionsClicked",e.DONOR_PORTAL_FUNDRAISER_SHARE_LINK_VIEWED="donorPortalFundraiserShareLinkViewed",e.DONOR_PORTAL_FUNDRAISER_INVITE_LINK_VIEWED="donorPortalFundraiserInviteLinkViewed",e.DONOR_PORTAL_FUNDRAISER_INVITE_LINK_COPIED="donorPortalFundraiserInviteLinkCopied",e.DONOR_PORTAL_SUBSCRIPTION_VERIFY_ACH_CLICKED="donorPortalSubscriptionVerifyACHClicked",e.DONOR_PORTAL_SUBSCRIPTION_VERIFY_ACH_CODE_SUCCESSED="donorPortalSubscriptionVerifyACHCodeSuccessed",e.DONOR_PORTAL_SUBSCRIPTION_VERIFY_ACH_CODE_FAILED="donorPortalSubscriptionVerifyACHCodeFailed",e.DONOR_PORTAL_SUBSCRIPTION_VERIFY_ACH_DEPOSITS_SUCCESSED="donorPortalSubscriptionVerifyACHDepositsSuccessed",e.DONOR_PORTAL_SUBSCRIPTION_VERIFY_ACH_DEPOSITS_FAILED="donorPortalSubscriptionVerifyACHDepositsFailed",e.RECURRING_FROM_CHARGE_NOT_FOUND_VIEW="recurringFromChargeNotFoundView",e.RECURRING_FROM_CHARGE_VIEW="recurringFromChargeView",e.RECURRING_FROM_CHARGE_REJECT="recurringFromChargeReject",e.RECURRING_FROM_CHARGE_DONATE="recurringFromChargeDonate",e.RECURRING_FROM_CHARGE_SUCCESS_VEW="recurringFromChargeSuccessView",e.RECURRING_FROM_CHARGE_PROCESSING_ERROR_VIEW="recurringFromChargeProcessingErrorView",e.FEEDBACK_BUTTON_VIEWED="donorPortalFeedbackButtonViewed",e.FEEDBACK_MODAL_OPENED="donorPortalFeedbackModalOpened",e.FEEDBACK_MODAL_ATTEMPTED="donorPortalFeedbackModalAttempted",e.FEEDBACK_MODAL_SENT="donorPortalFeedbackModalSent",e.FEEDBACK_PAGE_OPENED="donorPortalFeedbackPageOpened",e.FEEDBACK_PAGE_SUBMIT_ATTEMPTED="donorPortalFeedbackPageAttempted",e.FEEDBACK_PAGE_SUBMIT_SUCCESS="donorPortalFeedbackPageSent",e.DONATION_BENEFIT_VIEWED="donorPortalBenefitViewed",e.DONATION_BENEFIT_OPENED="donorPortalBenefitOpened"}(Mo||(Mo={})),function(e){e[e.HOUR=.041666666666666664]="HOUR",e[e.HALF_HOUR=.020833333333333332]="HALF_HOUR",e[e.FOUR_HUNDRED_DAYS=400]="FOUR_HUNDRED_DAYS"}(bo||(bo={})),function(e){e[e.COMPANY_NOT_FOUND=1]="COMPANY_NOT_FOUND",e[e.UNSUPPORTED_STORAGE_TYPE=2]="UNSUPPORTED_STORAGE_TYPE",e[e.BACKDROP_CONTAINER_IS_NOT_AVAILABLE=3]="BACKDROP_CONTAINER_IS_NOT_AVAILABLE",e[e.EXPERIMENT_ALREADY_STARTED=4]="EXPERIMENT_ALREADY_STARTED",e[e.INVALID_VARIANT_NAME_FOR_EXPERIMENT=5]="INVALID_VARIANT_NAME_FOR_EXPERIMENT",e[e.STORED_SETTINGS_MUST_BE_AN_OBJECT=6]="STORED_SETTINGS_MUST_BE_AN_OBJECT",e[e.INVALID_DISTRIBUTION_IN_EXPERIMENT=7]="INVALID_DISTRIBUTION_IN_EXPERIMENT",e[e.NO_SUCH_SETTINGS_FOR_EXPERIMENT=8]="NO_SUCH_SETTINGS_FOR_EXPERIMENT",e[e.NO_SUCH_EXPERIMENT=9]="NO_SUCH_EXPERIMENT",e[e.UNSUPPORTED_TYPE_OF_STORAGE=10]="UNSUPPORTED_TYPE_OF_STORAGE",e[e.FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED=11]="FORM_OF_THIS_TYPE_HAS_NOT_BEEN_REGISTERED",e[e.NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED=12]="NO_FORM_ASSOCIATED_WITH_THIS_KEY_WAS_CREATED",e[e.UNSUPPORTED_LOCALE_CONFIG_TYPE=13]="UNSUPPORTED_LOCALE_CONFIG_TYPE",e[e.SERVICE_HAS_ALREADY_BEEN_PROVIDED=14]="SERVICE_HAS_ALREADY_BEEN_PROVIDED",e[e.MUST_PROVIDE_COMPANY_KEY=15]="MUST_PROVIDE_COMPANY_KEY",e[e.TRACKER_ALREADY_STARTED=16]="TRACKER_ALREADY_STARTED"}(ko||(ko={}));const Xo=[/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,/;\s*wv\)/],zo=[/^gtm\..*$/,/^__cmp.*$/,/^optimize\..*$/,/^setPromo$/,/^trackOptanonEvent$/,/^consentDataForTheRecord$/,/^optanonConsentUpdated$/,/^nextroll-consent$/,/^FundraiseUp\./,/^youtube/i];class $o{source;observer=new Vo;debug;livemode;clientLocale;companyKey;supporterKey;agentKey;isFundraiseupVisitor;shadowUserKey;shadowAdminId;tags=new Set;uaIsInApp=!1;pointingDeviceIsUsed=!1;trackerEventClick=null;window;_clientId="";_page;eventSent=Date.now();cookiesUnsetable=!1;started=!1;pingDelay=15e3;isTouchDevice=!1;trackerClient;CIDStorage;subscriberStorage;isABTestMode;fromDonorPortal;serverClientId;sessionStorage;constructor({window:e,companyKey:t,storage:n,trackerClient:i,source:o,supporterKey:r,agentKey:a,livemode:s,localeCode:c,isFundraiseupVisitor:l,shadowUserKey:d,shadowAdminId:E,isABTestMode:u,fromDonorPortal:p,serverClientId:m,sessionStorage:T}){var _;this.window=e,this.trackerClient=i,this.livemode=s,this.companyKey=t,this.CIDStorage=n,this.subscriberStorage=new Ho,this.uaIsInApp=(_=e.navigator.userAgent,Xo.some(e=>e.exec(_))),this.source=o,this.supporterKey=r,this.agentKey=a,this.clientLocale=c,this.isFundraiseupVisitor=l,this.shadowUserKey=d,this.shadowAdminId=E,this.isABTestMode=u,this.fromDonorPortal=p,this.serverClientId=m,this.sessionStorage=T}get page(){return this._page}get clientId(){if(this._clientId&&!Go(this._clientId))throw new Bo(this._clientId);return this._clientId}get isPingAvailable(){return Date.now()-this.eventSent>this.pingDelay}start(){if(this.preStartOptionsValidation(),this.started)throw new Error(`${ko.TRACKER_ALREADY_STARTED}`);this._page=new Wo(this.window,this.window.FundraiseUp),this.setupCookies(),this.started=!0,this.isTouchDevice="ontouchstart"in window||!!navigator.maxTouchPoints,this.initializeHandleClick(),this.initializeDataLayerTracking(),this.initializePointerUsageTracking()}initializeCidTLD(){if(!this.sessionStorage)throw new Error("Must provide Session Storage");this.read(),this._clientId||this.createOrSetClientId(this.CIDStorage.get());const e=function(e,n,i,o){const r=o.split("."),a=n.getPersistedField(t.TOP_LEVEL_DOMAIN);if(a)return a;let s="";if(1===r.length&&(s=r[0]),2===r.length&&(s="."+r.join(".")),3===r.length&&"www"===r[0]&&(s="."+r.slice(-2).join(".")),s)return e.set(i,{expires:vo.FOUR_HUNDRED_DAYS,domain:s,sameSite:"Lax"}),n.setData({[t.TOP_LEVEL_DOMAIN]:s},{domain:s}),s;s=r.splice(-1).join();for(let o=r.length;o>0;o--){const o=r.splice(-1).join();if("www"===o)return"."+s;if(s=o+"."+s,e.set(i,{expires:vo.FOUR_HUNDRED_DAYS,domain:s,sameSite:"Lax"}),e.get())return n.setData({[t.TOP_LEVEL_DOMAIN]:"."+s},{domain:"."+s}),"."+s}}(this.CIDStorage,this.sessionStorage,this.clientId,this.window.location.hostname);this.CIDStorage.topLevelDomain=e??""}getTLD(){return this.CIDStorage.topLevelDomain}preStartOptionsValidation(){if(!this.companyKey)throw new Error(`${ko.MUST_PROVIDE_COMPANY_KEY}`)}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 Uo;this.track(n,t)}customTrack(e){this.track(new At({customEventType:e.type,customEventData:e.data}))}track(e,t){if(!this.started)return;const n=this.page&&this.page.toObject()||{},i={...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()+xo(20)).slice(0,20)}write(){this._clientId&&this.CIDStorage.set(this.clientId,{expires:bo.FOUR_HUNDRED_DAYS,domain:this.CIDStorage.topLevelDomain,sameSite:"Lax"})}read(){const e=Qn(this.window.location.href).clientId||"",t=this.CIDStorage.get()||"";Go(e)?this._clientId=e:Go(t)?this._clientId=t:Go(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=>(Array.isArray(e)||e&&"object"==typeof e&&"number"==typeof e.length)&&e.length>=3&&"event"===e[0]&&"string"==typeof e[1]?e[1]:"object"!=typeof e||Array.isArray(e)||"string"!=typeof e.event?null:e.event,n=e=>{if(!this.isABTestMode)return!1;const n=t(e);return!!n&&!zo.some(e=>e.test(n))},i=e=>{if(n(e)){const n=t(e);this.track(new wo(n,e))}};e.forEach(i);const o=e.push;e.push=(...t)=>(i(t[0]),o.apply(e,t))}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 jo{timeout;limit;timeoutInstance=0;items=[];onFlush;constructor(e){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 Zo,Jo,qo;function Qo(e){return new Promise((t,n)=>{!function(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(e=>{i.setRequestHeader(e,o[e])});let r=e.params;r&&"object"==typeof r&&(r=JSON.stringify(r)),i.send(r)}(e,t,n)})}!function(e){e.CHECKOUT="checkout"}(Zo||(Zo={})),function(e){e.TOP="top",e.LEFT="left",e.FOREGROUND="foreground"}(Jo||(Jo={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing",e.LOAD="load"}(qo||(qo={}));const er=[ut,"click",Et,"checkoutClose",pt];class tr{bulk;request=Qo;window;url;trackingTarget;env;possibleAdBlockersErrorMessages=["Failed to fetch","NetworkError when attempting to fetch resource.","Load failed"];constructor(e){this.window=e.window,this.url=e.url,this.trackingTarget=e.trackingTarget,this.env=e.env,this.bulk=new jo({limit:30,onFlush:e=>this.sendRequests(e)})}send(e,t){if((window.FUN_DO_NOT_TRACK||this.isBlockedByDomain())&&(!t||t&&t.trackerType!==Zo.CHECKOUT))return;const n=function(e){return function(e,t={}){const n={encode:!0,strict:!0,arrayFormat:"none"};Object.assign(n,t),!1===n.sort&&(n.sort=()=>{});const i=function(e){return(t,n)=>null===n?Ko(t,e):[Ko(t,e),"=",Ko(n,e)].join("")}(n);return e?Object.keys(e).sort(n.sort).map(t=>{const o=e[t];if(void 0===o)return"";if(null===o)return Ko(t,n);if(Array.isArray(o)){const e=[];return o.slice().forEach(n=>{void 0!==n&&e.push(i(t,n,e.length))}),e.join("&")}return Ko(t,n)+"="+Ko(o,n)}).filter(e=>e.length>0).join("&"):""}((0,Fo.compressPayload)(e))}(e),i=t?.url||this.url;let o=-1!==er.indexOf(e.eventType);e.eventType===mt&&-1!==this.window.location.href.indexOf("alz.org")&&(o=!0),this.bulk.push({url:i+this.trackingTarget,payload:n},o)}isBlockedByDomain(){return this.env===qo.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(({url:e,payload:n})=>{const i=t.get(e)||[];i.push(n),t.set(e,i)}),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})}}class nr{tags=new Set;tracker;constructor(e){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}getTLD(){return this.tracker.getTLD()}getTags(){return Array.from(this.tags)}customTrack(e){this.tracker.customTrack(e)}track(e,t){this.tracker.track(e,t)}ping(e,t){const n=e||new Uo;this.tracker.ping(n,t)}initializePointerUsageTracking(){this.tracker.initializePointerUsageTracking()}subscribe(e,t){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 ir extends nr{funEmbedRelease;isFundraiseupVisitor;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 At({customEventType:e.type,customEventData:e.data}))}}var or,rr;!function(e){e[e.CHECKOUT=13]="CHECKOUT"}(or||(or={})),function(e){e.EMBED="embed"}(rr||(rr={}));class ar{requester;apiKey;scope;release;environment;url;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:{...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 sr extends ar{embedConfig;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/,/elm.events.push is not a function/,/Load failed/];constructor(e,t,n,i,o,r,a){super(e,t,n,i,o,r),this.embedConfig=a}getTagsFromConfig(){return{userCountry:this.embedConfig.meta?.user.location?.country,isFundraiseupVisitor:this.embedConfig.isFundraiseupVisitor,isMobile:this.embedConfig.deviceData.isMobile,isMobileOrTablet:this.embedConfig.deviceData.isMobileOrTablet,osName:this.embedConfig.browserData?.os?.name,osVersion:this.embedConfig.browserData?.os?.version,companyKey:this.embedConfig.currentCompanyKey,isInAppBrowser:this.embedConfig.browserData.isInAppBrowser,...void 0!==this.embedConfig.verifiedBot&&{verifiedBot:this.embedConfig.verifiedBot},...void 0!==this.embedConfig.clientASNIsBot&&{clientASNIsBot:this.embedConfig.clientASNIsBot}}}getBrowserTags(){return{server_name:window.location.origin,platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,language:window.navigator.language,connectionType:window.navigator.connection?.effectiveType,downlink:window.navigator.connection?.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{...n,tags:{...n.tags,...this.getTagsFromConfig(),...this.getBrowserTags(),...t},extra:{...n.extra||{},...this.getBrowserExtra(),stacktrace:e.stack}}}isIgnoredException(e){const t=!this.embedConfig.browserData.isSupported,n=""===window.navigator.userAgent||0===window.navigator.languages?.length||window.navigator.webdriver,i=this.ignoreErrors.some(t=>t.test(e.message)),o=window.location.origin.includes("hubspotpreview");return t||n||i||o||super.isIgnoredException(e)}}class cr{window;_originalStyles;constructor(e){this.window=e}saveDocumentOriginalStyles(){const t=()=>{this.saveOriginalStyles(this.window.document.body),this.saveOriginalStyles(this.window.document.documentElement)};this.window.document.body?t():(0,e.c)(this.window.document,t)}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 lr{window;isMobile;static overflowStyleProp="overflow";static heightStyleProp="height";static minHeightStyleProp="min-height";isLocked=!1;overflow;height;minHeight;constructor(e,t){this.window=e,this.isMobile=t}lock(){this.isLocked||(this.saveDefaultStyles(),this.bodyStyle.setProperty(lr.overflowStyleProp,"hidden","important"),this.isMobile||(this.bodyStyle.setProperty(lr.heightStyleProp,"auto","important"),this.bodyStyle.setProperty(lr.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(lr.overflowStyleProp),priority:this.bodyStyle.getPropertyPriority(lr.overflowStyleProp)},this.isMobile||(this.height={value:this.bodyStyle.getPropertyValue(lr.heightStyleProp),priority:this.bodyStyle.getPropertyPriority(lr.heightStyleProp)},this.minHeight={value:this.bodyStyle.getPropertyValue(lr.minHeightStyleProp),priority:this.bodyStyle.getPropertyPriority(lr.minHeightStyleProp)})}restoreDefaultStyles(){this.overflow?.value?this.bodyStyle.setProperty(lr.overflowStyleProp,this.overflow.value,this.overflow.priority):this.bodyStyle.removeProperty(lr.overflowStyleProp),this.isMobile||(this.height?.value?this.bodyStyle.setProperty(lr.heightStyleProp,this.height.value,this.height.priority):this.bodyStyle.removeProperty(lr.heightStyleProp),this.minHeight?.value?this.bodyStyle.setProperty(lr.minHeightStyleProp,this.minHeight.value,this.minHeight.priority):this.bodyStyle.removeProperty(lr.minHeightStyleProp))}}function dr(t){const n=(0,gn.w)(),o=function(e){let{trackingUrls:t,isAbTestMode:n,donorPortalUrl:i,companyKey:o}=e;if(n){const e=Zi.includes(o)?"https://fundraiseupobjects.com":i;return{checkout:e,global:e}}return t}({trackingUrls:t.trackingUrls,isAbTestMode:t.staticConfig.abTestMode,donorPortalUrl:t.staticConfig.donorPortalUrl,companyKey:t.company.key});return n.provide(Ft.i.STATIC_CONFIG,()=>Object.freeze(t.staticConfig)).provide(Ft.i.TRACKING_URLS,()=>Object.freeze(o)).provide(Ft.i.HTML_ELEMENT_STYLE_MANAGER,()=>new cr(window)).provide(Ft.i.EMBED_CONFIG,()=>function(e,t,n,i,o,r,s,c,l,d){const u=(0,pn.U)(window.FundraiseUp.h||window.location.href),p=st(u),m=void 0!==E.A.get(a.e.DEBUG),T=c.get(),_=T?.disableIsFundraiseupVisitor||!1,h=n.clientId,g=new un({window,queryParams:u,companyLocalizationSettings:t.localization,companyKey:t.key}).getConfig(),A=`${r}/gift-cart/resolve`,C=`${r}/gift-checkout/resolve`,S=window.FUN_CDN||`https://cdn.${n.mainDomain}`,I={version:o,livemode:p,locale:g,currentCompanyKey:t.key,currentCompany:t,loadedTimestamp:i,meta:l,queryParams:u,staticConfig:n,inactiveWidgets:d,clientId:h,get isMobile(){return window.FUN_FORCE_MOBILE||I.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,turnstileSiteKey:n.turnstileSiteKey}},get server(){return{mainDomain:n.mainDomain,env:n.env,elementsApiScriptUrl:n.elementsApiScriptUrl,giftCatalogApiScriptUrl:n.giftCatalogApiScriptUrl,giftItemDescriptionApiScriptUrl:n.giftItemDescriptionApiScriptUrl,trackingUrls:Object.assign({},e),resolveUrl:`${r}/checkout/resolve?key=${t.key}`,giftCatalogResolveUrl:A,giftCheckoutResolveUrl:C,p2pFormAssets:n.p2pFormAssets,checkoutAssets:n.checkoutAssets,givingCartBasketButtonScriptUrl:n.givingCartBasketButtonScriptUrl,givingCartValidationPopupScriptUrl:n.givingCartValidationPopupScriptUrl,giftCatalogCartAssets:n.giftCatalogCartAssets,checkoutSteplessAssets:n.checkoutSteplessAssets,giftCatalogCheckoutAssets:n.giftCatalogCheckoutAssets,elementsUrl:`${s}/embed-data/`,globalElementsUrl:`${S}/embed-data/elements-global`,giftCatalogsUrl:`${S}/gift-catalogs`}},get data(){return{currencyRates:Object.assign({},n.currencyRates)}},get isDebugMode(){return m},get isFundraiseupVisitor(){return Boolean(n.isFundraiseupVisitor&&!_)},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},get verifiedBot(){return n.verifiedBot},get clientASNIsBot(){return n.clientASNIsBot}};return I}(n.get(Ft.i.TRACKING_URLS),t.company,n.get(Ft.i.STATIC_CONFIG),t.loadedTimestamp,t.version,wn,Mn,n.get(Ft.i.FUN_EXPERIMENTS_STORAGE),t.meta,t.knownKeys.inactiveWidgets)).provide(Ft.i.BACKDROP,()=>new no(window,new lr(window,t.staticConfig.deviceData.isMobile),n.get(Ft.i.EVENT_EMITTER))).provide(Ft.i.CHECKOUT_SKELETON,()=>((t,n)=>{let i;const o=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>',r=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:a=>{const s=(c=a.campaignKey,n.getAskPageType(c)===io.WITH_ASK_PAGE||a.hasFundraiser);var c;i=t.document.createElement("div"),i.classList.add("fru-m"),s&&i.classList.add("fru-hc"),a.isLivemode||i.classList.add("fru-nlm"),a.isRtl&&i.setAttribute("dir","rtl"),t.document.body?t.document.body.appendChild(i):(0,e.c)(t.document,()=>{t.document.body.appendChild(i)}),i.innerHTML=(e=>{let{isMobile:t,showAskPage:n}=e;return t?o(n):r(n)})({isMobile:a.isMobile,showAskPage:s}),(()=>{if(!i)return;const e=t.document.createElement("style");e.appendChild(t.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: #f3f4fa !important; /* gray-10 */\n    border-radius: 6px !important;\n  }\n\n  .fru-sm {\n    width: 100% !important;\n    background: #f3f4fa !important; /* gray-10 */\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    translate: 0 0 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: 60px !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: #f3f4fa !important; /* gray-10 */\n    border-radius: 16px 16px 0 0 !important;\n  }\n\n  .fru-cim {\n    width: 100% !important;\n    height: 59vw !important;\n    background: #f3f4fa !important; /* gray-10 */\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: 40pxpx !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")),i.prepend(e)})()},hide:()=>{i&&(i.classList.add("fru-m-a"),i.remove())}}})(window,n.get(Ft.i.KEYS_KEEPER))).provide(Ft.i.GIFT_CATALOG_CHECKOUT_SKELETON,()=>(t=>{let n;return{render:i=>{try{n=t.document.createElement("div"),n.classList.add("fru-sw"),i.isRtl&&n.setAttribute("dir","rtl"),t.document.body?t.document.body.appendChild(n):(0,e.c)(t.document,()=>{n&&t.document.body.appendChild(n)}),n.innerHTML='\n     <div class="fru-sl">\n      <div class="fru-sf">\n    <div class="fru-sfc">\n      <div class="fru-sg fru-sgf"></div>\n\n      <div class="fru-sfd">\n        <div style="height: 64px !important"></div>\n        <div class="fru-s" style="width: 152px !important; height: 36px !important"></div>\n\n        <div style="height: 40px !important"></div>\n        <div class="fru-s" style="width: 202px !important; height: 28px !important"></div>\n\n        <div style="height: 28px !important"></div>\n        <div class="fru-df">\n          <div class="fru-s fru-sh-0" style="width: 120px !important; height: 52px !important"></div>\n          <div class="fru-s fru-sh-0 fru-ms-5" style="width: 220px !important; height: 52px !important"></div>\n        </div>\n\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 360px !important; height: 52px !important"></div>\n\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 360px !important; height: 52px !important"></div>\n\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 360px !important; height: 52px !important"></div>\n\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 175px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 267px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 32px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 28px !important"></div>\n\n        <div style="height: 28px !important"></div>\n        <div class="fru-s" style="width: 203px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 36px !important"></div>\n        <div class="fru-s" style="width: 360px !important; height: 48px !important"></div>\n      </div>\n\n      <div class="fru-sfm">\n        <div style="height: 50px !important"></div>\n        <div class="fru-s" style="width: 202px !important; height: 24px !important"></div>\n\n        <div style="height: 24px !important"></div>\n        <div class="fru-df">\n          <div class="fru-s fru-sh-0 fru-mnw-30 fru-mxw-50" style="width: 120px !important; height: 52px !important"></div>\n          <div class="fru-s fru-gr-1 fru-ms-5" style="height: 52px !important"></div>\n        </div>\n\n        <div style="height: 18px !important"></div>\n        <div class="fru-s" style="height: 52px !important"></div>\n\n        <div style="height: 18px !important"></div>\n        <div class="fru-s" style="height: 52px !important"></div>\n\n        <div style="height: 18px !important"></div>\n        <div class="fru-s" style="height: 52px !important"></div>\n\n        <div style="height: 18px !important"></div>\n        <div class="fru-s" style="width: 175px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 267px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 26px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 203px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 12px !important"></div>\n        <div class="fru-s" style="width: 238px !important; height: 24px !important"></div>\n\n        <div style="height: 32px !important"></div>\n        <div class="fru-s" style="height: 48px !important"></div>\n\n        <div style="height: 62px !important"></div>\n        \n      </div>\n    </div>\n  </div>\n      <div class="fru-sc">\n    <div class="fru-scc">\n      <div class="fru-sg fru-sgc"></div>\n\n      <div class="fru-scd">\n        <div style="height: 64px !important"></div>\n        <div class="fru-s" style="width: 140px !important; height: 54px !important"></div>\n\n        <div style="height: 48px !important"></div>\n        <div class="fru-s" style="width: 140px !important; height: 28px !important"></div>\n\n        <div style="height: 28px !important"></div>\n        <div class="fru-s" style="width: 426px !important; height: 86px !important"></div>\n\n        <div style="height: 17px !important"></div>\n        <div class="fru-s" style="width: 426px !important; height: 86px !important"></div>\n\n        <div style="height: 36px !important"></div>\n        <div class="fru-df fru-jb">\n          <div class="fru-s fru-sh-0" style="width: 67px !important; height: 28px !important"></div>\n          <div class="fru-s fru-sh-0" style="width: 132px !important; height: 28px !important"></div>\n        </div>\n\n        <div style="height: 28px !important"></div>\n        <div style="height: 1px !important; background: #c7cdd6 !important"></div>\n\n        <div style="height: 16px !important"></div>\n        <div class="fru-df">\n          <div class="fru-s fru-sh-0" style="width: 131px !important; height: 20px !important"></div>\n          <div class="fru-s fru-sh-0 fru-ms-4" style="width: 207px !important; height: 20px !important"></div>\n        </div>\n\n        <div style="height: 8px !important"></div>\n        <div class="fru-s" style="width: 214px !important; height: 20px !important"></div>\n      </div>\n\n      <div class="fru-scm">\n        <div style="height: 20px !important"></div>\n        <div class="fru-s" style="width: 112px !important; height: 40px !important"></div>\n\n        <div style="height: 32px !important"></div>\n        <div class="fru-s" style="width: 152px !important; height: 32px !important"></div>\n\n        <div style="height: 40px !important"></div>\n        <div class="fru-df fru-jb">\n          <div class="fru-s fru-sh-0" style="width: 140px !important; height: 24px !important"></div>\n          <div class="fru-s fru-sh-0" style="width: 132px !important; height: 24px !important"></div>\n        </div>      \n      </div>\n    </div>\n  </div>\n     </div>\n    ',(()=>{if(!n)return;const e=t.document.createElement("style");e.appendChild(t.document.createTextNode("\n  [class^='fru-'] {\n    all: initial;\n    display: block !important;\n    box-sizing: border-box !important;\n  }\n\n  .fru-sw {\n    position: fixed !important;\n    inset: 0 !important;\n    width: 100% !important;\n    height: 100% !important;\n    background: white !important;\n    overflow: hidden !important;\n    z-index: 2147483647 !important;\n    cursor: wait !important;\n    transition: opacity 0.3s !important;\n  }\n\n  .fru-sl {\n    position: relative !important;\n    display: flex !important;\n    flex-direction: column-reverse !important;\n    width: 100% !important;\n    max-width: 1026px !important;\n    margin: 0 auto !important;\n  }\n\n  .fru-sf {\n    position: relative !important;\n    width: 100% !important;\n    padding-inline: 18px !important;\n    z-index: 1 !important;\n  }\n\n  .fru-sfc {\n    width: 100% !important;\n    max-width: 390px !important;\n    margin: 0 auto !important;\n  }\n\n  .fru-sc {\n    position: relative !important;\n    width: 100% !important;\n    padding-inline: 18px !important;\n  }\n\n  .fru-scc {\n    width: 100% !important;\n    max-width: 390px !important;\n    margin: 0 auto !important;\n  }\n\n  .fru-scd,\n  .fru-sfd {\n    display: none !important;\n  }\n\n  .fru-swh {\n    animation: fru-fade-out 0.15s forwards !important;\n  }\n\n  .fru-s {\n    width: 100% !important;\n    max-width: 100% !important;\n    background: #f3f4fa !important; /* gray-10 */\n    border-radius: 8px !important;\n  }\n\n  .fru-sg {\n    position: absolute !important;\n    inset: 0 !important;\n    z-index: 1 !important;\n\n    background: linear-gradient(\n      90deg,\n      rgba(255, 255, 255, 0) 35%,\n      rgb(255, 255, 255) 50%,\n      rgba(255, 255, 255, 0) 65%\n    ) !important;\n    background-size: 300% 100% !important;\n    animation: 0.75s linear infinite !important;\n    animation-name: fru-lm !important;\n  }\n\n  [dir='rtl'] .fru-sg {\n    animation-name: fru-lm-rtl !important;\n  }\n\n  .fru-df {\n    display: flex !important;\n  }\n\n  .fru-jb {\n    justify-content: space-between !important;\n  }\n\n  .fru-sh-0 {\n    flex-shrink: 0 !important;\n  }\n\n  .fru-gr-1 {\n    flex-grow: 1 !important;\n  }\n\n  .fru-mnw-30 {\n    min-width: 30% !important;\n  }\n\n  .fru-mxw-50 {\n    max-width: 50% !important;\n  }\n\n  .fru-ms-4 {\n    margin-inline-start: 16px !important;\n  }\n\n  .fru-ms-5 {\n    margin-inline-start: 20px !important;\n  }\n\n  @media (min-width: 872px) {\n    .fru-sl {\n      flex-direction: row !important;\n      min-height: 100% !important;\n    }\n\n    .fru-sf {\n      width: 47% !important;\n      padding-inline: 32px !important;\n      animation: 0.3s ease-out 0.1s forwards !important;\n      animation-name: fru-str !important;\n    }\n\n    [dir='rtl'] .fru-sf {\n      animation-name: fru-stl !important;\n    }\n\n    .fru-sfc {\n      max-width: 360px !important;\n    }\n\n    .fru-sc {\n      width: 53% !important;\n      padding-inline: 32px !important;\n      animation: 0.3s ease-out 0.1s forwards !important;\n      animation-name: fru-stl !important;\n\n      &::before {\n        content: '' !important;\n        width: 200px !important;\n        height: 100% !important;\n        position: absolute !important;\n        top: 0 !important;\n        inset-inline-end: 100% !important;\n        box-shadow:\n          1px 0 2px -1px rgba(35, 50, 89, 0.1),\n          6px 0 4px -6px rgba(35, 50, 89, 0.08),\n          20px 0 32px -8px rgba(35, 50, 89, 0.04) !important;\n      }\n    }\n\n    [dir='rtl'] .fru-sc {\n      animation-name: fru-str !important;\n    }\n\n    .fru-scc {\n      max-width: 426px !important;\n    }\n\n    .fru-scm,\n    .fru-sfm {\n      display: none !important;\n    }\n\n    .fru-scd,\n    .fru-sfd {\n      display: block !important;\n    }\n\n    .fru-sgc {\n      animation: 1.25s linear 0.7s infinite !important;\n      animation-name: fru-ld !important;\n    }\n\n    [dir='rtl'] .fru-sgc {\n      animation-name: fru-ld-rtl !important;\n    }\n\n    .fru-sgf {\n      animation: 1.25s linear 0.3s infinite !important;\n      animation-name: fru-ld !important;\n    }\n\n    [dir='rtl'] .fru-sgf {\n      animation-name: fru-ld-rtl !important;\n    }\n  }\n\n  @keyframes fru-fade-out {\n    to {\n      opacity: 0;\n    }\n  }\n\n  @keyframes fru-stl {\n    0% {\n      opacity: 0;\n      translate: 20px 0 0;\n    }\n    100% {\n      opacity: 1;\n      translate: 0 0 0;\n    }\n  }\n\n  @keyframes fru-str {\n    0% {\n      opacity: 0;\n      translate: -20px 0 0;\n    }\n    100% {\n      opacity: 1;\n      translate: 0 0 0;\n    }\n  }\n\n  @keyframes fru-lm {\n    0% {\n      background-position: 100% 50%;\n    }\n    100% {\n      background-position: 0 50%;\n    }\n  }\n\n  @keyframes fru-lm-rtl {\n    0% {\n      background-position: 0 50%;\n    }\n    100% {\n      background-position: 100% 50%;\n    }\n  }\n\n  @keyframes fru-ld {\n    0% {\n      background-position: 100% 50%;\n    }\n    50% {\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    50% {\n      background-position: 100% 50%;\n    }\n    100% {\n      background-position: 100% 50%;\n    }\n  }\n")),n.prepend(e)})()}catch(e){console.error("Error rendering gift catalog checkout skeleton:",e)}},hide:()=>{n&&(n.classList.add("fru-swh"),n.remove())}}})(window)).provide(Ft.i.SENTRY_CLIENT,()=>{return e=n.get(Ft.i.STATIC_CONFIG),i=n.get(Ft.i.EMBED_CONFIG),o=t.version,new sr((e,t)=>fetch(e,t),e.sentryApiKey,rr.EMBED,o,e.env,or.CHECKOUT,i);var e,i,o}).provide(Ft.i.DEBUG,()=>new Do.y("embed",t.debugLogCodes)).provide(Ft.i.KEYS_KEEPER,()=>new Ji(t.knownKeys)).provide(Ft.i.FUN_SESSION_STORAGE,()=>new c(function(){const e=p(i.OBJECT),t=new Co(Ro),n=new Oo(e,t,window.FUN_DISABLE_NEW_COOKIES),o=new No(e,t,window.FUN_DISABLE_NEW_COOKIES);return new fo(n,o,window.FUN_DISABLE_NEW_COOKIES)}(),{env:t.staticConfig.env,allowWrite:!1})).provide(Ft.i.USER_SESSION,()=>new l(n.get(Ft.i.FUN_SESSION_STORAGE))).provide(Ft.i.FUN_COOKIES_MANAGER,()=>{return e=n.get(Ft.i.FUN_SESSION_STORAGE),i=n.get(Ft.i.FUN_STAT_STORAGE),o=t.staticConfig.env,r=window.FUN_DISABLE_NEW_COOKIES,new uo(e,i,o,r);var e,i,o,r}).provide(Ft.i.FUN_STAT_STORAGE,()=>new Ao).provide(Ft.i.FUN_TRACKER_STORAGE,()=>new yo).provide(Ft.i.FUN_COOKIES_MIGRATOR,()=>{return e=t.staticConfig.env,n=window.FUN_DISABLE_NEW_COOKIES,new po(e,E.A,{disableNewCookies:n});var e,n}).provide(Ft.i.EMBED_TRACKER,()=>function(e){return void 0===Lo&&(Lo=!1),Lo&&window.FUN_DEV_NEW_TRACKING,function(e){let t;if(e.funTracker)t=e.funTracker;else{const n=new tr({window:e.window,url:e.globalURL,trackingTarget:"/tb",env:e.env});t=new $o({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,sessionStorage:e.sessionStorage}),t.initializeCidTLD(),t.subscribe(t=>e.debug.log(t.eventType||"",t),"debug"),t.start()}return new ir(t,{funEmbedRelease:e.funEmbedRelease,isFundraiseupVisitor:e.isFundraiseupVisitor})}(e)}({window,funEmbedRelease:t.version,embedConfig:n.get(Ft.i.EMBED_CONFIG),debug:n.get(Ft.i.DEBUG).createInstance("Tracking"),globalURL:o.global,funTracker:window.FUN_TRACKER,isFundraiseupVisitor:t.staticConfig.isFundraiseupVisitor?1:0,funTrackerStorage:n.get(Ft.i.FUN_TRACKER_STORAGE),source:t.staticConfig.fromDonorPortal?T.DONOR_PORTAL:void 0,env:t.staticConfig.env,sessionStorage:n.get(Ft.i.FUN_SESSION_STORAGE)})).provide(Ft.i.EXPERIMENTS_CONTROLLER,()=>{return e=n.get(Ft.i.EMBED_CONFIG),t=n.get(Ft.i.EMBED_TRACKER),i=n.get(Ft.i.FUN_EXPERIMENTS_STORAGE),new Ci({companyKey:e.currentCompanyKey,parentCompanyKey:e.currentCompany?.parentKey||null,tracker:t,experimentsSettings:hi(e.experimentsConfig.experiments),funStorage:i,sentry:{captureException:e=>console.error(e),getCurrentScope:()=>null},isDebugMode:e.isDebugMode,isFundraiseupVisitor:e.isFundraiseupVisitor,isAbTestMode:e.abTestMode,distributionId:t.clientId});var e,t,i}).provide(Ft.i.COLLECTOR,()=>xi(n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.DEBUG).createInstance("Collector"))).provide(Ft.i.RESOLVER,()=>Eo(n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.DEBUG).createInstance("CommonResolver"),n.get(Ft.i.EMBED_TRACKER),n.get(Ft.i.SENTRY_CLIENT))).provide(Ft.i.EMBED_ELEMENTS_API,()=>vn(n.get(Ft.i.COLLECTOR),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.EMBED_CHECKOUT_API),n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.DEBUG),n.get(Ft.i.EMBED_TRACKER),n.get(Ft.i.EMBED_ELEMENTS_URL_API),()=>n.get(Ft.i.EMBED_INTERNAL_API))).provide(Ft.i.EMBED_GIFT_CATALOG_CHECKOUT_API,()=>vi(n.get(Ft.i.RESOLVER),n.get(Ft.i.DEBUG),n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.GIFT_CATALOG_CHECKOUT_SKELETON),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.EMBED_TRACKER),n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.HTML_ELEMENT_STYLE_MANAGER),n.get(Ft.i.FUN_SESSION_STORAGE),()=>n.get(Ft.i.GIFT_CATALOG_CHECKOUT),n.get(Ft.i.CONSENT_MANAGER_API),n.get(Ft.i.FUN_GIFT_STORAGE),n.get(Ft.i.GIFT_CATALOG_CART_COOKIE_SERVICE))).provide(Ft.i.EMBED_GIFT_CATALOG_API,()=>Pi(n.get(Ft.i.RESOLVER),n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.COLLECTOR),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.DEBUG),()=>n.get(Ft.i.GIFT_CATALOG_CART),n.get(Ft.i.EMBED_GIFT_CATALOG_CHECKOUT_API),n.get(Ft.i.GIFT_CATALOG_CART_COOKIE_SERVICE),n.get(Ft.i.FUN_GIFT_STORAGE))).provide(Ft.i.FUN_GIFT_STORAGE,()=>{return e=n.get(Ft.i.FUN_SESSION_STORAGE),new go(e);var e}).provide(Ft.i.GIFT_CATALOG_CART_COOKIE_SERVICE,()=>((e,t)=>{const n=(n,i,o)=>{const r=o.map(e=>Li(e));t.resetItemsByWidget(n,i,r),e.emit(Si,{widgetKey:n,itemsCount:r.length})},i=e=>{const n=t.getDataByWidget(e),i=function(e){return e.map(e=>({giftKey:e.giftKey,amount:e.amount,goalKey:e.goalKey,frequency:e.frequency}))}(n.items);return{items:i,currency:n.currency,itemsCount:i.length,totalAmount:Di(i)}};return{addItem:(n,i,o)=>{const r=Li(o);t.addItem(n,i,r);const a=t.getItemCount(n);e.emit(Si,{widgetKey:n,itemsCount:a})},resetItemsByWidget:n,removeItemByIndex:(e,t,o)=>{const r=i(e).items;if(o<0||o>=r.length)return;const a=r.filter((e,t)=>t!==o);n(e,t,a)},getItemsCount:e=>t.getItemCount(e),getDataByWidget:i,saveCheckoutState:(e,n,i)=>{const o=i.map(e=>({giftKey:e.giftKey,amount:e.amount,frequency:e.frequency,goalKey:e.goalKey}));t.setCheckoutState(e,n,o)}}})(n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.FUN_GIFT_STORAGE))).provide(Ft.i.GIVING_CART_BASKET_API,()=>((e,t)=>{const n=(t,n)=>n>50?(e.emit(Ii,{widgetKey:t,errorType:Mi.ITEMS_LIMIT_EXCEEDED,maxAllowed:50}),Mi.ITEMS_LIMIT_EXCEEDED):null,i=(t,n,i,o)=>i+o>wi(n)?(e.emit(Ii,{widgetKey:t,errorType:Mi.AMOUNT_LIMIT_EXCEEDED,maxAllowed:Ui(n),currency:n}),Mi.AMOUNT_LIMIT_EXCEEDED):null;return{addItem:(e,o,r)=>{const a=t.getDataByWidget(e),s=n(e,a.itemsCount+1);return s||(i(e,o,a.totalAmount,r.amount)||(t.addItem(e,o,r),null))},removeItem:(e,n,i)=>{t.removeItemByIndex(e,n,i)},resetItems:(e,o,r)=>{const a=Di(r);return!n(e,r.length)&&!i(e,o,0,a)&&(t.resetItemsByWidget(e,o,r),!0)},getCartState:e=>t.getDataByWidget(e)}})(n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.GIFT_CATALOG_CART_COOKIE_SERVICE))).provide(Ft.i.EMBED_ELEMENTS_URL_API,()=>function(e){const t=function(e){const t=e.get(xn.ELEMENT_KEY),n=e.get(xn.ELEMENT_ID),i=e.get(xn.FORM);if(!t&&!n||i)return null;const o=Number(e.get(xn.AMOUNT)),r=o?100*o:null,a=(e.get(xn.CURRENCY)||"").toUpperCase(),s=e.get(xn.RECURRING),c=e.get(xn.MODIFY_DESIGNATION),l="yes"===c||"no"===c,d=Object.values(Fn);return{elementKey:t||n,amount:r,currency:a,recurring:s&&d.includes(s)?s:null,modifyDesignation:l?"yes"===c:null,firstName:e.get(xn.FIRST_NAME),lastName:e.get(xn.LAST_NAME),email:e.get(xn.EMAIL),designationId:e.get(xn.DESIGNATION),tributeHonoree:e.get(xn.TRIBUTE)}}(new URLSearchParams(e.location.search)),n=(e,n)=>mn.includes(n)&&e===t?.elementKey;return{getUrlParamsForElement:e=>n(e.key,e.type)?t:null,checkAmountInUrlApiForElement:(e,i)=>n(e,i)&&Boolean(t?.amount)}}(window)).provide(Ft.i.EMBED_ELEMENTS_SERVICE,()=>function(e){let t=null;const n=(n,i)=>(i&&t&&t(),new Promise((i,o)=>{const{abort:r}=bn({method:"POST",url:`${Gn(wn,kn.DATA)}?key=${e.currentCompanyKey}&livemode=${e.livemode}`,headers:{"content-type":"text/plain; charset=utf-8"},params:n},e=>{e&&i(e)},o);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(Ft.i.EMBED_CONFIG))).provide(Ft.i.EMBED_CHECKOUT_API,()=>xt(n.get(Ft.i.RESOLVER),n.get(Ft.i.DEBUG),n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.BACKDROP),n.get(Ft.i.CHECKOUT_SKELETON),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.EMBED_TRACKER),n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.HTML_ELEMENT_STYLE_MANAGER),n.get(Ft.i.FUN_SESSION_STORAGE),n.get(Ft.i.EXPERIMENTS_CONTROLLER),()=>n.get(Ft.i.CHECKOUT),()=>n.get(Ft.i.CHECKOUT_STEPLESS),()=>n.get(Ft.i.GOALS_LOADER),n.get(Ft.i.CONSENT_MANAGER_API))).provide(Ft.i.EMBED_FORMS_API,()=>((e,t)=>{const n=async e=>{const t=await Cn(),n=await i(e);if(n){const e=(0,gn.w)().get(Ft.i.KEYS_KEEPER),t=n.widgetKey;if(!e.exists(On.$.WIDGET,t))return}t.emitEvent(Kn.BACKDROP_WILL_OPEN),await t.formOpener.openForm(e,Zn.P2P,{fundraisingPage:n})},i=async e=>new Promise((n,i)=>{bn({method:"POST",url:`${wn}/p2p/fundraiser/${e}/resolve`,headers:{"content-type":"application/json"},params:JSON.stringify({companyKey:t.currentCompanyKey})},e=>{e&&n(e)},i)});return{open:t=>Xn.test(t)?n(t):(t=>Cn().then(n=>{e.getElements([t]),n.emitEvent(Kn.BACKDROP_WILL_OPEN),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,Zn.P2P,{fundraisingPage:null})})}))(t),openByFundraiserSlug:e=>n(e)}})(n.get(Ft.i.EMBED_ELEMENTS_API),n.get(Ft.i.EMBED_CONFIG))).provide(Ft.i.EMBED_INTERNAL_API,()=>ci(n.get(Ft.i.EMBED_CHECKOUT_API),n.get(Ft.i.EMBED_ELEMENTS_API),n.get(Ft.i.EMBED_FORMS_API),n,n.get(Ft.i.EMBED_CONFIG),n.get(Ft.i.EMBED_TRACKER),n.get(Ft.i.RESOLVER),n.get(Ft.i.KEYS_KEEPER),n.get(Ft.i.DEBUG).createInstance("InternalApi"),n.get(Ft.i.FUN_EXPERIMENTS_STORAGE),n.get(Ft.i.COLLECTOR),n.get(Ft.i.USER_SESSION),n.get(Ft.i.EXPERIMENTS_CONTROLLER),n.get(Ft.i.FUN_DEBUG_STORAGE),n.get(Ft.i.EMBED_GIFT_CATALOG_API))).provide(Ft.i.FUN_EXPERIMENTS_STORAGE,()=>h(a.e.EXPERIMENTS,m.OBJECT)).provide(Ft.i.EVENT_EMITTER,()=>new ji).provide(Ft.i.FUN_DEBUG_STORAGE,()=>function(){const e=p(i.STRING);return new To(e)}()).provide(Ft.i.CONSENT_MANAGER_API,()=>((e,t,n,i,o,r)=>$i(t,n,i,Wi(i,e),o,r))(window,n.get(Ft.i.DEBUG).createInstance("Consent API Manager"),n.get(Ft.i.SENTRY_CLIENT),n.get(Ft.i.EVENT_EMITTER),n.get(Ft.i.FUN_COOKIES_MANAGER),n.get(Ft.i.FUN_COOKIES_MIGRATOR))).provide(Ft.i.GOALS_LOADER,()=>new Po(n.get(Ft.i.STATIC_CONFIG).apiUrl))}const Er=new Do.y("Embed");(()=>{if(async function(t){return new Promise(n=>{const i=t.document.createElement("iframe");i.style.display="none",(0,e.c)(t.document,()=>{const e=(()=>{try{t.document.body.appendChild(i);const e=i.contentWindow;if(!e)return!1;const n=e.Date.now,o=e.Array.prototype.push,r=e.Object.keys,a=e.Map.prototype.set,s=e.String.prototype.replace;document.body.removeChild(i);const c=o.toString()===Array.prototype.push.toString(),l=r.toString()===Object.keys.toString(),d=a.toString()===Map.prototype.set.toString(),E=n.toString()===Date.now.toString(),u=s.toString()===String.prototype.replace.toString();return!(c&&l&&d&&E&&u)}catch{return!0}})();n(e)})})}(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(window.FUN?.initialized)return void Er.log("init","already initialized, skip processing");Er.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 t=dr({loadedTimestamp:Date.now(),trackingUrls:{"global":"https://fndrsp.net","checkout":"https://fndrsp-checkout.net"},staticConfig:{"elementsApiScriptUrl":"https://static.fundraiseup.com/elementsApi.c0fc24ed4d35f527.js","giftCatalogApiScriptUrl":"https://static.fundraiseup.com/40029defcbec.giftCatalogApi.js","giftItemDescriptionApiScriptUrl":"https://static.fundraiseup.com/8dddcd725e42.givingCartItemModal.js","p2pFormAssets":{"script":"https://static.fundraiseup.com/p2pForm.f1d3f942.js"},"checkoutAssets":{"scripts":["https://static.fundraiseup.com/checkout.0f5b5fff39db8dac.js","https://static.fundraiseup.com/checkout-vendors.78ab7844d94042df.js","https://static.fundraiseup.com/checkout-rtl-styles.32ba6729a46ce7d8.js","https://static.fundraiseup.com/checkout-styles.fab72e48733dfd10.js","https://static.fundraiseup.com/checkout-sentry-vendor.dda4c7629502a974.js"]},"checkoutSteplessAssets":{"scripts":["https://static.fundraiseup.com/checkout-stepless.2143d0692e2b40c50166.js","https://static.fundraiseup.com/checkout-stepless-vendors.45f34f5d9b15f026084e.js","https://static.fundraiseup.com/cs.checkout-stepless-rtl-styles.1054ea6c31b97e586efb.js","https://static.fundraiseup.com/cs.checkout-stepless-styles.d652ed2283f1fd997e31.js","https://static.fundraiseup.com/cs.checkout-stepless-sentry-vendor.def2ef0542f5459375c5.js"]},"giftCatalogCheckoutAssets":{"scripts":["https://static.fundraiseup.com/giving-cart-checkout.401d2ca605f431ca07bc.js","https://static.fundraiseup.com/giving-cart-checkout-vendors.e2a94136da2a72a93cb5.js","https://static.fundraiseup.com/giving-cart-checkout-rtl-styles.6c6ecaac9fa7962166b1.js","https://static.fundraiseup.com/giving-cart-checkout-styles.abd03f339f7b561e7784.js","https://static.fundraiseup.com/giving-cart-checkout-sentry-vendor.b6f29b6dd7c48e43efb9.js"]},"givingCartBasketButtonScriptUrl":"https://static.fundraiseup.com/26600643baa7.floatingCartButton.js","givingCartValidationPopupScriptUrl":"https://static.fundraiseup.com/c45c223a0581.givingCartValidationPopup.js","giftCatalogCartAssets":{"scripts":["https://static.fundraiseup.com/givingCartBasketApi.ba5dd5b3b582cfed79c9.js"]},"currencyRates":{"rates":{"SHP":0.746601,"EUR":0.85068,"AED":3.672498,"AFN":64.501579,"XCD":2.70255,"ALL":81.478013,"AMD":375.71836,"AOA":917.999872,"ARS":1360.801702,"USD":1,"AUD":1.39858,"ANG":1.789884,"AWG":1.80125,"AZN":1.698708,"BAM":1.665148,"BBD":2.022477,"INR":92.60375,"PKR":279.988166,"BDT":123.460049,"XOF":558.475161,"BGN":1.668102,"BHD":0.379124,"BIF":2985.824358,"BMD":1,"MYR":3.952504,"BND":1.277936,"BOB":6.938828,"BRL":5.016298,"BSD":1.004214,"BTN":93.185475,"NOK":9.38469,"ZAR":16.400055,"BWP":13.473245,"BYN":2.852156,"BZD":2.019582,"CAD":1.369465,"CDF":2310.000304,"XAF":558.475161,"CHF":0.782615,"NZD":1.702025,"CLP":890.820138,"CNY":6.81775,"COP":3605.85,"CRC":457.962624,"CVE":93.878507,"CZK":20.65485,"DJF":178.817419,"DKK":6.357204,"DOP":60.201779,"DZD":132.987953,"EGP":51.970296,"MAD":9.26491,"ETB":156.79324,"FJD":2.218297,"FKP":0.739448,"JPY":158.977504,"GBP":0.740965,"GEL":2.703383,"GHS":11.096164,"GIP":0.739448,"GMD":73.49797,"GNF":8810.182623,"GTQ":7.679537,"GYD":210.08897,"HKD":7.83043,"HNL":26.680856,"HRK":6.409296,"HTG":131.497169,"HUF":308.105976,"IDR":17140,"ILS":2.95979,"ISK":122.160409,"JMD":158.767187,"JOD":0.708987,"KES":129.330258,"KGS":87.449914,"KHR":4016.85752,"KMF":418.000123,"KRW":1474.939776,"KWD":0.30836,"KYD":0.836831,"KZT":470.852667,"LAK":22154.867822,"LBP":89923.545188,"LKR":317.41518,"LRD":184.768635,"LSL":16.458729,"MDL":17.26193,"MGA":4164.999361,"MKD":52.479673,"MMK":2099.427148,"MNT":3574.523282,"MOP":8.100123,"MUR":46.290182,"MVR":15.459702,"MWK":1741.262611,"MXN":17.354096,"MZN":63.95498,"NAD":16.458729,"XPF":101.536759,"NGN":1347.560255,"NIO":36.950321,"SEK":9.18055,"NPR":149.097101,"OMR":0.386599,"PAB":1.004214,"PEN":3.45477,"PGK":4.353157,"PHP":59.564002,"PLN":3.603635,"PYG":6397.343664,"QAR":3.660977,"RON":4.334973,"RSD":99.910604,"RUB":76.268663,"RWF":1467.285343,"SAR":3.751203,"SBD":8.035647,"SCR":15.011039,"SGD":1.272325,"SLL":20969.496166,"SLE":24.625051,"SOS":573.921928,"SRD":37.705986,"STD":20697.981008,"SVC":8.786344,"SZL":16.453961,"THB":32.060262,"TJS":9.469329,"TND":2.914393,"TOP":2.40776,"TRY":44.8604,"TTD":6.820484,"TWD":31.480901,"TZS":2605.848984,"UAH":44.207995,"UYU":39.947214,"UZS":12185.943553,"VND":26335,"VUV":116.990425,"WST":2.715186,"YER":238.606089,"ZMW":19.104338,"XAU":0.000209,"XAG":0.012526},"id":"69e57a91f5b1966f17e691d7"},"campaignPageAssets":{"scripts":{"main":"https://static.fundraiseup.com/campaignPages.f9b3f9342f0879b7.js","vendors":"https://static.fundraiseup.com/campaignPagesVendors.3363f4cc38559c19.js"},"css":{"ltr":"https://static.fundraiseup.com/campaignPages.5f478d11a8fdb711.css","rtl":"https://static.fundraiseup.com/campaignPages.5f478d11a8fdb711.rtl.css"},"fonts":{"ibmPlexSans400":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.dc8b921d25ecd5d5.woff2","ibmPlexSans500":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.109677220f61d8c0.woff2","ibmPlexSans600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.4b428e64ef10664c.woff2","ibmPlexSans700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-700.36c0d15e99ec850b.woff2","ibmPlexSansArabic600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-600.8656b7c8be10de1a.woff2","ibmPlexSansArabic700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-700.d1085dd25efea5d3.woff2"}},"apiUrl":"https://api.fundraiseup.com","staticUrl":"https://static.fundraiseup.com","trackingUrl":"https://fndrsp.net","donorPortalUrl":"https://centralparknyc.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://029bbf62e26bb7f41266caac0259d41b@sentry.fundraiseup.com/13","uploadcareKey":"5a1e3737b731e848bee9","mainDomain":"fundraiseup.com","turnstileSiteKey":"0x4AAAAAACDCEZe9fmRZ3DCX","integrations":{"dtd":true},"sentryApiKey":"029bbf62e26bb7f41266caac0259d41b","isFundraiseupVisitor":false,"disablePreloading":false,"deviceData":{"isMobile":false,"isMobileOrTablet":false,"isMobileSafari16":false},"experimentsConfig":{"experiments":[{"name":"DummyExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"33802","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"LessPaymentOptionsExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":1},{"name":"test-4","key":"test-4","weight":1}],"experimentId":"40193","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutModalVsCampaignPagesExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"58415","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MatchDonationInSocialProofExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59325","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SteplessMobileCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"60395","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenV3Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"65613","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPostDonationUpsellCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"70084","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AGSTXLKM","APZMZAGU","ARVHGABZ","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPreDonationUpsellExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"73814","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AGSTXLKM","APZMZAGU","ARVHGABZ","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPresetsInDonationFormV2Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"82987","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SendBeaconVsFetchKeepAliveExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":80},{"name":"test","key":"test","weight":20}],"experimentId":"87177","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"92387","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV31Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"107996","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonateByVoiceExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"133232","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutUniversalStyleExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"136199","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":["FUNJGHTKYEU"],"scope":"embed"},{"name":"NewFontForHintToRecurringExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"141481","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AHZRYCRW","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMNBTWFT","AMUMMYDJ","ANCBYMWS","ANEQYMCP","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUAEBSYG","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FastTrackFirstScreenCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1}],"experimentId":"141536","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AETRGCDZ","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJAQPESZ","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMNBTWFT","AMUMMYDJ","ANCBYMWS","ANKNPFPV","ANNGWHAL","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","ASYNMFUG","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXHKZRYW","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CloudflareWorkerStrategyForElementsExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":50},{"name":"test-1","key":"test-1","weight":50}],"experimentId":"143564","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SocialProofRecurringHighlightExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"149381","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV7Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"151661","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"QuarterlyUpsellV2ModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"167518-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":["FUNJGHTKYEU"],"scope":"embed"},{"name":"RoundUpPduCheckoutExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":90},{"name":"test","key":"test","weight":10}],"experimentId":"160383-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AEEHQYAR","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJCPTCHU","AJEJDSBJ","AJGEZYBE","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYBAFQUV","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CampaignUpsellVsPduCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"156882-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJGEZYBE","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":["FUNJGHTKYEU"],"scope":"embed"},{"name":"CheckoutCaptchaModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"138382-modal","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MLImpactDescriptionsDonationFormExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"122570-df","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MLImpactDescriptionsCheckoutExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"122570-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PreDonationUpsellPersonalizationCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"118659-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"QuarterlyUpsellModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"133727-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CampaignUpsellCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"99700-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":["FUNJGHTKYEU"],"scope":"embed"},{"name":"AmountPresetsCheckoutV5Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":50},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":50},{"name":"test-3","key":"test-3","weight":0},{"name":"test-4","key":"test-4","weight":0}],"experimentId":"115114-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV5Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":50},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":50},{"name":"test-3","key":"test-3","weight":0},{"name":"test-4","key":"test-4","weight":0}],"experimentId":"115114-DF","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutStepsCheckoutModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"133620-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKFWLEML","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPZKMDK","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PreDonationAmounts100200USDModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"135267-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonateByVoiceV2ModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"138976-modal","enabledAccounts":[],"disabledAccounts":["AAKBXMSJ","AALSWZAG","AAMRKAJS","AAPLWWEJ","AATLURDD","ABLAYHFK","ABWDLBTL","ABXBVMVA","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADHFKQJG","ADQRERLU","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHEZTVBW","AHLNTGLT","AHZRYCRW","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEQKCVG","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMNBTWFT","AMUMMYDJ","ANCBYMWS","ANEQYMCP","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARMPCVPV","ARNXLWYU","ARPSFYJG","ASNVRJLX","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUAEBSYG","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FeeCoverageSelectionModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"101219-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"StripeLinkCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"115596-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MultipleRecurringPlanCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"114635-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FastTrackCheckoutExperiment_fixed","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"101284-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartCoveringFeeCheckoutV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"113277-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":9},{"name":"test","key":"test","weight":1}],"experimentId":"126493-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":9},{"name":"test","key":"test","weight":1}],"experimentId":"126493-DF","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AverageDonationHintExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":0},{"name":"test-3","key":"test-3","weight":1}],"experimentId":"101523-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJGEZYBE","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE","ASNVRJLX"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountsOnUpsellV2CheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":0}],"experimentId":"104387-modal","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"110192-DF","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenDataCollectCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":70},{"name":"test","key":"test","weight":29}],"experimentId":"112996-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DefaultFrequencyV3ModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"103991-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlDefaultFrequencyInDonationFormV3Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"103991-df","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV31Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"108741-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPresetsExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59097-modal","enabledAccounts":[],"disabledAccounts":["ABLAYHFK","ABXQVBCC","ACACYXKN","ACYYCJSS","AERPMFNV","AFHDMWFQ","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJQQEYDC","ALGWNCES","ALJRVDPY","ALNSLQRP","ANCBYMWS","APKJZMBK","AQEGFEES","ARHVGWAD","ARPSFYJG","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVRUAVBN","AWFXWKCB","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutStepsCheckoutModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"59119-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonorRatingCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":0}],"experimentId":"99706-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutDesktopExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59392-desktop","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","ADQRERLU","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARMPCVPV","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutMobileExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"59392-mobile","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","ADQRERLU","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARMPCVPV","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPDUCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"89260-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmazonPayCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"87699-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"BirthdayDonationCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"84301-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU","AVYLHELK"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsSuggestionModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"89701-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CollectDatasetPostDonationUpsellAmountCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"89924-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsDatasetModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"87159-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"107649-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPostDonationUpsellCheckoutV2Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"79870-modal","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FloatingLabelsCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"60368-modal","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"}]},"abTestMode":false,"browserData":{"browser":{},"device":{},"engine":{},"os":{},"isSupported":false,"isCommonBrowser":false,"isInAppBrowser":false},"fontsAssets":["https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.dc8b921d25ecd5d5.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.109677220f61d8c0.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.4b428e64ef10664c.woff2"],"fromDonorPortal":false,"currentCompanyKey":"AMFBCZUB","clientId":"17767330781413879302","verifiedBot":false,"clientASNIsBot":true},knownKeys:{campaignKeyGroups:{"onlyCampaignPages":{"withAskPage":[],"noAskPage":[]},"onlyCheckoutModal":{"withAskPage":[["FUNWXHXVPQZ","membership"],["FUNPXMJAFSG","central_park"],["FUNBCJTLNZC"],["FUNFHMWNRRW"]],"noAskPage":[]},"bothTypes":{"withAskPage":[["FUNVDJNJMFL","donate"],["FUNMMYBHYGN","monthly-sustainer"],["FUNYJSGZXKG"]],"noAskPage":[]},"onlyGiftCatalogs":{"withAskPage":[],"noAskPage":[]}},elements:{"textLink":["XZQMBMGP","XFBPYRKG","XUNREBKH","XCMECRRK"],"donationForm":["XSGCQHHU"]},inactiveWidgets:[["FUNMNWMQPVC","DSC21W"],["FUNEVXTHAQV","I_Love_Central_Park"]],giftCatalogs:[]},company:{"key":"AMFBCZUB","disabledWidgets":{"redirectTo":"nowhere","url":"","widgetKey":""},"localization":{"defaultLocale":"en-US","interfaceLocales":["en-US"],"matchBrowserLocale":false,"matchURL":false,"urlRules":[]},"parentKey":null,"country":"US"},version:'260420-1446',meta:{"user":{"location":{"countryCode":"US","city":"Ashburn","country":"United States of America"},"langCurrencies":["USD"],"countryCurrencies":["USD"]}}}),n=t.get(Ft.i.EMBED_TRACKER).getTLD();t.get(Ft.i.CONSENT_MANAGER_API).initialize(n);const i=t.get(Ft.i.EMBED_CONFIG),o=t.get(Ft.i.EMBED_INTERNAL_API);i.fromDonorPortal&&window.FUN?.showDebugPanel&&(o.showDebugPanel=window.FUN.showDebugPanel),window.FUN=o,window.FUN.init().then(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"FundraiseUp.optimize.activate"}),Er.log("initialized")}).catch(e=>{console.error(e)})})()})()})();
