@walkeros/web-destination-linkedin 4.7.0-next-1790245733116 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -14
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/walkerOS.json +6 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
# @walkeros/web-destination-linkedin
|
|
2
2
|
|
|
3
|
-
## 4.7.0
|
|
3
|
+
## 4.7.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [
|
|
7
|
+
- Updated dependencies [74821ed]
|
|
8
8
|
- Updated dependencies [06b498a]
|
|
9
|
-
- Updated dependencies [
|
|
10
|
-
- Updated dependencies [
|
|
9
|
+
- Updated dependencies [74821ed]
|
|
10
|
+
- Updated dependencies [64b06de]
|
|
11
|
+
- Updated dependencies [4b4937f]
|
|
12
|
+
- Updated dependencies [74821ed]
|
|
13
|
+
- Updated dependencies [74821ed]
|
|
14
|
+
- Updated dependencies [74821ed]
|
|
11
15
|
- Updated dependencies [06b498a]
|
|
12
|
-
- Updated dependencies [
|
|
13
|
-
- Updated dependencies [
|
|
14
|
-
- Updated dependencies [
|
|
15
|
-
- Updated dependencies [
|
|
16
|
-
- Updated dependencies [
|
|
17
|
-
- Updated dependencies [
|
|
18
|
-
- Updated dependencies [
|
|
19
|
-
- Updated dependencies [
|
|
20
|
-
|
|
21
|
-
- @walkeros/
|
|
16
|
+
- Updated dependencies [74821ed]
|
|
17
|
+
- Updated dependencies [74821ed]
|
|
18
|
+
- Updated dependencies [74821ed]
|
|
19
|
+
- Updated dependencies [74821ed]
|
|
20
|
+
- Updated dependencies [74821ed]
|
|
21
|
+
- Updated dependencies [e860006]
|
|
22
|
+
- Updated dependencies [74821ed]
|
|
23
|
+
- Updated dependencies [74821ed]
|
|
24
|
+
- Updated dependencies [4f89234]
|
|
25
|
+
- @walkeros/core@4.7.0
|
|
26
|
+
- @walkeros/web-core@4.7.0
|
|
22
27
|
|
|
23
28
|
## 4.6.1
|
|
24
29
|
|
package/dist/index.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Destination=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{DestinationLinkedIn:()=>q,default:()=>M,destinationLinkedIn:()=>A});var i=Object.defineProperty,c=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})};function s(t,e){if("collector"===t)return"collector";if(!e)throw new Error(`stepId(${t}) requires an id`);return`${t}.${e}`}c({},{stepId:()=>s});function a(t,e){const n=t.destinations[e];if(!n)throw new Error(`Destination not found: ${e}`);return n}c({},{getDestination:()=>a});c({},{Level:()=>l});var u,l=((u=l||{})[u.ERROR=0]="ERROR",u[u.WARN=1]="WARN",u[u.INFO=2]="INFO",u[u.DEBUG=3]="DEBUG",u);function f(t,e){const n=t.transformers[e];if(!n)throw new Error(`Transformer not found: ${e}`);return n}c({},{getTransformer:()=>f});function d(t,e){const n=t.sources[e];if(!n)throw new Error(`Source not found: ${e}`);return n}c({},{getSource:()=>d});function p(t,e){const n=t.stores[e];if(!n)throw new Error(`Store not found: ${e}`);return n}async function v(t,e){return await t.get(e)}function g(t){return Array.isArray(t)}function y(t){return void 0!==t}function w(t){return"number"==typeof t&&!Number.isNaN(t)}function m(t){return"object"==typeof t&&null!==t&&!g(t)&&"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"string"==typeof t}function b(t,e="",n){const r=e.split(".");let o=t;for(let t=0;t<r.length;t++){const e=r[t];if("*"===e&&g(o)){const e=r.slice(t+1).join("."),i=[];for(const t of o){const r=b(t,e,n);i.push(r)}return i}if(o=m(o)||g(o)?o[e]:void 0,void 0===o)break}return y(o)?o:n}function _(t){return function(t){return"boolean"==typeof t}(t)||h(t)||w(t)||!y(t)||g(t)&&t.every(_)||m(t)&&Object.values(t).every(_)}function j(t){return _(t)?t:void 0}function O(t,e,n){return async function(...r){try{return await t(...r)}catch(t){if(!e)return;return await e(t)}finally{await(null==n?void 0:n())}}}c({},{getStore:()=>p,getStoreValue:()=>v});var k=class t extends Error{constructor(e,n){super(e,n),this.name="FatalError",Object.setPrototypeOf(this,t.prototype)}};async function N(t,e={},n={}){var r,o;if(!y(t))return;const i=m(t)&&t.consent||n.consent||(null==(r=n.collector)?void 0:r.consent),c=null!=(o=n.event)?o:m(t)?t:{};if(!n.collector)throw new Error("getMappingValue: context.collector is required");const s={event:c,mapping:e,collector:n.collector,logger:n.collector.logger,consent:i},a=g(e)?e:[e];for(const e of a){const r=await O(E,t=>{if(t instanceof k)throw t;n.collector&&n.collector.status.failed++,s.logger.error("mapping processing failed",{event:c,error:t})})(t,e,{...s,mapping:e});if(y(r))return r}}async function E(t,e,n){return(g(e)?e:[e]).reduce(async(e,r)=>{const o=await e;if(o)return o;const i=h(r)?{key:r}:r;if(!Object.keys(i).length)return;const{condition:c,consent:s,fn:a,key:u,loop:l,map:f,set:d,validate:p,value:v}=i,w={...n,mapping:r};if(c&&!await O(c,t=>{if(t instanceof k)throw t;return w.logger.error("mapping condition failed",{event:w.event,error:t}),!1})(t,w))return;if(s&&!function(t,e={},n={}){const r={...e,...n},o={};let i=!t||0===Object.keys(t).length;return Object.keys(r).forEach(e=>{r[e]&&(o[e]=!0,t&&t[e]&&(i=!0))}),!!i&&o}(s,w.consent))return v;let m=y(v)?v:t;if(l){const[e,n]=l,r="this"===e?[t]:await N(t,e,w);m=g(r)?(await Promise.all(r.map(t=>N(t,n,w)))).filter(y):void 0}else f?m=await Object.entries(f).reduce(async(e,[n,r])=>{const o=await e,i=await N(t,r,w);return y(i)&&(o[n]=i),o},Promise.resolve({})):d?m=await Promise.all(d.map(e=>E(t,e,w))):u?m=b(t,u,v):a&&(m=await O(a,t=>{if(t instanceof k)throw t;w.logger.error("mapping fn failed",{event:w.event,error:t})})(t,w));p&&!await O(p,t=>{if(t instanceof k)throw t;return w.logger.error("mapping validate failed",{event:w.event,error:t}),!1})(m,w)&&(m=void 0);const _=j(m);return y(_)?_:j(v)},Promise.resolve(void 0))}var R="observe";function P(t){const e=(t.startsWith("call:")?t.slice(5):t).split(".");return e.some(t=>""===t)?[]:e}function $(t,e,n,r){const o=new Map;return new Proxy(t,{get(t,i){if("string"!=typeof i)return Reflect.get(t,i,t);const c=o.get(i);if(void 0!==c)return c;if(e.some(t=>1===t.length&&t[0]===i)){const e=Reflect.get(t,i,t);if("function"!=typeof e)return e;const c=`${r}.${i}`,s=(...r)=>{try{n(c,r)}catch(t){}return e.apply(t,r)};return o.set(i,s),s}const s=e.filter(t=>t.length>1&&t[0]===i).map(t=>t.slice(1));if(s.length>0){const e=Reflect.get(t,i,t);if(null===e||"object"!=typeof e)return e;const c=$(e,s,n,`${r}.${i}`);return o.set(i,c),c}return Reflect.get(t,i,t)}})}function S(t){var e;const n={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...t},r=t&&t[R];if(function(t){if("object"!=typeof t||null===t)return!1;if(!("paths"in t)||!("record"in t))return!1;const{paths:e,record:n}=t;return Array.isArray(e)&&e.every(t=>"string"==typeof t)&&"function"==typeof n}(r)){delete n[R];const t=new Map;for(const n of r.paths){const r=P(n),o=r[0];if(void 0===o)continue;const i=null!=(e=t.get(o))?e:[];i.push(r.slice(1)),t.set(o,i)}for(const[e,o]of t){const t=n[e];null!==t&&"object"==typeof t&&(n[e]=$(t,o,r.record,e))}}return n}var q={};function D(t){const{document:e}=S(t),n=e,r=n.createElement("script");r.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",r.async=!0,n.head.appendChild(r)}var I,A={type:"linkedin",config:{},init({config:t,env:e}){const n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(t,e){const{window:n}=S(t),r=n;r._linkedin_partner_id=e,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(e)||r._linkedin_data_partner_ids.push(e)}(e,n.apiKey),function(t){const{window:e}=S(t),n=e;if(n.lintrk)return;const r=function(...t){(r.q=r.q||[]).push(t)};r.q=[],n.lintrk=r}(e),t.loadScript&&D(e),t)},async push(t,{rule:e,env:n,collector:r}){const{window:o}=S(n),i=o.lintrk;if(!i)return;if(!0===(null==e?void 0:e.silent))return;const c=(null==e?void 0:e.settings)||{};if(void 0===c.conversion)return;const s=function(t){if(!m(t))return;const{id:e,value:n,currency:r,eventId:o}=t,i=w(e)?e:h(e)&&""!==e&&!Number.isNaN(Number(e))?Number(e):void 0;if(void 0===i||0===i)return;const c={conversion_id:i};if(w(n))c.conversion_value=n;else if(h(n)&&""!==n){const t=Number(n);Number.isNaN(t)||(c.conversion_value=t)}return h(r)&&""!==r&&(c.currency=r),h(o)&&""!==o&&(c.event_id=o),c}(await N(t,c.conversion,{collector:r}));s&&i("track",s)},on(t,e){if("consent"!==t||!e.data)return;const n=e.data,r=e.config;if(!(null==r?void 0:r.loadScript))return;if(!0!==n.marketing)return;const{document:o}=S(e.env),i=o;(i.querySelector?i.querySelector('script[src*="snap.licdn.com"]'):null)||D(e.env)}},M=A;return I=o,((o,i,c,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of n(i))r.call(o,a)||a===c||t(o,a,{get:()=>i[a],enumerable:!(s=e(i,a))||s.enumerable});return o})(t({},"__esModule",{value:!0}),I)})();
|
|
1
|
+
"use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(o,{DestinationLinkedIn:()=>K,default:()=>B,destinationLinkedIn:()=>L});var i=Object.defineProperty,c=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})};function s(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}c({},{stepId:()=>s});function u(e,t){const n=e.destinations[t];if(!n)throw new Error(`Destination not found: ${t}`);return n}c({},{getDestination:()=>u});c({},{Level:()=>a});var f,a=((f=a||{})[f.ERROR=0]="ERROR",f[f.WARN=1]="WARN",f[f.INFO=2]="INFO",f[f.DEBUG=3]="DEBUG",f);function l(e,t){const n=e.transformers[t];if(!n)throw new Error(`Transformer not found: ${t}`);return n}c({},{getTransformer:()=>l});function p(e,t){const n=e.sources[t];if(!n)throw new Error(`Source not found: ${t}`);return n}c({},{getSource:()=>p});function d(e,t){const n=e.stores[t];if(!n)throw new Error(`Store not found: ${t}`);return n}async function g(e,t){return await e.get(t)}function y(e){return Array.isArray(e)}function v(e){return void 0!==e}function w(e){return"number"==typeof e&&!Number.isNaN(e)}function h(e){return"object"==typeof e&&null!==e&&!y(e)&&"[object Object]"===Object.prototype.toString.call(e)}function m(e){return"string"==typeof e}function b(e,t="",n){const r=t.split(".");let o=e;for(let e=0;e<r.length;e++){const t=r[e];if("*"===t&&y(o)){const t=r.slice(e+1).join("."),i=[];for(const e of o){const r=b(e,t,n);i.push(r)}return i}if(o=h(o)||y(o)?o[t]:void 0,void 0===o)break}return v(o)?o:n}function O(e){return function(e){return"boolean"==typeof e}(e)||m(e)||w(e)||!v(e)||y(e)&&e.every(O)||h(e)&&Object.values(e).every(O)}function j(e){return O(e)?e:void 0}function P(e,t,n){return async function(...r){try{return await e(...r)}catch(e){if(!t)return;return await t(e)}finally{await(null==n?void 0:n())}}}c({},{getStore:()=>d,getStoreValue:()=>g});var _=class e extends Error{constructor(t,n){super(t,n),this.name="FatalError",Object.setPrototypeOf(this,e.prototype)}};async function R(e,t={},n={}){var r,o;if(!v(e))return;const i=h(e)&&e.consent||n.consent||(null==(r=n.collector)?void 0:r.consent),c=null!=(o=n.event)?o:h(e)?e:{};return k(e,t,{...n,consent:i,event:c})}async function k(e,t={},n={}){var r,o;const i=n.consent||(null==(r=n.collector)?void 0:r.consent),c=null!=(o=n.event)?o:{};if(!n.collector)throw new Error("getMappingValue: context.collector is required");const s={event:c,mapping:t,collector:n.collector,logger:n.collector.logger,consent:i},u=y(t)?t:[t];for(const t of u){const r=await P(N,e=>{if(e instanceof _)throw e;n.collector&&n.collector.status.failed++,s.logger.error("mapping processing failed",{event:c,error:e})})(e,t,{...s,mapping:t});if(v(r))return r}}async function N(e,t,n){return(y(t)?t:[t]).reduce(async(t,r)=>{const o=await t;if(o)return o;const i=m(r)?{key:r}:r;if(!Object.keys(i).length)return;const{condition:c,consent:s,fn:u,key:f,loop:a,map:l,set:p,validate:d,value:g}=i,w={...n,mapping:r};if(c&&!await P(c,e=>{if(e instanceof _)throw e;return w.logger.error("mapping condition failed",{event:w.event,error:e}),!1})(e,w))return;if(s&&!function(e,t={},n={}){const r={...t,...n},o={};let i=!e||0===Object.keys(e).length;return Object.keys(r).forEach(t=>{r[t]&&(o[t]=!0,e&&e[t]&&(i=!0))}),!!i&&o}(s,w.consent))return g;let h=v(g)?g:e;if(a){const[t,n]=a,r="this"===t?[e]:await k(e,t,w);h=y(r)?(await Promise.all(r.map(e=>R(e,n,w)))).filter(v):void 0}else l?h=await Object.entries(l).reduce(async(t,[n,r])=>{const o=await t,i=await k(e,r,w);return v(i)&&(o[n]=i),o},Promise.resolve({})):p?h=await Promise.all(p.map(t=>N(e,t,w))):f?h=b(e,f,g):u&&(h=await P(u,e=>{if(e instanceof _)throw e;w.logger.error("mapping fn failed",{event:w.event,error:e})})(e,w));d&&!await P(d,e=>{if(e instanceof _)throw e;return w.logger.error("mapping validate failed",{event:w.event,error:e}),!1})(h,w)&&(h=void 0);const O=j(h);return v(O)?O:j(g)},Promise.resolve(void 0))}var E="observe";function S(e){const t=(e.startsWith("call:")?e.slice(5):e).split(".");return t.some(e=>""===e)?[]:t}function D(e){return"function"==typeof e}function x(e){return"object"==typeof e&&null!==e}function A(e){return x(e)&&"then"in e&&D(e.then)}var $=["name","length","prototype","arguments","caller"];function q(e,t){if(-1!==$.indexOf(t))return!1;let n=e;for(;D(n);){if(Object.prototype.hasOwnProperty.call(n,t))return!0;const e=Object.getPrototypeOf(n);if(!D(e)||!D(Object.getPrototypeOf(e)))return!1;n=e}return!1}function I(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!(n&&!n.configurable)||"value"in n&&!0===n.writable}function M(e,t){let n=e;for(const e of t){if(D(n)){if(!q(n,e))return!0;if(!I(n,e))return!1}else if(A(n)){if(!(e in n))return!0}else if(!x(n)||!(e in n))return!1;n=Reflect.get(n,e)}return D(n)}function W(e){const t={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...e},n=e&&e[E];if(function(e){if("object"!=typeof e||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;const{paths:t,record:n}=e;return Array.isArray(t)&&t.every(e=>"string"==typeof e)&&"function"==typeof n}(n)){delete t[E];const e=function(e,t,n){const r=[],o=[],i=[];for(const n of t){const t=S(n);if(0===t.length)continue;const r=t.join(".");i.push({rest:t,fn:r}),M(e,t)||o.push(r)}const c=new WeakMap,s=new WeakSet;function u(e,t){for(const o of e)if(n)try{n(o,t)}catch(e){}else r.push({fn:o,args:t,ts:Date.now()})}function f(e,t){return 0===t.length||a(e)?e:A(e)&&!t.some(t=>t.rest[0]in e)?Promise.resolve(e).then(e=>f(e,t)):D(e)?v(e,[],t):x(e)?p(e,t):e}function a(e){return(x(e)||D(e))&&s.has(e)}function l(e,t){const n=[],r=[];for(const o of e)o.rest[0]===t&&(1===o.rest.length?n.includes(o.fn)||n.push(o.fn):r.push({rest:o.rest.slice(1),fn:o.fn}));return{leafs:n,deeper:r}}function p(e,t){var n;const r=t.map(e=>`${e.fn}:${e.rest.join(".")}`).join("|"),o=null!=(n=c.get(e))?n:new Map;c.set(e,o);const i=o.get(r);if(i)return i;const s=d(e,t);return o.set(r,s),s}function d(e,t){return D(e)?g(e,t):t.some(t=>!I(e,t.rest[0]))?function(e,t){const n=Object.create(Object.getPrototypeOf(e)),r=y(e,t,()=>o),o=new Proxy(n,{get:(e,t)=>r.get(t),set:(t,n,r)=>Reflect.set(e,n,r,e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),getOwnPropertyDescriptor(t,n){const r=Reflect.getOwnPropertyDescriptor(e,n);return r&&{...r,configurable:!0}},defineProperty:(t,n,r)=>Reflect.defineProperty(e,n,r),deleteProperty:(t,n)=>Reflect.deleteProperty(e,n)});return s.add(o),o}(e,t):g(e,t)}function g(e,t){const n=y(e,t,()=>r),r=new Proxy(e,{get:(e,t)=>"string"!=typeof t||I(e,t)?n.get(t):Reflect.get(e,t,e),set:(e,t,n)=>Reflect.set(e,t,n,e)});return s.add(r),r}function y(e,t,n){const r=new Map;return{get(o){const i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!D(i)&&!x(i))return i;if(a(i))return i;const c=r.get(o);if(c&&c.value===i)return c.out;const{leafs:s,deeper:u}=l(t,o);if(!(s.length>0||u.length>0)&&(!D(i)||function(e){if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;let f=i;return D(i)?f=v(i,s,u,{proxy:n(),target:e}):u.length>0&&(f=p(i,u)),r.set(o,{value:i,out:f}),f}}}function v(e,t,n,r){const o=()=>n.filter(t=>!q(e,t.rest[0])),i=new Map,c=new Proxy(e,{get(e,t){const r=Reflect.get(e,t,e);if("string"!=typeof t||!I(e,t))return r;if(!q(e,t))return r;const{leafs:o,deeper:s}=l(n,t);if(0===o.length&&0===s.length)return r;if(a(r))return r;const u=i.get(t);if(u&&u.value===r)return u.out;let f=r;return D(r)?f=v(r,o,s,{proxy:c,target:e}):x(r)&&s.length>0&&(f=p(r,s)),i.set(t,{value:r,out:f}),f},set:(e,t,n)=>Reflect.set(e,t,n,e),apply(e,n,i){u(t,i);const c=!r||n!==r.proxy&&void 0!==n?n:r.target;return f(Reflect.apply(e,c,i),o())},construct(e,n,r){u(t,n);const i=Reflect.construct(e,n,r===c?e:r),s=f(i,o());return x(s)||D(s)?s:i}});return s.add(c),c}return{env:d(e,i),calls:r,unresolved:o}}(t,n.paths,n.record).env,r=new Set;for(const e of n.paths){const n=S(e)[0];if(void 0===n)continue;const o=t[n];null!==o&&"object"==typeof o&&r.add(n)}const o=Array.from(r,t=>[t,e[t]]);for(const[e,n]of o)t[e]=n}return t}var K={};function T(e){const{document:t}=W(e),n=t,r=n.createElement("script");r.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",r.async=!0,n.head.appendChild(r)}var F,L={type:"linkedin",config:{},init({config:e,env:t}){const n=e.settings;return!!(null==n?void 0:n.apiKey)&&(function(e,t){const{window:n}=W(e),r=n;r._linkedin_partner_id=t,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(t)||r._linkedin_data_partner_ids.push(t)}(t,n.apiKey),function(e){const{window:t}=W(e),n=t;if(n.lintrk)return;const r=function(...e){(r.q=r.q||[]).push(e)};r.q=[],n.lintrk=r}(t),e.loadScript&&T(t),e)},async push(e,{rule:t,env:n,collector:r}){const{window:o}=W(n),i=o.lintrk;if(!i)return;if(!0===(null==t?void 0:t.silent))return;const c=(null==t?void 0:t.settings)||{};if(void 0===c.conversion)return;const s=function(e){if(!h(e))return;const{id:t,value:n,currency:r,eventId:o}=e,i=w(t)?t:m(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0===i||0===i)return;const c={conversion_id:i};if(w(n))c.conversion_value=n;else if(m(n)&&""!==n){const e=Number(n);Number.isNaN(e)||(c.conversion_value=e)}return m(r)&&""!==r&&(c.currency=r),m(o)&&""!==o&&(c.event_id=o),c}(await R(e,c.conversion,{collector:r}));s&&i("track",s)},on(e,t){if("consent"!==e||!t.data)return;const n=t.data,r=t.config;if(!(null==r?void 0:r.loadScript))return;if(!0!==n.marketing)return;const{document:o}=W(t.env),i=o;(i.querySelector?i.querySelector('script[src*="snap.licdn.com"]'):null)||T(t.env)}},B=L;return F=o,((o,i,c,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let u of n(i))r.call(o,u)||u===c||e(o,u,{get:()=>i[u],enumerable:!(s=t(i,u))||s.enumerable});return o})(e({},"__esModule",{value:!0}),F)})();
|
package/dist/index.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,c,"next",e)}function c(e){asyncGeneratorStep(i,n,o,a,c,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},c=function(e){return void 0!==e},u=function(e){return"number"==typeof e&&!Number.isNaN(e)},l=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},s=function(e){return"string"==typeof e},f=function(e){return E(e)?e:void 0},_=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},p=function(e){return _async_to_generator(function(e){var t,r,n,o,i,u,s,f,p,y,d,v,b,h,g,w,m=arguments;return _ts_generator(this,function(O){switch(O.label){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=m.length>2&&void 0!==m[2]?m[2]:{},!c(e))return[2];if(i=l(e)&&e.consent||r.consent||(null===(o=r.collector)||void 0===o?void 0:o.consent),u=null!==(n=r.event)&&void 0!==n?n:l(e)?e:{},!r.collector)throw new Error("getMappingValue: context.collector is required");s={event:u,mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},f=a(t)?t:[t],p=!0,y=!1,d=void 0,O.label=1;case 1:O.trys.push([1,6,7,8]),v=f[Symbol.iterator](),O.label=2;case 2:return(p=(b=v.next()).done)?[3,5]:(h=b.value,[4,_(N,function(e){if(_instanceof(e,A))throw e;r.collector&&r.collector.status.failed++,s.logger.error("mapping processing failed",{event:u,error:e})})(e,h,_object_spread_props(_object_spread({},s),{mapping:h}))]);case 3:if(g=O.sent(),c(g))return[2,g];O.label=4;case 4:return p=!0,[3,2];case 5:return[3,8];case 6:return w=O.sent(),y=!0,d=w,[3,8];case 7:try{p||null==v.return||v.return()}finally{if(y)throw d}return[7];case 8:return[2]}})}).apply(this,arguments)},y=function(e){var t=(e.startsWith(R)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},d=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[I];if(function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[I];var n=new Map,o=!0,i=!1,a=void 0;try{for(var c,u=r.paths[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l,s=c.value,f=y(s),_=f[0];if(void 0!==_){var p=null!==(l=n.get(_))&&void 0!==l?l:[];p.push(f.slice(1)),n.set(_,p)}}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}var d=!0,v=!1,b=void 0;try{for(var h,g=n[Symbol.iterator]();!(d=(h=g.next()).done);d=!0){var w=_sliced_to_array(h.value,2),m=w[0],O=w[1],j=t[m];null!==j&&"object"==(void 0===j?"undefined":_type_of(j))&&(t[m]=x(j,O,r.record,m))}}catch(e){v=!0,b=e}finally{try{d||null==g.return||g.return()}finally{if(v)throw b}}}return t},v=function(e){var t=d(e).document,r=t.createElement("script");r.src=q,r.async=!0,t.head.appendChild(r)},b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,m={};!function(e,t){for(var r in t)b(e,r,{get:t[r],enumerable:!0})}(m,{DestinationLinkedIn:function(){return T},default:function(){return G},destinationLinkedIn:function(){return M}});var O=Object.defineProperty,j=function(e,t){for(var r in t)O(e,r,{get:t[r],enumerable:!0})};j({},{stepId:function(){return e}});j({},{getDestination:function(){return t}});j({},{Level:function(){return k}});var S,k=((S=k||{})[S.ERROR=0]="ERROR",S[S.WARN=1]="WARN",S[S.INFO=2]="INFO",S[S.DEBUG=3]="DEBUG",S);j({},{getTransformer:function(){return r}});j({},{getSource:function(){return n}});function P(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var u=r.slice(o+1).join("."),s=[],f=!0,_=!1,p=void 0;try{for(var y,d=n[Symbol.iterator]();!(f=(y=d.next()).done);f=!0){var v=P(y.value,u,t);s.push(v)}}catch(e){_=!0,p=e}finally{try{f||null==d.return||d.return()}finally{if(_)throw p}}return s}if(void 0===(n=l(n)||a(n)?n[i]:void 0))break}return c(n)?n:t}function E(e){return function(e){return"boolean"==typeof e}(e)||s(e)||u(e)||!c(e)||a(e)&&e.every(E)||l(e)&&Object.values(e).every(E)}j({},{getStore:function(){return o},getStoreValue:function(){return i}});var A=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function N(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(a(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var o,i,u,l,y,d,v,b,h,g,w,m,O,j,S,k,E,I,R,x,D,T,q,M,G;return _ts_generator(this,function(F){switch(F.label){case 0:return[4,t];case 1:return(o=F.sent())?[2,o]:(i=s(n)?{key:n}:n,Object.keys(i).length?(u=i.condition,l=i.consent,y=i.fn,d=i.key,v=i.loop,b=i.map,h=i.set,g=i.validate,w=i.value,m=_object_spread_props(_object_spread({},r),{mapping:n}),(O=u)?[4,_(u,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping condition failed",{event:m.event,error:e}),!1})(e,m)]:[3,3]):[2]);case 2:O=!F.sent(),F.label=3;case 3:return O?[2]:l&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(l,m.consent)?[2,w]:(j=c(w)?w:e,v?(S=_sliced_to_array(v,2),k=S[0],E=S[1],"this"!==k?[3,4]:(R=[e],[3,6])):[3,10]);case 4:return[4,p(e,k,m)];case 5:R=F.sent(),F.label=6;case 6:return a(I=R)?[4,Promise.all(I.map(function(e){return p(e,E,m)}))]:[3,8];case 7:return x=F.sent().filter(c),[3,9];case 8:x=void 0,F.label=9;case 9:return j=x,[3,21];case 10:return b?[4,Object.entries(b).reduce(function(t,r){var n=_sliced_to_array(r,2),o=n[0],i=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(a){switch(a.label){case 0:return[4,t];case 1:return r=a.sent(),[4,p(e,i,m)];case 2:return n=a.sent(),[2,(c(n)&&(r[o]=n),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return j=F.sent(),[3,20];case 12:return h?[4,Promise.all(h.map(function(t){return N(e,t,m)}))]:[3,14];case 13:return D=j=F.sent(),[3,19];case 14:return d?(T=j=P(e,d,w),[3,18]):[3,15];case 15:return(q=y)?[4,_(y,function(e){if(_instanceof(e,A))throw e;m.logger.error("mapping fn failed",{event:m.event,error:e})})(e,m)]:[3,17];case 16:q=j=F.sent(),F.label=17;case 17:T=q,F.label=18;case 18:D=T,F.label=19;case 19:F.label=20;case 20:F.label=21;case 21:return(M=g)?[4,_(g,function(e){if(_instanceof(e,A))throw e;return m.logger.error("mapping validate failed",{event:m.event,error:e}),!1})(j,m)]:[3,23];case 22:M=!F.sent(),F.label=23;case 23:return M&&(j=void 0),G=f(j),[2,c(G)?G:f(w)]}})})()},Promise.resolve(void 0))]})})()}var I="observe",R="call:";function x(e,t,r,n){var o=new Map;return new Proxy(e,{get:function(e,i){if("string"!=typeof i)return Reflect.get(e,i,e);var a=o.get(i);if(void 0!==a)return a;if(t.some(function(e){return 1===e.length&&e[0]===i})){var c=Reflect.get(e,i,e);if("function"!=typeof c)return c;var u="".concat(n,".").concat(i),l=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];try{r(u,n)}catch(e){}return c.apply(e,n)};return o.set(i,l),l}var s=t.filter(function(e){return e.length>1&&e[0]===i}).map(function(e){return e.slice(1)});if(s.length>0){var f=Reflect.get(e,i,e);if(null===f||"object"!=(void 0===f?"undefined":_type_of(f)))return f;var _=x(f,s,r,"".concat(n,".").concat(i));return o.set(i,_),_}return Reflect.get(e,i,e)}})}var D,T={},q="https://snap.licdn.com/li.lms-analytics/insight.min.js",M={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(e,t){var r=d(e).window;r._linkedin_partner_id=t,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(t)||r._linkedin_data_partner_ids.push(t)}(r,n.apiKey),function(e){var t=d(e).window;if(!t.lintrk){var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q=r.q||[]).push(t)};r.q=[],t.lintrk=r}}(r),t.loadScript&&v(r),t)},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,c,f,_,y;return _ts_generator(this,function(v){switch(v.label){case 0:return r=t.rule,n=t.env,o=t.collector,i=d(n),a=i.window,(c=a.lintrk)?!0===(null==r?void 0:r.silent)||void 0===(f=(null==r?void 0:r.settings)||{}).conversion?[2]:[4,p(e,f.conversion,{collector:o})]:[2];case 1:return _=v.sent(),y=function(e){if(l(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=u(t)?t:s(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(u(r))a.conversion_value=r;else if(s(r)&&""!==r){var c=Number(r);Number.isNaN(c)||(a.conversion_value=c)}return s(n)&&""!==n&&(a.currency=n),s(o)&&""!==o&&(a.event_id=o),a}}}(_),y?(c("track",y),[2]):[2]}})}).apply(this,arguments)},on:function(e,t){if("consent"===e&&t.data){var r=t.data,n=t.config;if((null==n?void 0:n.loadScript)&&!0===r.marketing){var o=d(t.env).document;(o.querySelector?o.querySelector('script[src*="snap.licdn.com"]'):null)||v(t.env)}}}},G=M;return D=m,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var c,u=function(){var o=c.value;w.call(e,o)||o===r||b(e,o,{get:function(){return t[o]},enumerable:!(n=h(t,o))||n.enumerable})},l=g(t)[Symbol.iterator]();!(o=(c=l.next()).done);o=!0)u()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(b({},"__esModule",{value:!0}),D)}();
|
|
1
|
+
"use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,u,"next",e)}function u(e){asyncGeneratorStep(i,n,o,a,u,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:c(0)}),u(a,"throw",{value:c(1)}),u(a,"return",{value:c(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},u=function(e){return void 0!==e},c=function(e){return"number"==typeof e&&!Number.isNaN(e)},l=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},f=function(e){return"string"==typeof e},s=function(e){return T(e)?e:void 0},_=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},p=function(e){return _async_to_generator(function(e){var t,r,n,o,i,a,c=arguments;return _ts_generator(this,function(f){return t=c.length>1&&void 0!==c[1]?c[1]:{},r=c.length>2&&void 0!==c[2]?c[2]:{},u(e)?(i=l(e)&&e.consent||r.consent||(null===(o=r.collector)||void 0===o?void 0:o.consent),a=null!==(n=r.event)&&void 0!==n?n:l(e)?e:{},[2,y(e,t,_object_spread_props(_object_spread({},r),{consent:i,event:a}))]):[2]})}).apply(this,arguments)},y=function(e){return _async_to_generator(function(e){var t,r,n,o,i,c,l,f,s,p,y,v,d,b,h,g,w=arguments;return _ts_generator(this,function(m){switch(m.label){case 0:if(t=w.length>1&&void 0!==w[1]?w[1]:{},i=(r=w.length>2&&void 0!==w[2]?w[2]:{}).consent||(null===(o=r.collector)||void 0===o?void 0:o.consent),c=null!==(n=r.event)&&void 0!==n?n:{},!r.collector)throw new Error("getMappingValue: context.collector is required");l={event:c,mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},f=a(t)?t:[t],s=!0,p=!1,y=void 0,m.label=1;case 1:m.trys.push([1,6,7,8]),v=f[Symbol.iterator](),m.label=2;case 2:return(s=(d=v.next()).done)?[3,5]:(b=d.value,[4,_(q,function(e){if(_instanceof(e,M))throw e;r.collector&&r.collector.status.failed++,l.logger.error("mapping processing failed",{event:c,error:e})})(e,b,_object_spread_props(_object_spread({},l),{mapping:b}))]);case 3:if(h=m.sent(),u(h))return[2,h];m.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return g=m.sent(),p=!0,y=g,[3,8];case 7:try{s||null==v.return||v.return()}finally{if(p)throw y}return[7];case 8:return[2]}})}).apply(this,arguments)},v=function(e){var t=(e.startsWith(F)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},d=function(e){return"function"==typeof e},b=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e},h=function(e){return b(e)&&"then"in e&&d(e.then)},g=function(e,t){if(-1!==W.indexOf(t))return!1;for(var r=e;d(r);){if(Object.prototype.hasOwnProperty.call(r,t))return!0;var n=Object.getPrototypeOf(r);if(!d(n)||!d(Object.getPrototypeOf(n)))return!1;r=n}return!1},w=function(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);return!(r&&!r.configurable)||"value"in r&&!0===r.writable},m=function(e,t){var r=e,n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var c=a.value;if(d(r)){if(!g(r,c))return!0;if(!w(r,c))return!1}else if(h(r)){if(!(c in r))return!0}else if(!b(r)||!(c in r))return!1;r=Reflect.get(r,c)}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return d(r)},O=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[K];if(function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[K];var n=function(e,t,r){var n=[],o=[],i=[],a=!0,u=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var s=l.value,_=v(s);if(0!==_.length){var p=_.join(".");i.push({rest:_,fn:p}),m(e,_)||o.push(p)}}}catch(e){u=!0,c=e}finally{try{a||null==f.return||f.return()}finally{if(u)throw c}}var y=new WeakMap,O=new WeakSet;function j(e,t){var o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(r)try{r(l,t)}catch(e){}else n.push({fn:l,args:t,ts:Date.now()})}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}function S(e,t){return 0===t.length||P(e)?e:h(e)&&!t.some(function(t){return t.rest[0]in e})?Promise.resolve(e).then(function(e){return S(e,t)}):d(e)?N(e,[],t):b(e)?R(e,t):e}function P(e){return(b(e)||d(e))&&O.has(e)}function k(e,t){var r=[],n=[],o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;l.rest[0]===t&&(1===l.rest.length?r.includes(l.fn)||r.push(l.fn):n.push({rest:l.rest.slice(1),fn:l.fn}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return{leafs:r,deeper:n}}function R(e,t){var r,n=t.map(function(e){return"".concat(e.fn,":").concat(e.rest.join("."))}).join("|"),o=null!==(r=y.get(e))&&void 0!==r?r:new Map;y.set(e,o);var i=o.get(n);if(i)return i;var a=x(e,t);return o.set(n,a),a}function x(e,t){return d(e)?E(e,t):t.some(function(t){return!w(e,t.rest[0])})?function(e,t){var r=Object.create(Object.getPrototypeOf(e)),n=A(e,t,function(){return o}),o=new Proxy(r,{get:function(e,t){return n.get(t)},set:function(t,r,n){return Reflect.set(e,r,n,e)},has:function(t,r){return Reflect.has(e,r)},ownKeys:function(){return Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(t,r){var n=Reflect.getOwnPropertyDescriptor(e,r);return n&&_object_spread_props(_object_spread({},n),{configurable:!0})},defineProperty:function(t,r,n){return Reflect.defineProperty(e,r,n)},deleteProperty:function(t,r){return Reflect.deleteProperty(e,r)}});return O.add(o),o}(e,t):E(e,t)}function E(e,t){var r=A(e,t,function(){return n}),n=new Proxy(e,{get:function(e,t){return"string"!=typeof t||w(e,t)?r.get(t):Reflect.get(e,t,e)},set:function(e,t,r){return Reflect.set(e,t,r,e)}});return O.add(n),n}function A(e,t,r){var n=new Map;return{get:function(o){var i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!d(i)&&!b(i))return i;if(P(i))return i;var a=n.get(o);if(a&&a.value===i)return a.out;var u=k(t,o),c=u.leafs,l=u.deeper;if(!(c.length>0||l.length>0)&&(!d(i)||function(e){if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;var f=i;return d(i)?f=N(i,c,l,{proxy:r(),target:e}):l.length>0&&(f=R(i,l)),n.set(o,{value:i,out:f}),f}}}function N(e,t,r,n){var o=function(){return r.filter(function(t){return!g(e,t.rest[0])})},i=new Map,a=new Proxy(e,{get:function(e,t){var n=Reflect.get(e,t,e);if("string"!=typeof t||!w(e,t))return n;if(!g(e,t))return n;var o=k(r,t),u=o.leafs,c=o.deeper;if(0===u.length&&0===c.length)return n;if(P(n))return n;var l=i.get(t);if(l&&l.value===n)return l.out;var f=n;return d(n)?f=N(n,u,c,{proxy:a,target:e}):b(n)&&c.length>0&&(f=R(n,c)),i.set(t,{value:n,out:f}),f},set:function(e,t,r){return Reflect.set(e,t,r,e)},apply:function(e,r,i){j(t,i);var a=!n||r!==n.proxy&&void 0!==r?r:n.target;return S(Reflect.apply(e,a,i),o())},construct:function(e,r,n){j(t,r);var i=Reflect.construct(e,r,n===a?e:n),u=S(i,o());return b(u)||d(u)?u:i}});return O.add(a),a}return{env:x(e,i),calls:n,unresolved:o}}(t,r.paths,r.record).env,o=new Set,i=!0,a=!1,u=void 0;try{for(var c,l=r.paths[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var f=c.value,s=v(f)[0];if(void 0!==s){var _=t[s];null!==_&&"object"==(void 0===_?"undefined":_type_of(_))&&o.add(s)}}}catch(e){a=!0,u=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw u}}var p=Array.from(o,function(e){return[e,n[e]]}),y=!0,O=!1,j=void 0;try{for(var S,P=p[Symbol.iterator]();!(y=(S=P.next()).done);y=!0){var k=_sliced_to_array(S.value,2),R=k[0],x=k[1];t[R]=x}}catch(e){O=!0,j=e}finally{try{y||null==P.return||P.return()}finally{if(O)throw j}}}return t},j=function(e){var t=O(e).document,r=t.createElement("script");r.src=C,r.async=!0,t.head.appendChild(r)},S=Object.defineProperty,P=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,R=Object.prototype.hasOwnProperty,x={};!function(e,t){for(var r in t)S(e,r,{get:t[r],enumerable:!0})}(x,{DestinationLinkedIn:function(){return B},default:function(){return U},destinationLinkedIn:function(){return L}});var E=Object.defineProperty,A=function(e,t){for(var r in t)E(e,r,{get:t[r],enumerable:!0})};A({},{stepId:function(){return e}});A({},{getDestination:function(){return t}});A({},{Level:function(){return D}});var N,D=((N=D||{})[N.ERROR=0]="ERROR",N[N.WARN=1]="WARN",N[N.INFO=2]="INFO",N[N.DEBUG=3]="DEBUG",N);A({},{getTransformer:function(){return r}});A({},{getSource:function(){return n}});function I(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var c=r.slice(o+1).join("."),f=[],s=!0,_=!1,p=void 0;try{for(var y,v=n[Symbol.iterator]();!(s=(y=v.next()).done);s=!0){var d=I(y.value,c,t);f.push(d)}}catch(e){_=!0,p=e}finally{try{s||null==v.return||v.return()}finally{if(_)throw p}}return f}if(void 0===(n=l(n)||a(n)?n[i]:void 0))break}return u(n)?n:t}function T(e){return function(e){return"boolean"==typeof e}(e)||f(e)||c(e)||!u(e)||a(e)&&e.every(T)||l(e)&&Object.values(e).every(T)}A({},{getStore:function(){return o},getStoreValue:function(){return i}});var M=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t,r])).name="FatalError",Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}();function q(e,t,r){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,(a(t)?t:[t]).reduce(function(t,n){return _async_to_generator(function(){var o,i,c,l,v,d,b,h,g,w,m,O,j,S,P,k,R,x,E,A,N,D,T,G,K;return _ts_generator(this,function(F){switch(F.label){case 0:return[4,t];case 1:return(o=F.sent())?[2,o]:(i=f(n)?{key:n}:n,Object.keys(i).length?(c=i.condition,l=i.consent,v=i.fn,d=i.key,b=i.loop,h=i.map,g=i.set,w=i.validate,m=i.value,O=_object_spread_props(_object_spread({},r),{mapping:n}),(j=c)?[4,_(c,function(e){if(_instanceof(e,M))throw e;return O.logger.error("mapping condition failed",{event:O.event,error:e}),!1})(e,O)]:[3,3]):[2]);case 2:j=!F.sent(),F.label=3;case 3:return j?[2]:l&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(l,O.consent)?[2,m]:(S=u(m)?m:e,b?(P=_sliced_to_array(b,2),k=P[0],R=P[1],"this"!==k?[3,4]:(E=[e],[3,6])):[3,10]);case 4:return[4,y(e,k,O)];case 5:E=F.sent(),F.label=6;case 6:return a(x=E)?[4,Promise.all(x.map(function(e){return p(e,R,O)}))]:[3,8];case 7:return A=F.sent().filter(u),[3,9];case 8:A=void 0,F.label=9;case 9:return S=A,[3,21];case 10:return h?[4,Object.entries(h).reduce(function(t,r){var n=_sliced_to_array(r,2),o=n[0],i=n[1];return _async_to_generator(function(){var r,n;return _ts_generator(this,function(a){switch(a.label){case 0:return[4,t];case 1:return r=a.sent(),[4,y(e,i,O)];case 2:return n=a.sent(),[2,(u(n)&&(r[o]=n),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return S=F.sent(),[3,20];case 12:return g?[4,Promise.all(g.map(function(t){return q(e,t,O)}))]:[3,14];case 13:return N=S=F.sent(),[3,19];case 14:return d?(D=S=I(e,d,m),[3,18]):[3,15];case 15:return(T=v)?[4,_(v,function(e){if(_instanceof(e,M))throw e;O.logger.error("mapping fn failed",{event:O.event,error:e})})(e,O)]:[3,17];case 16:T=S=F.sent(),F.label=17;case 17:D=T,F.label=18;case 18:N=D,F.label=19;case 19:F.label=20;case 20:F.label=21;case 21:return(G=w)?[4,_(w,function(e){if(_instanceof(e,M))throw e;return O.logger.error("mapping validate failed",{event:O.event,error:e}),!1})(S,O)]:[3,23];case 22:G=!F.sent(),F.label=23;case 23:return G&&(S=void 0),K=s(S),[2,u(K)?K:s(m)]}})})()},Promise.resolve(void 0))]})})()}var G,K="observe",F="call:",W=["name","length","prototype","arguments","caller"],B={},C="https://snap.licdn.com/li.lms-analytics/insight.min.js",L={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;return!!(null==n?void 0:n.apiKey)&&(function(e,t){var r=O(e).window;r._linkedin_partner_id=t,r._linkedin_data_partner_ids=r._linkedin_data_partner_ids||[],r._linkedin_data_partner_ids.includes(t)||r._linkedin_data_partner_ids.push(t)}(r,n.apiKey),function(e){var t=O(e).window;if(!t.lintrk){var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q=r.q||[]).push(t)};r.q=[],t.lintrk=r}}(r),t.loadScript&&j(r),t)},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,u,s,_,y;return _ts_generator(this,function(v){switch(v.label){case 0:return r=t.rule,n=t.env,o=t.collector,i=O(n),a=i.window,(u=a.lintrk)?!0===(null==r?void 0:r.silent)||void 0===(s=(null==r?void 0:r.settings)||{}).conversion?[2]:[4,p(e,s.conversion,{collector:o})]:[2];case 1:return _=v.sent(),y=function(e){if(l(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=c(t)?t:f(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(c(r))a.conversion_value=r;else if(f(r)&&""!==r){var u=Number(r);Number.isNaN(u)||(a.conversion_value=u)}return f(n)&&""!==n&&(a.currency=n),f(o)&&""!==o&&(a.event_id=o),a}}}(_),y?(u("track",y),[2]):[2]}})}).apply(this,arguments)},on:function(e,t){if("consent"===e&&t.data){var r=t.data,n=t.config;if((null==n?void 0:n.loadScript)&&!0===r.marketing){var o=O(t.env).document;(o.querySelector?o.querySelector('script[src*="snap.licdn.com"]'):null)||j(t.env)}}}},U=L;return G=x,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var u,c=function(){var o=u.value;R.call(e,o)||o===r||S(e,o,{get:function(){return t[o]},enumerable:!(n=P(t,o))||n.enumerable})},l=k(t)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)c()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(S({},"__esModule",{value:!0}),G)}();
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-linkedin",
|
|
4
|
-
"version": "4.7.0
|
|
4
|
+
"version": "4.7.0",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
8
8
|
],
|
|
9
|
+
"exports": {},
|
|
9
10
|
"docs": "https://www.walkeros.io/docs/destinations/web/linkedin",
|
|
10
11
|
"source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/linkedin/src"
|
|
11
12
|
},
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"consent": {
|
|
127
128
|
"functional": true
|
|
128
129
|
},
|
|
129
|
-
"id": "
|
|
130
|
+
"id": "d565259670739040",
|
|
130
131
|
"trigger": "test",
|
|
131
132
|
"entity": "form",
|
|
132
133
|
"action": "submit",
|
|
@@ -274,7 +275,7 @@
|
|
|
274
275
|
"consent": {
|
|
275
276
|
"functional": true
|
|
276
277
|
},
|
|
277
|
-
"id": "
|
|
278
|
+
"id": "5ba9df1286da811c",
|
|
278
279
|
"trigger": "test",
|
|
279
280
|
"entity": "form",
|
|
280
281
|
"action": "submit",
|
|
@@ -657,7 +658,7 @@
|
|
|
657
658
|
"consent": {
|
|
658
659
|
"functional": true
|
|
659
660
|
},
|
|
660
|
-
"id": "
|
|
661
|
+
"id": "ca4b88f76f3ec653",
|
|
661
662
|
"trigger": "test",
|
|
662
663
|
"entity": "form",
|
|
663
664
|
"action": "submit",
|
|
@@ -723,7 +724,7 @@
|
|
|
723
724
|
"consent": {
|
|
724
725
|
"functional": true
|
|
725
726
|
},
|
|
726
|
-
"id": "
|
|
727
|
+
"id": "647357253e03e7b4",
|
|
727
728
|
"trigger": "load",
|
|
728
729
|
"entity": "product",
|
|
729
730
|
"action": "view",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-linkedin",
|
|
3
3
|
"description": "LinkedIn Insight Tag web destination for walkerOS (conversion tracking, retargeting, demographic insights)",
|
|
4
|
-
"version": "4.7.0
|
|
4
|
+
"version": "4.7.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"update": "npx npm-check-updates -u && npm update"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@walkeros/core": "4.7.0
|
|
42
|
-
"@walkeros/web-core": "4.7.0
|
|
41
|
+
"@walkeros/core": "4.7.0",
|
|
42
|
+
"@walkeros/web-core": "4.7.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@walkeros/collector": "4.7.0
|
|
45
|
+
"@walkeros/collector": "4.7.0"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|