ough\",\"click\",{label:e,action:a,showId:l,categoryType:u,url:d,additionalParams:g});o.default.state.isConsentedToLevel?Promise.all([k,O,C,I]).then(function(){return n(\"track_all\")}).catch(function(n){return t(n)}):k.then(function(){return n(\"track_required\")}).catch(function(){return t(\"track_required\")})}catch(n){console.warn(\"Issues setting preferences and resolving tracking.\"),t(\"track_error\")}})}}},function(n,t,e){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var e=[],r=!0,i=!1,o=void 0;try{for(var a,c=n[Symbol.iterator]();!(r=(a=c.next()).done)&&(e.push(a.value),!t||e.length!==t);r=!0);}catch(n){i=!0,o=n}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return e}(n,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}();function i(n){var t=n.split(\"adurl=\"),e=r(t,2),i=e[0],o=e[1],a=decodeURIComponent(o||i);return[new URL(a),i,o]}function o(n,t,e){var o=i(n),a=r(o,3),c=a[0],u=a[1],f=a[2];return c.searchParams.set(t,e),f?u+\"adurl=\"+encodeURIComponent(c.href):c.href}function a(n,t){if(n){var e=i(n);return r(e,1)[0].searchParams.get(t)}}t.appendVisitorTokenToUrl=function(n){return o(n,\"visitor_token\",window.linkfire.tracking.parameters.visitorToken)},t.appendAmazonGroupToUrl=function(n,t){var e=a(t,\"group\");if(e)return function(n,t){if(!n)return;var e=new URL(n),r={us_ios_none:\"A\",us_ios_small:\"B\",us_ios_large:\"C\",us_android_none:\"D\",us_android_small:\"E\",us_android_large:\"F\",uk_ios_none:\"G\",uk_ios_small:\"H\",uk_ios_large:\"I\",uk_android_none:\"J\",uk_android_small:\"K\",uk_android_large:\"L\",jp_ios_none:\"M\",jp_ios_small:\"N\",jp_ios_large:\"O\",jp_android_none:\"P\",jp_android_small:\"Q\",jp_android_large:\"R\"};if(void 0!==r[t]){var i=a(n,\"ref\");if(i){var o=e.searchParams.get(\"ref\");-1!==o.indexOf(\"lw_x\")&&e.searchParams.set(\"ref\",o.replace(\"lw_x\",\"lw_x_\"+r[t])),-1!==o.indexOf(\"lp_x\")&&e.searchParams.set(\"ref\",o.replace(\"lp_x\",\"lp_x_\"+r[t])),-1!==o.indexOf(\"up_opf\")&&e.searchParams.set(\"ref\",o.replace(\"up_opf\",\"up_opf_\"+r[t])),e.searchParams.delete(\"group\")}}return e.toString()}(n,e);return n},t.getParameterFromUrl=a,t.wrapUrlInImpact=function(n,t){return o(o(t,\"asset\",\"lw_x\"),\"u\",n)}}]);\r\n" ?>