vendor: 6,409 bytes, line 1
1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4472],{86930:(e,t,n)=>{n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>E,__asyncGenerator:()=>b,__asyncValues:()=>P,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>j,__classPrivateFieldSet:()=>S,__createBinding:()=>d,__decorate:()=>s,__exportStar:()=>h,__extends:()=>i,__generator:()=>f,__importDefault:()=>N,__importStar:()=>T,__makeTemplateObject:()=>O,__metadata:()=>c,__param:()=>l,__read:()=>y,__rest:()=>a,__spread:()=>g,__spreadArray:()=>_,__spreadArrays:()=>v,__values:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function _(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof w?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var m=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};
1function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return m(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function S(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function j(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},78790:(e,t,n)=>{var r,i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.NinetailedPrivacyPlugin=t.DEFAULT_ACCEPTED_CONSENT_CONFIG=t.DEFAULT_PRIVACY_CONFIG=t.PLUGIN_NAME=void 0;const c=n(86930),u=n(21461),f=n(3854),d=c.__importDefault(n(79898)),h=n(37262);t.PLUGIN_NAME="ninetailed:privacy",t.DEFAULT_PRIVACY_CONFIG={allowedEvents:["page"],allowedPageEventProperties:["*"],allowedTrackEventProperties:[],allowedTrackEvents:[],allowedTraits:[],blockProfileMerging:!0,enabledFeatures:[]},t.DEFAULT_ACCEPTED_CONSENT_CONFIG={allowedEvents:["page","track","identify","component","component_click","component_hover"],allowedPageEventProperties:["*"],allowedTrackEventProperties:["*"],allowedTrackEvents:["*"],allowedTraits:["*"],blockProfileMerging:!1,enabledFeatures:Object.values(u.FEATURES)};const p=`page:${f.PLUGIN_NAME}`,y=`track:${f.PLUGIN_NAME}`,g=`identify:${f.PLUGIN_NAME}`;class v extends h.NinetailedPlugin{constructor(e,n){super(),this.name=t.PLUGIN_NAME,this._instance=null,this.queue=[],this.initialize=({instance:e})=>c.__awaiter(this,void 0,void 0,function*(){this._instance=e,e.on("setItemEnd",({payload:{key:e}})=>c.__awaiter(this,void 0,void 0,function*(){e===f.CONSENT&&(yield this.enableFeatures(this.getConfig().enabledFeatures))})),yield this.enableFeatures(this.getConfig().enabledFeatures),this.registerWindowHandlers()}),this.handleEventStart=(e,t)=>({payload:n,abort:r})=>this.getConfig().allowedEvents.includes(e)?"function"==typeof t?t(n,r):n:(this.queue.push(n),r()),this.pageStart=this.handleEventStart("page"),this[r]=this.handleEventStart("page",e=>{const t=this.pickAllowedKeys(e.properties,this.getConfig().allowedPageEventProperties);return(0,u.isPlainDeepEqual)(e.properties,t)||u.logger.info("[Ninetailed Privacy Plugin] Some properties were removed from the page event, as they are not allowed to send by your configuration. The following properties were kept:",t),Object.assign(Object.assign({},e),{properties:t})}),this.trackStart=this.handleEventStart("track"),this[i]=this.handleEventStart("track",(e,t)=>{if(!this.getConfig().allowedTrackEvents.includes("*")&&!this.getConfig().allowedTrackEvents.includes(e.event))return u.logger.info("[Ninetailed Privacy Plugin] The track event was blocked, as it is not allowed to send by your configuration."),this.queue.push(e),t();const n=this.pickAllowedKeys(e.properties,this.getConfig().allowedTrackEventProperties);return(0,u.isPlainDeepEqual)(e.properties,n)||u.logger.info("[Ninetailed Privacy Plugin] Some properties were removed from the track event, as they are not allowed to send by your configuration. The following properties were kept:",n),Object.assign(Object.assign({},e),{properties:n})}),this.identifyStart=this.handleEventStart("identify"),this[o]=this.handleEventStart("identify",e=>{const t=this.pickAllowedKeys(e.traits,this.getConfig().allowedTraits);(0,u.isPlainDeepEqual)(e.traits,t)||u.logger.info("[Ninetailed Privacy Plugin] Some traits were removed from the identify event, as they are not allowed to send by your configuration. The following traits were kept:",t),this.getConfig().blockProfileMerging&&e.userId&&u.logger.info("[Ninetailed Privacy Plugin] Profile merging is blocked. The userId will be ignored.");const n=this.getConfig().blockProfileMerging?"":e.userId;return Object.assign(Object.assign({},e),{traits:t,userId:n})}),this[a]=this.handleEventStart(f.COMPONENT),this[s]=this.handleEventStart(f.COMPONENT_CLICK),this[l]=this.handleEventStart(f.COMPONENT_HOVER),this.methods={consent:this.consent.bind(this)},this.config=Object.assign(Object.assign({},t.DEFAULT_PRIVACY_CONFIG),e),this.acceptedConsentConfig=Object.assign(Object.assign({},t.DEFAULT_ACCEPTED_CONSENT_CONFIG),n)}get instance(){if(!this._instance)throw new Error("The Ninetailed Privacy Plugin was not initialized correctly. Please make sure to call the initialize method before using it.");return this._instance}consent(e){e?this.instance.storage.setItem(f.CONSENT,"accepted"):this.instance.storage.removeItem(f.CONSENT)}isConsentGiven(){if(!this._instance)return!1;const e=this.instance.storage.getItem(f.CONSENT);return e&&"accepted"===e}registerWindowHandlers(){if("undefined"!=typeof window)try{window.ninetailed=Object.assign({},window.ninetailed,{consent:this.consent.bind(this)})}catch(e){window.ninetailed=Object.assign({},window.ninetailed,{consent:()=>{console.warn("The ninetailed privacy plugin consent method could not get initialized.")}})}}getConfig(){return this.isConsentGiven()?this.acceptedConsentConfig:this.config}pickAllowedKeys(e,t){if(t.includes("*"))return e;const n=t.map(e=>(0,d.default)(e));return(0,u.pickBy)(e,(e,t)=>n.filter(e=>e(t)).length>0)}enableFeatures(e){return c.__awaiter(this,void 0,void 0,function*(){yield this.instance.dispatch({type:f.SET_ENABLED_FEATURES,features:e})})}}t.NinetailedPrivacyPlugin=v,r=p,i=y,o=g,a=f.COMPONENT_START,s=f.COMPONENT_CLICK_START,l=f.COMPONENT_HOVER_START},9784:(e,t,n)=>{t.v$=void 0;var r=n(78790);Object.defineProperty(t,"v$",{enumerable:!0,get:function(){return r.
1NinetailedPrivacyPlugin}});n(78790)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.