CINXE.COM
Garage Sale Trail 2024
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"><script type="text/javascript">(window.NREUM||(NREUM={})).init={ajax:{deny_list:["bam.nr-data.net"]}};(window.NREUM||(NREUM={})).loader_config={licenseKey:"d622c0f1f7",applicationID:"189065495"};;/*! For license information please see nr-loader-rum-1.274.0.min.js.LICENSE.txt */ (()=>{var e,t,r={8122:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(944);function i(e,t){try{if(!e||"object"!=typeof e)return(0,n.R)(3);if(!t||"object"!=typeof t)return(0,n.R)(4);const r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),o=0===Object.keys(r).length?e:r;for(let a in o)if(void 0!==e[a])try{if(null===e[a]){r[a]=null;continue}Array.isArray(e[a])&&Array.isArray(t[a])?r[a]=Array.from(new Set([...e[a],...t[a]])):"object"==typeof e[a]&&"object"==typeof t[a]?r[a]=i(e[a],t[a]):r[a]=e[a]}catch(e){(0,n.R)(1,e)}return r}catch(e){(0,n.R)(2,e)}}},2555:(e,t,r)=>{"use strict";r.d(t,{Vp:()=>c,fn:()=>s,x1:()=>u});var n=r(384),i=r(8122);const o={beacon:n.NT.beacon,errorBeacon:n.NT.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){try{const t=c(e);return!!t.licenseKey&&!!t.errorBeacon&&!!t.applicationID}catch(e){return!1}}function c(e){if(!e)throw new Error("All info objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All info objects require an agent identifier!");a[e]=(0,i.a)(t,o);const r=(0,n.nY)(e);r&&(r.info=a[e])}},9417:(e,t,r)=>{"use strict";r.d(t,{D0:()=>g,gD:()=>h,xN:()=>p});var n=r(993);const i=e=>{if(!e||"string"!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0};var o=r(2614),a=r(944),s=r(384),c=r(8122);const u="[data-nr-mask]",d=()=>{const e={mask_selector:"*",block_selector:"[data-nr-block]",mask_input_options:{color:!1,date:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{ajax:{deny_list:void 0,block_internal:!0,enabled:!0,harvestTimeSeconds:10,autoStart:!0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},feature_flags:[],generic_events:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},harvest:{tooManyRequestsDelay:60},jserrors:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},logging:{enabled:!0,harvestTimeSeconds:10,autoStart:!0,level:n.p_.INFO},metrics:{enabled:!0,autoStart:!0},obfuscate:void 0,page_action:{enabled:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},performance:{capture_marks:!1,capture_measures:!1},privacy:{cookies_enabled:!0},proxy:{assets:void 0,beacon:void 0},session:{expiresMs:o.wk,inactiveMs:o.BB},session_replay:{autoStart:!0,enabled:!1,harvestTimeSeconds:60,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inline_images:!1,fix_stylesheets:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){i(t)?e.mask_selector="".concat(t,",").concat(u):""===t||null===t?e.mask_selector=u:(0,a.R)(5,t)},get block_class(){return"nr-block"},get ignore_class(){return"nr-ignore"},get mask_text_class(){return"nr-mask"},get block_selector(){return e.block_selector},set block_selector(t){i(t)?e.block_selector+=",".concat(t):""!==t&&(0,a.R)(6,t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&"object"==typeof t?e.mask_input_options={...t,password:!0}:(0,a.R)(7,t)}},session_trace:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},soft_navigations:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},spa:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},ssl:void 0,user_actions:{enabled:!0}}},l={},f="All configuration objects require an agent identifier!";function g(e){if(!e)throw new Error(f);if(!l[e])throw new Error("Configuration for ".concat(e," was never set"));return l[e]}function p(e,t){if(!e)throw new Error(f);l[e]=(0,c.a)(t,d());const r=(0,s.nY)(e);r&&(r.init=l[e])}function h(e,t){if(!e)throw new Error(f);var r=g(e);if(r){for(var n=t.split("."),i=0;i<n.length-1;i++)if("object"!=typeof(r=r[n[i]]))return;r=r[n[n.length-1]]}return r}},3371:(e,t,r)=>{"use strict";r.d(t,{V:()=>f,f:()=>l});var n=r(8122),i=r(384),o=r(6154),a=r(9324);let s=0;const c={buildEnv:a.F3,distMethod:a.Xs,version:a.xv,originTime:o.WN},u={customTransaction:void 0,disabled:!1,isolatedBacklog:!1,loaderType:void 0,maxBytes:3e4,onerror:void 0,ptid:void 0,releaseIds:{},appMetadata:{},session:void 0,denyList:void 0,timeKeeper:void 0,obfuscator:void 0},d={};function l(e){if(!e)throw new Error("All runtime objects require an agent identifier!");if(!d[e])throw new Error("Runtime for ".concat(e," was never set"));return d[e]}function f(e,t){if(!e)throw new Error("All runtime objects require an agent identifier!");d[e]={...(0,n.a)(t,u),...c},Object.hasOwnProperty.call(d[e],"harvestCount")||Object.defineProperty(d[e],"harvestCount",{get:()=>++s});const r=(0,i.nY)(e);r&&(r.runtime=d[e])}},9324:(e,t,r)=>{"use strict";r.d(t,{F3:()=>i,Xs:()=>o,xv:()=>n});const n="1.274.0",i="PROD",o="CDN"},6154:(e,t,r)=>{"use strict";r.d(t,{OF:()=>c,RI:()=>i,WN:()=>d,bv:()=>o,gm:()=>a,mw:()=>s,sb:()=>u});var n=r(1863);const i="undefined"!=typeof window&&!!window.document,o="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),a=i?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),s=Boolean("hidden"===a?.document?.visibilityState),c=/iPad|iPhone|iPod/.test(a.navigator?.userAgent),u=c&&"undefined"==typeof SharedWorker,d=((()=>{const e=a.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);Array.isArray(e)&&e.length>=2&&e[1]})(),Date.now()-(0,n.t)())},1687:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>c,Ze:()=>l,x3:()=>u});var n=r(7836),i=r(3606),o=r(860),a=r(2646);const s={};function c(e,t){const r={staged:!1,priority:o.P3[t]||0};d(e),s[e].get(t)||s[e].set(t,r)}function u(e,t){e&&s[e]&&(s[e].get(t)&&s[e].delete(t),g(e,t,!1),s[e].size&&f(e))}function d(e){if(!e)throw new Error("agentIdentifier required");s[e]||(s[e]=new Map)}function l(e="",t="feature",r=!1){if(d(e),!e||!s[e].get(t)||r)return g(e,t);s[e].get(t).staged=!0,f(e)}function f(e){const t=Array.from(s[e]);t.every((([e,t])=>t.staged))&&(t.sort(((e,t)=>e[1].priority-t[1].priority)),t.forEach((([t])=>{s[e].delete(t),g(e,t)})))}function g(e,t,r=!0){const o=e?n.ee.get(e):n.ee,s=i.i.handlers;if(!o.aborted&&o.backlog&&s){if(r){const e=o.backlog[t],r=s[t];if(r){for(let t=0;e&&t<e.length;++t)p(e[t],r);Object.entries(r).forEach((([e,t])=>{Object.values(t||{}).forEach((t=>{t[0]?.on&&t[0]?.context()instanceof a.y&&t[0].on(e,t[1])}))}))}}o.isolatedBacklog||delete s[t],o.backlog[t]=null,o.emit("drain-"+t,[])}}function p(e,t){var r=e[1];Object.values(t[r]||{}).forEach((t=>{var r=e[0];if(t[0]===r){var n=t[1],i=e[3],o=e[2];n.apply(i,o)}}))}},7836:(e,t,r)=>{"use strict";r.d(t,{P:()=>c,ee:()=>u});var n=r(384),i=r(8990),o=r(3371),a=r(2646),s=r(5607);const c="nr@context:".concat(s.W),u=function e(t,r){var n={},s={},d={},l=!1;try{l=16===r.length&&(0,o.f)(r).isolatedBacklog}catch(e){}var f={on:p,addEventListener:p,removeEventListener:function(e,t){var r=n[e];if(!r)return;for(var i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)},emit:function(e,r,n,i,o){!1!==o&&(o=!0);if(u.aborted&&!i)return;t&&o&&t.emit(e,r,n);for(var a=g(n),c=h(e),d=c.length,l=0;l<d;l++)c[l].apply(a,r);var p=m()[s[e]];p&&p.push([f,e,r,a]);return a},get:v,listeners:h,context:g,buffer:function(e,t){const r=m();if(t=t||"feature",f.aborted)return;Object.entries(e||{}).forEach((([e,n])=>{s[n]=t,t in r||(r[t]=[])}))},abort:function(){f._aborted=!0,Object.keys(f.backlog).forEach((e=>{delete f.backlog[e]}))},isBuffering:function(e){return!!m()[s[e]]},debugId:r,backlog:l?{}:t&&"object"==typeof t.backlog?t.backlog:{},isolatedBacklog:l};return Object.defineProperty(f,"aborted",{get:()=>{let e=f._aborted||!1;return e||(t&&(e=t.aborted),e)}}),f;function g(e){return e&&e instanceof a.y?e:e?(0,i.I)(e,c,(()=>new a.y(c))):new a.y(c)}function p(e,t){n[e]=h(e).concat(t)}function h(e){return n[e]||[]}function v(t){return d[t]=d[t]||e(f,t)}function m(){return f.backlog}}(void 0,"globalEE"),d=(0,n.Zm)();d.ee||(d.ee=u)},2646:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});class n{constructor(e){this.contextId=e}}},9908:(e,t,r)=>{"use strict";r.d(t,{d:()=>n,p:()=>i});var n=r(7836).ee.get("handle");function i(e,t,r,i,o){o?(o.buffer([e],i),o.emit(e,t,r)):(n.buffer([e],i),n.emit(e,t,r))}},3606:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(9908);o.on=a;var i=o.handlers={};function o(e,t,r,o){a(o||n.d,i,e,t,r)}function a(e,t,r,i,o){o||(o="feature"),e||(e=n.d);var a=t[o]=t[o]||{};(a[r]=a[r]||[]).push([e,i])}},3878:(e,t,r)=>{"use strict";function n(e,t){return{capture:e,passive:!1,signal:t}}function i(e,t,r=!1,i){window.addEventListener(e,t,n(r,i))}function o(e,t,r=!1,i){document.addEventListener(e,t,n(r,i))}r.d(t,{DD:()=>o,jT:()=>n,sp:()=>i})},5607:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});const n=(0,r(9566).bz)()},9566:(e,t,r)=>{"use strict";r.d(t,{LA:()=>s,bz:()=>a});var n=r(6154);const i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function o(e,t){return e?15&e[t]:16*Math.random()|0}function a(){const e=n.gm?.crypto||n.gm?.msCrypto;let t,r=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),i.split("").map((e=>"x"===e?o(t,r++).toString(16):"y"===e?(3&o()|8).toString(16):e)).join("")}function s(e){const t=n.gm?.crypto||n.gm?.msCrypto;let r,i=0;t&&t.getRandomValues&&(r=t.getRandomValues(new Uint8Array(e)));const a=[];for(var s=0;s<e;s++)a.push(o(r,i++).toString(16));return a.join("")}},2614:(e,t,r)=>{"use strict";r.d(t,{BB:()=>a,H3:()=>n,g:()=>u,iL:()=>c,tS:()=>s,uh:()=>i,wk:()=>o});const n="NRBA",i="SESSION",o=144e5,a=18e5,s={STARTED:"session-started",PAUSE:"session-pause",RESET:"session-reset",RESUME:"session-resume",UPDATE:"session-update"},c={SAME_TAB:"same-tab",CROSS_TAB:"cross-tab"},u={OFF:0,FULL:1,ERROR:2}},1863:(e,t,r)=>{"use strict";function n(){return Math.floor(performance.now())}r.d(t,{t:()=>n})},944:(e,t,r)=>{"use strict";function n(e,t){"function"==typeof console.debug&&console.debug("New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#".concat(e),t)}r.d(t,{R:()=>n})},5284:(e,t,r)=>{"use strict";r.d(t,{t:()=>c,B:()=>s});var n=r(7836),i=r(6154);const o="newrelic";const a=new Set,s={};function c(e,t){const r=n.ee.get(t);s[t]??={},e&&"object"==typeof e&&(a.has(t)||(r.emit("rumresp",[e]),s[t]=e,a.add(t),function(e={}){try{i.gm.dispatchEvent(new CustomEvent(o,{detail:e}))}catch(e){}}({loaded:!0})))}},8990:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},6389:(e,t,r)=>{"use strict";function n(e,t=500,r={}){const n=r?.leading||!1;let i;return(...r)=>{n&&void 0===i&&(e.apply(this,r),i=setTimeout((()=>{i=clearTimeout(i)}),t)),n||(clearTimeout(i),i=setTimeout((()=>{e.apply(this,r)}),t))}}function i(e){let t=!1;return(...r)=>{t||(t=!0,e.apply(this,r))}}r.d(t,{J:()=>i,s:()=>n})},5289:(e,t,r)=>{"use strict";r.d(t,{GG:()=>o,sB:()=>a});var n=r(3878);function i(){return"undefined"==typeof document||"complete"===document.readyState}function o(e,t){if(i())return e();(0,n.sp)("load",e,t)}function a(e){if(i())return e();(0,n.DD)("DOMContentLoaded",e)}},384:(e,t,r)=>{"use strict";r.d(t,{NT:()=>o,US:()=>d,Zm:()=>a,bQ:()=>c,dV:()=>s,nY:()=>u,pV:()=>l});var n=r(6154),i=r(1863);const o={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function a(){return n.gm.NREUM||(n.gm.NREUM={}),void 0===n.gm.newrelic&&(n.gm.newrelic=n.gm.NREUM),n.gm.NREUM}function s(){let e=a();return e.o||(e.o={ST:n.gm.setTimeout,SI:n.gm.setImmediate,CT:n.gm.clearTimeout,XHR:n.gm.XMLHttpRequest,REQ:n.gm.Request,EV:n.gm.Event,PR:n.gm.Promise,MO:n.gm.MutationObserver,FETCH:n.gm.fetch,WS:n.gm.WebSocket}),e}function c(e,t){let r=a();r.initializedAgents??={},t.initializedAt={ms:(0,i.t)(),date:new Date},r.initializedAgents[e]=t}function u(e){let t=a();return t.initializedAgents?.[e]}function d(e,t){a()[e]=t}function l(){return function(){let e=a();const t=e.info||{};e.info={beacon:o.beacon,errorBeacon:o.errorBeacon,...t}}(),function(){let e=a();const t=e.init||{};e.init={...t}}(),s(),function(){let e=a();const t=e.loader_config||{};e.loader_config={...t}}(),a()}},2843:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(3878);function i(e,t=!1,r,i){(0,n.DD)("visibilitychange",(function(){if(t)return void("hidden"===document.visibilityState&&e());e(document.visibilityState)}),r,i)}},3434:(e,t,r)=>{"use strict";r.d(t,{YM:()=>c});var n=r(7836),i=r(5607);const o="nr@original:".concat(i.W);var a=Object.prototype.hasOwnProperty,s=!1;function c(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,o){n||(n="");const a="-"===n.charAt(0);for(let s=0;s<t.length;s++){const c=t[s],u=e[c];d(u)||(e[c]=r(u,a?c+n:n,i,c,o))}},r.flag=o,r;function r(t,r,n,s,c){return d(t)?t:(r||(r=""),nrWrapper[o]=t,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){return e[r]=t,t}})})),t}catch(e){u([e],r)}for(var n in e)a.call(e,n)&&(t[n]=e[n])}(t,nrWrapper,e),nrWrapper);function nrWrapper(){var o,a,d,l;try{a=this,o=[...arguments],d="function"==typeof n?n(o,a):n||{}}catch(t){u([t,"",[o,a,s],d],e)}i(r+"start",[o,a,s],d,c);try{return l=t.apply(a,o)}catch(e){throw i(r+"err",[o,a,e],d,c),e}finally{i(r+"end",[o,a,l],d,c)}}}function i(r,n,i,o){if(!s||t){var a=s;s=!0;try{e.emit(r,n,i,t,o)}catch(t){u([t,r,n,i],e)}s=a}}}function u(e,t){t||(t=n.ee);try{t.emit("internal-error",e)}catch(e){}}function d(e){return!(e&&"function"==typeof e&&e.apply&&!e[o])}},993:(e,t,r)=>{"use strict";r.d(t,{ET:()=>o,p_:()=>i});var n=r(860);const i={ERROR:"ERROR",WARN:"WARN",INFO:"INFO",DEBUG:"DEBUG",TRACE:"TRACE"},o="log";n.K7.logging},3969:(e,t,r)=>{"use strict";r.d(t,{TZ:()=>n,XG:()=>s,rs:()=>i,xV:()=>a,z_:()=>o});const n=r(860).K7.metrics,i="sm",o="cm",a="storeSupportabilityMetrics",s="storeEventMetrics"},6630:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n=r(860).K7.pageViewEvent},782:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n=r(860).K7.pageViewTiming},6344:(e,t,r)=>{"use strict";r.d(t,{G4:()=>i});var n=r(2614);r(860).K7.sessionReplay;const i={RECORD:"recordReplay",PAUSE:"pauseReplay",REPLAY_RUNNING:"replayRunning",ERROR_DURING_REPLAY:"errorDuringReplay"};n.g.ERROR,n.g.FULL,n.g.OFF},4234:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(7836),i=r(1687);class o{constructor(e,t){this.agentIdentifier=e,this.ee=n.ee.get(e),this.featureName=t,this.blocked=!1}deregisterDrain(){(0,i.x3)(this.agentIdentifier,this.featureName)}}},7603:(e,t,r)=>{"use strict";r.d(t,{j:()=>P});var n=r(860),i=r(2555),o=r(3371),a=r(9908),s=r(7836),c=r(1687),u=r(5289),d=r(6154),l=r(944),f=r(3969),g=r(384),p=r(6344);const h=["setErrorHandler","finished","addToTrace","addRelease","addPageAction","setCurrentRouteName","setPageViewName","setCustomAttribute","interaction","noticeError","setUserId","setApplicationVersion","start",p.G4.RECORD,p.G4.PAUSE,"log","wrapLogger"],v=["setErrorHandler","finished","addToTrace","addRelease"];var m=r(1863),b=r(2614),y=r(993);var w=r(2646),A=r(3434);function R(e,t,r,n){if("object"!=typeof t||!t||"string"!=typeof r||!r||"function"!=typeof t[r])return(0,l.R)(29);const i=function(e){return(e||s.ee).get("logger")}(e),o=(0,A.YM)(i),a=new w.y(s.P);return a.level=n.level,a.customAttributes=n.customAttributes,o.inPlace(t,[r],"wrap-logger-",a),i}function E(){const e=(0,g.pV)();h.forEach((t=>{e[t]=(...r)=>function(t,...r){let n=[];return Object.values(e.initializedAgents).forEach((e=>{e&&e.api?e.exposed&&e.api[t]&&n.push(e.api[t](...r)):(0,l.R)(38,t)})),n.length>1?n:n[0]}(t,...r)}))}const x={};function _(e,t,g=!1){t||(0,c.Ak)(e,"api");const h={};var w=s.ee.get(e),A=w.get("tracer");x[e]=b.g.OFF,w.on(p.G4.REPLAY_RUNNING,(t=>{x[e]=t}));var E="api-",_=E+"ixn-";function N(t,r,n,o){const a=(0,i.Vp)(e);return null===r?delete a.jsAttributes[t]:(0,i.x1)(e,{...a,jsAttributes:{...a.jsAttributes,[t]:r}}),j(E,n,!0,o||null===r?"session":void 0)(t,r)}function T(){}h.log=function(e,{customAttributes:t={},level:r=y.p_.INFO}={}){(0,a.p)(f.xV,["API/log/called"],void 0,n.K7.metrics,w),function(e,t,r={},i=y.p_.INFO){(0,a.p)(f.xV,["API/logging/".concat(i.toLowerCase(),"/called")],void 0,n.K7.metrics,e),(0,a.p)(y.ET,[(0,m.t)(),t,r,i],void 0,n.K7.logging,e)}(w,e,t,r)},h.wrapLogger=(e,t,{customAttributes:r={},level:i=y.p_.INFO}={})=>{(0,a.p)(f.xV,["API/wrapLogger/called"],void 0,n.K7.metrics,w),R(w,e,t,{customAttributes:r,level:i})},v.forEach((e=>{h[e]=j(E,e,!0,"api")})),h.addPageAction=j(E,"addPageAction",!0,n.K7.genericEvents),h.setPageViewName=function(t,r){if("string"==typeof t)return"/"!==t.charAt(0)&&(t="/"+t),(0,o.f)(e).customTransaction=(r||"http://custom.transaction")+t,j(E,"setPageViewName",!0)()},h.setCustomAttribute=function(e,t,r=!1){if("string"==typeof e){if(["string","number","boolean"].includes(typeof t)||null===t)return N(e,t,"setCustomAttribute",r);(0,l.R)(40,typeof t)}else(0,l.R)(39,typeof e)},h.setUserId=function(e){if("string"==typeof e||null===e)return N("enduser.id",e,"setUserId",!0);(0,l.R)(41,typeof e)},h.setApplicationVersion=function(e){if("string"==typeof e||null===e)return N("application.version",e,"setApplicationVersion",!1);(0,l.R)(42,typeof e)},h.start=()=>{try{(0,a.p)(f.xV,["API/start/called"],void 0,n.K7.metrics,w),w.emit("manual-start-all")}catch(e){(0,l.R)(23,e)}},h[p.G4.RECORD]=function(){(0,a.p)(f.xV,["API/recordReplay/called"],void 0,n.K7.metrics,w),(0,a.p)(p.G4.RECORD,[],void 0,n.K7.sessionReplay,w)},h[p.G4.PAUSE]=function(){(0,a.p)(f.xV,["API/pauseReplay/called"],void 0,n.K7.metrics,w),(0,a.p)(p.G4.PAUSE,[],void 0,n.K7.sessionReplay,w)},h.interaction=function(e){return(new T).get("object"==typeof e?e:{})};const S=T.prototype={createTracer:function(e,t){var r={},i=this,o="function"==typeof t;return(0,a.p)(f.xV,["API/createTracer/called"],void 0,n.K7.metrics,w),g||(0,a.p)(_+"tracer",[(0,m.t)(),e,r],i,n.K7.spa,w),function(){if(A.emit((o?"":"no-")+"fn-start",[(0,m.t)(),i,o],r),o)try{return t.apply(this,arguments)}catch(e){const t="string"==typeof e?new Error(e):e;throw A.emit("fn-err",[arguments,this,t],r),t}finally{A.emit("fn-end",[(0,m.t)()],r)}}}};function j(e,t,r,i){return function(){return(0,a.p)(f.xV,["API/"+t+"/called"],void 0,n.K7.metrics,w),i&&(0,a.p)(e+t,[(0,m.t)(),...arguments],r?null:this,i,w),r?void 0:this}}function k(){r.e(296).then(r.bind(r,8778)).then((({setAPI:t})=>{t(e),(0,c.Ze)(e,"api")})).catch((e=>{(0,l.R)(27,e),w.abort()}))}return["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((e=>{S[e]=j(_,e,void 0,g?n.K7.softNav:n.K7.spa)})),h.setCurrentRouteName=g?j(_,"routeName",void 0,n.K7.softNav):j(E,"routeName",!0,n.K7.spa),h.noticeError=function(t,r){"string"==typeof t&&(t=new Error(t)),(0,a.p)(f.xV,["API/noticeError/called"],void 0,n.K7.metrics,w),(0,a.p)("err",[t,(0,m.t)(),!1,r,!!x[e]],void 0,n.K7.jserrors,w)},d.RI?(0,u.GG)((()=>k()),!0):k(),h}var N=r(9417),T=r(8122);const S={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},j={};var k=r(5284);const I=e=>{const t=e.startsWith("http");e+="/",r.p=t?e:"https://"+e};let O=!1;function P(e,t={},r,n){let{init:a,info:c,loader_config:u,runtime:l={},exposed:f=!0}=t;l.loaderType=r;const p=(0,g.pV)();c||(a=p.init,c=p.info,u=p.loader_config),(0,N.xN)(e.agentIdentifier,a||{}),function(e,t){if(!e)throw new Error("All loader-config objects require an agent identifier!");j[e]=(0,T.a)(t,S);const r=(0,g.nY)(e);r&&(r.loader_config=j[e])}(e.agentIdentifier,u||{}),c.jsAttributes??={},d.bv&&(c.jsAttributes.isWorker=!0),(0,i.x1)(e.agentIdentifier,c);const h=(0,N.D0)(e.agentIdentifier),v=[c.beacon,c.errorBeacon];O||(h.proxy.assets&&(I(h.proxy.assets),v.push(h.proxy.assets)),h.proxy.beacon&&v.push(h.proxy.beacon),E(),(0,g.US)("activatedFeatures",k.B),e.runSoftNavOverSpa&&=!0===h.soft_navigations.enabled&&h.feature_flags.includes("soft_nav")),l.denyList=[...h.ajax.deny_list||[],...h.ajax.block_internal?v:[]],l.ptid=e.agentIdentifier,(0,o.V)(e.agentIdentifier,l),e.ee=s.ee.get(e.agentIdentifier),void 0===e.api&&(e.api=_(e.agentIdentifier,n,e.runSoftNavOverSpa)),void 0===e.exposed&&(e.exposed=f),O=!0}},8374:(e,t,r)=>{r.nc=(()=>{try{return document?.currentScript?.nonce}catch(e){}return""})()},860:(e,t,r)=>{"use strict";r.d(t,{$J:()=>o,K7:()=>n,P3:()=>i});const n={ajax:"ajax",genericEvents:"generic_events",jserrors:"jserrors",logging:"logging",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",softNav:"soft_navigations",spa:"spa"},i={[n.pageViewEvent]:1,[n.pageViewTiming]:2,[n.metrics]:3,[n.jserrors]:4,[n.spa]:5,[n.ajax]:6,[n.sessionTrace]:7,[n.softNav]:8,[n.sessionReplay]:9,[n.logging]:10,[n.genericEvents]:11},o={[n.pageViewTiming]:"events",[n.ajax]:"events",[n.spa]:"events",[n.softNav]:"events",[n.metrics]:"jserrors",[n.jserrors]:"jserrors",[n.sessionTrace]:"browser/blobs",[n.sessionReplay]:"browser/blobs",[n.logging]:"browser/logs",[n.genericEvents]:"ins"}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>"nr-rum-1.274.0.min.js",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="NRBA-1.274.0.PROD:",i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var l=u[d];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+o){s=l;break}}if(!s){c=!0;var f={296:"sha512-gkYkZDAwQ9PwaDXs2YM+rNIdRej1Ac1mupWobRJ8eahQcXz6/sunGZCKklrzi5kWxhOGRZr2tn0rEKuLTXzfAA=="};(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",t+o),s.src=r,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous"),f[a]&&(s.integrity=f[a])}e[r]=[n];var g=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(g.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=g.bind(null,s.onerror),s.onload=g.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="https://js-agent.newrelic.com/",(()=>{var e={840:0,374:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)c(i)}for(t&&t(r);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self["webpackChunk:NRBA-1.274.0.PROD"]=self["webpackChunk:NRBA-1.274.0.PROD"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";i(8374);var e=i(944),t=i(6344),r=i(9566);class n{agentIdentifier;constructor(e=(0,r.LA)(16)){this.agentIdentifier=e}#e(t,...r){if("function"==typeof this.api?.[t])return this.api[t](...r);(0,e.R)(35,t)}addPageAction(e,t){return this.#e("addPageAction",e,t)}setPageViewName(e,t){return this.#e("setPageViewName",e,t)}setCustomAttribute(e,t,r){return this.#e("setCustomAttribute",e,t,r)}noticeError(e,t){return this.#e("noticeError",e,t)}setUserId(e){return this.#e("setUserId",e)}setApplicationVersion(e){return this.#e("setApplicationVersion",e)}setErrorHandler(e){return this.#e("setErrorHandler",e)}addRelease(e,t){return this.#e("addRelease",e,t)}log(e,t){return this.#e("log",e,t)}}class o extends n{#e(t,...r){if("function"==typeof this.api?.[t])return this.api[t](...r);(0,e.R)(35,t)}start(){return this.#e("start")}finished(e){return this.#e("finished",e)}recordReplay(){return this.#e(t.G4.RECORD)}pauseReplay(){return this.#e(t.G4.PAUSE)}addToTrace(e){return this.#e("addToTrace",e)}setCurrentRouteName(e){return this.#e("setCurrentRouteName",e)}interaction(){return this.#e("interaction")}wrapLogger(e,t,r){return this.#e("wrapLogger",e,t,r)}}var a=i(860),s=i(9417);const c=Object.values(a.K7);function u(e){const t={};return c.forEach((r=>{t[r]=function(e,t){return!0===(0,s.gD)(t,"".concat(e,".enabled"))}(r,e)})),t}var d=i(7603);var l=i(1687),f=i(4234),g=i(5289),p=i(6154),h=i(384);const v=e=>p.RI&&!0===(0,s.gD)(e,"privacy.cookies_enabled");function m(e){return!!(0,h.dV)().o.MO&&v(e)&&!0===(0,s.gD)(e,"session_trace.enabled")}var b=i(6389);class y extends f.W{constructor(e,t,r=!0){super(e.agentIdentifier,t),this.auto=r,this.abortHandler=void 0,this.featAggregate=void 0,this.onAggregateImported=void 0,!1===e.init[this.featureName].autoStart&&(this.auto=!1),this.auto?(0,l.Ak)(e.agentIdentifier,t):this.ee.on("manual-start-all",(0,b.J)((()=>{(0,l.Ak)(e.agentIdentifier,this.featureName),this.auto=!0,this.importAggregator(e)})))}importAggregator(t,r={}){if(this.featAggregate||!this.auto)return;let n;this.onAggregateImported=new Promise((e=>{n=e}));const o=async()=>{let o;try{if(v(this.agentIdentifier)){const{setupAgentSession:e}=await i.e(296).then(i.bind(i,3861));o=e(t)}}catch(t){(0,e.R)(20,t),this.ee.emit("internal-error",[t]),this.featureName===a.K7.sessionReplay&&this.abortHandler?.()}try{if(t.sharedAggregator)await t.sharedAggregator;else{t.sharedAggregator=i.e(296).then(i.bind(i,9337));const{EventAggregator:e}=await t.sharedAggregator;t.sharedAggregator=new e}if(!this.#t(this.featureName,o))return(0,l.Ze)(this.agentIdentifier,this.featureName),void n(!1);const{lazyFeatureLoader:e}=await i.e(296).then(i.bind(i,6103)),{Aggregate:a}=await e(this.featureName,"aggregate");this.featAggregate=new a(t,r),n(!0)}catch(t){(0,e.R)(34,t),this.abortHandler?.(),(0,l.Ze)(this.agentIdentifier,this.featureName,!0),n(!1),this.ee&&this.ee.abort()}};p.RI?(0,g.GG)((()=>o()),!0):o()}#t(e,t){switch(e){case a.K7.sessionReplay:return m(this.agentIdentifier)&&!!t;case a.K7.sessionTrace:return!!t;default:return!0}}}var w=i(6630);class A extends y{static featureName=w.T;constructor(e,t=!0){super(e,w.T,t),this.importAggregator(e)}}var R=i(9908),E=i(2843),x=i(3878),_=i(782),N=i(1863);class T extends y{static featureName=_.T;constructor(e,t=!0){super(e,_.T,t),p.RI&&((0,E.u)((()=>(0,R.p)("docHidden",[(0,N.t)()],void 0,_.T,this.ee)),!0),(0,x.sp)("pagehide",(()=>(0,R.p)("winPagehide",[(0,N.t)()],void 0,_.T,this.ee))),this.importAggregator(e))}}var S=i(3969);class j extends y{static featureName=S.TZ;constructor(e,t=!0){super(e,S.TZ,t),this.importAggregator(e)}}new class extends o{constructor(t,r){super(r),p.gm?(this.features={},(0,h.bQ)(this.agentIdentifier,this),this.desiredFeatures=new Set(t.features||[]),this.desiredFeatures.add(A),this.runSoftNavOverSpa=[...this.desiredFeatures].some((e=>e.featureName===a.K7.softNav)),(0,d.j)(this,t,t.loaderType||"agent"),this.run()):(0,e.R)(21)}get config(){return{info:this.info,init:this.init,loader_config:this.loader_config,runtime:this.runtime}}run(){try{const t=u(this.agentIdentifier),r=[...this.desiredFeatures];r.sort(((e,t)=>a.P3[e.featureName]-a.P3[t.featureName])),r.forEach((r=>{if(!t[r.featureName]&&r.featureName!==a.K7.pageViewEvent)return;if(this.runSoftNavOverSpa&&r.featureName===a.K7.spa)return;if(!this.runSoftNavOverSpa&&r.featureName===a.K7.softNav)return;const n=function(e){switch(e){case a.K7.ajax:return[a.K7.jserrors];case a.K7.sessionTrace:return[a.K7.ajax,a.K7.pageViewEvent];case a.K7.sessionReplay:return[a.K7.sessionTrace];case a.K7.pageViewTiming:return[a.K7.pageViewEvent];default:return[]}}(r.featureName).filter((e=>!(e in this.features)));n.length>0&&(0,e.R)(36,{targetFeature:r.featureName,missingDependencies:n}),this.features[r.featureName]=new r(this)}))}catch(t){(0,e.R)(22,t);for(const e in this.features)this.features[e].abortHandler?.();const r=(0,h.Zm)();delete r.initializedAgents[this.agentIdentifier]?.api,delete r.initializedAgents[this.agentIdentifier]?.features,delete this.sharedAggregator;return r.ee.get(this.agentIdentifier).abort(),!1}}}({features:[A,T,j],loaderType:"lite"})})()})();</script> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Garage Sale Trail 2024</title> <meta property="og:title" content="Be a part of Australia's biggest secondhand treasure hunt."> <meta property="og:url" content="https://www.garagesaletrail.com.au/get-involved/be-a-seller"> <meta name="description" content="8-9 & 15-16 November 2025"> <meta property="og:description" content="8-9 & 15-16 November 2025"> <meta property="og:image" content="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/social-sharing/social-media-share-2024.jpg"/> <link rel="apple-touch-icon" sizes="180x180" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/favicon-16x16.png"> <link rel="manifest" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/site.webmanifest"> <link rel="mask-icon" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/safari-pinned-tab.svg" color="#5bbad5"> <link rel="shortcut icon" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/favicon.ico"> <meta name="msapplication-TileColor" content="#2d89ef"> <meta name="msapplication-config" content="https://d3l3fqxau8i8wm.cloudfront.net/assets/icons/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> <meta name="facebook-domain-verification" content="x9exd51u6sccv48a4crow2xfpf39pj" /> <!-- Global site tag (gtag.js) - Google Ads: 899273712 --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-899273712"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-899273712'); </script> <!-- Ortto garagesaletrail1 capture code --> <!-- Note: We moved the last two lines of code to a separate file, see cdnau-net.blade.php. This change caused intermittent page load issues, so we applied a workaround by manually embedding the content of this library (https://cdnau.net/app.js) and isolating the scope. The downside is that we may miss updates to this library, so we'll need to revisit this next year. Mohammad is rocks! --> <script> window.ap3c = window.ap3c || {}; var ap3c = window.ap3c; ap3c.cmd = ap3c.cmd || []; ap3c.cmd.push(function() { ap3c.init('Y5YEhpbrcZVpbS2CZ2FyYWdlc2FsZXRyYWlsMQ', 'https://capture-api-au.ortto.app/'); ap3c.track({v:0, email: ""}); }); ap3c.activity = function(act) { ap3c.act = (ap3c.act || []); ap3c.act.push(act); }; // var s, t; s = document.createElement('script'); s.type = 'text/javascript'; s.src = "https://cdnau.net/app.js"; // t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t); </script> <!-- Ortto garagesaletrail1 capture code --> <script> (function() { "use strict";var TIMEOUT=150,BASE_NEEDLE_ANGLE=22.5,START_NEEDLE_MOVE_ANGLE=21,END_NEEDLE_MOVE_ANGLE=29,NEEDLE_ANGLE_INCREMENT=4.5,DECIMAL_MULTIPLIER=1e3,CLOSE_WIDGET_LINK="--close-widget--",PUSH_PERMISSION_LINK="--push-permission--",AP3_WIDGETS_PREFIX="ap_widgets_",HIDDEN_FIELDS_REGEX=/INPUT.hidden\/(.*?) /gm,HIDDEN_FIELDS_SUBSTITUTION="",AP3_MAX_Z_INDEX=2147483647,cookies={SHOWN:"ap3shown",SHOWN_IN_CURRENT_SESSION:"ap3sess",PAGES_VISITED_IN_SESSION:"ap3pages",DISMISSED:"ap3dm",CONVERTED:"ap3converted",CUSTOM_CONSENT_TO_TRACK:"ap3cct",PRIORITY:"ap3prio"},frequencies={ALWAYS:"always",UNTIL_DIMISSED_OR_CONVERTED:"until dismissed",ONCE_PER_SESSION_OR_UNTIL_CONVERTED:"once per session",ONCE_PER_SESSION:"once per session",ONLY_ONCE:"only once",UNTIL_KNOWN:"until they are known"},preFillOptionIds={DONT_PRE_FILL:"dont_pre_fill",VIA_URL:"via_url"},visibilityOptionIds={HIDE_ON_PRE_FILL:"hide_on_pre_fill"},netPromoterScoreThanksVariants={ANY:"any",DETRACTOR:"detractor",PASSIVE:"passive",PROMOTER:"promoter"},buttonOnClickIds={GO_TO_URL:"go-to-url",THANK_YOU:"thank-you",PLAY_VIDYARD_VIDEO:"play-vidyard-video",DOWNLOAD_FILE:"download-file"},AP_MAX_PHONE_WIDTH_MAP={1:10,7:10,20:9,27:9,30:10,31:9,32:9,33:9,34:9,36:9,39:11,40:9,41:12,43:13,44:10,46:13,48:9,49:13,51:11,52:10,54:10,55:10,56:9,57:10,58:10,60:9,61:15,62:10,63:10,66:9,81:13,82:11,84:10,86:12,90:10,91:10,92:11,93:9,94:9,95:9,98:10,212:9,213:9,216:8,218:9,221:9,223:8,224:8,225:8,226:8,227:8,228:8,229:8,232:8,233:9,234:10,235:8,237:8,243:9,244:9,249:9,250:9,251:9,252:8,254:10,255:9,256:9,257:8,258:9,260:9,261:10,263:10,264:10,265:8,351:11,370:8,372:8,373:8,374:8,375:10,380:9,420:12,502:8,505:8,509:8,591:8,593:8,595:9,675:11,850:17,852:9,855:8,856:10,880:10,886:9,961:8,962:9,963:10,964:10,966:9,967:9,972:9,977:9,992:9,993:8,994:9,996:9,998:9};ap3c._isMobile=function(){var _isMobile=!1;return window.navigator&&window.navigator.userAgent&&(_isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent)),_isMobile},ap3c._isIOSWebView=function(){var _isIOSWebView=!1;return window.navigator&&window.navigator.userAgent&&(_isIOSWebView=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)),_isIOSWebView},ap3c._isIOSSafari=function(){var iOSSafari=!1;if(window.navigator&&window.navigator.userAgent){var ua=window.navigator.userAgent,iOS=!!ua.match(/iPad/i)||!!ua.match(/iPhone/i),hasWebkit=!!ua.match(/WebKit/i);iOSSafari=iOS&&hasWebkit&&!ua.match(/CriOS/i)}return iOSSafari};var isNotificationSupported=function(){return"Notification"in window&&"serviceWorker"in navigator&&"PushManager"in window},isAndroidWebView=function(){var ua=window.navigator.userAgent,isAndroid=/Android/.test(ua),isWebView=/wv/.test(ua)||/Version\/[\d.]+/.test(ua);return isAndroid&&isWebView},isRunningWithinSDK=function(){return!!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.messageHandler)||!!window.Android},validShopifyCartAddPaths={"/cart/add.js":!0,"/cart/add":!0},validShopifyCartAddStatuses={200:!0,302:!0},urlParamKeys={AP_WIDGET:"ap_widget"},platforms={IOS:"ios",ANDROID:"android"},getUrlParams=function(search){var params={};return search&&search.slice(search.indexOf("?")+1).split("&").map(function(hash){var keyValTuple=hash.split("=");params[decodeURIComponent(keyValTuple[0])]=decodeURIComponent(keyValTuple[1])}),params},getFieldType=function(el){if(-1!==el.className.indexOf("ap3w-input-areacode"))return"area-code";if(-1!==el.parentElement.className.indexOf("ap3w-input-select-option")||-1!==el.parentElement.className.indexOf("ap3w-form-input-select-option"))return"multi-select";var inputTypeAttr=el.parentElement.dataset&&el.parentElement.dataset.inputType;return inputTypeAttr||("number"===el.name||"date"===el.name||"datetime-local"===el.name?el.name:el.getAttribute("type"))},getDefaultValue=function(preFillOption,fieldId,el){if(!preFillOption||preFillOption===preFillOptionIds.DONT_PRE_FILL)return null;var queryParams=getUrlParams(window.location.search),fieldType=getFieldType(el),defaultValueFromParams=queryParams[fieldId],defaultValue=!defaultValueFromParams&&"areacode"===fieldType&&ap3c.country_code?ap3c.country_code:defaultValueFromParams;if(!defaultValue)return null;var inputTypeAttr=el.parentElement.dataset&&el.parentElement.dataset.inputType;switch("date"!==fieldType&&"datetime-local"!==fieldType||(el.type=inputTypeAttr||el.name,fieldType=el.type),fieldType){case"date":if(ap3c.date_format&&"dmy"===ap3c.date_format.substring(0,3))return defaultValue.split("-").reverse().join("-");if(ap3c.date_format&&"mdy"===ap3c.date_format.substring(0,3)){var month=(dateParts=defaultValue.split("-"))[0],day=dateParts[1];return dateParts[2]+"-"+month+"-"+day}return defaultValue;case"datetime-local":var dateTimeParts=defaultValue.split("T"),date=dateTimeParts[0],time=dateTimeParts[1];if(ap3c.date_format&&"dmy"===ap3c.date_format.substring(0,3))return date.split("-").reverse().join("-")+"T"+time;if(ap3c.date_format&&"mdy"===ap3c.date_format.substring(0,3)){var dateParts;month=(dateParts=date.split("-"))[0],day=dateParts[1];return dateParts[2]+"-"+month+"-"+day+"T"+time}return defaultValue;case"tel":return defaultValue.split("-")[1];case"area-code":return defaultValue.split("-")[0].replace("+","");case"checkbox":return"true"===defaultValue;case"multi-select":return-1!==defaultValue.split(",").indexOf(el.parentElement.dataset.value);default:return defaultValue}},populateSelectOptions=function(selectList,selectFieldEl,selectedOptions,isEmbeddableForm){var selectListTrigger=selectList.previousElementSibling,fieldDataAttributes=isEmbeddableForm?selectList.closest(".ap3w-form-input").dataset:selectList.closest(".ap3w-input").dataset,isMultiSelect="multi_select"===selectList.dataset.selectType,selectListId=isEmbeddableForm?selectList.dataset.newListId:selectList.dataset.listId;isMultiSelect&&selectFieldEl.firstElementChild.checked&&(selectedOptions[selectListId]||(selectedOptions[selectListId]=[]),selectedOptions[selectListId].push(selectFieldEl.dataset.value),selectFieldEl.classList.add("ap3w-form-input-select-option-selected"),selectListTrigger.innerText=selectedOptions[selectListId].join(", "),selectListTrigger.value=selectedOptions[selectListId]);var defaultValue=getDefaultValue(fieldDataAttributes.preFillOption,fieldDataAttributes.fieldId,selectFieldEl);isMultiSelect||defaultValue!==selectFieldEl.dataset.value||(selectedOptions[selectListId]=defaultValue,selectListTrigger.innerText=selectedOptions[selectListId],selectListTrigger.value=selectedOptions[selectListId]),fieldDataAttributes.hideIfValueExists&&fieldDataAttributes.fieldId in(ap3c.field_values||{})&&(selectListTrigger.parentNode.style.display="none"),fieldDataAttributes.visibility===visibilityOptionIds.HIDE_ON_PRE_FILL&&defaultValue&&(selectListTrigger.parentNode.style.display="none")},replacePlatformLinks=function(widgetContainerEl,platform){for(var selector=platform===platforms.ANDROID?"[data-android-url], [data-button-submit-android-url]":"[data-ios-url], [data-button-submit-ios-url]",anchorElements=widgetContainerEl.querySelectorAll(selector),i=0;i<anchorElements.length;i++){var anchorElement=anchorElements[i],url=anchorElement.dataset[platform===platforms.ANDROID?"androidUrl":"iosUrl"],formButtonSubmitUrl=anchorElement.dataset[platform===platforms.ANDROID?"buttonSubmitAndroidUrl":"buttonSubmitIosUrl"];formButtonSubmitUrl?anchorElement.dataset.buttonSubmitUrl=formButtonSubmitUrl:anchorElement.href=url}},isInViewport=function(element){var rect=element.getBoundingClientRect(),html=document.documentElement;return 0<=rect.top&&0<=rect.left&&rect.bottom<=(window.innerHeight||html.clientHeight)&&rect.right<=(window.innerWidth||html.clientWidth)},getTimeFromSeconds=function(seconds,display){return seconds<=0?{days:0,hours:0,minutes:0,seconds:0}:-1!==display.indexOf("DD")?{days:Math.floor(seconds/86400),hours:Math.floor(seconds%86400/3600),minutes:Math.floor(seconds%3600/60),seconds:Math.floor(seconds%60)}:-1!==display.indexOf("HH")?{days:0,hours:Math.floor(seconds/3600),minutes:Math.floor(seconds%3600/60),seconds:Math.floor(seconds%60)}:-1!==display.indexOf("MM")?{days:0,hours:0,minutes:Math.floor(seconds/60),seconds:Math.floor(seconds%60)}:{days:0,hours:0,minutes:0,seconds:seconds}},uA=navigator.userAgent,vendor=navigator.vendor;if(!("SubmitEvent"in self&&"submitter"in SubmitEvent.prototype)){var submitter=Symbol.for("submitter");Event[submitter]=null;var submitterSelector="input[type=submit], input[type=image], input[type=button], button";Object.defineProperty(Event.prototype,"submitter",{get:function(){if("submit"===this.type){var node=Event[submitter],form=this.target;return node&&form.contains(node)||(node=form.querySelector(submitterSelector)),node||form}},set:function(value){"submit"===this.type&&(this.submitter=value)}}),self.addEventListener("click",function(event){var _node$closest,_node$closest2,node=event.composedPath()[0],closest=null!==(_node$closest=null===(_node$closest2=node.closest)||void 0===_node$closest2?void 0:_node$closest2.call(node,submitterSelector))&&void 0!==_node$closest?_node$closest:null;Event[submitter]=closest},!0)}String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(search,rawPos){var pos=0<rawPos?0|rawPos:0;return this.substring(pos,pos+search.length)===search}}),String.prototype.endsWith||(String.prototype.endsWith=function(search,this_len){return(void 0===this_len||this_len>this.length)&&(this_len=this.length),this.substring(this_len-search.length,this_len)===search}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),String.prototype.trimStart||(String.prototype.trimStart=function(){return this.replace(/^\s+/,"")}),String.prototype.trimEnd||(String.prototype.trimEnd=function(){return this.replace(/\s+$/,"")}),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(Element.prototype.matches.call(el,s))return el;el=el.parentElement||el.parentNode}while(null!==el&&1===el.nodeType);return null}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var jsonFromXhr=function(url,method,requestPayload,onFetched){if(("ZB5Vs9u5KFKmMvhVY3ViYnliZWRz"===ap3c.uniqueID||"YBoahW3g05-xsBX1c3RnYWN0aXZpdGllcw"===ap3c.uniqueID||ap3c._isIOSWebView())&&window.fetch)fetch(url,{method:method,body:JSON.stringify(requestPayload)}).then(function(response){return response.json()}).then(function(data){onFetched(data)}).catch(function(error){console.error("Fetch error:",error)});else{var req=new XMLHttpRequest;req.open(method,url),req.onload=function(){if(200<=req.status&&req.status<300){var jsonResponse=JSON.parse(req.responseText);onFetched(jsonResponse)}else console.error("XMLHttpRequest error:",req.statusText)},req.onerror=function(){console.error("XMLHttpRequest network error")},req.send(JSON.stringify(requestPayload))}};history.pushState=function(f){return function(){var ret=f.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),ret}}(history.pushState),history.replaceState=function(f){return function(){var ret=f.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),ret}}(history.replaceState),window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))});var sortObjectAndToString=function(obj){var keys=Object.keys(obj),len=keys.length;keys.sort();for(var result="",i=0;i<len;i++){result+=keys[i]+"|"+JSON.stringify(obj[keys[i]])}return result},calcTrackKey=function(options){return sortObjectAndToString(options||{})+"|"+window.location.href};function getCookieDomain(){var domain=null;if(ap3c.cookieDomains)for(var i=0;i<ap3c.cookieDomains.length;i++){var d=ap3c.cookieDomains[i];d.startsWith(".")&&(d=d.substr(1)),-1!=window.location.host.indexOf(d)&&(domain=ap3c.cookieDomains[i])}return domain}function readCookie(key){for(var parts=document.cookie.split(";"),i=0;i<parts.length;i++){var cookie=parts[i];if(cookie&&(cookie=cookie.trimStart()).startsWith(key+"="))return cookie.split("=")[1]}return""}function removeCookie(key){var cookie=key+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie;var cookieDomain=getCookieDomain();cookieDomain&&(cookie+=";domain="+cookieDomain,document.cookie=cookie)}function convertLegacyCookies(widget){var legacy=readCookie(widget.id);if(legacy)return"shown"!==legacy?ap3c.setFrequencyCookie(cookies.SHOWN_IN_CURRENT_SESSION,widget.id,!0):ap3c.setFrequencyCookie(cookies.SHOWN,widget.id),removeCookie(widget.id),!0}function convertLegacyPageFilter(filter){if(0===Object.keys(filter||{}).length)return filter;var operator=filter.$and?"$and":"$or",conditions=filter[operator];if("$and"===Object.keys(conditions[0]||{})[0]||"$or"===Object.keys(conditions[0]||{})[0])return filter;var newFilter={};newFilter[operator]=[];var newConditionGroup={};return newConditionGroup[operator]=conditions,newFilter[operator].push(newConditionGroup),newFilter}function isPageFilterValid(filter){var currentUrl=window.location.href,groupResult=!1,conditionResult=!1,pageFilter=convertLegacyPageFilter(filter);if(pageFilter){var orConditionGroup=pageFilter.$or,andConditionGroup=pageFilter.$and,pageConditionGroup=orConditionGroup||andConditionGroup;if(pageConditionGroup)for(var groupIndex=0;groupIndex<pageConditionGroup.length;groupIndex++){var conditions=pageConditionGroup[groupIndex],andConditions=pageConditionGroup[groupIndex].$and,orConditions=pageConditionGroup[groupIndex].$or;conditions=andConditions||orConditions;conditionResult=!andConditionGroup&&groupResult;for(var conditionIndex=0;conditionIndex<conditions.length;conditionIndex++){var condition=conditions[conditionIndex],type=Object.keys(condition)[0],v=condition[type];switch(type){case"$str::is":var isMatch=v.value.toLowerCase()===currentUrl.toLowerCase();conditionResult=andConditions?isMatch:conditionResult||isMatch;break;case"$str::is_not":var isNotMatch=v.value.toLowerCase()!==currentUrl.toLowerCase();conditionResult=andConditions?isNotMatch:conditionResult||isNotMatch;break;case"$str::starts":var isStartMatch=currentUrl.toLowerCase().startsWith(v.value.toLowerCase());conditionResult=andConditions?isStartMatch:conditionResult||isStartMatch;break;case"$str::ends":var isEndMatch=currentUrl.toLowerCase().endsWith(v.value.toLowerCase());conditionResult=andConditions?isEndMatch:conditionResult||isEndMatch;break;case"$str::contains":var isContainsMatch=-1!==currentUrl.toLowerCase().indexOf(v.value.toLowerCase());conditionResult=andConditions?isContainsMatch:conditionResult||isContainsMatch;break;case"$str::does_not_contain":var isDoesNotContainMatch=-1===currentUrl.toLowerCase().indexOf(v.value.toLowerCase());conditionResult=andConditions?isDoesNotContainMatch:conditionResult||isDoesNotContainMatch}if(groupResult=conditionResult,andConditions&&!conditionResult)break}if(andConditionGroup&&!groupResult)break}}return groupResult}function isKnownSession(){var sessionID=ap3c.getCookie();if(!sessionID)return!1;for(var b64Encoded="",i=0;i<sessionID.length;i++){var ch=sessionID[i];switch(ch){case"_":b64Encoded+="/";break;case"-":b64Encoded+="+";break;default:b64Encoded+=ch}}var mod=b64Encoded.length%4;2<=mod&&mod<=3&&(b64Encoded+="=".repeat(4-mod));try{var decoded=atob(b64Encoded);if(decoded&&0<decoded.length)return 0==decoded.charCodeAt(0)}catch(err){return console.error(err),!0}return!1}ap3c.trackedFormWidgets={},ap3c.__jq=window.jQuery,ap3c.setConsentToTrack=function(allowed){ap3c.setCookie(allowed,cookies.CUSTOM_CONSENT_TO_TRACK)},ap3c.nonce="",ap3c.init=function(uniqueID,apiHost,options){if(!uniqueID)throw new Error("Ortto tracking code init failed with invalid uniqueID");if(!apiHost)throw new Error("Ortto tracking code init failed with invalid API host");if(ap3c.uniqueID&&ap3c.apiHost)console.log("Ortto tracking code already initted");else{"https://capture-api.autopilotapp.com/"===apiHost&&(apiHost="https://capture-api.ap3prod.com/"),void 0!==options&&options&&""!==options.nonce&&(ap3c.nonce=options.nonce),ap3c.payloadEnrichers=[],ap3c.staticActions=["shopify_subscribe","shopify_product_viewed","shopify_product_added_to_cart"],ap3c.staticActionsFuncs={shopify_subscribe:ap3c._shopifySubscribeAction,shopify_product_viewed:ap3c._shopifyProductViewedAction,shopify_product_added_to_cart:ap3c._shopifyProductAddedToCartAction},ap3c.activity=function(act){ap3c.act=ap3c.act||[],ap3c.act.push(act)},ap3c.widgetsFuncs={popup:ap3c._generalWidget,bar:ap3c._generalWidget,notification:ap3c._generalWidget,takeover:ap3c._generalWidget,form:ap3c._generalWidget,"spin-the-wheel":ap3c._generalWidget,"tracked-form":ap3c._trackedForm,prompt:ap3c._generalWidget,banner:ap3c._generalWidget,shopify_waiting_on_stock:ap3c._shopifyWaitingOnStockWidget,talk:ap3c._talkWidget},ap3c.processStaticActions=function(){if(ap3c.staticActions)for(var i=0;i<ap3c.staticActions.length;i++)ap3c.staticActionsFuncs[ap3c.staticActions[i]].canExecute&&ap3c.staticActionsFuncs[ap3c.staticActions[i]].canExecute()&&ap3c.staticActionsFuncs[ap3c.staticActions[i]].execute()};try{ap3c.uniqueID=uniqueID,ap3c.apiHost=apiHost;var qsTalkToken=getUrlParams(window.location.search).tt;if(options){options.cookieDomains&&(ap3c.cookieDomains=options.cookieDomains,"h"===options.link&&ap3c.hLinks(),"g"===options.link&&ap3c.gLinks()),ap3c.customecommerce=options.customecommerce||{},ap3c.magento=options.magento||{},ap3c.woocommerce=options.woocommerce||{},ap3c.disableWidgets=options.disableWidgets,ap3c.customConsentToTrack=options.customConsentToTrack||!1;var apTalkOption=options.talk;apTalkOption?(apTalkOption.cookiePath&&(ap3c.talk.cookiePath=apTalkOption.cookiePath),apTalkOption.disableCookie||(apTalkOption.token?(ap3c.talk.token=apTalkOption.token,ap3c.talk.setToken(apTalkOption.token)):qsTalkToken&&(ap3c.talk.token=qsTalkToken,ap3c.talk.setToken(ap3c.talk.token)))):qsTalkToken&&(ap3c.talk.token=qsTalkToken,ap3c.talk.setToken(ap3c.talk.token))}else qsTalkToken&&(ap3c.talk.token=qsTalkToken,ap3c.talk.setToken(ap3c.talk.token));ap3c.enableTalk=!(options&&options.disableTalk),ap3c.processStaticActions(),ap3c.setVisitedPagesCookie(),ap3c.callAfterInit=function(){ap3c._processWidgets(void 0,{callbacks:{onDone:function(){ap3c.enableTalk&&(options&&options.captureDomain&&(ap3c.talk.captureDomain=options.captureDomain),!(!apTalkOption||!apTalkOption.hiddenOnLoad)||ap3c.talk.init())}}})},window.addEventListener("locationchange",function(){setTimeout(function(){ap3c._processWidgets()},2e3),ap3c.track(ap3c.lastVars||{})}),window.addEventListener("load",function(){var bodyList=document.querySelector("body"),found=!1;new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(!found)return"childList"===mutation.type&&mutation.target&&mutation.target.querySelector("form")?(ap3c._processWidgets(!0),void(found=!0)):void 0})}).observe(bodyList,{childList:!0,subtree:!0})})}catch(e){console.error("Error initializing Ortto tracking code",e)}}},ap3c.talk=ap3c.talk||{localStorageKey:"ap_talk",localStorageContactKey:"ap_talk_contact",tokenCookieName:"ap3c_talk",token:null,cookiePath:void 0,captureDomain:null,hasInitRequested:!1,hasScriptInjected:!1,baseAssetPath:null,isModernBrowser:!1,commands:[],__eventListeners:{},addEventListener:function(eventName,handler){void 0===this.__eventListeners[eventName]&&(this.__eventListeners[eventName]=[]),this.__eventListeners[eventName].push(handler)},removeEventListener:function(eventName,handler){var eventHandlers=this.__eventListeners[eventName];eventHandlers&&(this.__eventListeners[eventName]=eventHandlers.filter(function(eventHandler){return eventHandler!==handler}))},notifyEvent:function(eventName){var eventHandlers=this.__eventListeners[eventName];if(eventHandlers){var args=Array.prototype.slice.call(arguments,1);eventHandlers.forEach(function(handler){"function"==typeof handler&&handler.apply(null,args)})}},execute:function(cmd,args){this.commands.push({cmd:cmd,args:args}),"show"!==cmd||this.hasInitRequested||this.init()},_checkModuleSupport:function(){return"supports"in HTMLScriptElement?HTMLScriptElement.supports("module"):"noModule"in document.createElement("script")},injectModernBrowserDetector:function(callback){if(!1===this._checkModuleSupport())return callback();var script=document.createElement("script"),blob=new Blob(['try{import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.ap3c.talk.isModernBrowser=true}}catch(e){};'],{type:"text/javascript"});function handleCallback(){callback(),script.remove()}script.src=URL.createObjectURL(blob),script.async=!0,script.type="module",script.onload=handleCallback,""!==ap3c.nonce&&(script.nonce=ap3c.nonce),script.onerror=handleCallback,document.head.appendChild(script)},init:function(){this.hasInitRequested=!0;var config=this.getConfig();config&&config.settings.enabled&&(this.hasScriptInjected||(this.baseAssetPath=(this.captureDomain||config.capture_domain||"https://cdn2l.ink/").replace(/(\/)*$/,"/"),"https://static.ap3stg.com/capture/master/"===this.baseAssetPath&&(this.baseAssetPath="https://static.ap3stg.com/"),this.injectModernBrowserDetector(function(){var script=document.createElement("script"),baseAssetPath=ap3c.talk.baseAssetPath;script.async=!0,ap3c.talk.isModernBrowser?(script.type="module",script.src=baseAssetPath+"talk-widget.js"):(script.type="text/javascript",script.src=baseAssetPath+"polyfills-legacy.js",script.onload=function(){window.System.import(baseAssetPath+"talk-widget-legacy.js")}),document.head.appendChild(script)}),this.hasScriptInjected=!0,void 0!==config.font_urls&&config.font_urls.length&&ap3c.injectCustomFonts(config.font_urls)))},saveConfig:function(config){localStorage.setItem(this.localStorageKey,JSON.stringify(config))},getConfig:function(){try{return JSON.parse(localStorage.getItem(this.localStorageKey))||null}catch(e){return null}},removeConfig:function(){localStorage.removeItem(this.localStorageKey)},removeTalkContact:function(){localStorage.removeItem(this.localStorageContactKey)},setToken:function(token){ap3c.setCookie(token,this.tokenCookieName,this.cookiePath)},getToken:function(){return readCookie(this.tokenCookieName)},removeToken:function(){removeCookie(this.tokenCookieName)},invalidate:function(){this.removeToken()},setVerifiedSession:function(options){var token=options.token,cookiePath=options.cookiePath;token&&(cookiePath&&(this.cookiePath=cookiePath),this.token=token,this.setToken(token),this.notifyEvent("verifiedSessionTokenReceived",{token:token,cookiePath:cookiePath}))},getBrowserTimeZone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(err){return}}},ap3c.addStaticAction=function(key,action){ap3c.staticActions=ap3c.staticActions||[],ap3c.staticActions.push(key),ap3c.staticActionsFuncs=ap3c.staticActionsFuncs||{},ap3c.staticActionsFuncs[key]=action},ap3c.addStaticActionAndProcess=function(key,action){ap3c.addStaticAction(key,action),action.canExecute&&action.canExecute()&&action.execute()},ap3c.checkCookieDomainMatch=function(domain){if(!ap3c.cookieDomains||!domain)return null;for(var i=0;i<ap3c.cookieDomains.length;i++)if(domain.match(ap3c.cookieDomains[i]))return ap3c.cookieDomains[i];return!1},ap3c.checkCurrentDomainMatch=function(cookieDomain){return cookieDomain?!!window.location.href.match(cookieDomain):null},ap3c.hLinks=function(){var c=ap3c.getCookie();if(c)for(var anchors=document.getElementsByTagName("a"),i=0;i<anchors.length;i++){var cookieDomain=ap3c.checkCookieDomainMatch(anchors[i].href);cookieDomain&&!ap3c.checkCurrentDomainMatch(cookieDomain)&&(4<anchors[i].href.indexOf("#")||(anchors[i].href=anchors[i].href+"#ap3c"+c))}},ap3c.gLinks=function(){var c=ap3c.getCookie();if(c)for(var anchors=document.getElementsByTagName("a"),i=0;i<anchors.length;i++){var cookieDomain=ap3c.checkCookieDomainMatch(anchors[i].href);if(cookieDomain&&!ap3c.checkCurrentDomainMatch(cookieDomain))if(4<anchors[i].href.indexOf("?"))anchors[i].href=anchors[i].href+"&ap3c="+c;else{var parts=anchors[i].href.split("#");1<parts.length?anchors[i].href=parts[0]+"?ap3c="+c+"#"+parts[1]:anchors[i].href=anchors[i].href+"?ap3c="+c}}},ap3c.getCookie=function(){var c=document.cookie.match(new RegExp("(^| )ap3c=([^;]+)")),cookie=c&&c[2]||"";return"undefined"===cookie?null:cookie},ap3c.setCookie=function(value,key,path){var _path=path||"/",domain=getCookieDomain()||"",expires=new Date;expires.setFullYear(expires.getFullYear()+1);var cookie=(key||"ap3c").trim()+"="+value+";path="+_path+";expires="+expires.toUTCString();domain&&(cookie+=";domain="+domain),cookie+=";Secure",document.cookie=cookie},ap3c.setKnownSession=function(sessionId){if(ap3c.known_session=sessionId,ap3c.activity=ap3c._activity,ap3c.getContact=ap3c._getContact,ap3c.act){for(var actIdx=0;actIdx<ap3c.act.length;actIdx++)ap3c._activity(ap3c.act[actIdx]);ap3c.act=[]}},ap3c.substituteElem=function(el,replacement){var c,childNodes=[];if(el.childNodes)for(;c=el.childNodes[0];)el.removeChild(c),childNodes.push(c);null==replacement?(replacement=el.cloneNode(!1)).dataset.ap3cReplacement=!0:delete replacement.dataset.ap3cReplacement;for(var i=0;i<childNodes.length;i++)replacement.appendChild(childNodes[i]);return el.parentNode.replaceChild(replacement,el),replacement},"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(serviceWorkerRegistration){serviceWorkerRegistration.pushManager.getSubscription&&serviceWorkerRegistration.pushManager.getSubscription().then(function(subscription){subscription&&(ap3c.existingPushSubscriptionEndpoint=subscription.endpoint)}).catch(function(err){console.log(err)})}).catch(function(err){console.log(err)}),ap3c.setVisitedPagesCookie=function(){for(var parts=document.cookie.split(";"),currentValue=1,i=0;i<parts.length;i++){var cookie=parts[i].trim();if(cookie.startsWith(cookies.PAGES_VISITED_IN_SESSION))currentValue=+cookie.split("=")[1]+1}document.cookie=cookies.PAGES_VISITED_IN_SESSION+"="+currentValue+";path=/"},ap3c.readCurrentState=function(widgets){if(widgets){for(var i=0;i<widgets.length;i++)convertLegacyCookies(widgets[i]);removeCookie("ap3known");var parts=document.cookie.split(";"),ap3Cookies={};for(i=0;i<parts.length;i++){if((cookie=parts[i].trim()).startsWith("ap3")){var keyValue=cookie.split("=");2==keyValue.length&&(ap3Cookies[keyValue[0].trimEnd()]=keyValue[1].trimStart())}}var state={IS_KNOWN_SESSION:isKnownSession()};for(var key in cookies){var cookie;if(cookie=ap3Cookies[cookies[key]]){var widgetIDs=cookie.split(","),parsed={};for(i=0;i<widgetIDs.length;i++)parsed[widgetIDs[i]]=!0;state[key]=parsed}else state[key]={}}return state}},ap3c.setFrequencyCookie=function(key,widgetID,isSessionCookie){var cookie=readCookie(key);if(cookie?cookie.includes(widgetID)||(cookie+=","+widgetID):cookie=widgetID,isSessionCookie)document.cookie=key+"="+cookie+";path=/";else{var expires=new Date;expires.setFullYear(expires.getFullYear()+1),document.cookie=key+"="+cookie+";expires="+expires.toUTCString()+";path=/"}},ap3c.detectTouch=function(){var prefixes=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(query){return!!window.matchMedia(query).matches}(["(",prefixes.join("touch-enabled),("),"heartz",")"].join(""))},ap3c.injectCustomFonts=function(fontUrls){fontUrls.forEach(function(font){if(font&&!document.getElementById(font)){var link=document.createElement("link");link.id=font,link.rel="stylesheet",link.type="text/css",link.href=font,link.media="all",document.head.appendChild(link)}})},ap3c.logError=function(payload,callback){try{var url=ap3c.apiHost+"-/error";jsonFromXhr(url,"POST",payload,function(res){callback&&callback(res)})}catch(err){options&&options.log&&console.error("Error logging an error",err)}},ap3c._activity=function(act,options,callback){if(ap3c.known_session)try{var payload={s:ap3c.known_session,h:ap3c.uniqueID,activity:{activity_id:act.activity_id,attributes:act.attributes}},url=ap3c.apiHost+"-/events/activity";jsonFromXhr(url,"POST",payload,function(res){callback&&callback(res)})}catch(err){options&&options.log&&console.error("Error track activity",err)}},ap3c._getContact=function(fields,callback){if(ap3c.known_session)try{var payload={s:ap3c.known_session,h:ap3c.uniqueID,fields:fields||[]},url=ap3c.apiHost+"-/events/get-capture-contact";jsonFromXhr(url,"POST",payload,function(res){callback&&callback(res)})}catch(err){console.error("Error track activity",err)}};var widgetsAccepted=[];function getShopifyProductCurrentVariantId(){var variantIdFromUrl=getUrlParams(window.location.search).variant,variantIdFromShopify=window.ShopifyAnalytics.meta.selectedVariantId,variantIdByDefault=ap3c.shopifyProductDefaultVariantId;return variantIdFromUrl||variantIdFromShopify||variantIdByDefault}ap3c.track=function(options,callback){var currentTrackKey;if((!ap3c.customConsentToTrack||"true"===readCookie(cookies.CUSTOM_CONSENT_TO_TRACK))&&(options&&options.cw||(currentTrackKey=calcTrackKey(options),ap3c.trackKey!==currentTrackKey))){var now=new Date;try{var loc=window.location.href,params=getUrlParams(window.location.search),hp=loc.split("#ap3c"),ap3ch=1<hp.length?hp[1]:null,payload={s:ap3c.getCookie()||params.ap3c||ap3ch||null,c:options.contactId||params.apcid||null,ac:options.ac||null,fs:options.fs,ei:options.ei||null,cw:options.cw,sh:options.sh,wc:options.wc,ps:options.ps,bc:options.bc,sw:options.sw,ce:options.ce,mg:options.mg,sq:options.sq,e:options.email||params.email||null,p:options.phone||params.phone||null,first:options.first||params.first||null,last:options.last||params.last||null,h:ap3c.uniqueID,u:loc,t:document.title,r:document.referrer,us:params.utm_source,um:params.utm_medium,un:params.utm_campaign,ut:params.utm_term,uc:params.utm_content,l:navigator.language,sx:window.screen.width,sy:window.screen.height,sr:window.devicePixelRatio,pm:options.pm,pl:options.pl||params.pl||null,sub:options.sub||params.sub,pwse:options.pwse||params.pwse||ap3c.existingPushSubscriptionEndpoint,wpbk:options.wpbk||params.wpbk,v:options&&options.v||0,ts:!!ap3c.detectTouch(),id:options.widget_id,ag:!!ap3c.getCookie()||options.accepted,sne:options.skipNonExisting,discount_id:options.discount_id,tk:!!ap3c.enableTalk,rc:options.rc,ottlk:readCookie("ottlk"),ft:options.forTalk,cc:options.cc};if(ap3c.payloadEnrichers)for(var i=0;i<ap3c.payloadEnrichers.length;i++)payload=ap3c.payloadEnrichers[i](payload,options);ap3c.enableTalk&&(payload.tz=ap3c.talk.getBrowserTimeZone());var apiPath=options.apiPath||"-/events/page-event",url=ap3c.apiHost+apiPath;jsonFromXhr(url,"POST",payload,function(res){res.session_id&&(res.known&&ap3c.setKnownSession(res.session_id),ap3c.setCookie(res.session_id),payload.s!==res.session_id&&ap3c.talk.invalidate(),res.gdpr_widget_id&&(document.cookie=res.gdpr_widget_id+"="+res.session_id+";path=/"));if(res.widgets){var data={},localWidgetsData=ap3c.getWidgetsData();try{data=JSON.parse(localWidgetsData)}catch(error){console.log("invalid local widgets data",localWidgetsData)}var expiry=data&&data.expiry||now.getTime()+3e5;ap3c.setLocalStorage(JSON.stringify({expiry:expiry,widgets:res.widgets,enabled_gdpr:res.enabled_gdpr,recaptcha_site_key:res.recaptcha_site_key||ap3c.recaptcha_site_key,service_worker_url:res.service_worker_url||ap3c.service_worker_url,country_code:res.country_code||ap3c.country_code,date_format:res.date_format||ap3c.date_format,field_values:res.field_values||ap3c.field_values,cdn_url:res.cdn_url||ap3c.cdn_url,prioritization:res.prioritization||ap3c.prioritization,page_exclusion:res.page_exclusion||ap3c.page_exclusion})),ap3c.country_code=res.country_code||ap3c.country_code,ap3c.date_format=res.date_format||ap3c.date_format,ap3c.field_values=res.field_values||ap3c.field_values,ap3c.cdn_url=res.cdn_url||ap3c.cdn_url,ap3c.prioritization=res.prioritization||ap3c.prioritization,ap3c.page_exclusion=res.page_exclusion||ap3c.page_exclusion}res.talk&&ap3c.talk.saveConfig(res.talk),callback&&callback(res),options&&options.cw&&"widget_shown"!==options.cw.type&&options.cw.widget_id&&-1===widgetsAccepted.indexOf(options.cw.widget_id)&&widgetsAccepted.push(options.cw.widget_id),options&&options.sh&&options.sh.widget_id&&-1===widgetsAccepted.indexOf(options.sh.widget_id)&&widgetsAccepted.push(options.sh.widget_id),options&&options.sw&&options.sw.widget_id&&-1===widgetsAccepted.indexOf(options.sw.widget_id)&&widgetsAccepted.push(options.sw.widget_id),ap3c.callAfterInit&&(ap3c.callAfterInit.call(),ap3c.callAfterInit=void 0)}),currentTrackKey&&(ap3c.trackKey=currentTrackKey,ap3c.lastVar=options)}catch(e){console.error("Error running Ortto track page",e)}}},ap3c.kbArticleActivity=function(options,callback){if(options.type){"feedback"===options.type&&options.feedback&&!options.feedback_category&&(options.feedback_category="Bug");try{var loc=window.location.href,params=getUrlParams(window.location.search),hp=loc.split("#ap3c"),ap3ch=1<hp.length?hp[1]:null,payload={s:ap3c.getCookie()||params.ap3c||ap3ch||null,h:ap3c.uniqueID,a:window.kbArticleID,u:loc,type:options.type,solved:options.solved,feedback_category:options.feedback_category,feedback:options.feedback},apiPath=options.apiPath||"-/events/kb-activity",url=ap3c.apiHost+apiPath;jsonFromXhr(url,"POST",payload,function(res){callback&&callback(res)})}catch(e){console.error("Error running kb article activity",e)}}},ap3c.submitTrackForm=function(options,callback){ap3c.track({apiPath:"-/events/cw-event",email:options.email,phone:options.phone,first:options.firstName,last:options.lastName,cw:{widget_id:options.widgetId,type:"track_form",shown_on_url:window.location.href,attributes:options.attributes,rc:ap3c.recaptcha}},callback)},ap3c.trackPageVisit=function(options,callback){try{var loc=options.url||window.location.href,params=getUrlParams(window.location.search),hp=loc.split("#ap3c"),ap3ch=1<hp.length?hp[1]:null,payload={s:ap3c.getCookie()||params.ap3c||ap3ch||null,c:options.contactId||params.apcid||null,ac:options.ac||null,fs:options.fs,ei:options.ei||null,e:options.email||params.email||null,p:options.phone||params.phone||null,first:options.first||params.first||null,last:options.last||params.last||null,h:ap3c.uniqueID,u:loc,t:document.title,r:document.referrer,us:params.utm_source,um:params.utm_medium,un:params.utm_campaign,ut:params.utm_term,uc:params.utm_content,l:navigator.language,sx:window.screen.width,sy:window.screen.height,sr:window.devicePixelRatio,sub:options.sub||params.sub,v:options&&options.v||0,ts:!!ap3c.detectTouch(),id:options.widget_id,ag:!!ap3c.getCookie()||options.accepted,sne:options.skipNonExisting},url=ap3c.apiHost+"-/events/page-event";jsonFromXhr(url,"POST",payload,function(res){callback&&callback(res)})}catch(e){console.error("Error running Ortto track page",e)}},ap3c.localStorageKey="ap_capture_widgets",ap3c.getWidgetsData=function(){return localStorage.getItem(ap3c.localStorageKey)},ap3c.removeWidgetsData=function(){localStorage.removeItem(ap3c.localStorageKey)},ap3c.setLocalStorage=function(items){localStorage.setItem(ap3c.localStorageKey,items)},ap3c.clearSession=function(){var domain="";if(ap3c.cookieDomains)for(var i=0;i<ap3c.cookieDomains.length;i++){var d=ap3c.cookieDomains[i];d.startsWith(".")&&(d=d.substr(1)),-1!=window.location.host.indexOf(d)&&(domain=ap3c.cookieDomains[i])}var cookie="ap3c=;expires=Thu, 01 Jan 1970 00:00:00 GMT";domain&&(cookie+=";domain="+domain),document.cookie=cookie,ap3c.removeWidgetsData(),ap3c.talk.removeConfig(),ap3c.talk.removeTalkContact()},ap3c.addWigetAndProcess=function(key,widgetFunc,reprocessEmbeddedForm){ap3c.widgetsFuncs[key]=widgetFunc;try{var data=ap3c.getWidgetsData();if(data){var items=JSON.parse(data),widgets=items.widgets,hasLogo=items.hasLogo,widget=widgets.find(function(val){return val.type==key});if(widget){if(-1!==window.location.href.indexOf(widget.id))return;var state=ap3c.readCurrentState(widgets);if(!widgetFunc.canExecute(widget,state))return;if("form"===key)return void widgetFunc.injectEmbeddableForm(widget,reprocessEmbeddedForm);try{widgetFunc.execute(widget,hasLogo)}catch(err){console.error(err)}if(widget.has_recaptcha&&!document.getElementById("ap3w-recaptcha-"+ap3c.uniqueID)){var onloadCallbackFuncBody="if (document.getElementById('ap3w-recaptcha-v2-"+widget.id+"')){ grecaptcha.render('ap3w-recaptcha-v2-"+widget.id+"', { 'sitekey': '"+ap3c.recaptcha_site_key+"', 'callback': verifyCallback, }); } ";ap3c.injectRecaptcha(onloadCallbackFuncBody)}}}}catch(e){console.error(e)}},ap3c._processWidgets=function(reprocessEmbeddedForm,options){var now=new Date,_options=options||{callbacks:{}};try{var data=ap3c.getWidgetsData();if(data){var item=JSON.parse(data);if(now.getTime()<item.expiry){if(_widgets=item.widgets,ap3c.recaptcha_site_key=item.recaptcha_site_key,ap3c.service_worker_url=item.service_worker_url,ap3c.country_code=item.country_code,ap3c.date_format=item.date_format,ap3c.field_values=item.field_values,ap3c.cdn_url=item.cdn_url,ap3c.prioritization=item.prioritization,ap3c.page_exclusion=item.page_exclusion,reprocessEmbeddedForm)var _widgets=item.widgets.filter(function(w){return"form"===w.type||"tracked-form"===w.type});return ap3c._runWidgets(_widgets,item.hasLogo,reprocessEmbeddedForm),void("function"==typeof _options.callbacks.onDone&&_options.callbacks.onDone())}ap3c.removeWidgetsData(),ap3c.talk.removeConfig()}var url=ap3c.apiHost+"-/widgets/get",loc=window.location.href,params=getUrlParams(window.location.search),hp=loc.split("#ap3c"),ap3ch=1<hp.length?hp[1]:null,payload={s:ap3c.getCookie()||params.ap3c||ap3ch||null,c:params.apcid||null,e:params.email||null,p:params.phone||null,h:ap3c.uniqueID,pwse:ap3c.existingPushSubscriptionEndpoint,tk:!!ap3c.enableTalk,tt:ap3c.talk.getToken()||null,u:loc,ottlk:readCookie("ottlk")};ap3c.enableTalk&&(payload.tz=ap3c.talk.getBrowserTimeZone()),jsonFromXhr(url,"POST",payload||{},function(resp){var widgets=resp.widgets||[],hasLogo=resp.has_logo;resp.session_id&&(resp.known&&ap3c.setKnownSession(resp.session_id),ap3c.setCookie(resp.session_id),payload.s!==resp.session_id&&ap3c.talk.invalidate());if(ap3c.setLocalStorage(JSON.stringify({expiry:now.getTime()+3e5,widgets:widgets,hasLogo:hasLogo,enabled_gdpr:resp.enabled_gdpr,recaptcha_site_key:resp.recaptcha_site_key,service_worker_url:resp.service_worker_url,country_code:resp.country_code,date_format:resp.date_format,field_values:resp.field_values||{},cdn_url:resp.cdn_url,prioritization:resp.prioritization,page_exclusion:resp.page_exclusion})),resp.talk&&ap3c.talk.saveConfig(resp.talk),_widgets=widgets,reprocessEmbeddedForm)var _widgets=widgets.filter(function(w){return"form"===w.type||"tracked-form"===w.type});ap3c.recaptcha_site_key=resp.recaptcha_site_key,ap3c.service_worker_url=resp.service_worker_url,ap3c.country_code=resp.country_code,ap3c.date_format=resp.date_format,ap3c.field_values=resp.field_values||{},ap3c.cdn_url=resp.cdn_url,ap3c.prioritization=resp.prioritization,ap3c.page_exclusion=resp.page_exclusion,ap3c._runWidgets(_widgets,hasLogo,reprocessEmbeddedForm),"function"==typeof _options.callbacks.onDone&&_options.callbacks.onDone()})}catch(e){console.error(e)}},ap3c._runWidgets=function(widgets,hasLogo,reprocessEmbeddedForm){if(!isPageFilterValid(ap3c.page_exclusion)&&widgets&&0!==widgets.length){var state=ap3c.readCurrentState(widgets),hasRecaptcha=!1,needLoadJQuery=!1,onloadCallbackFuncBody="",nonFormWidgetsToBeExecutedInPriority=[];if(widgets.forEach(function(widget){if(-1===window.location.pathname.indexOf(widget.id))if(ap3c.widgetsFuncs[widget.type]){if(ap3c.widgetsFuncs[widget.type].canExecute(widget,state)){var hasTrigger=!1;if("tracked-form"===widget.type)return ap3c.__jq?void(ap3c.widgetsFuncs["tracked-form"].canExecute(widget)&&ap3c.widgetsFuncs["tracked-form"].execute(widget,!1)):(needLoadJQuery=!0,void(ap3c.trackedFormWidgets[widget.id]||(ap3c.trackedFormWidgets[widget.id]=widget)));if("form"===widget.type){var resp=ap3c.widgetsFuncs[widget.type].injectEmbeddableForm(widget,reprocessEmbeddedForm);return resp=resp||{},hasRecaptcha=hasRecaptcha||resp._hasRecaptcha,void(-1===onloadCallbackFuncBody.indexOf(widget.id)&&(onloadCallbackFuncBody+=resp._onloadCallbackFuncBody||""))}if(widget&&widget.has_recaptcha){var isShowOnClick=widget.trigger&&"click"===widget.trigger.selection||widget.when&&"click"===widget.when.selection;isShowOnClick&&(widget.trigger&&"click"===widget.trigger.selection?document.querySelector(widget.trigger.value)&&(nonFormWidgetsToBeExecutedInPriority.push(widget),hasTrigger=!0):widget.when&&"click"===widget.when.selection&&document.querySelector(widget.when.value)&&(nonFormWidgetsToBeExecutedInPriority.push(widget),hasTrigger=!0)),(!isShowOnClick||isShowOnClick&&hasTrigger)&&(hasRecaptcha=!0,-1===onloadCallbackFuncBody.indexOf(widget.id)&&(onloadCallbackFuncBody+="if (document.getElementById('ap3w-recaptcha-required-"+widget.id+"')) {var allForms = document.querySelectorAll('#ap3w-recaptcha-required-"+widget.id+"');\n for (var i=0; i < allForms.length; i++) {allForms[i].style.display='none';}}\n if (document.getElementById('ap3w-recaptcha-v2-"+widget.id+"')){ var allForms = document.querySelectorAll('#ap3w-recaptcha-v2-"+widget.id+"');\n for (var i=0; i < allForms.length; i++) { grecaptcha.render(allForms[i], { 'sitekey': '"+ap3c.recaptcha_site_key+"', 'callback': verifyCallback})}\n} "))}widget.push_permissions&&ap3c.existingPushSubscriptionEndpoint||hasTrigger||nonFormWidgetsToBeExecutedInPriority.push(widget)}}else console.warn("Missing widget:",widget.type)}),ap3c.prioritization)if(nonFormWidgetsToBeExecutedInPriority.sort(function(a,b){return a.attached_to_journey&&!b.attached_to_journey?-1:!a.attached_to_journey&&b.attached_to_journey?1:a.priority-b.priority}),0<nonFormWidgetsToBeExecutedInPriority.length&&0<nonFormWidgetsToBeExecutedInPriority[0].priority){var widgetToBeShown=nonFormWidgetsToBeExecutedInPriority[0];try{ap3c.widgetsFuncs[widgetToBeShown.type].execute(widgetToBeShown,hasLogo)}catch(err){console.error(err)}}else nonFormWidgetsToBeExecutedInPriority.forEach(function(widget){widget.priority=null;try{ap3c.widgetsFuncs[widget.type].execute(widget,hasLogo)}catch(err){console.error(err)}});else nonFormWidgetsToBeExecutedInPriority.forEach(function(widget){widget.priority=null;try{ap3c.widgetsFuncs[widget.type].execute(widget,hasLogo)}catch(err){console.error(err)}});needLoadJQuery&&ap3c.injectjQuery(),hasRecaptcha&&!document.getElementById("ap3w-recaptcha-"+ap3c.uniqueID)&&ap3c.injectRecaptcha(onloadCallbackFuncBody),document.body.addEventListener("keydown",function(e){if("Escape"==e.key){var activeElement=document.activeElement;"INPUT"===activeElement.tagName||"TEXTAREA"===activeElement.tagName||"SELECT"===activeElement.tagName||"BUTTON"===activeElement.tagName||"IFRAME"===activeElement.tagName||activeElement.isContentEditable||"A"===activeElement.tagName&&activeElement.hasAttribute("href")||activeElement.hasAttribute("tabindex")||ap3c._generalWidget.hideAllWidgets(!0)}})}},ap3c.injectRecaptcha=function(onloadCallbackFuncBody){var callbackScript=document.createElement("script");callbackScript.innerHTML=' var verifyCallback = function(response) { ap3c.recaptcha = response; var requiredText=document.getElementsByClassName("ap3w-recaptcha-required")&&document.getElementsByClassName("ap3w-recaptcha-required")[0]; if(requiredText){requiredText.style.display="none";} }; var recaptchaOnloadCallback = function () { '+onloadCallbackFuncBody+" }; ",document.head.appendChild(callbackScript);var script=document.createElement("script");script.id="ap3w-recaptcha-"+ap3c.uniqueID,script.src="https://www.google.com/recaptcha/api.js?onload=recaptchaOnloadCallback&render=explicit",script.async=!0,script.defer=!0,document.head.appendChild(script)},ap3c.injectjQuery=function(){if(0<Object.keys(ap3c.trackedFormWidgets).length&&!ap3c.__jq){var script=document.createElement("script");script.src="https://code.jquery.com/jquery-1.12.4.min.js",script.addEventListener("load",function(){for(var id in ap3c.__jq=window.jQuery.noConflict(!0),ap3c.trackedFormWidgets){ap3c.widgetsFuncs["tracked-form"].canExecute(ap3c.trackedFormWidgets[id])&&ap3c.widgetsFuncs["tracked-form"].execute(ap3c.trackedFormWidgets[id],!1)}}),document.head.appendChild(script)}},ap3c.getFormFieldsData=function(widget,inputClassName,selectedOptions,container){var isEmbeddableForm="ap3w-form-input"===inputClassName,formFields=container.getElementsByClassName(inputClassName),fields=[];selectedOptions=selectedOptions||[];for(var index=0;index<formFields.length;index++){var formSelectionRequired,value=0<formFields[index].getElementsByTagName("input").length&&formFields[index].getElementsByTagName("input")[0].value;if(0<formFields[index].getElementsByTagName("input").length){var areaCodeInput,phoneNumberInput;if("number"===getFieldType(formFields[index].getElementsByTagName("input")[0])&&(value="any"===formFields[index].getElementsByTagName("input")[0].step?parseInt(+formFields[index].getElementsByTagName("input")[0].value*DECIMAL_MULTIPLIER):+formFields[index].getElementsByTagName("input")[0].value),"checkbox"===formFields[index].getElementsByTagName("input")[0].type&&(value=formFields[index].getElementsByTagName("input")[0].checked),"tel"===formFields[index].getElementsByTagName("input")[formFields[index].getElementsByTagName("input").length-1].type||formFields[index].getElementsByTagName("input")[0].lastElementChild&&"tel"===formFields[index].getElementsByTagName("input")[0].lastElementChild.type)phoneNumberInput=isEmbeddableForm?(areaCodeInput=document.getElementById("ap3w-input-areacode-"+widget.id),document.getElementById("ap3w-input-phone-"+widget.id)):(areaCodeInput=formFields[index].getElementsByClassName("ap3w-input-areacode")&&formFields[index].getElementsByClassName("ap3w-input-areacode")[0],formFields[index].getElementsByClassName("ap3w-input-phone")&&formFields[index].getElementsByClassName("ap3w-input-phone")[0]),value=areaCodeInput&&areaCodeInput.value&&""!==areaCodeInput.value?0===areaCodeInput.value.indexOf("+")?{c:areaCodeInput.value,n:phoneNumberInput.value}:{c:"+"+areaCodeInput.value,n:phoneNumberInput.value}:{n:phoneNumberInput.value};var field=formFields[index].getElementsByTagName("input")[0];if("date"===getFieldType(field)){var dateString=formFields[index].getElementsByTagName("input")[0].value;if(dateString)value={year:+dateString.substr(0,4),month:+dateString.substr(5,2),day:+dateString.substr(8,2)};else value=null}if("datetime-local"===formFields[index].getElementsByTagName("input")[0].type){var inputDate=formFields[index].getElementsByTagName("input")[0].value;if(inputDate)value=new Date(inputDate).toISOString();else value=null}}if(-1!==formFields[index].lastElementChild.className.indexOf("ap3w-input-select-list")||-1!==formFields[index].lastElementChild.className.indexOf("ap3w-form-input-select-list")){if(isEmbeddableForm)var listId=formFields[index].lastElementChild.dataset.newListId;else listId=formFields[index].lastElementChild.dataset.listId;value=selectedOptions&&selectedOptions[listId]&&selectedOptions[listId].length?selectedOptions[listId]:-1!==formFields[index].lastElementChild.dataset.selectType.indexOf("multi_select")?[]:null}if(formFields[index].getElementsByClassName("ap3w-form-input-select-unstyled")&&0<formFields[index].getElementsByClassName("ap3w-form-input-select-unstyled").length){var selectNode=formFields[index].getElementsByClassName("ap3w-form-input-select-unstyled")[0],_selectedOpts=[];if((selectedOptions=selectNode.selectedOptions)&&selectedOptions.length)for(var i=0;i<selectedOptions.length;i++)_selectedOpts.push(selectedOptions[i].value);value=_selectedOpts,selectNode.multiple||(value=_selectedOpts[0])}0<formFields[index].getElementsByTagName("textarea").length&&(value=formFields[index].getElementsByTagName("textarea")[0].value),formSelectionRequired=isEmbeddableForm?formFields[index].lastElementChild.dataset.required:formFields[index].lastElementChild.dataset.fieldRequired,fields.push({field_id:formFields[index].dataset.fieldId,value:value,merge_strategy:formFields[index].dataset.mergeStrategy,required:formSelectionRequired})}return fields},ap3c._trackedForm={localStorageKey:AP3_WIDGETS_PREFIX,canExecute:function(widget,state){return function(widget,state){if(widget.page.selection&&"any"===widget.page.selection)return!0;var _isPageFilterValid=isPageFilterValid(widget.page.filter);return"exclude"===widget.page.selection?!_isPageFilterValid:_isPageFilterValid}(widget)},replayEvent:function(event,type,originalElem){if("submit"===type){var submitButton=originalElem.querySelector('input[type="submit"],button[type="submit"]');if(submitButton&&submitButton.click&&"function"==typeof submitButton.click)return void submitButton.click();if(originalElem&&originalElem.submit&&"function"==typeof originalElem.submit)return void originalElem.submit()}else if("click"===type&&originalElem&&originalElem.click&&"function"==typeof originalElem.click)return void originalElem.click();if("submit"===type&&!originalElem.onsubmit&&!originalElem.submit&&originalElem.action){var serialized=ap3c.__jq(originalElem).serialize();window.location.replace(originalElem.action+"?"+serialized)}var newEvent,excludedEvents={cancelBubble:!0,composed:!0,currentTarget:!0,deepPath:!0,defaultPrevented:!0,eventPhase:!0,explicitOriginalTarget:!0,originalTarget:!0,returnValue:!0,srcElement:!0,scoped:!0,target:!0,type:!0,timeStamp:!0,isTrusted:!0},EventClass=event.constructor||Event;EventClass===Object&&(EventClass=Event);var opts={view:event.view||window,bubbles:event.bubbles||!0,cancelable:event.cancelable||!0};for(var k in event){var v=event[k];excludedEvents[k]||(opts[k]=v)}try{newEvent=new EventClass(event.type,opts)}catch(err){(newEvent=document.createEvent("Event")).initEvent(type,!0,!1)}return originalElem.dispatchEvent(newEvent)},execute:function(widget,hasLogo){var isWebflow=!!window.Webflow,isUnbounce=!!window.ub,isThematic="https://getthematic.com"===window.location.origin,compatibleMode=isWebflow||isUnbounce||isThematic||widget.compatible,replay=this.replayEvent.bind(this),injectFormSubmissionInterception=function(forms,widget){var f=void 0;for(var hash in forms){var currentForm=forms[hash];hash!==widget.tracked_form.hash&&ap3c.Sha256.hash(currentForm.fingerprint.replace(HIDDEN_FIELDS_REGEX,HIDDEN_FIELDS_SUBSTITUTION))!==ap3c.Sha256.hash(widget.tracked_form.fingerprint.replace(HIDDEN_FIELDS_REGEX,HIDDEN_FIELDS_SUBSTITUTION))||(f=forms[hash])}if(f)for(var hasSubmitted=!1,i=0;i<f.elements.length;i++){var _f=ap3c.__jq(f.elements[i]),fClassName=_f.attr("class")||"",fId=_f.attr("id")||"",useSimpleListener=compatibleMode||-1!==fClassName.indexOf("wpcf7")||-1!==fId.indexOf("gform_");_f.find("input[id]:not([name])").each(function(){var field=ap3c.__jq(this);return field.attr("name",field.attr("id"))});for(var buttons=_f.find("input[type=button], button, #mktFrmSubmit").filter("[type!=reset]").filter("[type!=submit]").toArray()||[],oldForm=f.elements[i],dateFieldsName={},emailFieldName=void 0,emailVal=void 0,j=0;j<f.fields.length;j++)"date"===f.fields[j].type||"date"===f.fields[j].name||"datetime-local"===f.fields[j].type?f.fields[j].name&&(dateFieldsName[f.fields[j].name]=!0):"email"!==f.fields[j].type&&"email"!==f.fields[j].name&&"regular_Email"!==f.fields[j].guess||(emailFieldName=f.fields[j].name);if(useSimpleListener)ap3c.__jq(oldForm).on("submit",function(e){for(var apPayload=ap3c.__jq(e.target).serializeArray(),k=0;k<apPayload.length;k++)if(dateFieldsName[apPayload[k].name]&&apPayload[k].value)try{apPayload[k].value=new Date(apPayload[k].value).toISOString()}catch(e){}else emailFieldName&&apPayload[k].name===emailFieldName&&(emailVal=apPayload[k].value);ap3c.track({apiPath:"-/events/cw-event",email:emailVal,cw:{widget_id:widget.id,type:"track_form",shown_on_url:window.location.href,attributes:apPayload}})});else{if(oldForm.dataset&&oldForm.dataset.ap3cReplacement)continue;var newForm=ap3c.substituteElem(f.elements[i]);newForm.removeAttribute("onsubmit"),newForm.onsubmit=function(event){if(!hasSubmitted){hasSubmitted=!0,event.preventDefault(),event.stopPropagation();for(var apPayload=ap3c.__jq(event.target).serializeArray(),k=0;k<apPayload.length;k++)if(dateFieldsName[apPayload[k].name]&&apPayload[k].value)try{apPayload[k].value=new Date(apPayload[k].value).toISOString()}catch(e){}else emailFieldName&&apPayload[k].name===emailFieldName&&(emailVal=apPayload[k].value);return ap3c.track({apiPath:"-/events/cw-event",email:emailVal,cw:{widget_id:widget.id,type:"track_form",shown_on_url:window.location.href,attributes:apPayload}},function(){hasSubmitted=!1,"redirect-workflow"===widget.workflow&&widget.redirect_url?widget.redirect_url.startsWith("http")?window.location.replace(widget.redirect_url):window.location.replace("https://"+widget.redirect_url):(oldForm=ap3c.substituteElem(newForm,oldForm),replay(event,"submit",oldForm))}),!1}};for(j=0;j<buttons.length;j++){var oldButton=buttons[j],newButton=ap3c.substituteElem(buttons[j]);newButton.removeAttribute("onclick"),newButton.onclick=function(event){if(!hasSubmitted){hasSubmitted=!0,event.preventDefault(),event.stopPropagation();var apPayload=ap3c.__jq(newForm).serializeArray();return ap3c.track({apiPath:"-/events/cw-event",email:emailVal,cw:{widget_id:widget.id,type:"track_form",shown_on_url:window.location.href,attributes:apPayload}},function(){hasSubmitted=!1,"redirect-workflow"===widget.workflow&&widget.redirect_url?window.location.replace(widget.redirect_url):(ap3c.substituteElem(newButton,oldButton),replay(event,"click",oldButton))}),!1}}}}}};if("loading"===document.readyState)document.addEventListener("DOMContentLoaded",function(){var forms=ap3c.scanForm(window);injectFormSubmissionInterception(forms,widget)});else{var forms=ap3c.scanForm(window);injectFormSubmissionInterception(forms,widget)}}},ap3c._generalWidget={countdownInterval:void 0,ttl:36e5,localStorageKey:AP3_WIDGETS_PREFIX,canExecute:function(widget,state){if(!ap3c.disableWidgets&&"form"===widget.type)return!0;var widgetIdParam=getUrlParams(window.location.search)[urlParamKeys.AP_WIDGET];if("prompt"===widget.type&&!isNotificationSupported())return!1;if(widgetIdParam===widget.id)return!0;return function(widget,state){if(ap3c.disableWidgets||!widget.page)return!1;if(widget.trigger&&widget.trigger.selection){var triggerShowOnClick=widget.trigger&&"click"===widget.trigger.selection,showBasedOnFrequency=!0,showBasedOnStop=!0;if(widget.is_gdpr)showBasedOnFrequency=!state.CONVERTED[widget.id]&&!state.DISMISSED[widget.id];else{if(!widget.attach_to_journey)switch(widget.frequency){case frequencies.ALWAYS:break;case frequencies.ONLY_ONCE:showBasedOnFrequency=!state.SHOWN_IN_CURRENT_SESSION[widget.id]&&!state.SHOWN[widget.id]&&!state.DISMISSED[widget.id];break;case frequencies.ONCE_PER_SESSION:showBasedOnFrequency=!state.SHOWN_IN_CURRENT_SESSION[widget.id]}if(widget.trigger.stop&&widget.trigger.stop.length){var stopOnConversion=-1!==widget.trigger.stop.indexOf("convert"),stopOnDismiss=-1!==widget.trigger.stop.indexOf("dismiss");(stopOnConversion&&state.CONVERTED[widget.id]||stopOnDismiss&&state.DISMISSED[widget.id])&&(showBasedOnStop=!1)}}if(!(triggerShowOnClick||showBasedOnFrequency&&showBasedOnStop))return!1}else{var showOnClick=widget.when&&"click"===widget.when.selection;if(showBasedOnFrequency=!0,widget.is_gdpr)showBasedOnFrequency=!state.CONVERTED[widget.id]&&!state.DISMISSED[widget.id];else switch(widget.frequency){case frequencies.ALWAYS:break;case frequencies.UNTIL_KNOWN:showBasedOnFrequency=!state.IS_KNOWN_SESSION;break;case frequencies.UNTIL_DIMISSED_OR_CONVERTED:showBasedOnFrequency=!state.CONVERTED[widget.id]&&!state.DISMISSED[widget.id];break;case frequencies.ONLY_ONCE:showBasedOnFrequency=!state.SHOWN_IN_CURRENT_SESSION[widget.id]&&!state.SHOWN[widget.id]&&!state.DISMISSED[widget.id];break;case frequencies.ONCE_PER_SESSION_OR_UNTIL_CONVERTED:showBasedOnFrequency=!state.CONVERTED[widget.id]&&!state.SHOWN_IN_CURRENT_SESSION[widget.id]}if(!showOnClick&&!showBasedOnFrequency)return!1}if(widget.page.selection&&"any"===widget.page.selection)return!0;var _isPageFilterValid=isPageFilterValid(widget.page.filter);return"exclude"===widget.page.selection?!_isPageFilterValid:_isPageFilterValid}(widget,state)&&function(widget){if(!widget.page)return!1;var _isMobile=ap3c._isMobile();return widget.page.platforms?-1!==widget.page.platforms.indexOf("web_desktop")&&!_isMobile||-1!==widget.page.platforms.indexOf("web_mobile")&&_isMobile:!!(!widget.page.device||"all"===widget.page.device||"mobile"===widget.page.device&&_isMobile||"desktop"===widget.page.device&&!_isMobile)}(widget)},execute:function(widget,hasLogo){var inject=this.inject.bind(this);"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){inject(widget,hasLogo)}):inject(widget,hasLogo)},requestPushPermission:function(widget){function subscribeFunction(_publicKey,widget){navigator.serviceWorker.ready.then(function(registration){return registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(base64String){for(var base64=(base64String+"=".repeat((4-base64String.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),rawData=window.atob(base64),outputArray=new Uint8Array(rawData.length),i=0;i<rawData.length;++i)outputArray[i]=rawData.charCodeAt(i);return outputArray}(_publicKey)})}).then(function(_subscription){_subscription?ap3c.existingPushSubscriptionEndpoint=_subscription.endpoint:(ap3c.logError({url:window.location.href,message:"Push subscription is not defined",log_level:"debug",details:{error:"Push subscription is not defined",error_data:JSON.stringify({subscription:_subscription,widget:widget,publicKey:_publicKey})}}),console.error("Push subscription is not defined",_subscription)),ap3c.track({apiPath:"-/events/push-subscription",sub:_subscription,wpbk:_publicKey,cw:{widget_id:widget.id}})}).catch(function(err){ap3c.logError({url:window.location.href,message:"Push subscription error",log_level:"debug",details:{error:JSON.stringify(err),error_data:JSON.stringify({widget:widget,publicKey:_publicKey})}}),console.error("Push subscription failed",err)})}Notification.requestPermission(function(_permission){"granted"!==_permission&&"denied"!==_permission||ap3c.track({apiPath:"-/events/push-permission",pm:"granted"===_permission,pl:"web",cw:{widget_id:widget.id}},function(res){!function(response,widget){if(response&&response.registration){var publicKey=response.registration.public_key;"serviceWorker"in navigator&&navigator.serviceWorker.register(ap3c.service_worker_url||"/service-worker.js",{scope:"/"}).then(function(registration){return registration.pushManager.getSubscription()}).then(function(_subscription){_subscription?_subscription.unsubscribe().then(function(){subscribeFunction(publicKey,widget)}).catch(function(err){console.err("Push unsubscribe failed",err)}):subscribeFunction(publicKey,widget)}).catch(function(err){ap3c.logError({url:window.location.href,message:"Push service-worker registration error",log_level:"info",details:{error:JSON.stringify(err),error_data:JSON.stringify({widget:widget,publicKey:publicKey,serviceWorkerUrl:ap3c.service_worker_url})}}),console.error(err)})}}(res,widget)})}),ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),ap3c._generalWidget.hide(widget,"do-not-fire-dismiss")},copyToClipboard:function(value){var tempInput=document.createElement("input");tempInput.value=value,tempInput.style.opacity=0,document.body.appendChild(tempInput),tempInput.select(),document.execCommand("copy"),document.body.removeChild(tempInput)},hide:function(widget,templateName){isRunningWithinSDK()?ap3c._generalWidget.show:this.show.bind(this);var shownOnClick=widget.trigger&&"click"===widget.trigger.selection||(!widget.trigger||!widget.trigger.selection)&&widget.when&&"click"===widget.when.selection,widgetContainer=document.getElementById(widget.id);if(templateName)var widgetTemplate=document.getElementById(widget.id+"-"+templateName);else widgetTemplate=widgetContainer&&widgetContainer.children&&widgetContainer.children[0];var videoIframes=document.getElementsByClassName("ap3w-youtube-video");if(videoIframes)for(var i=0;i<videoIframes.length;i++)videoIframes[i].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*");if(widgetTemplate&&widgetTemplate.children&&-1!==widgetTemplate.children[0].className.indexOf("ap3w-wrapper"))for(var wrapperChildren=widgetTemplate.children[0].children,index=0;index<wrapperChildren.length;index++)wrapperChildren[index].classList.length&&wrapperChildren[index].classList.remove("ap3w-show");else if(widgetTemplate&&widgetTemplate.children)for(index=0;index<widgetTemplate.children.length;index++)widgetTemplate.children[index].classList.length&&widgetTemplate.children[index].classList.remove("ap3w-show");setTimeout(function(){widgetTemplate&&(widgetTemplate.style.display="none"),widgetContainer&&(templateName||(widgetContainer.style.display="none"),shownOnClick||widgetContainer.remove())},TIMEOUT),-1===widgetsAccepted.indexOf(widget.id)&&(templateName||(ap3c.setFrequencyCookie(cookies.DISMISSED,widget.id),ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_dismissed",shown_on_url:window.location.href}})))},injectTexts:function(widget){for(var widgetTexts=document.getElementsByClassName("ap3w-text-"+widget.id),textIdx=0;textIdx<widgetTexts.length;textIdx++)for(var aTags=widgetTexts[textIdx].getElementsByTagName("a"),aIdx=0;aIdx<aTags.length;aIdx++)aTags[aIdx].onclick=function(e){e.preventDefault();var href=e.currentTarget.href,rawUrl=e.currentTarget.getAttribute("data-raw-url"),target=e.currentTarget.target;rawUrl===href&&(rawUrl=null),href&&-1===href.indexOf(CLOSE_WIDGET_LINK)&&-1===href.indexOf(PUSH_PERMISSION_LINK)?(ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_url_clicked",shown_on_url:window.location.href,attributes:{clicked:href,raw_url:rawUrl}}},function(){"_blank"===target?window.open(href,"_blank","noopener, noreferrer"):window.location.assign(href)})):href&&-1!==href.indexOf(CLOSE_WIDGET_LINK)?ap3c._generalWidget.hide(widget):href&&-1!==href.indexOf(PUSH_PERMISSION_LINK)?ap3c._generalWidget.requestPushPermission(widget):console.log("unknown event",e)}},hideFloatingButton:function(widget){for(var widgetTemplate=document.getElementById(widget.id+"-button"),widgetTemplateWrapper=widgetTemplate.children[0],index=0;index<widgetTemplateWrapper.children.length;index++)widgetTemplateWrapper.children[index].classList.length&&widgetTemplateWrapper.children[index].classList.remove("ap3w-show");setTimeout(function(){widgetTemplate.style.display="none"},TIMEOUT)},handleCountDown:function(countdown){var timer=countdown.dataset.timer,type=countdown.dataset.type,display=countdown.dataset.display,daysElement=document.querySelector(".ap3w-countdown__time-value-days"),hoursElement=document.querySelector(".ap3w-countdown__time-value-hours"),minsElement=document.querySelector(".ap3w-countdown__time-value-minutes"),secsElement=document.querySelector(".ap3w-countdown__time-value-seconds"),secondsLeft=timer;if("date"===type){var now=new Date,timerDate=new Date(timer);secondsLeft=(timerDate.getTime()-now.getTime())/1e3}this.countdownInterval=setInterval(function(){if((secondsLeft-=1)<1)secsElement&&(secsElement.innerText=0,secsElement.nextElementSibling.innerText="Secs"),clearInterval(this.countdownInterval);else{var timeleftObject=getTimeFromSeconds(secondsLeft,display);if(!secsElement)return void clearInterval(this.countdownInterval);secsElement.innerText=timeleftObject.seconds,1===timeleftObject.seconds?secsElement.nextElementSibling.innerText="Sec":secsElement.nextElementSibling.innerText="Secs",minsElement&&(minsElement.innerText=timeleftObject.minutes,1===timeleftObject.minutes?minsElement.nextElementSibling.innerText="Min":minsElement.nextElementSibling.innerText="Mins"),hoursElement&&(hoursElement.innerText=timeleftObject.hours,1===timeleftObject.hours?hoursElement.nextElementSibling.innerText="Hr":hoursElement.nextElementSibling.innerText="Hrs"),daysElement&&(daysElement.innerText=timeleftObject.days,1===timeleftObject.days?daysElement.nextElementSibling.innerText="Day":daysElement.nextElementSibling.innerText="Days")}},1e3)},injectVideo:function(widget,videoThumb,videoIframe){videoThumb.addEventListener("click",function(event){event.preventDefault(),videoThumb.style.display="none",videoIframe.src=videoThumb.dataset.videosrc,videoIframe.style.display="block",ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_video_watched",shown_on_url:window.location.href,attributes:{watched:videoThumb.dataset.videosrc}}})})},show:function(widget,templateName,delay){if(!isPageFilterValid(ap3c.page_exclusion)){delay=void 0!==delay?delay:10;var hide=this.hide.bind(this),hideFloatingButton=this.hideFloatingButton.bind(this),injectTexts=this.injectTexts.bind(this),show=this.show.bind(this),shouldntFadeIn="bar"===widget.type&&(widget.trigger&&"load"===widget.trigger.selection||!widget.trigger&&widget.when&&"0"===widget.when.value),isSpinToWin="spin-to-win"===templateName;ap3c.injectCustomFonts(widget.font_urls);var widgetContainer=document.getElementById(widget.id);if(templateName)var widgetTemplate=document.getElementById(widget.id+"-"+templateName);else widgetTemplate=widgetContainer.children[0];var thankYouTemplate=document.getElementById(widget.id+"-thank-you")||document.getElementById(widget.id+"-thanks"),feedbackTemplate=document.getElementById(widget.id+"-feedback"),outcomeTemplate=document.getElementById(widget.id+"-outcome"),overlays=document.querySelectorAll(".ap3w-overlay");setTimeout(function(){var state=ap3c.readCurrentState([widget]);if(isSpinToWin||!ap3c.widgetsFuncs[widget.type]||ap3c.widgetsFuncs[widget.type].canExecute(widget,state)){setTimeout(function(){for(var i=0;i<overlays.length;i++)overlays[i].classList.add("ap3w-show");if(thankYouTemplate)if(-1!==thankYouTemplate.children[0].className.indexOf("ap3w-wrapper"))for(i=0;i<thankYouTemplate.children[0].children.length;i++)thankYouTemplate.children[0].children[i].classList.add("ap3w-show");else for(i=0;i<thankYouTemplate.children.length;i++)thankYouTemplate.children[i].classList.add("ap3w-show");if(outcomeTemplate)for(i=0;i<outcomeTemplate.children.length;i++)outcomeTemplate.children[i].classList.add("ap3w-show");if(feedbackTemplate)for(i=0;i<feedbackTemplate.children.length;i++)feedbackTemplate.children[i].classList.add("ap3w-show")}),widgetContainer.style.display="block",widgetTemplate&&(widgetTemplate.style.display="flex",setTimeout(function(){for(var i=0;i<widgetTemplate.children.length;i++){if(widgetTemplate.children[i].classList.length&&(shouldntFadeIn?(widgetTemplate.children[widgetTemplate.children.length-1].classList.add("ap3w-dont-fade-in"),setTimeout(function(){widgetTemplate.children[widgetTemplate.children.length-1].classList.add("ap3w-show"),setTimeout(function(){widgetTemplate.children[widgetTemplate.children.length-1].classList.remove("ap3w-dont-fade-in")},50)})):widgetTemplate.children[i].classList.add("ap3w-show")),-1!==widgetTemplate.children[i].className.indexOf("ap3w-wrapper"))for(var wrapperChildren=widgetTemplate.children[0].children,j=0;j<wrapperChildren.length;j++)wrapperChildren[j].classList.length&&wrapperChildren[j].classList.add("ap3w-show");if(-1!==widgetTemplate.id.indexOf(widget.id+"-spin-to-win")){var spinTheWheelContentDivs=widgetTemplate.getElementsByClassName("ap3w-spin-the-wheel-content");spinTheWheelContentDivs&&spinTheWheelContentDivs.length&&spinTheWheelContentDivs[0].classList.add("ap3w-show")}}}));var floatingButtonTemplate=document.getElementById("ap3w-floating-button-"+widget.id);if(floatingButtonTemplate){floatingButtonTemplate.onmouseover=function(){hideFloatingButton(widget),setTimeout(function(){show(widget,"spin-to-win"),widgetContainer.style.pointerEvents="all";var spinTheWheelContentDivs=widgetContainer.getElementsByClassName("ap3w-spin-the-wheel-content");spinTheWheelContentDivs&&spinTheWheelContentDivs.length&&spinTheWheelContentDivs[0].classList.add("ap3w-show")},2*TIMEOUT)}}var acceptGDPRButton=document.getElementById("ap3w-gdpr-accept-"+widget.id)||widgetContainer.querySelector("#ap3w-gdpr-accept")||document.getElementById("ap3w-button-accept-cookies-"+widget.id);acceptGDPRButton&&(acceptGDPRButton.onclick=function(){ap3c.track({accepted:!0,cw:{widget_id:widget.id,type:"widget_shown",shown_on_url:window.location.href}}),ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),hide(widget,templateName)}),injectTexts(widget);for(var widgetButtons=document.getElementsByClassName("ap3w-button-"+widget.id),buttonIdx=0;buttonIdx<widgetButtons.length;buttonIdx++){for(var aTags=widgetButtons[buttonIdx].getElementsByTagName("a"),aIdx=0;aIdx<aTags.length;aIdx++)aTags[aIdx].onclick=function(e){if(""!==e.href){ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id);var rawUrl=e.target.getAttribute("data-raw-url");rawUrl===e.target.href&&(rawUrl=null),ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_url_clicked",shown_on_url:window.location.href,attributes:{clicked:e.target.href,raw_url:e.target.getAttribute("data-raw-url"),button:event.target.innerText}}})}};var buttonTags=widgetButtons[buttonIdx].getElementsByTagName("button");for(buttonIdx=0;buttonIdx<buttonTags.length;buttonIdx++)if(-1===buttonTags[buttonIdx].id.indexOf("ap3w-button-close")){if(-1!==buttonTags[buttonIdx].id.indexOf("ap3w-button-download-file")){var iOSSafari=ap3c._isIOSSafari();buttonTags[buttonIdx].addEventListener("click",function(e){var fileKey=e.target.getAttribute("data-file-key");if(fileKey){var url=ap3c.apiHost+"-/events/download-widget-file",payload={h:ap3c.uniqueID,file_key:fileKey};jsonFromXhr(url,"POST",payload,function(res){iOSSafari?setTimeout(function(){window.open(res.presigned_url,"_top")},10):window.open(res.presigned_url,"_blank")})}})}buttonTags[buttonIdx].addEventListener("click",function(e){var innerText=e.target.innerText,fileKey=e.target.getAttribute("data-file-key"),fileName="";if(fileKey){var splits=fileKey.split("/");fileName=splits[splits.length-1]}ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),""!==innerText&&ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_url_clicked",shown_on_url:window.location.href,attributes:{button:e.target.innerText,file_downloaded:fileName}}})})}}ap3c.setFrequencyCookie(cookies.SHOWN_IN_CURRENT_SESSION,widget.id,!0),ap3c.setFrequencyCookie(cookies.SHOWN,widget.id),widget.priority&&ap3c.setFrequencyCookie(cookies.PRIORITY,widget.id,!0),isSpinToWin||ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_shown",shown_on_url:window.location.href}})}},[delay])}},showAfterSubmit:function(widget,originalTemplate,targetTemplate,embeddedContainer){var hide=this.hide.bind(this),injectVideo=this.injectVideo.bind(this),handleCountDown=this.handleCountDown.bind(this),requestPushPermission=this.requestPushPermission.bind(this),injectTexts=this.injectTexts.bind(this),setHeight=function(element,height){"form"!==widget.type&&(element.style.maxHeight=height+"px",element.style.height=height+"px")};if(embeddedContainer)originalTemplate=embeddedContainer.parentElement,targetTemplate=embeddedContainer.parentElement.nextElementSibling;else originalTemplate=document.getElementById(widget.id+"-"+originalTemplate),targetTemplate=document.getElementById(widget.id+"-"+targetTemplate);if(-1!==originalTemplate.children[0].className.indexOf("ap3w-wrapper")){var wrapperChildren=originalTemplate.children[0].children,originalHeight=wrapperChildren[wrapperChildren.length-1].offsetHeight;originalTemplate.innerHTML=targetTemplate.innerHTML;var newHeight=originalTemplate.children[0].children[originalTemplate.children[0].children.length-1].offsetHeight;setHeight(originalTemplate.children[0].children[originalTemplate.children[0].children.length-1],originalHeight),setTimeout(function(){setHeight(originalTemplate.children[0].children[originalTemplate.children[0].children.length-1],newHeight)})}else{originalHeight=originalTemplate.children[originalTemplate.children.length-1].offsetHeight;originalTemplate.innerHTML=targetTemplate.innerHTML;newHeight=originalTemplate.children[originalTemplate.children.length-1].offsetHeight;setHeight(originalTemplate.children[originalTemplate.children.length-1],originalHeight),setTimeout(function(){setHeight(originalTemplate.children[originalTemplate.children.length-1],newHeight)})}document.documentElement.scrollIntoView&&"form"===widget.type&&!isInViewport(originalTemplate)&&originalTemplate.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var surveyFeedbackForm=document.getElementById("ap3w-survey-feedback-form-"+widget.id);surveyFeedbackForm&&surveyFeedbackForm.addEventListener("submit",function(event){event.preventDefault();var formSubmitButton=document.getElementById("ap3w-input-submit-"+widget.id),formTextArea=document.getElementById("ap3w-input-textarea-"+widget.id),buttonOnClick=formSubmitButton.dataset.buttonOnClick,buttonSubmitUrl=formSubmitButton.dataset.buttonSubmitUrl;formTextArea.value&&ap3c.track({apiPath:"-/events/survey-feedback",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_survey_feedback",shown_on_url:window.location.href,attributes:{feedback:formTextArea.value}}},function(){"go-to-url"===buttonOnClick?window.location.assign(buttonSubmitUrl):hide(widget,"")})});var videoThumb=document.querySelector("#ap3w-video-thumbnail--inner-"+widget.id),videoIframe=document.querySelector("#ap3w-youtube-video-"+widget.id);videoThumb&&videoIframe&&injectVideo(widget,videoThumb,videoIframe);var pushPermissionButtons=document.querySelectorAll("#ap3w-button-push-permission-"+widget.id);if(pushPermissionButtons)for(var i=0;i<pushPermissionButtons.length;i++){pushPermissionButtons[i].addEventListener("click",function(event){event.preventDefault(),requestPushPermission(widget)})}injectTexts(widget);var countdown=document.querySelector("#ap3w-countdown-"+widget.id);countdown&&handleCountDown(countdown)},spinTheWheel:function(widget,response,widgetContainer){var showAfterSubmit=this.showAfterSubmit.bind(this),needleContainerDiv=document.getElementById("needle-container-"+widget.id),descriptionTextDiv=widgetContainer.querySelector("#selected-ap3w-spin-the-wheel-description-text"),copyCodeButtonDiv=widgetContainer.querySelector("#selected-ap3w-spin-the-wheel-copy-button"),couponDiv=document.getElementById("ap3w-wheel-coupon-"+widget.id),couponCodeText=document.getElementById("ap3w-coupon-code-text-"+widget.id),couponCodeActionDiv=document.getElementById("ap3w-coupon-code-copy-"+widget.id),spinTheWheelContentDivs=widgetContainer.getElementsByClassName("ap3w-spin-the-wheel-content"),rotatingContentDivs=widgetContainer.getElementsByClassName("ap3w-wheel--rotating-content");if(!response||response.error)var description="<h2>There’s been an error. Please try again soon.</h2>";else var code=response.code,discount=response.discount,title=(description=discount&&discount.description,discount&&discount.title),buttonText=discount&&discount.primaryButtonValue,buttonUrl=discount&&discount.primaryButtonUrl,couponActionButtonText=discount&&discount.couponActionButtonText;discount&&code?couponCodeText?couponCodeText.innerText=code:couponDiv.innerText=code:(couponDiv.parentNode.remove(),copyCodeButtonDiv.remove()),copyCodeButtonDiv&&buttonText&&(copyCodeButtonDiv.firstChild.innerText=buttonText),copyCodeButtonDiv&&buttonUrl&©CodeButtonDiv.firstChild.setAttribute("href",buttonUrl),couponCodeActionDiv&&couponActionButtonText&&(couponCodeActionDiv.innerText=couponActionButtonText),description?descriptionTextDiv.firstChild.innerHTML=description:descriptionTextDiv.remove();for(var spinLabels=Array.prototype.slice.call(widgetContainer.getElementsByClassName("ap3w-wheel--coupon-label")),selectedDiscountIndex=0,i=0;i<8;i++)if(spinLabels[i].innerHTML===title){selectedDiscountIndex=i;break}var targetSpin=0-(1800+[0,45,90,135,180,225,270,315][selectedDiscountIndex]),spinDegrees=targetSpin,currentSpin=0;rotatingContentDivs[0].classList.add("ap3w-spinning");var interval=setInterval(function(){if(spinDegrees<0){-.5<spinDegrees?spinDegrees=0:currentSpin=targetSpin-(spinDegrees/=1.005),rotatingContentDivs[0].style.transform="rotate("+currentSpin+"deg)";var fixed45Spin=Math.abs(currentSpin%45);if(START_NEEDLE_MOVE_ANGLE<fixed45Spin&&fixed45Spin<END_NEEDLE_MOVE_ANGLE){var degrees=BASE_NEEDLE_ANGLE+(fixed45Spin-START_NEEDLE_MOVE_ANGLE)*NEEDLE_ANGLE_INCREMENT;needleContainerDiv.style.transform="rotate("+degrees+"deg)"}else needleContainerDiv.style.transform="rotate("+BASE_NEEDLE_ANGLE+"deg)"}else clearInterval(interval),spinTheWheelContentDivs[0].classList.remove("ap3w-show"),setTimeout(function(){rotatingContentDivs[0].classList.remove("ap3w-spinning"),rotatingContentDivs[1].style.transform=rotatingContentDivs[0].style.transform,showAfterSubmit(widget,"spin-to-win","outcome"),spinTheWheelContentDivs[0].classList.add("ap3w-show")},TIMEOUT)},5)},injectEmbeddableForm:function(widget,reprocessEmbeddedForm){var ttl=this.ttl,selectedOptions={},showAfterSubmit=this.showAfterSubmit.bind(this),getFormFieldsData=ap3c.getFormFieldsData.bind(this),hasRecaptcha=!1,onloadCallbackFuncBody="";ap3c.injectCustomFonts(widget.font_urls);var embeddableForms=document.querySelectorAll("#ap3w-embeddable-form-"+widget.id);if(embeddableForms&&embeddableForms.length){widget&&widget.has_recaptcha&&(hasRecaptcha=!0,onloadCallbackFuncBody+="if (document.getElementById('ap3w-recaptcha-required-"+widget.id+"')) {var allForms = document.querySelectorAll('#ap3w-recaptcha-required-"+widget.id+"');\n for (var i=0; i < allForms.length; i++) {allForms[i].style.display='none';}}\n if (document.getElementById('ap3w-recaptcha-v2-"+widget.id+"')){ var allForms = document.querySelectorAll('#ap3w-recaptcha-v2-"+widget.id+"');\n for (var i=0; i < allForms.length; i++) { grecaptcha.render(allForms[i], { 'sitekey': '"+ap3c.recaptcha_site_key+"', 'callback': verifyCallback})}\n} ");for(var formIndex=0;formIndex<embeddableForms.length;formIndex++){for(var embeddableForm=embeddableForms[formIndex],isUnstyled="style"!==embeddableForm.firstElementChild.nodeName.toLowerCase(),inputs=embeddableForm.querySelectorAll("input,textarea,select"),i=0;i<inputs.length;i++){var parentEl=inputs[i].closest(".ap3w-form-input")||{},fieldDataAttributes=parentEl.dataset||{},defaultValue=getDefaultValue(fieldDataAttributes.preFillOption,fieldDataAttributes.fieldId,inputs[i]);if(fieldDataAttributes.hideIfValueExists&&fieldDataAttributes.fieldId in(ap3c.field_values||{})&&(parentEl.style.display="none",inputs[i].required&&(inputs[i].required=!1)),fieldDataAttributes.visibility===visibilityOptionIds.HIDE_ON_PRE_FILL&&defaultValue&&(parentEl.style.display="none"),"checkbox"===inputs[i].type&&defaultValue)inputs[i].checked=defaultValue;else if("select-multiple"===inputs[i].type&&defaultValue)for(var j=0;j<inputs[i].children.length;j++)-1!==defaultValue.split(",").indexOf(inputs[i].children[j].value)&&(inputs[i].children[j].selected=!0);else defaultValue&&(inputs[i].value=defaultValue);"tel"===inputs[i].type&&inputs[i].addEventListener("input",function(){this.value=this.value.replace(/[^0-9+]/g,"");var areaCodeInput=embeddableForm.querySelector("#ap3w-input-areacode-"+widget.id);if(areaCodeInput)if(this.value){areaCodeInput.required=!0;var countryCode=areaCodeInput.value.replace("+",""),maxLength=AP_MAX_PHONE_WIDTH_MAP[countryCode];this.maxLength=maxLength||15}else areaCodeInput.required=!1,this.maxLength=15})}var allDescendants=embeddableForm.getElementsByTagName("*");if(!isUnstyled&&allDescendants&&allDescendants.length)for(j=0;j<allDescendants.length;j++){var descendant=allDescendants[j];if(descendant.classList&&descendant.classList.length)for(var k=0;k<descendant.classList.length;k++)-1===descendant.classList[k].indexOf("ap3w")&&descendant.classList.remove(descendant.classList[k])}var inputSelectLists=embeddableForm.querySelectorAll("#ap3w-input-select-list-"+widget.id);if(inputSelectLists&&inputSelectLists.length)for(j=0;j<inputSelectLists.length;j++){var selectList=inputSelectLists[j],randomId=Math.random().toString(36).slice(-10),selectListId=selectList.dataset.listId+randomId;selectList.dataset.newListId=selectListId;var selectFields=selectList.children,selectListContainer=selectList.parentNode;if(!isUnstyled&&3!==selectListContainer.children.length)for(k=0;k<selectListContainer.children.length;k++)selectListContainer.children[k].className&&-1!==selectListContainer.children[k].className.indexOf("ap3w")||selectListContainer.children[k].remove();if(selectFields&&selectFields.length)for(var selectFieldIndex=0;selectFieldIndex<selectFields.length;selectFieldIndex++)populateSelectOptions(selectList,selectFields[selectFieldIndex],selectedOptions,!0),selectFields[selectFieldIndex].addEventListener("click",function(event){var clickedOption=event.target.closest(".ap3w-form-input-select-option"),clickedValue=clickedOption.dataset.value,selectList=clickedOption.parentElement,selectListTrigger=selectList.previousElementSibling,triggerPlaceholderText=selectListTrigger.dataset.placeholder,selectListId=selectList.dataset.newListId;"multi_select"===selectList.dataset.selectType?(selectedOptions[selectListId]?-1===selectedOptions[selectListId].indexOf(clickedValue)?(selectedOptions[selectListId].push(clickedValue),clickedOption.firstElementChild.checked=!0,clickedOption.classList.add("ap3w-form-input-select-option-selected")):(selectedOptions[selectListId].splice(selectedOptions[selectListId].indexOf(clickedValue),1),clickedOption.firstElementChild.checked=!1,clickedOption.classList.remove("ap3w-form-input-select-option-selected")):(selectedOptions[selectListId]=[clickedValue],clickedOption.firstElementChild.checked=!0,clickedOption.classList.add("ap3w-form-input-select-option-selected")),selectedOptions[selectListId].length?(selectListTrigger.innerText=selectedOptions[selectListId].join(", "),selectListTrigger.value=selectedOptions[selectListId]):(selectListTrigger.innerText=triggerPlaceholderText,selectListTrigger.value=triggerPlaceholderText)):(selectedOptions[selectListId]=clickedValue,selectList.classList.add("ap3w-form-input-select-list-hide"),selectListTrigger.innerText=selectedOptions[selectListId],selectListTrigger.value=selectedOptions[selectListId])})}var selectButtons=embeddableForm.getElementsByClassName("ap3w-form-input-select-button");if(selectButtons)for(i=0;i<selectButtons.length;i++){selectButtons[i].onclick=function(event){var selectLists=embeddableForm.getElementsByClassName("ap3w-form-input-select-list");if(-1!==event.target.className.indexOf("ap3w-form-input-select-button"))event.target.nextElementSibling&&event.target.nextElementSibling.classList.toggle("ap3w-form-input-select-list-hide");else if(!event.target.closest(".ap3w-form-input-select-option")&&selectLists&&selectLists.length)for(var i=0;i<selectLists.length;i++)selectLists[i].classList.add("ap3w-form-input-select-list-hide")}}embeddableForm.onsubmit=function(event){if(event.preventDefault(),widget.has_recaptcha&&!ap3c.recaptcha&&document.getElementById("ap3w-recaptcha-required-"+widget.id))document.getElementById("ap3w-recaptcha-required-"+widget.id).style.display="block";else{var embeddableForm=event.target,embeddedContainer=embeddableForm.parentElement,emailInput=embeddableForm.querySelector("#ap3w-form-input-email-"+widget.id),phoneInput=embeddableForm.querySelector("#ap3w-input-phone-"+widget.id),areaCodeInput=embeddableForm.querySelector("#ap3w-input-areacode-"+widget.id),firstNameInput=embeddableForm.querySelector('[data-field-id="str::first"] #ap3w-form-input-text-'+widget.id),firstNameValue=void 0;firstNameInput&&firstNameInput.value&&"protect"!==firstNameInput.parentElement.dataset.mergeStrategy&&(firstNameValue=firstNameInput.value).trim&&(firstNameValue=firstNameValue.trim());var lastNameInput=embeddableForm.querySelector('[data-field-id="str::last"] #ap3w-form-input-text-'+widget.id),lastNameValue=void 0;if(lastNameInput&&lastNameInput.value&&"protect"!==lastNameInput.parentElement.dataset.mergeStrategy&&(lastNameValue=lastNameInput.value).trim&&(lastNameValue=lastNameValue.trim()),emailInput||phoneInput){var email=emailInput&&emailInput.value,phone=(areaCodeInput&&areaCodeInput.value||"")+(phoneInput&&phoneInput.value||""),bypassEmail=emailInput&&!1===emailInput.required,bypassPhone=phoneInput&&!1===phoneInput.required;if(email||bypassEmail||phone||bypassPhone){for(var fields=getFormFieldsData(widget,"ap3w-form-input",selectedOptions,embeddableForm),hasEmail=!1,hasPhone=!1,i=0;i<fields.length;i++){if("true"===fields[i].required&&(void 0===fields[i].value||null===fields[i].value||0===fields[i].value.length))return;"str::email"===fields[i].field_id&&(hasEmail=!0),"phn::phone"===fields[i].field_id&&(hasPhone=!0)}if(!hasEmail&&!hasPhone)return;embeddableForm[widget.id]||(ap3c.track({apiPath:"-/events/cw-event",email:email,phone:phone,first:firstNameValue,last:lastNameValue,cw:{widget_id:widget.id,type:"widget_form_submitted",shown_on_url:window.location.href,attributes:fields,rc:ap3c.recaptcha}},function(){ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id);var embedFormButton=embeddableForm.querySelector("#ap3w-form-button-"+widget.id),buttonSubmitUrl=embedFormButton.dataset.buttonSubmitUrl;switch(embedFormButton.dataset.buttonOnClick){case buttonOnClickIds.GO_TO_URL:window.location.assign(buttonSubmitUrl);break;case buttonOnClickIds.THANK_YOU:showAfterSubmit(widget,"form","thank-you",embeddedContainer);break;case buttonOnClickIds.PLAY_VIDYARD_VIDEO:window.parent&&window.parent.postMessage&&window.parent.postMessage("resumePlay","*");break;case buttonOnClickIds.DOWNLOAD_FILE:showAfterSubmit(widget,"form","thank-you",embeddedContainer);var fileKey=embedFormButton.dataset.fileKey;if(fileKey){var url=ap3c.apiHost+"-/events/download-widget-file",payload={h:ap3c.uniqueID,file_key:fileKey},iOSSafari=ap3c._isIOSSafari();jsonFromXhr(url,"POST",payload,function(res){iOSSafari?setTimeout(function(){window.open(res.presigned_url,"_top")},10):window.open(res.presigned_url,"_blank")})}}}),embeddableForm[widget.id]=!0,localStorage.setItem(this.localStorageKey+widget.id,JSON.stringify({expiry:(new Date).getTime()+ttl})))}}}}}if(reprocessEmbeddedForm||ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,type:"widget_shown",shown_on_url:window.location.href}}),widget.has_recaptcha&&window.grecaptcha){var recaptchaRequiredElemIdSelector="#ap3w-recaptcha-required-"+widget.id,recaptchaRequiredElems=document.querySelectorAll(recaptchaRequiredElemIdSelector);if(recaptchaRequiredElems&&recaptchaRequiredElems.length)for(i=0;i<recaptchaRequiredElems.length;i++)recaptchaRequiredElems[i].style.display="none";var recaptchaElemIdSelector="#ap3w-recaptcha-v2-"+widget.id,recaptchaElements=document.querySelectorAll(recaptchaElemIdSelector);if(recaptchaElements&&recaptchaElements.length)for(i=0;i<recaptchaElements.length;i++){var recaptchaElement=recaptchaElements[i];if(recaptchaElement&&0===recaptchaElement.childElementCount)try{window.grecaptcha.render(recaptchaElement,{sitekey:ap3c.recaptcha_site_key,callback:window.verifyCallback})}catch(e){console.log("recaptch render error:",e)}}}}return{_hasRecaptcha:hasRecaptcha,_onloadCallbackFuncBody:onloadCallbackFuncBody}},showWidgetFunction:function(widget){var show=this.show.bind(this),shownWidget=!1;function shouldShowWidget(_widget,_shownWidget,_conditionsMet){if(_shownWidget)return!1;var _rulesObject=_widget.trigger.rules,_conditionsArray=_rulesObject.conditions,_showWhenAllRule="all"===_rulesObject.when&&1<_conditionsArray.length;return!_showWhenAllRule||_showWhenAllRule&&_conditionsMet===_conditionsArray.length}if(widget.trigger&&widget.trigger.selection)if("load"===widget.trigger.selection)show(widget,"",10);else if("click"===widget.trigger.selection)document.addEventListener("click",function(e){e.target.closest(widget.trigger.value)&&show(widget,"",10)});else if("rules"===widget.trigger.selection&&widget.trigger.rules&&widget.trigger.rules.conditions&&widget.trigger.rules.conditions.length)for(var conditionsArray=widget.trigger.rules.conditions,index=0;index<conditionsArray.length;index++){var conditionsMet=0,condition=conditionsArray[index];if("exit"===condition.id)if(void 0!==window.safari){exitIntentCallback=function(e){!e.toElement&&!e.relatedTarget&&e.clientY<10&&(conditionsMet++,document.removeEventListener("mouseout",exitIntentCallback),shouldShowWidget(widget,shownWidget,conditionsMet)&&(show(widget,"",10),shownWidget=!0))};document.addEventListener("mouseout",exitIntentCallback)}else{var exitIntentCallback=function(e){conditionsMet++,document.removeEventListener("mouseleave",exitIntentCallback),shouldShowWidget(widget,shownWidget,conditionsMet)&&(show(widget,"",10),shownWidget=!0)};document.addEventListener("mouseleave",exitIntentCallback)}if("on"===condition.id&&setTimeout(function(){shouldShowWidget(widget,shownWidget,++conditionsMet)&&(show(widget,"",10),shownWidget=!0)},1e3*condition.value),"scroll"===condition.id){var conditionScrollPercent=+condition.value;window.onscroll=function(){if(window&&document.body){var scrollRatio=(window.innerHeight+window.scrollY)/document.body.scrollHeight;conditionScrollPercent<100*scrollRatio&&shouldShowWidget(widget,shownWidget,++conditionsMet)&&(show(widget,"",10),shownWidget=!0)}}}if("pages"===condition.id)+readCookie(cookies.PAGES_VISITED_IN_SESSION)>=+condition.value&&shouldShowWidget(widget,shownWidget,++conditionsMet)&&(show(widget,"",10),shownWidget=!0)}else show(widget,"",2e3);else if(widget.when)if("load"===widget.when.selection)show(widget,"",10);else if("on"===widget.when.selection)show(widget,"",1e3*widget.when.value);else if("click"===widget.when.selection)document.addEventListener("click",function(e){e.target.closest(widget.when.value)&&show(widget,"",10)});else if("scroll"===widget.when.selection)window.onscroll=function(){!shownWidget&&window&&document.body&&(100*((window.innerHeight+window.scrollY)/document.body.scrollHeight)>widget.when.value&&(show(widget,"",10),shownWidget=!0))};else if("exit"===widget.when.selection){if(void 0!==window.safari){exitIntentCallback=function(e){!e.toElement&&!e.relatedTarget&&e.clientY<10&&(document.removeEventListener("mouseout",exitIntentCallback),e.preventDefault(),show(widget,"",10))};document.addEventListener("mouseout",exitIntentCallback)}else{var exitIntentCallback=function(e){document.removeEventListener("mouseleave",exitIntentCallback),e.preventDefault(),show(widget,"",10)};document.addEventListener("mouseleave",exitIntentCallback)}}else show(widget,"",2e3)},inject:function(widget,hasLogo){var showWidgetFunction=this.showWidgetFunction.bind(this),getFormFieldsData=ap3c.getFormFieldsData.bind(this),showAfterSubmit=this.showAfterSubmit.bind(this),spinTheWheel=this.spinTheWheel.bind(this),handleCountDown=this.handleCountDown.bind(this),injectVideo=this.injectVideo.bind(this),ttl=this.ttl,selectedOptions={},hide=this.hide.bind(this),requestPushPermission=this.requestPushPermission.bind(this),copyToClipboard=this.copyToClipboard.bind(this),existingWidgetContainer=document.getElementById(widget.id);if(!existingWidgetContainer){var container=document.getElementsByTagName(widget.use_slot)[0],widgetContainer=document.createElement("div");widgetContainer.innerHTML=widget.html,widgetContainer.firstChild&&(widgetContainer.firstChild.style.bottom=0,widgetContainer.firstChild.style.top=0,widgetContainer.firstChild.style.right=0,widgetContainer.firstChild.style.left=0,widget.is_gdpr&&(widgetContainer.firstChild.style.zIndex=99999)),widget.style&&"top"===widget.style.position?(widgetContainer.style.position="relative",widget.style.sticky&&(widgetContainer.style.position="sticky",widgetContainer.style.top=0),widgetContainer.style.zIndex=AP3_MAX_Z_INDEX):widget.style&&widget.style.sticky&&"bottom"===widget.style.position&&(widgetContainer.style.position="sticky",widgetContainer.style.bottom=0,widgetContainer.style.zIndex=AP3_MAX_Z_INDEX),existingWidgetContainer||container.insertAdjacentElement("afterbegin",widgetContainer),showWidgetFunction(widget);var couponButton=document.getElementById("ap3w-coupon-button-"+widget.id),couponCode=document.getElementById("ap3w-coupon-code-"+widget.id),couponCodeText=document.getElementById("ap3w-coupon-code-text-"+widget.id);couponButton&&couponCode&&couponButton.addEventListener("click",function(event){event.preventDefault();var discountId=event.target.dataset.discountId;discountId&&ap3c.track({apiPath:"-/events/generate-simple-coupon",cw:{widget_id:widget.id,type:"widget_coupon_generated",shown_on_url:window.location.href},discount_id:discountId},function(response){couponCodeText?couponCodeText.innerText=response.code:couponCode.innerText=response.code,localStorage.setItem(ap3c.localStorageKey+widget.id,JSON.stringify({expiry:(new Date).getTime()+ttl})),showAfterSubmit(widget,"greeting","thank-you")})});var submitFormCallback=function(response){response.code&&(couponCodeText?couponCodeText.innerText=response.code:couponCode.innerText=response.code),showAfterSubmit(widget,"greeting","thank-you")};if(couponCode)var discountId=couponCode.dataset.discountId;var form=document.getElementById("ap3w-form-"+widget.id);if(form){for(var inputs=form.querySelectorAll("input,textarea"),i=0;i<inputs.length;i++){var parentEl=inputs[i].closest(".ap3w-input")?inputs[i].closest(".ap3w-input"):{},fieldDataAttributes=parentEl.dataset||{},defaultValue=getDefaultValue(fieldDataAttributes.preFillOption,fieldDataAttributes.fieldId,inputs[i]);fieldDataAttributes.hideIfValueExists&&fieldDataAttributes.fieldId in(ap3c.field_values||{})&&(parentEl.style.display="none",inputs[i].required&&(inputs[i].required=!1)),fieldDataAttributes.visibility===visibilityOptionIds.HIDE_ON_PRE_FILL&&defaultValue&&(parentEl.style.display="none"),"checkbox"===inputs[i].type&&defaultValue?inputs[i].checked=defaultValue:defaultValue&&(inputs[i].value=defaultValue),"tel"===inputs[i].type&&inputs[i].addEventListener("input",function(){if(this.value=this.value.replace(/[^0-9+]/g,""),this.previousElementSibling)if(this.value){this.previousElementSibling.required=!0;var countryCode=this.previousElementSibling.value.replace("+",""),maxLength=AP_MAX_PHONE_WIDTH_MAP[countryCode];this.maxLength=maxLength||15}else this.previousElementSibling.required=!1}),"date"!==getFieldType(inputs[i])&&"datetime-local"!==getFieldType(inputs[i])||(inputs[i].addEventListener("focus",function(){var fieldTypeAttr=this.parentElement.dataset&&this.parentElement.dataset.inputType;this.type=fieldTypeAttr||this.name}),inputs[i].addEventListener("blur",function(){""===this.value&&(this.type="text")}))}form.onsubmit=function(event){if(event.preventDefault(),widget.has_recaptcha&&!ap3c.recaptcha&&document.getElementById("ap3w-recaptcha-required-"+widget.id))document.getElementById("ap3w-recaptcha-required-"+widget.id).style.display="block";else{var emailInput=document.getElementById("ap3w-input-email-"+widget.id),phoneInput=document.getElementById("ap3w-input-phone-"+widget.id),areaCodeInput=document.getElementById("ap3w-input-areacode-"+widget.id),firstNameInput=form.querySelector('[data-field-id="str::first"] #ap3w-input-text-'+widget.id),firstNameValue=void 0;firstNameInput&&firstNameInput.value&&"protect"!==firstNameInput.parentElement.dataset.mergeStrategy&&(firstNameValue=firstNameInput.value).trim&&(firstNameValue=firstNameValue.trim());var lastNameInput=form.querySelector('[data-field-id="str::last"] #ap3w-input-text-'+widget.id),lastNameValue=void 0;lastNameInput&&lastNameInput.value&&"protect"!==lastNameInput.parentElement.dataset.mergeStrategy&&(lastNameValue=lastNameInput.value).trim&&(lastNameValue=lastNameValue.trim());var email=emailInput&&emailInput.value,phone=(areaCodeInput&&areaCodeInput.value||"")+(phoneInput&&phoneInput.value||""),bypassEmail=emailInput&&!1===emailInput.required,bypassPhone=phoneInput&&!1===phoneInput.required;if(email||bypassEmail||phone||bypassPhone){for(var fields=getFormFieldsData(widget,"ap3w-input",selectedOptions,form),hasEmail=!1,hasPhone=!1,i=0;i<fields.length;i++){if("true"===fields[i].required&&(void 0===fields[i].value||0===fields[i].value.length))return;"str::email"===fields[i].field_id&&(hasEmail=!0),"phn::phone"===fields[i].field_id&&(hasPhone=!0)}if(!hasEmail&&!hasPhone)return;var isSpinTheWheel=document.getElementById(widget.id+"-spin-to-win"),formSubmitButton=document.getElementById("ap3w-input-submit-"+widget.id);if(isSpinTheWheel){var baseSpin=0,rotatingContentDivs=widgetContainer.getElementsByClassName("ap3w-wheel--rotating-content"),needleContainerDiv=document.getElementById("needle-container-"+widget.id);emailInput&&(emailInput.disabled=!0),phoneInput&&(phoneInput.disabled=!0),formSubmitButton.value="Spinning...",formSubmitButton.disabled=!0,rotatingContentDivs[0].classList.add("ap3w-spinning");var apiAwaitInterval=setInterval(function(){baseSpin-=11,rotatingContentDivs[0].style.transform="rotate("+baseSpin+"deg)";var fixed45Spin=Math.abs(baseSpin%45);if(START_NEEDLE_MOVE_ANGLE<fixed45Spin&&fixed45Spin<END_NEEDLE_MOVE_ANGLE){var degrees=BASE_NEEDLE_ANGLE+(fixed45Spin-START_NEEDLE_MOVE_ANGLE)*NEEDLE_ANGLE_INCREMENT;needleContainerDiv.style.transform="rotate("+degrees+"deg)"}else needleContainerDiv.style.transform="rotate("+BASE_NEEDLE_ANGLE+"deg)"},5);ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),ap3c.track({apiPath:"-/events/spin-the-wheel",email:email,phone:phone,first:firstNameValue,last:lastNameValue,widget_id:widget.id,cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_spin_submitted",shown_on_url:window.location.href,attributes:fields}},function(response){clearInterval(apiAwaitInterval),spinTheWheel(widget,response,widgetContainer)}),ap3c.track({apiPath:"-/events/cw-event",email:email,first:firstNameValue,last:lastNameValue,cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_form_submitted",shown_on_url:window.location.href,attributes:fields,rc:ap3c.recaptcha}})}else if(discountId)ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),ap3c.track({apiPath:"-/events/cw-event",email:email,phone:phone,first:firstNameValue,last:lastNameValue,cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_form_submitted",shown_on_url:window.location.href,attributes:fields,rc:ap3c.recaptcha},discount_id:discountId},submitFormCallback);else{ap3c.track({apiPath:"-/events/cw-event",email:email,phone:phone,first:firstNameValue,last:lastNameValue,cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_form_submitted",shown_on_url:window.location.href,attributes:fields,rc:ap3c.recaptcha}},function(){var buttonOnClick=formSubmitButton.dataset.buttonOnClick,buttonSubmitUrl=formSubmitButton.dataset.buttonSubmitUrl;if(ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),buttonOnClick===buttonOnClickIds.GO_TO_URL)window.location.assign(buttonSubmitUrl);else if(showAfterSubmit(widget,"greeting","thank-you"),buttonOnClick===buttonOnClickIds.DOWNLOAD_FILE){var fileKey=formSubmitButton.dataset.fileKey;if(fileKey){var url=ap3c.apiHost+"-/events/download-widget-file",payload={h:ap3c.uniqueID,file_key:fileKey},iOSSafari=ap3c._isIOSSafari();jsonFromXhr(url,"POST",payload,function(res){iOSSafari?setTimeout(function(){window.open(res.presigned_url,"_top")},10):window.open(res.presigned_url,"_blank")})}}})}localStorage.setItem(this.localStorageKey+widget.id,JSON.stringify({expiry:(new Date).getTime()+ttl}))}}}}var sayThankYouButton=document.getElementById("ap3w-button-thank-you-"+widget.id);sayThankYouButton&&sayThankYouButton.addEventListener("click",function(event){event.preventDefault(),-1===widgetsAccepted.indexOf(widget.id)&&widgetsAccepted.push(widget.id),showAfterSubmit(widget,"greeting","thank-you")});var pushPermissionButtons=document.querySelectorAll("#ap3w-button-push-permission-"+widget.id);if(pushPermissionButtons)for(i=0;i<pushPermissionButtons.length;i++){pushPermissionButtons[i].addEventListener("click",function(event){event.preventDefault(),requestPushPermission(widget)})}var survey=document.getElementById("ap3w-survey-"+widget.id);if(survey){var lastBtn=null;/Safari/i.test(uA)&&/Apple Computer/.test(vendor)&&(!/Mobi|Android/i.test(uA)||/iPhone OS 15/i.test(uA))&&document.addEventListener("click",function(e){e.target.closest&&(lastBtn=e.target.closest("button, input[type=submit]"))},!0),survey.onsubmit=function(event){if(event.preventDefault(),(null===event.submitter||void 0!==event.submitter)&&/Safari/i.test(uA)&&/Apple Computer/.test(vendor)&&(!/Mobi|Android/i.test(uA)||/iPhone OS 15/i.test(uA))){event=Object.assign({},event,{submitter:event.target.querySelector("button, input[type=button], input[type=image]")});for(var canditates=[document.activeElement,lastBtn],i=0;i<canditates.length;i++){var candidate=canditates[i];candidate&&(candidate.form&&candidate.matches("button, input[type=button], input[type=image]")&&(event=Object.assign({},event,{submitter:candidate})))}}var surveyResponse=event.submitter.dataset.surveyValue||event.submitter.innerText;discountId?ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_survey_responded",shown_on_url:window.location.href,attributes:{response:surveyResponse}},discount_id:discountId},submitFormCallback):(ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_survey_responded",shown_on_url:window.location.href,attributes:{response:surveyResponse}}}),showAfterSubmit(widget,"greeting","thank-you")),ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),localStorage.setItem(this.localStorageKey+widget.id,JSON.stringify({expiry:(new Date).getTime()+ttl}))}}var videoThumb=container.querySelector("#ap3w-video-thumbnail--inner-"+widget.id),videoIframe=container.querySelector("#ap3w-youtube-video-"+widget.id);videoThumb&&videoIframe&&injectVideo(widget,videoThumb,videoIframe);var inputSelectOptions=document.getElementsByClassName("ap3w-input-select-option-"+widget.id);if(inputSelectOptions&&inputSelectOptions.length)for(var j=0;j<inputSelectOptions.length;j++){var selectList=inputSelectOptions[j].parentElement;populateSelectOptions(selectList,inputSelectOptions[j],selectedOptions,!1),inputSelectOptions[j].addEventListener("click",function(event){var clickedOption=event.target.closest(".ap3w-input-select-option"),clickedValue=clickedOption.dataset.value,selectList=clickedOption.parentElement,selectListTrigger=selectList.previousElementSibling,triggerPlaceholderText=selectListTrigger.dataset.placeholder,selectListId=selectList.dataset.listId;"multi_select"===selectList.dataset.selectType?(selectedOptions[selectListId]?-1===selectedOptions[selectListId].indexOf(clickedValue)?(selectedOptions[selectListId].push(clickedValue),clickedOption.firstElementChild.checked=!0,clickedOption.classList.add("ap3w-input-select-option-selected")):(selectedOptions[selectListId].splice(selectedOptions[selectListId].indexOf(clickedValue),1),clickedOption.firstElementChild.checked=!1,clickedOption.classList.remove("ap3w-input-select-option-selected")):(selectedOptions[selectListId]=[clickedValue],clickedOption.firstElementChild.checked=!0,clickedOption.classList.add("ap3w-input-select-option-selected")),selectedOptions[selectListId].length?(selectListTrigger.innerText=selectedOptions[selectListId].join(", "),selectListTrigger.value=selectedOptions[selectListId]):(selectListTrigger.innerText=triggerPlaceholderText,selectListTrigger.value=triggerPlaceholderText)):(selectedOptions[selectListId]=clickedValue,selectList.classList.add("ap3w-input-select-list-hide"),selectListTrigger.innerText=selectedOptions[selectListId],selectListTrigger.value=selectedOptions[selectListId])})}var reaction=document.getElementById("ap3w-reaction-"+widget.id);reaction&&reaction.addEventListener("submit",function(event){event.preventDefault();var submittedReaction=event.submitter.dataset.reaction;discountId?ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_reacted",shown_on_url:window.location.href,attributes:{reaction:submittedReaction,reaction_reason:""}},discount_id:discountId},submitFormCallback):(ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_reacted",shown_on_url:window.location.href,attributes:{reaction:submittedReaction,reaction_reason:""}}}),showAfterSubmit(widget,"greeting","thank-you")),ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),localStorage.setItem(this.localStorageKey+widget.id,JSON.stringify({expiry:(new Date).getTime()+ttl}))});var poweredByAutopilotLogos=document.getElementsByClassName("ap3w-powered-by-autopilot");if(!hasLogo&&poweredByAutopilotLogos&&0<poweredByAutopilotLogos.length)for(i=0;i<poweredByAutopilotLogos.length;i++)poweredByAutopilotLogos[i].remove();var countdown=container.querySelector("#ap3w-countdown-"+widget.id);countdown&&handleCountDown(countdown);var npsRatings=document.querySelectorAll(".ap3w-nps-"+widget.id+"__rating"),npsRatingSubmitButton=document.querySelector(".ap3w-nps-"+widget.id+"__button");if(npsRatings.length)for(i=0;i<npsRatings.length;i++){npsRatings[i].addEventListener("click",function(event){event.preventDefault();var element=event.target;element.classList.toggle("ap3w-nps-"+widget.id+"__rating--selected"),element.classList.remove("ap3w-nps-"+widget.id+"__rating--deselected"),npsRatingSubmitButton.disabled=!element.classList.contains("ap3w-nps-"+widget.id+"__rating--selected");for(var j=0;j<npsRatings.length;j++)element.classList.contains("ap3w-nps-"+widget.id+"__rating--selected")?npsRatings[j]!==element&&(npsRatings[j].classList.remove("ap3w-nps-"+widget.id+"__rating--selected"),npsRatings[j].classList.add("ap3w-nps-"+widget.id+"__rating--deselected")):npsRatings[j].classList.remove("ap3w-nps-"+widget.id+"__rating--deselected")})}npsRatingSubmitButton&&npsRatingSubmitButton.addEventListener("click",function(event){event.preventDefault();var selectedRating=document.querySelector(".ap3w-nps-"+widget.id+"__rating--selected"),rating=Number(selectedRating.innerText);ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_nps_submitted",shown_on_url:window.location.href,attributes:{score:rating}}},function(){var promoterFeedbackMessage=document.querySelector(".ap3w-nps-feedback-"+widget.id+"__message--"+netPromoterScoreThanksVariants.PROMOTER),passiveFeedbackMessage=document.querySelector(".ap3w-nps-feedback-"+widget.id+"__message--"+netPromoterScoreThanksVariants.PASSIVE),detractorFeedbackMessage=document.querySelector(".ap3w-nps-feedback-"+widget.id+"__message--"+netPromoterScoreThanksVariants.DETRACTOR),thanksTemplate=document.getElementById(widget.id+"-thanks"),widgets=thanksTemplate.querySelectorAll(".ap3w-"+widget.type+"-"+widget.id),variantToShow=netPromoterScoreThanksVariants.ANY;rating<=6?(detractorFeedbackMessage.style.display="block",thanksTemplate.querySelector(".nps-thanks-"+netPromoterScoreThanksVariants.DETRACTOR)&&(variantToShow=netPromoterScoreThanksVariants.DETRACTOR)):rating<=8?(passiveFeedbackMessage.style.display="block",thanksTemplate.querySelector(".nps-thanks-"+netPromoterScoreThanksVariants.PASSIVE)&&(variantToShow=netPromoterScoreThanksVariants.PASSIVE)):(promoterFeedbackMessage.style.display="block",thanksTemplate.querySelector(".nps-thanks-"+netPromoterScoreThanksVariants.PROMOTER)&&(variantToShow=netPromoterScoreThanksVariants.PROMOTER));for(var i=0;i<widgets.length;i++)widgets[i].classList.contains("nps-thanks-"+variantToShow)||(widgets[i].previousElementSibling.remove(),widgets[i].remove());showAfterSubmit(widget,"greeting","feedback")})}),document.getElementById(widget.id).addEventListener("click",function(event){var selectLists=document.getElementsByClassName("ap3w-input-select-list");if(event.target.closest("#ap3w-input-select-button-"+widget.id))for(var listId=event.target.closest("#ap3w-input-select-button-"+widget.id).nextElementSibling.dataset.listId,i=0;i<selectLists.length;i++)selectLists[i].dataset.listId!==listId?selectLists[i].classList.add("ap3w-input-select-list-hide"):selectLists[i].classList.toggle("ap3w-input-select-list-hide");else if(!event.target.closest(".ap3w-input-select-option")&&selectLists&&selectLists.length)for(i=0;i<selectLists.length;i++)selectLists[i].classList.add("ap3w-input-select-list-hide");if(event.target.id==="ap3w-coupon-code-copy-"+widget.id){clearInterval(this.countdownInterval);var couponCode=event.target.previousElementSibling&&event.target.previousElementSibling.innerText;couponCode&©ToClipboard(couponCode)}if(event.target.classList.contains("ap3w-nps-feedback-"+widget.id+"__button")){var feedback=document.getElementById("ap3w-nps-feedback-"+widget.id+"__feedback").value;ap3c.track({apiPath:"-/events/nps-answer",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_nps_submitted",shown_on_url:window.location.href,attributes:{answer:feedback}}},function(){showAfterSubmit(widget,"greeting","thanks")})}if(event.target.closest("#ap3w-close-"+widget.id)||event.target.closest("#ap3w-button-close-"+widget.id)||event.target.closest("#ap3w-close-"+widget.id+"--circle")||event.target.closest("#ap3w-close--circle-"+widget.id)||event.target.closest(".ap3w-link-close")||event.target.href&&-1!==event.target.href.indexOf(CLOSE_WIDGET_LINK)&&-1!==event.target.href.indexOf(PUSH_PERMISSION_LINK)){if(event.preventDefault(),document.querySelector(".ap3w-spinning")||(clearInterval(this.countdownInterval),hide(widget,"")),"selected-ap3w-spin-the-wheel-copy-button"===event.target.parentElement.id){clearInterval(this.countdownInterval);var couponDiv=document.getElementById("ap3w-wheel-coupon-"+widget.id),couponCodeText=document.getElementById("ap3w-coupon-code-text-"+widget.id);if(couponCodeText)var spinTheWheelCouponCode=couponCodeText.innerText;else if(couponDiv)spinTheWheelCouponCode=couponDiv.innerText;spinTheWheelCouponCode&©ToClipboard(spinTheWheelCouponCode);var redirectUrl=event.target.getAttribute("href");redirectUrl&&window.location.assign(redirectUrl)}}else event.target.closest(".ap3w-close-gdpr")&&widget.is_gdpr&&(clearInterval(this.countdownInterval),ap3c.setFrequencyCookie(cookies.CONVERTED,widget.id),hide(widget,""))}),ap3c._isIOSWebView()&&replacePlatformLinks(widgetContainer,platforms.IOS),isAndroidWebView()&&replacePlatformLinks(widgetContainer,platforms.ANDROID)}},hideAllWidgets:function(fireEvent){var data={},localWidgetsData=ap3c.getWidgetsData();try{data=JSON.parse(localWidgetsData)}catch(error){console.log("invalid local widgets data",localWidgetsData)}data.widgets.forEach(function(widget){if(widget){var widgetContainer=document.getElementById(widget.id);if(!widgetContainer)return void console.log("widget container not found",widget.id);var widgetTemplate=widgetContainer&&widgetContainer.children&&widgetContainer.children[0],videoIframes=document.getElementsByClassName("ap3w-youtube-video");if(videoIframes)for(var i=0;i<videoIframes.length;i++)videoIframes[i].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*");if(widgetTemplate&&widgetTemplate.children&&-1!==widgetTemplate.children[0].className.indexOf("ap3w-wrapper"))for(var wrapperChildren=widgetTemplate.children[0].children,index=0;index<wrapperChildren.length;index++)wrapperChildren[index].classList.length&&wrapperChildren[index].classList.remove("ap3w-show");else if(widgetTemplate&&widgetTemplate.children)for(index=0;index<widgetTemplate.children.length;index++)widgetTemplate.children[index].classList.length&&widgetTemplate.children[index].classList.remove("ap3w-show");setTimeout(function(){widgetTemplate&&(widgetTemplate.style.display="none"),widgetContainer&&(widgetContainer.style.display="none",widgetContainer.remove()),fireEvent&&ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_dismissed",shown_on_url:window.location.href}})},100)}})}},ap3c._talkWidget=Object.assign(Object.create(ap3c._generalWidget)),ap3c._talkWidget.execute=function(widget){var showWidgetFunction=this.showWidgetFunction.bind(this);this.show.bind(this);showWidgetFunction(widget)},ap3c._talkWidget.show=function(widget,templateName,delay){ap3c.track({apiPath:"-/events/cw-event",cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_shown",shown_on_url:window.location.href}}),setTimeout(function(){var state=ap3c.readCurrentState([widget]);ap3c.talk.execute("notify",{widgetId:widget.id,agent:widget.talk_message_agent,body:widget.talk_message_body,files:widget.talk_message_files,hasShown:!!state.SHOWN[widget.id],hasDismissed:!!state.DISMISSED[widget.id],isLargePreview:!!widget.large_preview}),ap3c.setFrequencyCookie(cookies.SHOWN_IN_CURRENT_SESSION,widget.id,!0),ap3c.setFrequencyCookie(cookies.SHOWN,widget.id)},delay)},ap3c._injectWaitingOnStockWidget=function(widget,localStorageKey,ttl,shouldShow,buildPayload){if("function"!=typeof buildPayload)throw new Error("Invalid buildPayload type");var container=document.getElementsByTagName(widget.use_slot)[0],widgetContainer=document.createElement("div");widgetContainer.innerHTML=widget.html,widgetContainer.firstChild&&widgetContainer.firstChild.style&&(widgetContainer.firstChild.style.bottom=0,widgetContainer.firstChild.style.top=0,widgetContainer.firstChild.style.right=0,widgetContainer.firstChild.style.left=0),container.appendChild(widgetContainer);var data=localStorage.getItem(localStorageKey);data&&(new Date).getTime()<JSON.parse(data).expiry?ap3c._generalWidget.hide(widget,"waiting_on_stock"):!0===shouldShow?ap3c._generalWidget.show(widget):ap3c._generalWidget.hide(widget,"waiting_on_stock");var form=document.getElementById("ap3w-form-"+widget.id);form&&(form.onsubmit=function(event){event.preventDefault();var emailInput=document.getElementById("ap3w-input-email-"+widget.id),phoneInput=document.getElementById("ap3w-input-phone-"+widget.id),email=emailInput&&emailInput.value,phone=phoneInput&&phoneInput.value;if(email){var fields=[{field_id:"str::email",value:email,merge_strategy:"override"}];ap3c.track({apiPath:"-/events/cw-event",email:email,phone:phone,cw:{widget_id:widget.id,shape_id:widget.shape_id,campaign_id:widget.campaign_id,run_id:widget.contact&&widget.contact.run_id,type:"widget_form_submitted",shown_on_url:window.location.href,attributes:fields}})}(email||phone)&&(ap3c.track(buildPayload(email,phone)),localStorage.setItem(localStorageKey,JSON.stringify({expiry:(new Date).getTime()+ttl}))),ap3c._generalWidget.showAfterSubmit(widget,"greeting","thank-you"),emailInput&&(emailInput.value=""),phoneInput&&(phoneInput.value="")},document.getElementById(widget.id).addEventListener("click",function(event){(event.target.closest("#ap3w-close-"+widget.id)||event.target.closest("#ap3w-button-close-"+widget.id)||event.target.closest("#ap3w-close-"+widget.id+"--circle")||event.target.closest("#ap3w-close--circle-"+widget.id)||event.target.closest(".ap3w-link-close")||event.target.href&&-1!==event.target.href.indexOf(CLOSE_WIDGET_LINK)||event.target.href&&-1!==event.target.href.indexOf(PUSH_PERMISSION_LINK))&&(event.preventDefault(),ap3c._generalWidget.hide(widget))}))},ap3c._shopifySubscribeAction={canExecute:function(){return!!window.Shopify},execute:function(){var handleSubscribe=function(){var emailInputs=document.getElementsByName("contact[email]");if(emailInputs&&0<emailInputs.length)for(var i=0;i<emailInputs.length;i++)!function(emailInput){emailInput.form&&emailInput.form.addEventListener("submit",function(e){var email=new FormData(emailInput.form).get("contact[email]");email&&ap3c.track({v:0,email:email})})}(emailInputs[i])};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){handleSubscribe()}):handleSubscribe()}},ap3c._shopifyProductViewedAction={canExecute:function(){return!!(window.Shopify&&window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.product)},execute:function(){ap3c.payloadEnrichers.push(function(payload,options){return payload.sh=options&&options.sh||{event_type:"product_viewed",shop:window.Shopify.shop,currency:window.ShopifyAnalytics.currency,product_id:window.ShopifyAnalytics.meta.product.id,selected_variant_id:getShopifyProductCurrentVariantId()},payload})}},ap3c._shopifyProductAddedToCartAction={canExecute:function(){return!!(window.Shopify&&window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.product)},execute:function(){var trackAddToCart=function(){ap3c.track({apiPath:"-/events/sh-event",v:0,email:ap3c.shopifyLiquidEmail,phone:ap3c.shopifyLiquidPhone,sh:{event_type:"product_added_to_cart",shop:window.Shopify.shop,currency:window.ShopifyAnalytics.currency,product_id:window.ShopifyAnalytics.meta.product.id,selected_variant_id:getShopifyProductCurrentVariantId()}})};if(window.fetch){var fetch=window.fetch;window.fetch=function(resource,options){return options&&"POST"===options.method&&!0===validShopifyCartAddPaths[resource]?Promise.resolve(fetch.apply(window,arguments).then(function(response){return!0===validShopifyCartAddStatuses[response.status]&&trackAddToCart(),response})):Promise.resolve(fetch.apply(window,arguments))}}var open=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(method,url){return"POST"===method&&!0===validShopifyCartAddPaths[url]&&this.addEventListener("readystatechange",function(){4===this.readyState&&!0===validShopifyCartAddStatuses[this.status]&&trackAddToCart()}),open.apply(this,arguments)}}},ap3c._shopifyWaitingOnStockWidget={ttl:2592e6,localStorageKey:"ap_waiting_on_stock",canExecute:function(widget){return!!(window.Shopify&&window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.product)&&("false"===ap3c.shopifyIsProductAvailable||!(!ap3c.shopifyIsProductVariantAvailableMap||!1!==ap3c.shopifyIsProductVariantAvailableMap[getShopifyProductCurrentVariantId()]))},execute:function(widget){var inject=this.inject.bind(this);if(window.fetch){var fetch=window.fetch;window.fetch=function(resource,options){return options&&"POST"===options.method&&!0===validShopifyCartAddPaths[resource]?Promise.resolve(fetch.apply(window,arguments).then(function(response){return 422===response.status?ap3c._generalWidget.show(widget):ap3c._generalWidget.hide(widget),response})):Promise.resolve(fetch.apply(window,arguments))}}var open=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(method,url){return"POST"===method&&!0===validShopifyCartAddPaths[url]&&this.addEventListener("readystatechange",function(){4===this.readyState&&422===this.status?ap3c._generalWidget.show(widget):ap3c._generalWidget.hide(widget)}),open.apply(this,arguments)},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){inject(widget)}):inject(widget)},inject:function(widget){var ttl=this.ttl,localStorageKey=this.localStorageKey+window.ShopifyAnalytics.meta.product.id+getShopifyProductCurrentVariantId();ap3c._injectWaitingOnStockWidget(widget,localStorageKey,ttl,!0,function(email,phone){return{v:0,apiPath:"-/events/sh-event",email:email,phone:phone,sh:{widget_id:widget.id,event_type:"product_waiting_on_stock",shop:window.Shopify.shop,currency:window.ShopifyAnalytics.currency,product_id:window.ShopifyAnalytics.meta.product.id,selected_variant_id:getShopifyProductCurrentVariantId()}}})}},(ap3c.cmd||[]).forEach(function(cmd,i){try{cmd()}catch(error){console.log(error)}}),(ap3c.kb||[]).forEach(function(cmd,i){try{cmd()}catch(error){console.log(error)}});var polyfillDateInput=function(){var featureDetectEl=document.createElement("input");try{featureDetectEl.type="date"}finally{if("date"!==featureDetectEl.type){var script=document.createElement("script");script.src="https://cdn.jsdelivr.net/npm/configurable-date-input-polyfill@2.8.2/configurable-date-input-polyfill.dist.min.js",document.body.appendChild(script);var styleSheet=document.createElement("style");styleSheet.type="text/css",styleSheet.innerText="date-input-polyfill[data-open=true] { z-index: 9999999; }",document.head.appendChild(styleSheet)}}};polyfillDateInput(),ap3c.Sha256={},ap3c.Sha256.hash=function(msg){for(var K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],H=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],l=(msg+=String.fromCharCode(128)).length/4+2,N=Math.ceil(l/16),M=new Array(N),i=0;i<N;){M[i]=new Array(16);for(var j=0;j<16;)M[i][j]=msg.charCodeAt(64*i+4*j)<<24|msg.charCodeAt(64*i+4*j+1)<<16|msg.charCodeAt(64*i+4*j+2)<<8|msg.charCodeAt(64*i+4*j+3),j++;i++}M[N-1][14]=8*(msg.length-1)/Math.pow(2,32),M[N-1][14]=Math.floor(M[N-1][14]),M[N-1][15]=8*(msg.length-1)&4294967295;var W=new Array(64),a=void 0,b=void 0,c=void 0,d=void 0,e=void 0,f=void 0,g=void 0,h=void 0;for(i=0;i<N;){for(var t=0;t<16;)W[t]=M[i][t],t++;for(t=16;t<64;)W[t]=ap3c.Sha256.a1(W[t-2])+W[t-7]+ap3c.Sha256.a0(W[t-15])+W[t-16]&4294967295,t++;for(a=H[0],b=H[1],c=H[2],d=H[3],e=H[4],f=H[5],g=H[6],h=H[7],t=0;t<64;){var T1=h+ap3c.Sha256.b1(e)+ap3c.Sha256.Ch(e,f,g)+K[t]+W[t],T2=ap3c.Sha256.b0(a)+ap3c.Sha256.Maj(a,b,c);h=g,g=f,f=e,e=d+T1&4294967295,d=c,c=b,b=a,a=T1+T2&4294967295,t++}H[0]=H[0]+a&4294967295,H[1]=H[1]+b&4294967295,H[2]=H[2]+c&4294967295,H[3]=H[3]+d&4294967295,H[4]=H[4]+e&4294967295,H[5]=H[5]+f&4294967295,H[6]=H[6]+g&4294967295,H[7]=H[7]+h&4294967295,i++}return ap3c.Sha256.toHexStr(H[0])+ap3c.Sha256.toHexStr(H[1])+ap3c.Sha256.toHexStr(H[2])+ap3c.Sha256.toHexStr(H[3])+ap3c.Sha256.toHexStr(H[4])+ap3c.Sha256.toHexStr(H[5])+ap3c.Sha256.toHexStr(H[6])+ap3c.Sha256.toHexStr(H[7])},ap3c.Sha256.ROTR=function(n,x){return x>>>n|x<<32-n},ap3c.Sha256.b0=function(x){return ap3c.Sha256.ROTR(2,x)^ap3c.Sha256.ROTR(13,x)^ap3c.Sha256.ROTR(22,x)},ap3c.Sha256.b1=function(x){return ap3c.Sha256.ROTR(6,x)^ap3c.Sha256.ROTR(11,x)^ap3c.Sha256.ROTR(25,x)},ap3c.Sha256.a0=function(x){return ap3c.Sha256.ROTR(7,x)^ap3c.Sha256.ROTR(18,x)^x>>>3},ap3c.Sha256.a1=function(x){return ap3c.Sha256.ROTR(17,x)^ap3c.Sha256.ROTR(19,x)^x>>>10},ap3c.Sha256.Ch=function(x,y,z){return x&y^~x&z},ap3c.Sha256.Maj=function(x,y,z){return x&y^x&z^y&z},ap3c.Sha256.toHexStr=function(n){for(var s="",i=7;0<=i;)s+=(n>>>4*i&15).toString(16),i--;return s},ap3c.scanForm=function(window,options){function __guard__(value,transform){return null!=value?transform(value):void 0}null==options&&(options={});options.findAllVersions&&(options.hashVersions=function(left,right,inclusive){for(var range=[],ascending=left<right,end=inclusive?ascending?right+1:right-1:right,i=left;ascending?i<end:end<i;ascending?i++:i--)range.push(i);return range}(1,1,!0)),options.hashVersions||(options.hashVersions=[1]);var DOMWalk={_getAttributeWhitelist:{autocomplete:!0},descend:function(from,selector){return null==selector?window.document.querySelectorAll(from):from.querySelectorAll(selector)},nameOrId:function(element){return element.name||element.id},hasClass:function(element,className){var re=new RegExp("\\b"+className+"\\b");return(null!=element?element.className:void 0)&&re.test(element.className)},attr:function(element,attrName){return DOMWalk._getAttributeWhitelist[attrName]?"function"==typeof element.getAttribute?element.getAttribute(attrName):void 0:element[attrName]},hasAncestorOfType:function(element,nodeName){for(;;){if(element.nodeName===nodeName)return!0;if(!(element=element.parentNode))return!1}}},jQueryWalk={};if(jQueryWalk.$=__guard__(null!=window?window.AutopilotAnywhere:void 0,function(x){return x.jQuery})||(null!=window?window.jQuery:void 0)||ap3c.__jq,!jQueryWalk.$)throw Error("jQuery unavailable");jQueryWalk.descend=function(from,selector){return selector?jQueryWalk.$(from).find(selector).toArray():(obj=jQueryWalk.$(from),methodName="toArray",transform=function(o){return o.toArray()},null!=obj&&"function"==typeof obj[methodName]?transform(obj,methodName):void 0);var obj,methodName,transform},jQueryWalk.nameOrId=function(element){var el=jQueryWalk.$(element);return el.attr("name")||el.attr("id")},jQueryWalk.hasClass=function(element,className){return jQueryWalk.$(element).hasClass(className)},jQueryWalk.attr=function(element,attrName){return jQueryWalk.$(element).attr(attrName)},jQueryWalk.hasAncestorOfType=function(element,nodeName){return 0<jQueryWalk.$(element).parents(nodeName).length};var walk=options.useDOM&&DOMWalk||jQueryWalk,unbouncePage=__guard__(walk.descend("#ubpoverlay-overlay"),function(x1){return x1.length}),squareSpacePage=__guard__(walk.descend(".sqs-layout"),function(x2){return x2.length}),forms={},_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=Array.from(walk.descend("FORM"))[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var ninjaSpamField,ninjaTrapFieldName,formElement=_step.value;if(!walk.hasAncestorOfType(formElement,"NOSCRIPT")){ninjaTrapFieldName=(ninjaSpamField=__guard__(walk.descend(formElement,"INPUT[type=hidden][name=_hp_name]"),function(x3){return x3[0]}))?walk.attr(ninjaSpamField,"value"):null;var _iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _step2,_iterator2=Array.from(options.hashVersions)[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0){var field,name,optionValues,latestHash,latestIsADuplicate,hashVersion=_step2.value,form={fields:[],radioFields:{},fingerprint:"",duplicate:!1,ignoredNamesOrIds:{},alreadyUsedGuesses:{},hashVersion:hashVersion},_iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0,allFields=walk.descend(formElement,"INPUT").concat(walk.descend(formElement,"SELECT")).concat(walk.descend(formElement,"TEXTAREA")).concat(walk.descend(formElement,"FIELDSET")).concat(walk.descend(formElement,"DIV[id]")).concat(walk.descend(formElement,"BUTTON"));try{for(var _step3,_iterator3=Array.from(allFields)[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var nameOrId,divInput,individualField,individualNameOrId;if(_step3.value){if(field=_step3.value,!squareSpacePage||"INPUT"!==field.nodeName&&"BUTTON"!==field.nodeName||"submit"!==(walk.attr(field,"type")||"").toLowerCase()||("INPUT"===field.nodeName?form.fingerprint+="SQUARESPACEINPUTSUBMIT/"+(walk.attr(field,"value")||"")+" ":form.fingerprint+="SQUARESPACEBUTTONSUBMIT/"+(walk.attr(field,"value")||"")+" "),(nameOrId=walk.nameOrId(field))&&!(form.ignoredNamesOrIds[nameOrId]||nameOrId.match(/^captcha$/i)||walk.hasClass(field,"screenReader")||/^_mc4wp_h_/.test(nameOrId)&&"off"===walk.attr(field,"autocomplete")&&"text"===walk.attr(field,"type")||ninjaTrapFieldName&&"text"===walk.attr(field,"type")&&walk.attr(field,"name")===ninjaTrapFieldName))switch(field.nodeName){case"DIV":var divId=(walk.attr(field,"id")||"").toLowerCase();divId.match(/^currency-yui/)?1!==(null!=(divInput=walk.descend(field,"INPUT"))?divInput.length:void 0)||walk.nameOrId(divInput[0])||(form.fields.push({type:"currency",name:divId,guess:null,probablySearch:!1,subfield:divInput[0]}),form.fingerprint+="INPUT.text/"+divId+" "):divId.match(/^number-yui/)&&(1!==(null!=(divInput=walk.descend(field,"INPUT"))?divInput.length:void 0)||walk.nameOrId(divInput[0])||(form.fields.push({type:"number",name:divId,guess:null,probablySearch:!1,subfield:divInput[0]}),form.fingerprint+="INPUT.text/"+divId+" "));break;case"INPUT":var fieldType=(walk.attr(field,"type")||"text").toLowerCase();if(["email","text","search","tel","url"].includes(fieldType)){if(unbouncePage&&nameOrId.match(/^ubafs-/))continue;var emailGuess="email"!==fieldType&&!nameOrId.match(/email/i)||form.alreadyUsedGuesses.regular_Email?null:"regular_Email";form.fields.push({type:"text",name:nameOrId,guess:emailGuess,probablySearch:"search"===fieldType||["search","query","q","s","qu"].includes(nameOrId)}),"hidden"!==fieldType&&(form.fingerprint+="INPUT."+fieldType+"/"+nameOrId+" ",emailGuess&&(form.alreadyUsedGuesses[emailGuess]=!0))}else if("checkbox"===fieldType)form.fields.push({type:"checkbox",name:nameOrId,guess:null,probablySearch:!1}),form.fingerprint+="INPUT.checkbox/"+nameOrId+" ";else if("radio"===fieldType)null==form.radioFields[nameOrId]&&(form.radioFields[nameOrId]=[]),form.radioFields[nameOrId].push(walk.attr(field,"value"));else if(["submit","password","reset","file","image"].includes(fieldType));else if(1===hashVersion){form.fields.push({type:fieldType,name:nameOrId,guess:null,probablySearch:!1});var _type=fieldType;"date"!==_type&&"datetime-local"!==_type||(_type="text"),"hidden"!==_type&&(form.fingerprint+="INPUT."+_type+"/"+nameOrId+" ")}break;case"SELECT":var _iteratorNormalCompletion4=!0,_didIteratorError4=!(optionValues=[]),_iteratorError4=void 0;try{for(var _step4,_iterator4=Array.from(walk.descend(field,"OPTION")||[])[Symbol.iterator]();!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=!0){var textContent,option=_step4.value;(textContent=walk.attr(option,"textContent"))&&optionValues.push(textContent)}}catch(err){_didIteratorError4=!0,_iteratorError4=err}finally{try{!_iteratorNormalCompletion4&&_iterator4.return&&_iterator4.return()}finally{if(_didIteratorError4)throw _iteratorError4}}form.fields.push({type:"select",name:nameOrId,guess:null,probablySearch:!1,optionValues:optionValues}),form.fingerprint+="SELECT/"+nameOrId+" ";break;case"TEXTAREA":form.fields.push({type:"text",name:nameOrId,guess:null,textArea:!0}),form.fingerprint+="TEXTAREA/"+nameOrId+" ";break;case"FIELDSET":if(nameOrId.match(/^date-yui/)){var allIndividualFields=walk.descend(field,"INPUT");if(3===allIndividualFields.length){var dayField=walk.descend(field,".day INPUT"),monthField=walk.descend(field,".month INPUT"),yearField=walk.descend(field,".year INPUT");if(dayField.length===monthField.length&&monthField.length===yearField.length&&1===yearField.length){var _iteratorNormalCompletion5=!0,_didIteratorError5=!1,_iteratorError5=void 0;try{for(var _step5,_iterator5=Array.from(allIndividualFields)[Symbol.iterator]();!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=!0)individualField=_step5.value,(individualNameOrId=walk.nameOrId(individualField))&&(form.ignoredNamesOrIds[individualNameOrId]=!0)}catch(err){_didIteratorError5=!0,_iteratorError5=err}finally{try{!_iteratorNormalCompletion5&&_iterator5.return&&_iterator5.return()}finally{if(_didIteratorError5)throw _iteratorError5}}form.fields.push({type:"date",name:nameOrId,guess:null,probablySearch:!1,subfields:[yearField[0],monthField[0],dayField[0]]}),form.fingerprint+="FIELDSET/"+nameOrId+" "}}}else if(nameOrId.match(/^phone-yui/)){var countryCodeField=walk.descend(field,'INPUT[x-autocompletetype="phone-country-code"]'),areaCodeField=walk.descend(field,'INPUT[x-autocompletetype="phone-area-code"]'),phonePrefixField=walk.descend(field,'INPUT[x-autocompletetype="phone-local-prefix"]'),phoneSuffixField=walk.descend(field,'INPUT[x-autocompletetype="phone-local-suffix"]');if((null!=countryCodeField?countryCodeField.length:void 0)<=1&&(null!=areaCodeField?areaCodeField.length:void 0)===(null!=phonePrefixField?phonePrefixField.length:void 0)&&(null!=phonePrefixField?phonePrefixField.length:void 0)===(null!=phoneSuffixField?phoneSuffixField.length:void 0)&&1===(null!=phoneSuffixField?phoneSuffixField.length:void 0)){for(var _arr=[countryCodeField,areaCodeField,phonePrefixField,phoneSuffixField],_i=0;_i<_arr.length;_i++)individualField=_arr[_i],(individualNameOrId=walk.nameOrId(individualField))&&(form.ignoredNamesOrIds[individualNameOrId]=!0);form.fields.push({type:"phone",name:nameOrId,guess:null,probablySearch:!1,subfields:{countryCode:1===(null!=countryCodeField?countryCodeField.length:void 0)?countryCodeField[0]:null,areaCode:null!=areaCodeField?areaCodeField[0]:void 0,phonePrefix:null!=phonePrefixField?phonePrefixField[0]:void 0,phoneSuffix:null!=phoneSuffixField?phoneSuffixField[0]:void 0}}),form.fingerprint+="FIELDSET/"+nameOrId+" "}}else if(nameOrId.match(/^time-yui/)){var allTimingFields=walk.descend(field,"INPUT");if(3===allTimingFields.length){var hoursField=walk.descend(field,".hour INPUT"),minutesField=walk.descend(field,".minute INPUT"),secondsField=walk.descend(field,".second INPUT"),ampmField=walk.descend(field,".ampm SELECT");if(hoursField.length===minutesField.length&&minutesField.length===secondsField.length&&secondsField.length===ampmField.length&&1===ampmField.length){var ampmNameOrId,_iteratorNormalCompletion6=!0,_didIteratorError6=!1,_iteratorError6=void 0;try{for(var _step6,_iterator6=Array.from(allTimingFields)[Symbol.iterator]();!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=!0){var timingField=_step6.value;(individualNameOrId=walk.nameOrId(timingField))&&(form.ignoredNamesOrIds[individualNameOrId]=!0)}}catch(err){_didIteratorError6=!0,_iteratorError6=err}finally{try{!_iteratorNormalCompletion6&&_iterator6.return&&_iterator6.return()}finally{if(_didIteratorError6)throw _iteratorError6}}(ampmNameOrId=walk.nameOrId(ampmField))&&(form.ignoredNamesOrIds[ampmNameOrId]=!0),form.fields.push({type:"time",name:nameOrId,guess:null,probablySearch:!1,subfields:[hoursField[0],minutesField[0],secondsField[0],ampmField[0]]}),form.fingerprint+="FIELDSET/"+nameOrId+" "}}}}}else console.warn(formElement,"has undefined field")}}catch(err){_didIteratorError3=!0,_iteratorError3=err}finally{try{!_iteratorNormalCompletion3&&_iterator3.return&&_iterator3.return()}finally{if(_didIteratorError3)throw _iteratorError3}}for(name in form.radioFields){var values=form.radioFields[name];form.fields.push({type:"radio",name:name,guess:null,probablySearch:!1,optionValues:values}),form.fingerprint+="INPUT.radio/"+name+" "}if(0<form.fields.length)if(1!==form.fields.length||!form.fields[0].probablySearch)if(walk.attr(formElement,"action")||1!==form.fields.length||"select"!==form.fields[0].type)if(form.hash=ap3c.Sha256.hash(form.fingerprint),1<hashVersion&&(form.hash=hashVersion+"_"+form.hash),form.hashVersion=hashVersion,form.id=walk.attr(formElement,"id"),!form.id||-1===form.id.indexOf("ap3w-"))if(form.action=walk.attr(formElement,"action"),form.elements=[formElement],options.findAllVersions)1===hashVersion?(latestHash=form.hash,form.otherHashVersions=[],forms[latestHash]?(latestIsADuplicate=!0,forms[latestHash].elements.push(formElement)):(latestIsADuplicate=!1,forms[latestHash]=form)):latestIsADuplicate||forms[latestHash].otherHashVersions.push(form.hash);else forms[form.hash]?forms[form.hash].elements.push(formElement):forms[form.hash]=form}}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{!_iteratorNormalCompletion2&&_iterator2.return&&_iterator2.return()}finally{if(_didIteratorError2)throw _iteratorError2}}}}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator.return&&_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}return forms}; })() </script> <!-- Global site tag (gtag.js) - Google Analytics --> <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-29886087-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-29886087-1'); </script> --> <!-- Adsense --> <!-- <script data-ad-client="ca-pub-7753232559550323" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> --> <!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-29886087-1', 'auto'); ga('send', 'pageview'); </script> <!-- End Google Analytics --> <!-- Hotjar Tracking Code for https://www.garagesaletrail.com.au --> <!-- <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:966224,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script> --> <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '281241185820089'); fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=281241185820089&ev=PageView &noscript=1"/> </noscript> <!-- End Facebook Pixel Code --> <!-- CSRF Token --> <meta name="csrf-token" content="ClYqhPoUpS5h1g0bru5ktBnp6KiLTvNkdykNj9Z6"> <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700%7CRoboto:300,400,500,700,900" rel="stylesheet"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined"> <!-- Styles --> <link media="all" href="https://d3l3fqxau8i8wm.cloudfront.net/assets/compiled/app.css?v=1.7320684629020274E9" rel="stylesheet"> <script type="text/javascript">(function(o){var b="https://api.autopilothq.com/anywhere/",t="81602151fabf46f3abf35cf3d0add5e7d867ddc85cf743e4bb9e6f0c6235adca",a=window.AutopilotAnywhere={_runQueue:[],run:function(){this._runQueue.push(arguments);}},c=encodeURIComponent,s="SCRIPT",d=document,l=d.getElementsByTagName(s)[0],p="t="+c(d.title||"")+"&u="+c(d.location.href||"")+"&r="+c(d.referrer||""),j="text/javascript",z,y;if(!window.Autopilot) window.Autopilot=a;if(o.app) p="devmode=true&"+p;z=function(src,asy){var e=d.createElement(s);e.src=src;e.type=j;e.async=asy;l.parentNode.insertBefore(e,l);};y=function(){z(b+t+'?'+p,true);};if(window.attachEvent){window.attachEvent("onload",y);}else{window.addEventListener("load",y,false);}})({});</script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MQB33V');</script> <!-- End Google Tag Manager --> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MQB33V" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div id="app" > <register-modal ></register-modal> <pre-registration-component inline-template :show-success-modal="false" old-interest=""> <div> <vue-modal name="pre-register-modal" class="login-popup" size="md" v-cloak style="z-index: 99999;"> <form @submit.prevent="submit" method="POST" action="/pre-registration" id="login-form" class="register-form"> <input type="hidden" name="_token" value="ClYqhPoUpS5h1g0bru5ktBnp6KiLTvNkdykNj9Z6"> <div class="form-container"> <div class="card-box"> <div class="card-body pt-4 pb-5 color-black"> <div class="pb-3 visible-mobile"> <button type="button" @click="$modals.hide('pre-register-modal')" class="close" style="font-size: 1.8rem;" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="tabs pt-4 pb-4 strong-text text-center" > <p>Sign up to get early access when registrations open for Garage Sale Trail 2025 </p> </div> <div class="form-block text-left"> <div class="custom-validation"> <input placeholder="First Name" type="text" class="form-control" name="first_name" v-validate="'required|min:2'" v-model="data.first_name" autofocus> <span class="text-danger w-100 text-center">{{ errors.first('first_name') }}</span> </div> <div class="custom-validation"> <input placeholder="E-mail" type="email" class="form-control" name="email" v-validate="'required|email'" v-model="data.email"> <span class="text-danger w-100 text-center">{{ errors.first('email') }}</span> </div> <div class="custom-validation"> <input placeholder="Postcode" type="text" class="form-control" name="postcode" v-model="data.postcode"> <span class="text-danger w-100 text-center">{{ errors.first('postcode') }}</span> </div> <p>Are you interested in:</p> <span class="text-danger w-100 text-center">{{ errors.first('interest') }}</span> <div class="row my-3"> <div class="col-md-8"> <div class="checkbox-holder d-flex align-items-center mb-3"> <input type="radio" v-model="data.interest" id="interest-hosting-or-joining-sale" name="interest" value="Hosting or Joining a Sale"> <label class="mb-0 text-bold pre-register-label align-items-center" for="interest-hosting-or-joining-sale">Hosting or Joining a Sale</label> </div> <div class="checkbox-holder d-flex align-items-center mb-3"> <input type="radio" v-model="data.interest" id="interest-shopping-the-trail" name="interest" value="Shopping the Trail"> <label class="mb-0 text-bold pre-register-label align-items-center" for="interest-shopping-the-trail">Shopping the Trail</label> </div> </div> <div class="col-md-4"> <div class="checkbox-holder d-flex align-items-center mb-3"> <input type="radio" v-model="data.interest" id="interest-both" name="interest" value="Both"> <label class="mb-0 text-bold pre-register-label align-items-center" for="interest-both">Both</label> </div> <div class="checkbox-holder d-flex align-items-center mb-3"> <input type="radio" v-model="data.interest" id="interest-notsure" name="interest" value="Not Sure"> <label class="mb-0 text-bold pre-register-label align-items-center" for="interest-notsure">Not Sure</label> </div> </div> </div> </div> <div class="d-flex flex-wrap align-items-center justify-content-center pb-1 ml-3"> <vue-recaptcha ref="recaptcha" :sitekey="recaptchaKey" @verify="onVerify"> </vue-recaptcha> <span class="text-danger w-100 text-center">{{ errors.first('g_recaptcha_response') }}</span> </div> <div class="d-flex flex-wrap align-items-center justify-content-center pb-1 ml-3" > <button type="submit" class="btn btn-secondary btn-lg">{{ submitting ? 'Submitting...' : 'Submit' }}</button> </div> </div> </div> </div> </form> </vue-modal> <vue-modal name="success-modal" class="login-popup" size="md" v-cloak style="z-index: 99999;"> <div class="card-box"> <div class="card-body py-1"> <div class="tabs my-3 text-center" > <h4 class="mb-0"><span class="color-black">Registered successfully</span></h4> </div> </div> </div> </vue-modal> </div> </pre-registration-component> <waiting-list-component inline-template :show-success-modal="false" old-interest=""> <div> <vue-modal name="waiting-list-modal" class="login-popup" size="md" v-cloak style="z-index: 99999;"> <form @submit.prevent="submit" id="login-form" class="register-form"> <input type="hidden" name="_token" value="ClYqhPoUpS5h1g0bru5ktBnp6KiLTvNkdykNj9Z6"> <div class="form-container"> <div class="card-box"> <div class="card-body pt-4 pb-5 color-black"> <div class="pb-3 visible-mobile"> <button type="button" @click="$modals.hide('waiting-list-modal')" class="close" style="font-size: 1.8rem;" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="tabs pt-4 pb-4 strong-text text-center" > <p> Thank you for your interest in joining this sale. Due to the popularity of the event, all of the available stallholder spots have been filled. </p> <br/> <p> To be notified if a spot becomes available, please join the waitlist by completing the form below. </p> </div> <div class="form-block text-left"> <div class="custom-validation"> <input placeholder="First Name" type="text" class="form-control" name="first_name" v-validate="'required|min:2'" v-model="data.first_name" autofocus> <span class="text-danger w-100 text-center">{{ errors.first('first_name') }}</span> </div> <div class="custom-validation"> <input placeholder="Last Name" type="text" class="form-control" name="last_name" v-validate="'required|min:2'" v-model="data.last_name" autofocus> <span class="text-danger w-100 text-center">{{ errors.first('last_name') }}</span> </div> <div class="custom-validation"> <input type="text" name="phonenumber" v-validate="'required'" class="form-control" placeholder="Phone Number" v-model="data.phonenumber"> <span class="text-danger">{{ errors.first('phonenumber') }}</span> </div> <div class="custom-validation"> <input placeholder="E-mail" type="email" class="form-control" name="email" v-validate="'required|email'" v-model="data.email"> <span class="text-danger w-100 text-center">{{ errors.first('email') }}</span> </div> <div class="custom-validation"> <input placeholder="Postcode" type="text" class="form-control" name="postcode" v-model="data.postcode"> <span class="text-danger w-100 text-center">{{ errors.first('postcode') }}</span> </div> </div> <div class="d-flex flex-wrap align-items-center justify-content-center pb-1 ml-3"> <vue-recaptcha ref="recaptcha" :sitekey="recaptchaKey" @verify="onVerify"> </vue-recaptcha> <span class="text-danger w-100 text-center">{{ errors.first('g_recaptcha_response') }}</span> </div> <div class="d-flex flex-wrap align-items-center justify-content-center pb-1 ml-3" > <button type="submit" class="btn btn-secondary btn-lg">{{ submitting ? 'Submitting...' : 'Submit' }}</button> </div> </div> </div> </div> </form> </vue-modal> <vue-modal name="success-modal" class="login-popup" size="md" v-cloak style="z-index: 99999;"> <div class="card-box"> <div class="card-body py-1"> <div class="tabs my-3 text-center" > <h4 class="mb-0"><span class="color-black">Successfully joined the waitlist!</span></h4> </div> </div> </div> </vue-modal> </div> </waiting-list-component> <header id="header"> <div class="container-fluid"> <div class="d-flex flex-wrap justify-content-between"> <!-- page logo --> <div class="logo"> <a href="/" class="d-block"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/logo/logo.svg" alt="Garage Sale Trail" width="198"> </a> </div> <a href="#" class="nav-opener"><span>Menu</span></a> <!-- main navigation of the page --> <nav id="nav" class="d-flex flex-wrap align-items-center nav-drop"> <!-- navigation --> <ul class="list-unstyled d-lg-flex flex-wrap"> <li class="dropdown"> <a href="#">About</a> <ul class="dropdown-menu"> <li><a href="/about/what-is-gst" target="">What is it?</a></li> <li><a href="/about/our-story" target="">Our Story</a></li> <li><a href="/about/faqs" target="">FAQs</a></li> <li><a href="/about/contact-us" target="">Contact us</a></li> <li><a href="/about/partners" target="">Partners</a></li> </ul> </li> <li class="dropdown"> <a href="#">Get Involved</a> <ul class="dropdown-menu"> <li><a href="/get-involved/be-a-seller" target="">Sell</a></li> <li><a href="/get-involved/be-a-shopper" target="">Shop</a></li> <li><a href="/get-involved/join-mailing-list" target="">NEWSLETTER SIGN UP</a></li> <li><a href="https://www.lesswastemorecommunity.com/" target="">Be a council partner</a></li> </ul> </li> <li class="dropdown"> <a href="#">Tools</a> <ul class="dropdown-menu"> <li><a href="/about/media-kit" target="">Media Kit</a></li> <li><a href="/get-involved/matchmaking-for-stuff" target="">Reuse Guide</a></li> </ul> </li> <li><a href="/blog">Blog</a></li> </ul> <div class="btn-holder"> <a href="/login" class="btn btn-light btn-lg">LOGIN</a> </div> </nav> </div> </div> </header> <main id="main" v-cloak> <main id="main" class="page-general"> <section class="register-main-section"> <div class="container"> <div class="row"> <div class="col-12 text-center"> <h1 class="text-shadow-2">Be a seller</h1> <div class="page-subtext text-center"> <p></p> </div> </div> </div> </div> </section> <div class="main-section"> <!-- article of blog --> <article class="main-article"> <div class="content-builder"> <div class="html"> <p>Garage Sale Trail is Australia's biggest secondhand treasure hunt with over 400,000 Australians hitting the streets each year in the search for pre-loved bargains.</p><p>It's the destination for all things selling and swapping pre-loved. With garage sales, thrift markets, car boot sales, suitcase rummages, swap meets and street parties popping up across the nation.</p><h4><br></h4><h4>Garage sales made easy</h4><p><span style="color: rgb(0, 0, 0);">You can get involved from anywhere in Australia, and take part on one day or more over two big weekends. Garage Sale Trail happens next on 8</span><strong style="color: rgb(0, 0, 0);">-9 & 15-16 November 2025</strong><span style="color: rgb(0, 0, 0);">.</span></p><p>W<span style="background-color: transparent; color: rgb(0, 0, 0);">ith </span><span style="background-color: transparent;">free registration</span><span style="background-color: transparent; color: rgb(0, 0, 0);">, how-to guides, sale tips and promotional materials provided, it’s garage sales made easy. </span></p><p><span style="background-color: transparent; color: rgb(0, 0, 0);">In 2023, the average household garage sale made $457, community groups over $1,500. </span></p><p><span style="color: rgb(0, 0, 0);">Planning a car boot sale or market? Find out what </span><a href="https://www.garagesaletrail.com.au/blog/group-sale-guide" rel="noopener noreferrer" target="_blank" style="color: rgb(0, 102, 204);">support we provide</a><span style="color: rgb(0, 0, 0);">.</span></p><h4><br></h4><h4>No garage? No worries.</h4><p>From September 2025, you can search for group sales to join near you, host from your <a href="https://www.garagesaletrail.com.au/get-involved/unit-toolkit" rel="noopener noreferrer" target="_blank">unit block</a>, a car boot, local school or community centre.</p> </div> <div class="image image-column-width"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/cms-files/view/Sell page_66bee5777bf30.jpg" > </div> <div class="html"> <h4>What's different about Garage Sale Trail?</h4><p>While you can host a garage sale any weekend of the year, there's a reason why being a part of the Garage Sale Trail makes things just a little more spesh.</p><p>🎩<strong>Tips, tricks and free promo materials</strong> - with free registration, how-to guides, sale tips and promotional materials provided, it’s never been easier to host a garage sale.</p><p>♻️ <strong>Make a bigger impact</strong> - being part of a national event that gets lots media coverage and promotion means you're making some truly magical things happen. In 2023, over 4 million kilograms of usable items were reused and were saved from landfill.</p><p>✊🏽 <strong>Be</strong> <strong>part of a movement </strong>- there's something pretty cool about knowing you're part of a community of folk all simultaneously garage sale-ing over two big weekends. Take a squiz at the <a href="https://www.instagram.com/explore/tags/garagesaletrail/" rel="noopener noreferrer" target="_blank" style="color: rgb(0, 102, 204);">hashtag</a> to see what we mean.</p><p><span style="color: rgb(0, 0, 0);">It's free and anyone can do it, whether you’re a household, community group, a whole street, school or even a local business.</span></p><p>Setting up a Garage Sale Trail listing takes less than five minutes, but a good garage sale will live on in the memories of your neighbours for like forever.</p><p>So, in the immortal words of Gwen Stefani, what are you waiting for?</p><p><a href="https://www.garagesaletrail.com.au/pre-register" rel="noopener noreferrer" target="_blank" style="background-color: transparent;">Join the wait list</a> to be the first to know when registrations open.</p> </div> </div> </article> </div> </main> </main> <section class="pre-footer"> <div class="container-fluid"> <div class="txt-holder text-center pt-5"> <h2 class="d-flex flex-wrap align-items-center justify-content-center" style="text-transform: none !important;">Follow <br/>the Trail</h2> <span class="news-signup d-block"><a href="https://www.garagesaletrail.com.au/get-involved/join-mailing-list" target="_blank">Sign up for e-news</a> or follow us on social media</span> <span class="post-title d-block">#GARAGESALETRAIL</span> <ul class="list-unstyled d-flex flex-wrap justify-content-center social"> <li> <a href="https://twitter.com/GarageSaleTrail/" target="_blank"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/footer/bg_social.svg" width="50" alt="image-description"> <i class="icon-twitter-logo-silhouette"></i> </a> </li> <li> <a href="https://www.instagram.com/garagesaletrail/" target="_blank"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/footer/bg_social.svg" width="50" alt="image-description"> <i class="icon-instagram"></i> </a> </li> <li> <a href="https://www.facebook.com/GarageSaleTrail/" target="_blank"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/footer/bg_social.svg" width="50" alt="image-description"> <i class="icon-facebook-letter-logo"></i> </a> </li> <li> <a href="https://www.youtube.com/user/GarageSaleTrail" target="_blank"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/footer/bg_social.svg" width="50" alt="image-description"> <i class="icon-youtube"></i> </a> </li> </ul> </div> </div> <div class="decor-logo"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/logo/logo.svg" alt="Garage Sale Trail"> </div> <div class="decor-baner"> <img src="https://d3l3fqxau8i8wm.cloudfront.net/assets/images/theme/footer/icon_footer.svg" alt="image-description"> </div> </section> <div id="footer"> <div class="container-fluid"> <div class="row justify-content-center text-center text-lg-left"> <div class="col-12 col-md-6 col-lg-4"> <span class="copy text-uppercase">© 2024 The Garage Sale Trail Foundation</span> </div> <div class="col-12 col-md-6 col-lg-4"> <ul class="list-unstyled d-flex justify-content-center footer-list"> <li> <a href="/login">Council Login</a> </li> <li><a href="https://bit.ly/3TB1vqc" target="_blank">Terms & Conditions</a></li> <li><a href="https://bit.ly/3ZzAbMw" target="_blank">Privacy Policy</a></li> <li><a href="https://www.garagesaletrail.com.au/about/contact-us" target="_blank">Contact us</a></li> </ul> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="license d-flex flex-wrap justify-content-center justify-content-lg-end"> <span><b>ACN</b> 154 116 515</span><span><b>ABN</b> 25 154 116 515</span> </div> <div class="mt-3 d-flex flex-wrap justify-content-center justify-content-lg-end mr-4"> <div id="google_translate_element"></div> </div> </div> </div> </div> </div> </div> <!-- Scripts --> <script> var CDN_PATH='https://d3l3fqxau8i8wm.cloudfront.net'; var RECAPTCHA_KEY='6LfFouAUAAAAANjUYSruj83whiS7-qFY8tr0nGTU'; </script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDRwfi3vmLx2KcDpCSeA8gI2RMo_3gqT_4&libraries=places&callback=Function.prototype"></script> <script src="https://d3l3fqxau8i8wm.cloudfront.net/assets/vendor/vendor.js?v=1.7320684629020274E9"></script> <script src="https://d3l3fqxau8i8wm.cloudfront.net/assets/compiled/app.js?v=1.7320684629020274E9"></script> <script src="https://d3l3fqxau8i8wm.cloudfront.net/assets/js/flexibility.js?v=1.7320684629020274E9"></script> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', defaultLanguage:'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit" async defer> </script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/luxon@1.27.0/build/global/luxon.min.js"></script> <!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com--> <script type="text/javascript" src="https://a.optmnstr.com/app/js/api.min.js" data-account="62047" data-user="55164" async></script> <!-- / OptinMonster --> <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"d622c0f1f7","applicationID":"189065495","transactionName":"bgMEYEZVVkdRVUEIWFdJJ1dAXVdaH3dFEWtxEhJEaHdXWkREWg1bXBQVaHdZS3dfWEETWFUKA0Z0U11aVURUDQ==","queueTime":0,"applicationTime":163,"atts":"QkQHFg5PRUk=","errorBeacon":"bam.nr-data.net","agent":""}</script></body> </html>