@digitap.ai/sync-sdk 0.0.1 → 0.0.2
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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function r(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var o="4.6.2";function i(e,n){return new Promise((function(t){return setTimeout(t,e,n)}))}function a(e){return!!e&&"function"==typeof e.then}function c(e,n){try{var t=e();a(t)?t.then((function(e){return n(!0,e)}),(function(e){return n(!1,e)})):n(!0,t)}catch(e){n(!1,e)}}function u(e,r,o){return void 0===o&&(o=16),n(this,void 0,void 0,(function(){var n,i,a,c;return t(this,(function(t){switch(t.label){case 0:n=Array(e.length),i=Date.now(),a=0,t.label=1;case 1:return a<e.length?(n[a]=r(e[a],a),(c=Date.now())>=i+o?(i=c,[4,new Promise((function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:t.sent(),t.label=3;case 3:return++a,[3,1];case 4:return[2,n]}}))}))}function s(e){return e.then(void 0,(function(){})),e}function l(e){return parseInt(e)}function d(e){return parseFloat(e)}function f(e,n){return"number"==typeof e&&isNaN(e)?n:e}function m(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function v(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function h(e,n){var t=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=n[0]>>>16,c=65535&n[0],u=n[1]>>>16,s=0,l=0,d=0,f=0;d+=(f+=i+(65535&n[1]))>>>16,f&=65535,l+=(d+=o+u)>>>16,d&=65535,s+=(l+=r+c)>>>16,l&=65535,s+=t+a,s&=65535,e[0]=s<<16|l,e[1]=d<<16|f}function p(e,n){var t=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=n[0]>>>16,c=65535&n[0],u=n[1]>>>16,s=65535&n[1],l=0,d=0,f=0,m=0;f+=(m+=i*s)>>>16,m&=65535,d+=(f+=o*s)>>>16,f&=65535,d+=(f+=i*u)>>>16,f&=65535,l+=(d+=r*s)>>>16,d&=65535,l+=(d+=o*u)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=t*s+r*u+o*c+i*a,l&=65535,e[0]=l<<16|d,e[1]=f<<16|m}function y(e,n){var t=e[0];32===(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(n-=32,e[0]=e[1]<<n|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function b(e,n){0!==(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function g(e,n){e[0]^=n[0],e[1]^=n[1]}var w=[4283543511,3981806797],L=[3301882366,444984403];function k(e){var n=[0,e[0]>>>1];g(e,n),p(e,w),n[1]=e[0]>>>1,g(e,n),p(e,L),n[1]=e[0]>>>1,g(e,n)}var V=[2277735313,289559509],S=[1291169091,658871167],I=[0,5],W=[0,1390208809],x=[0,944331445];function Z(e,n){var t=function(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e);n=n||0;var r,o=[0,t.length],i=o[1]%16,a=o[1]-i,c=[0,n],u=[0,n],s=[0,0],l=[0,0];for(r=0;r<a;r+=16)s[0]=t[r+4]|t[r+5]<<8|t[r+6]<<16|t[r+7]<<24,s[1]=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24,l[0]=t[r+12]|t[r+13]<<8|t[r+14]<<16|t[r+15]<<24,l[1]=t[r+8]|t[r+9]<<8|t[r+10]<<16|t[r+11]<<24,p(s,V),y(s,31),p(s,S),g(c,s),y(c,27),h(c,u),p(c,I),h(c,W),p(l,S),y(l,33),p(l,V),g(u,l),y(u,31),h(u,c),p(u,I),h(u,x);s[0]=0,s[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=t[r+14],b(d,48),g(l,d);case 14:d[1]=t[r+13],b(d,40),g(l,d);case 13:d[1]=t[r+12],b(d,32),g(l,d);case 12:d[1]=t[r+11],b(d,24),g(l,d);case 11:d[1]=t[r+10],b(d,16),g(l,d);case 10:d[1]=t[r+9],b(d,8),g(l,d);case 9:d[1]=t[r+8],g(l,d),p(l,S),y(l,33),p(l,V),g(u,l);case 8:d[1]=t[r+7],b(d,56),g(s,d);case 7:d[1]=t[r+6],b(d,48),g(s,d);case 6:d[1]=t[r+5],b(d,40),g(s,d);case 5:d[1]=t[r+4],b(d,32),g(s,d);case 4:d[1]=t[r+3],b(d,24),g(s,d);case 3:d[1]=t[r+2],b(d,16),g(s,d);case 2:d[1]=t[r+1],b(d,8),g(s,d);case 1:d[1]=t[r],g(s,d),p(s,V),y(s,31),p(s,S),g(c,s)}return g(c,o),g(u,o),h(c,u),h(u,c),k(c),k(u),h(c,u),h(u,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}function M(e,r,o,i){var a=Object.keys(e).filter((function(e){return!function(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(o,e)})),l=s(u(a,(function(n){return function(e,n){var t=s(new Promise((function(t){var r=Date.now();c(e.bind(null,n),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=Date.now()-r;if(!e[0])return t((function(){return{error:e[1],duration:o}}));var i=e[1];if(function(e){return"function"!=typeof e}(i))return t((function(){return{value:i,duration:o}}));t((function(){return new Promise((function(e){var n=Date.now();c(i,(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=o+Date.now()-n;if(!t[0])return e({error:t[1],duration:i});e({value:t[1],duration:i})}))}))}))}))})));return function(){return t.then((function(e){return e()}))}}(e[n],r)}),i));return function(){return n(this,void 0,void 0,(function(){var e,n,r,o;return t(this,(function(t){switch(t.label){case 0:return[4,l];case 1:return[4,u(t.sent(),(function(e){return s(e())}),i)];case 2:return e=t.sent(),[4,Promise.all(e)];case 3:for(n=t.sent(),r={},o=0;o<a.length;++o)r[a[o]]=n[o];return[2,r]}}))}))}}function R(){var e=window,n=navigator;return m(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function G(){var e=window,n=navigator;return m(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===(n.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function F(){var e=window;return m(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function j(){var e=window,n=e.HTMLElement,t=e.Document;return m(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function P(){var e,n=window;return e=n.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(n.browser)}function Y(){var e,n,t=window;return m(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function C(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return m([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function X(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function E(){var e=G(),n=Y(),t=window,r=navigator,o="connection";return e?m([!("SharedWorker"in t),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:!!n&&m(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function A(e){var n=new Error(e);return n.name=e,n}function H(e,r,o){var a,c,u;return void 0===o&&(o=50),n(this,void 0,void 0,(function(){var n,s;return t(this,(function(t){switch(t.label){case 0:n=document,t.label=1;case 1:return n.body?[3,3]:[4,i(o)];case 2:return t.sent(),[3,1];case 3:s=n.createElement("iframe"),t.label=4;case 4:return t.trys.push([4,,10,11]),[4,new Promise((function(e,t){var o=!1,i=function(){o=!0,e()};s.onload=i,s.onerror=function(e){o=!0,t(e)};var a=s.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",r&&"srcdoc"in s?s.srcdoc=r:s.src="about:blank",n.body.appendChild(s);var c=function(){var e,n;o||("complete"===(null===(n=null===(e=s.contentWindow)||void 0===e?void 0:e.document)||void 0===n?void 0:n.readyState)?i():setTimeout(c,10))};c()}))];case 5:t.sent(),t.label=6;case 6:return(null===(c=null===(a=s.contentWindow)||void 0===a?void 0:a.document)||void 0===c?void 0:c.body)?[3,8]:[4,i(o)];case 7:return t.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,t.sent()];case 10:return null===(u=s.parentNode)||void 0===u||u.removeChild(s),[7];case 11:return[2]}}))}))}function N(e){for(var n=function(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,a={},c=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,n){a[e]=a[e]||[],a[e].push(n)};;){var s=c.exec(o[2]);if(!s)break;var l=s[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);u(d[1],null!==(t=null!==(n=d[4])&&void 0!==n?n:d[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[i,a]}(e),t=n[0],r=n[1],o=document.createElement(null!=t?t:"div"),i=0,a=Object.keys(r);i<a.length;i++){var c=a[i],u=r[c].join(" ");"style"===c?J(o.style,u):o.setAttribute(c,u)}return o}function J(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var o=r[t],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var a=i[1],c=i[2],u=i[4];e.setProperty(a,c,u||"")}}}var T=["monospace","sans-serif","serif"],_=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function D(e){return e.toDataURL()}var z,B;function O(){var e=this;return function(){if(void 0===B){var e=function(){var n=U();Q(n)?B=setTimeout(e,2500):(z=n,B=void 0)};e()}}(),function(){return n(e,void 0,void 0,(function(){var e;return t(this,(function(n){switch(n.label){case 0:return Q(e=U())?z?[2,r([],z,!0)]:(t=document).fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement?[4,X()]:[3,2]:[3,2];case 1:n.sent(),e=U(),n.label=2;case 2:return Q(e)||(z=e),[2,e]}var t}))}))}}function U(){var e=screen;return[f(d(e.availTop),null),f(d(e.width)-d(e.availWidth)-f(d(e.availLeft),0),null),f(d(e.height)-d(e.availHeight)-f(d(e.availTop),0),null),f(d(e.availLeft),null)]}function Q(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function K(e){var r;return n(this,void 0,void 0,(function(){var n,o,a,c,u,s,l;return t(this,(function(t){switch(t.label){case 0:for(n=document,o=n.createElement("div"),a=new Array(e.length),c={},q(o),l=0;l<e.length;++l)"DIALOG"===(u=N(e[l])).tagName&&u.show(),q(s=n.createElement("div")),s.appendChild(u),o.appendChild(s),a[l]=u;t.label=1;case 1:return n.body?[3,3]:[4,i(50)];case 2:return t.sent(),[3,1];case 3:n.body.appendChild(o);try{for(l=0;l<e.length;++l)a[l].offsetParent||(c[e[l]]=!0)}finally{null===(r=o.parentNode)||void 0===r||r.removeChild(o)}return[2,c]}}))}))}function q(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function $(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function ee(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ne(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function te(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function re(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function oe(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ie=Math,ae=function(){return 0};var ce={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ue=function(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=n}};var se=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),le=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),de=["FRAGMENT_SHADER","VERTEX_SHADER"],fe=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],me="WEBGL_debug_renderer_info";function ve(e){if(e.webgl)return e.webgl.context;var n,t=document.createElement("canvas");t.addEventListener("webglCreateContextError",(function(){return n=void 0}));for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{n=t.getContext(i)}catch(e){}if(n)break}return e.webgl={context:n},n}function he(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function pe(e){return Object.keys(e.__proto__).filter(ye)}function ye(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function be(){return Y()}function ge(e){return"function"==typeof e.getParameter}var we={fonts:function(){var e=this;return H((function(r,o){var i=o.document;return n(e,void 0,void 0,(function(){var e,n,r,o,a,c,u,s,l,d,f;return t(this,(function(t){for((e=i.body).style.fontSize="48px",(n=i.createElement("div")).style.setProperty("visibility","hidden","important"),r={},o={},a=function(e){var t=i.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},c=function(e,n){return a("'".concat(e,"',").concat(n))},u=function(){for(var e={},n=function(n){e[n]=T.map((function(e){return c(n,e)}))},t=0,r=_;t<r.length;t++){n(r[t])}return e},s=function(e){return T.some((function(n,t){return e[t].offsetWidth!==r[n]||e[t].offsetHeight!==o[n]}))},l=function(){return T.map(a)}(),d=u(),e.appendChild(n),f=0;f<T.length;f++)r[T[f]]=l[f].offsetWidth,o[T[f]]=l[f].offsetHeight;return[2,_.filter((function(e){return s(d[e])}))]}))}))}))},domBlockers:function(e){var r=(void 0===e?{}:e).debug;return n(this,void 0,void 0,(function(){var e,n,o,i,a;return t(this,(function(t){switch(t.label){case 0:return F()||E()?(c=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',c("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",c("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",c("LnNwb25zb3JpdA=="),".ylamainos",c("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",c("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",c("LmhlYWRlci1ibG9ja2VkLWFk"),c("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",c("I2FkXzMwMFgyNTA="),c("I2Jhbm5lcmZsb2F0MjI="),c("I2NhbXBhaWduLWJhbm5lcg=="),c("I0FkLUNvbnRlbnQ=")],adGuardChinese:[c("LlppX2FkX2FfSA=="),c("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",c("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),c("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",c("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",c("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",c("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),c("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),c("LmFkZ29vZ2xl"),c("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[c("YW1wLWF1dG8tYWRz"),c("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",c("I2FkX2ludmlld19hcmVh")],adGuardRussian:[c("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),c("LnJlY2xhbWE="),'div[id^="smi2adblock"]',c("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[c("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),c("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",c("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),c("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),c("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",c("I3Jla2xhbWk="),c("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),c("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),c("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[c("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",c("LndpZGdldF9wb19hZHNfd2lkZ2V0"),c("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",c("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[c("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),c("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",c("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",c("I3Jla2xhbW5pLWJveA=="),c("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",c("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[c("I2FkdmVydGVudGll"),c("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",c("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",c("LnNwb25zb3JsaW5rZ3J1ZW4="),c("I3dlcmJ1bmdza3k="),c("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),c("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[c("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",c("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[c("LnJla2xhbW9zX3RhcnBhcw=="),c("LnJla2xhbW9zX251b3JvZG9z"),c("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),c("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),c("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[c("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[c("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),c("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",c("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[c("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),c("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),c("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",c("LmFkX19tYWlu"),c("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[c("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[c("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),c("I2xpdmVyZUFkV3JhcHBlcg=="),c("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),c("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[c("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",c("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),c("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),c("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[c("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),c("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),c("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",c("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),c("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),c("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),c("ZGl2I3NrYXBpZWNfYWQ=")],ro:[c("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),c("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[c("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),c("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),c("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",c("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),c("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",c("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(e),[4,K((a=[]).concat.apply(a,n.map((function(n){return e[n]}))))]):[2,void 0];case 1:return o=t.sent(),r&&function(e,n){for(var t="DOM blockers debug:\n```",r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];t+="\n".concat(i,":");for(var a=0,c=e[i];a<c.length;a++){var u=c[a];t+="\n ".concat(n[u]?"🚫":"➡️"," ").concat(u)}}console.log("".concat(t,"\n```"))}(e,o),(i=n.filter((function(n){var t=e[n];return m(t.map((function(e){return o[e]})))>.6*t.length}))).sort(),[2,i]}var c}))}))},fontPreferences:function(){return function(e,n){void 0===n&&(n=4e3);return H((function(t,o){var i=o.document,a=i.body,c=a.style;c.width="".concat(n,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",G()?a.style.zoom="".concat(1/o.devicePixelRatio):F()&&(a.style.zoom="reset");var u=i.createElement("div");return u.textContent=r([],Array(n/20|0),!0).map((function(){return"word"})).join(" "),a.appendChild(u),e(i,a)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,n){for(var t={},r={},o=0,i=Object.keys(ce);o<i.length;o++){var a=i[o],c=ce[a],u=c[0],s=void 0===u?{}:u,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,v=Object.keys(s);m<v.length;m++){var h=v[m],p=s[h];void 0!==p&&(f.style[h]=p)}t[a]=f,n.append(e.createElement("br"),f)}for(var y=0,b=Object.keys(ce);y<b.length;y++){r[a=b[y]]=t[a].getBoundingClientRect().width}return r}))},audio:function(){return F()&&C()&&P()||G()&&(e=navigator,n=window,t=Audio.prototype,r=n.visualViewport,m(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var e=window,n=e.URLPattern;return m(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(F()&&!j()&&!function(){var e=window;return m(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var t=4500,r=new n(1,5e3,44100),o=r.createOscillator();o.type="triangle",o.frequency.value=1e4;var i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,o.connect(i),i.connect(r.destination),o.start(0);var c=function(e){var n=3,t=500,r=500,o=5e3,i=function(){},c=new Promise((function(c,u){var l=!1,d=0,f=0;e.oncomplete=function(e){return c(e.renderedBuffer)};var m=function(){setTimeout((function(){return u(A("timeout"))}),Math.min(r,f+o-Date.now()))},v=function(){try{var r=e.startRendering();switch(a(r)&&s(r),e.state){case"running":f=Date.now(),l&&m();break;case"suspended":document.hidden||d++,l&&d>=n?u(A("suspended")):setTimeout(v,t)}}catch(e){u(e)}};v(),i=function(){l||(l=!0,f>0&&m())}}));return[c,i]}(r),u=c[0],l=c[1],d=s(u.then((function(e){return function(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(e.getChannelData(0).subarray(t))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e})));return function(){return l(),d}}();var e,n,t,r},screenFrame:function(){var e=this;if(F()&&C()&&P())return function(){return Promise.resolve(void 0)};var r=O();return function(){return n(e,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return[4,r()];case 1:return e=t.sent(),[2,[(n=function(e){return null===e?null:v(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},canvas:function(){return function(e){var n,t,r,o=!1,i=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),a=i[0],c=i[1];!function(e,n){return!(!n||!e.toDataURL)}(a,c)?t=r="unsupported":(o=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(c),e?t=r="skipped":(n=function(e,n){!function(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=D(e),r=D(e);if(t!==r)return["unstable","unstable"];!function(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var o=r[t],i=o[0],a=o[1],c=o[2];n.fillStyle=i,n.beginPath(),n.arc(a,c,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n);var o=D(e);return[o,t]}(a,c),t=n[0],r=n[1]));return{winding:o,geometry:t,text:r}}(F()&&C()&&P())},osCpu:function(){return navigator.oscpu},languages:function(){var e,n=navigator,t=[],r=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(void 0!==r&&t.push([r]),Array.isArray(n.languages))G()&&m([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||t.push(n.languages);else if("string"==typeof n.languages){var o=n.languages;o&&t.push(o.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return f(d(navigator.deviceMemory),void 0)},screenResolution:function(){var e,n,t;if(!(F()&&C()&&P()))return e=screen,(t=[(n=function(e){return f(l(e),null)})(e.width),n(e.height)]).sort().reverse(),t},hardwareConcurrency:function(){return f(l(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r,o=(r=(new Date).getFullYear(),-Math.max(d(new Date(r,0,1).getTimezoneOffset()),d(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,n;if(!(R()||(e=window,n=navigator,m(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!R())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&F()&&!j()?function(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return m(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var o=[],i=0;i<r.length;++i){var a=r[i];o.push({type:a.type,suffixes:a.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:o})}}return n}},touchSupport:function(){var e,n=navigator,t=0;void 0!==n.maxTouchPoints?t=l(n.maxTouchPoints):void 0!==n.msMaxTouchPoints&&(t=n.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],o=window[r];o&&"object"==typeof o&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch(e){return!1}},colorGamut:function(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function(){return!!$("inverted")||!$("none")&&void 0},forcedColors:function(){return!!ee("active")||!ee("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return ne("no-preference")?0:ne("high")||ne("more")?1:ne("low")||ne("less")?-1:ne("forced")?10:void 0},reducedMotion:function(){return!!te("reduce")||!te("no-preference")&&void 0},reducedTransparency:function(){return!!re("reduce")||!re("no-preference")&&void 0},hdr:function(){return!!oe("high")||!oe("standard")&&void 0},math:function(){var e,n=ie.acos||ae,t=ie.acosh||ae,r=ie.asin||ae,o=ie.asinh||ae,i=ie.atanh||ae,a=ie.atan||ae,c=ie.sin||ae,u=ie.sinh||ae,s=ie.cos||ae,l=ie.cosh||ae,d=ie.tan||ae,f=ie.tanh||ae,m=ie.exp||ae,v=ie.expm1||ae,h=ie.log1p||ae;return{acos:n(.12312423423423424),acosh:t(1e308),acoshPf:(e=1e154,ie.log(e+ie.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(e){return ie.log(e+ie.sqrt(e*e+1))}(1),atanh:i(.5),atanhPf:function(e){return ie.log((1+e)/(1-e))/2}(.5),atan:a(.5),sin:c(-1e300),sinh:u(1),sinhPf:function(e){return ie.exp(e)-1/ie.exp(e)/2}(1),cos:s(10.000000000123),cosh:l(1),coshPf:function(e){return(ie.exp(e)+1/ie.exp(e))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(e){return(ie.exp(2*e)-1)/(ie.exp(2*e)+1)}(1),exp:m(1),expm1:v(1),expm1Pf:function(e){return ie.exp(e)-1}(1),log1p:h(10),log1pPf:function(e){return ie.log(1+e)}(10),powPI:function(e){return ie.pow(ie.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(ue())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function(){if(!(E()||F()))return-2;if(!window.AudioContext)return-1;var e=(new AudioContext).baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var n=e().resolvedOptions().locale;return n||""===n?n:-3},webGlBasics:function(e){var n,t,r,o,i,a,c=ve(e.cache);if(!c)return-1;if(!ge(c))return-2;var u=be()?null:c.getExtension(me);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:u?null===(r=c.getParameter(u.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=c.getParameter(c.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:u?null===(i=c.getParameter(u.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(a=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(e){var n=ve(e.cache);if(!n)return-1;if(!ge(n))return-2;var t=n.getSupportedExtensions(),r=n.getContextAttributes(),o=[],i=[],a=[],c=[],u=[];if(r)for(var s=0,l=Object.keys(r);s<l.length;s++){var d=l[s];i.push("".concat(d,"=").concat(r[d]))}for(var f=0,m=pe(n);f<m.length;f++){var v=n[L=m[f]];a.push("".concat(L,"=").concat(v).concat(se.has(v)?"=".concat(n.getParameter(v)):""))}if(t)for(var h=0,p=t;h<p.length;h++){var y=p[h];if(!(y===me&&be()||"WEBGL_polygon_mode"===y&&(G()||F()))){var b=n.getExtension(y);if(b)for(var g=0,w=pe(b);g<w.length;g++){var L;v=b[L=w[g]];c.push("".concat(L,"=").concat(v).concat(le.has(v)?"=".concat(n.getParameter(v)):""))}else o.push(y)}}for(var k=0,V=de;k<V.length;k++)for(var S=V[k],I=0,W=fe;I<W.length;I++){var x=W[I],Z=he(n,S,x);u.push("".concat(S,".").concat(x,"=").concat(Z.join(",")))}return c.sort(),a.sort(),{contextAttributes:i,parameters:a,shaderPrecisions:u,extensions:t,extensionParameters:c,unsupportedExtensions:o}}};function Le(e){var n=function(e){if(E())return.4;if(F())return!j()||C()&&P()?.3:.5;var n="value"in e.platform?e.platform.value:"";if(/^Win/.test(n))return.6;if(/^Mac/.test(n))return.5;return.7}(e),t=function(e){return v(.99+.01*e,1e-4)}(n);return{score:n,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(t))}}function ke(n){return JSON.stringify(n,(function(n,t){return t instanceof Error?e({name:(r=t).name,message:r.message,stack:null===(o=r.stack)||void 0===o?void 0:o.split("\n")},r):t;var r,o}),2)}function Ve(e){return Z(function(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var o=r[t],i=e[o],a="error"in i?"error":JSON.stringify(i.value);n+="".concat(n?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return n}(e))}function Se(e){return void 0===e&&(e=50),function(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise((function(e){return t.call(window,(function(){return e()}),{timeout:n})})):i(Math.min(e,n))}(e,2*e)}function Ie(e,r){var i=Date.now();return{get:function(a){return n(this,void 0,void 0,(function(){var n,c,u;return t(this,(function(t){switch(t.label){case 0:return n=Date.now(),[4,e()];case 1:return c=t.sent(),u=function(e){var n,t=Le(e);return{get visitorId(){return void 0===n&&(n=Ve(this.components)),n},set visitorId(e){n=e},confidence:t,components:e,version:o}}(c),(r||(null==a?void 0:a.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(u.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(n-i,"\nvisitorId: ").concat(u.visitorId,"\ncomponents: ").concat(ke(c),"\n```")),[2,u]}}))}))}}}var We={load:function(e){var r;return void 0===e&&(e={}),n(this,void 0,void 0,(function(){var n,i,a;return t(this,(function(t){switch(t.label){case 0:return(null===(r=e.monitoring)||void 0===r||r)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),n=e.delayFallback,i=e.debug,[4,Se(n)];case 1:return t.sent(),a=function(e){return M(we,e,[])}({cache:{},debug:i}),[2,Ie(a,i)]}}))}))},hashComponents:Ve,componentsToDebugString:ke};let xe=!1;const Ze={uat:"https://apidemo.digitap.work/sync/",prod:"https://api.digitap.ai/sync/"},Me={code:1001,message:"Invalid Input"},Re={code:1002,message:"Internal Error, Try after some time"},Ge={code:1003,message:"Server Error, Try after some time"},Fe={code:1004,message:"Internet not connected"},je={code:1005,message:"Previous sms sync is in progress, please try after some time"};async function Pe(){return localStorage.getItem("userId")}var Ye={start:async function(e,n,t,r){let o=null;try{if(!function(e){return!(!e||""===String(e).trim()||isNaN(Number(e))||""===String(e).replace(/^0+/,"").trim())}(t))return r({status:"error",code:Me.code,message:"Invalid userId",data:{userId:t||null,deviceId:null}});if(xe)return r({status:"failure",code:je.code,message:"Previous sms sync is initiated for the user_id "+Pe()+", please try after some time",data:{userId:t,deviceId:o}});if(!navigator.onLine)return r({status:"error",code:Fe.code,message:Fe.message,data:{userId:t,deviceId:o}});xe=!0,async function(e){localStorage.setItem("userId",e)}(t),o=await async function(){let e=localStorage.getItem("sync_device_id");if(!e){const n=await We.load();e=(await n.get()).visitorId,localStorage.setItem("sync_device_id",e)}return e}();const i=await async function(){const e=await fetch("https://api.ipify.org?format=json");if(!e.ok)throw new Error("Failed to fetch IP address");return(await e.json()).ip}(),{latitude:a,longitude:c}=await async function(){return new Promise((e=>{if(!navigator.geolocation)return e({latitude:-1,longitude:-1});navigator.geolocation.getCurrentPosition((n=>{e({latitude:n.coords.latitude,longitude:n.coords.longitude})}),(()=>{e({latitude:-1,longitude:-1})}),{timeout:1e4})}))}(),u={customAuthenticationToken:e,sdkVersion:"WEB_1.0.0",userId:t,ipAddress:i,latitude:a,longitude:c,deviceId:o},s=await async function(e,n){const t=await fetch(Ze[n]+"sdk/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to send data to API");return await t.json()}(u,n);200==s.code?r({status:"success",code:200,message:"Sync Completed",data:{syncId:s.syncId||null,userId:t,deviceId:o}}):r({status:"failure",code:Ge.code,message:"Server error, "+s.msg,data:{syncId:s.syncId||null,userId:t,deviceId:o}})}catch(e){r({status:"failure",code:Re.code,message:"Internal error,"+(e.message||"Unexpected error"),data:{userId:t,deviceId:o}})}finally{xe=!1}}};export{Ye as default};
|
|
1
|
+
var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};var t="Blocked by CSP",r="The endpoint parameter is not a valid URL";function n(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}var o=n("WrongRegion"),i=n("SubscriptionNotActive"),a=n("UnsupportedVersion"),s=n("InstallationMethodRestricted"),c=n("HostnameRestricted"),u=n("IntegrationFailed"),d=n("NetworkRestricted"),l=n("InvalidProxyIntegrationSecret"),R="API key required",f="API key not found",p="API key expired",E="Failed to load the JS script of the agent",I="9319";function v(e,n){var o,i,a,s,c,u=[],d=(o=function(e){var t=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}(e),s=0,i=function(){return Math.random()*Math.min(3e3,100*Math.pow(2,s++))},a=new Set,[o.current(),function(e,n){var s,c=n instanceof Error?n.message:"";if(c===t||c===r)o.exclude(),s=0;else if(c===I)o.exclude();else if(c===E){var u=Date.now()-e.getTime()<50,d=o.current();d&&u&&!a.has(d)&&(a.add(d),s=0),o.postpone()}else o.postpone();var l=o.current();return void 0===l?void 0:[l,null!=s?s:e.getTime()+i()-Date.now()]}]),l=d[0],R=d[1];if(void 0===l)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var f=function(e){var t=new Date,r=function(r){return u.push({url:e,startedAt:t,finishedAt:new Date,error:r})},o=n(e);return o.then((function(){return r()}),r),o.catch((function(e){if(null!=c||(c=e),u.length>=5)throw c;var r=R(t,e);if(!r)throw c;var n,o=r[0],i=r[1];return(n=i,new Promise((function(e){return setTimeout(e,n)}))).then((function(){return f(o)}))}))};return f(l).then((function(e){return[e,u]}))}var m="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function O(e){return function(e,t,r,n){var o,i=document,a="securitypolicyviolation",s=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(o=t,c())};i.addEventListener(a,s);var c=function(){return i.removeEventListener(a,s)};return null==n||n.then(c,c),Promise.resolve().then(t).then((function(e){return c(),e}),(function(e){return new Promise((function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})).then((function(){if(c(),o)return r(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){if(function(e){if(URL.prototype)try{return new URL(e,location.href),!1}catch(e){if(e instanceof Error&&"TypeError"===e.name)return!0;throw e}}(e))throw new Error(r);var o=document.createElement("script"),i=function(){var e;return null===(e=o.parentNode)||void 0===e?void 0:e.removeChild(o)},a=document.head||document.getElementsByTagName("head")[0];o.onload=function(){i(),t()},o.onerror=function(){i(),n(new Error(E))},o.async=!0,o.src=e,a.appendChild(o)}))}(e)}),(function(){throw new Error(t)})).then(_)}function _(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(I);return r}var y={load:function(t){var r;t.scriptUrlPattern;var n=t.token,o=t.apiKey,i=void 0===o?n:o,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["scriptUrlPattern","token","apiKey"]),s=null!==(r=function(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}(t,"scriptUrlPattern"))&&void 0!==r?r:m,c=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},r=function(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}(document,"visibilitychange",t);return t(),[e,r]}(),u=c[0],d=c[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(R);return v(function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r("3.11.8"):e}))}(String(e),t)}))}(s,i),O)})).catch((function(e){throw d(),function(e){return e instanceof Error&&e.message===I?new Error(E):e}(e)})).then((function(t){var r=t[0],n=t[1];return d(),r.load(e(e({},a),{ldi:{attempts:n,visibilityStates:u}}))}))},defaultScriptUrlPattern:m,ERROR_SCRIPT_LOAD_FAIL:E,ERROR_API_KEY_EXPIRED:p,ERROR_API_KEY_INVALID:f,ERROR_API_KEY_MISSING:R,ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_CSP_BLOCK:t,ERROR_FORBIDDEN_ENDPOINT:c,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:s,ERROR_INTEGRATION_FAILURE:u,ERROR_INVALID_ENDPOINT:r,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:n("InvalidProxyIntegrationHeaders"),ERROR_INVALID_PROXY_INTEGRATION_SECRET:l,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_RESTRICTED:d,ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:i,ERROR_TOKEN_EXPIRED:p,ERROR_TOKEN_INVALID:f,ERROR_TOKEN_MISSING:R,ERROR_UNSUPPORTED_VERSION:a,ERROR_WRONG_REGION:o,defaultEndpoint:{default:"endpoint"},defaultTlsEndpoint:{default:"tlsEndpoint"}};let g=!1;const h={uat:"https://apidemo.digitap.work/sync/",prod:"https://api.digitap.ai/sync/"},w={code:1001,message:"Invalid Input"},T={code:1002,message:"Internal Error, Try after some time"},N={code:1003,message:"Server Error, Try after some time"},P={code:1004,message:"Internet not connected"},S={code:1005,message:"Previous sms sync is in progress, please try after some time"},A={code:1006,message:"Sync disabled"};async function b(){return localStorage.getItem("userId")}var D={start:async function(e,t,r,n){let o=null;try{if(!function(e){return!(!e||""===String(e).trim()||isNaN(Number(e))||""===String(e).replace(/^0+/,"").trim())}(r))return n({status:"error",code:w.code,message:"Invalid userId",data:{userId:r||null,deviceId:null}});if(g)return n({status:"failure",code:S.code,message:"Previous sms sync is initiated for the user_id "+b()+", please try after some time",data:{userId:r,deviceId:o}});if(!navigator.onLine)return n({status:"error",code:P.code,message:P.message,data:{userId:r,deviceId:o}});g=!0,async function(e){localStorage.setItem("userId",e)}(r),o=await async function(){let e=localStorage.getItem("sync_device_id");if(!e){const t=await y.load({apiKey:"w5EseVLxhpfRzzsVj0fl"});e=(await t.get()).visitorId,localStorage.setItem("sync_device_id",e)}return e}();const i=await async function(){const e=await fetch("https://api.ipify.org?format=json");if(!e.ok)throw new Error("Failed to fetch IP address");return(await e.json()).ip}(),{latitude:a,longitude:s}=await async function(){return new Promise((e=>{if(!navigator.geolocation)return e({latitude:-1,longitude:-1});navigator.geolocation.getCurrentPosition((t=>{e({latitude:t.coords.latitude,longitude:t.coords.longitude})}),(()=>{e({latitude:-1,longitude:-1})}),{timeout:1e4})}))}(),c={customAuthenticationToken:e,sdkVersion:"WEB_1.0.0",userId:r,ipAddress:i,latitude:a,longitude:s,deviceId:o},u=await async function(e,t){const r=await fetch(h[t]+"sdk/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error("Failed to send data to API");return await r.json()}(c,t);200==u.code?u.model?.isSyncEnabled?n({status:"success",code:200,message:"Sync Completed",data:{syncId:u.syncId||null,userId:r,deviceId:o}}):n({status:"failure",code:A.code,message:A.message,data:{syncId:u.syncId||null,userId:r,deviceId:o}}):n({status:"failure",code:N.code,message:"Server error, "+u.msg,data:{syncId:u.syncId||null,userId:r,deviceId:o}})}catch(e){n({status:"failure",code:T.code,message:"Internal error, "+(e.message||"Unexpected error"),data:{userId:r,deviceId:o}})}finally{g=!1}}};export{D as default};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).Sync=n()}(this,(function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function r(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var o="4.6.2";function i(e,n){return new Promise((function(t){return setTimeout(t,e,n)}))}function a(e){return!!e&&"function"==typeof e.then}function c(e,n){try{var t=e();a(t)?t.then((function(e){return n(!0,e)}),(function(e){return n(!1,e)})):n(!0,t)}catch(e){n(!1,e)}}function u(e,r,o){return void 0===o&&(o=16),n(this,void 0,void 0,(function(){var n,i,a,c;return t(this,(function(t){switch(t.label){case 0:n=Array(e.length),i=Date.now(),a=0,t.label=1;case 1:return a<e.length?(n[a]=r(e[a],a),(c=Date.now())>=i+o?(i=c,[4,new Promise((function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:t.sent(),t.label=3;case 3:return++a,[3,1];case 4:return[2,n]}}))}))}function s(e){return e.then(void 0,(function(){})),e}function l(e){return parseInt(e)}function d(e){return parseFloat(e)}function f(e,n){return"number"==typeof e&&isNaN(e)?n:e}function m(e){return e.reduce((function(e,n){return e+(n?1:0)}),0)}function v(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function h(e,n){var t=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=n[0]>>>16,c=65535&n[0],u=n[1]>>>16,s=0,l=0,d=0,f=0;d+=(f+=i+(65535&n[1]))>>>16,f&=65535,l+=(d+=o+u)>>>16,d&=65535,s+=(l+=r+c)>>>16,l&=65535,s+=t+a,s&=65535,e[0]=s<<16|l,e[1]=d<<16|f}function p(e,n){var t=e[0]>>>16,r=65535&e[0],o=e[1]>>>16,i=65535&e[1],a=n[0]>>>16,c=65535&n[0],u=n[1]>>>16,s=65535&n[1],l=0,d=0,f=0,m=0;f+=(m+=i*s)>>>16,m&=65535,d+=(f+=o*s)>>>16,f&=65535,d+=(f+=i*u)>>>16,f&=65535,l+=(d+=r*s)>>>16,d&=65535,l+=(d+=o*u)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=t*s+r*u+o*c+i*a,l&=65535,e[0]=l<<16|d,e[1]=f<<16|m}function y(e,n){var t=e[0];32===(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(n-=32,e[0]=e[1]<<n|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function b(e,n){0!==(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function g(e,n){e[0]^=n[0],e[1]^=n[1]}var w=[4283543511,3981806797],L=[3301882366,444984403];function k(e){var n=[0,e[0]>>>1];g(e,n),p(e,w),n[1]=e[0]>>>1,g(e,n),p(e,L),n[1]=e[0]>>>1,g(e,n)}var I=[2277735313,289559509],S=[1291169091,658871167],V=[0,5],R=[0,1390208809],W=[0,944331445];function x(e,n){var t=function(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e);n=n||0;var r,o=[0,t.length],i=o[1]%16,a=o[1]-i,c=[0,n],u=[0,n],s=[0,0],l=[0,0];for(r=0;r<a;r+=16)s[0]=t[r+4]|t[r+5]<<8|t[r+6]<<16|t[r+7]<<24,s[1]=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24,l[0]=t[r+12]|t[r+13]<<8|t[r+14]<<16|t[r+15]<<24,l[1]=t[r+8]|t[r+9]<<8|t[r+10]<<16|t[r+11]<<24,p(s,I),y(s,31),p(s,S),g(c,s),y(c,27),h(c,u),p(c,V),h(c,R),p(l,S),y(l,33),p(l,I),g(u,l),y(u,31),h(u,c),p(u,V),h(u,W);s[0]=0,s[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=t[r+14],b(d,48),g(l,d);case 14:d[1]=t[r+13],b(d,40),g(l,d);case 13:d[1]=t[r+12],b(d,32),g(l,d);case 12:d[1]=t[r+11],b(d,24),g(l,d);case 11:d[1]=t[r+10],b(d,16),g(l,d);case 10:d[1]=t[r+9],b(d,8),g(l,d);case 9:d[1]=t[r+8],g(l,d),p(l,S),y(l,33),p(l,I),g(u,l);case 8:d[1]=t[r+7],b(d,56),g(s,d);case 7:d[1]=t[r+6],b(d,48),g(s,d);case 6:d[1]=t[r+5],b(d,40),g(s,d);case 5:d[1]=t[r+4],b(d,32),g(s,d);case 4:d[1]=t[r+3],b(d,24),g(s,d);case 3:d[1]=t[r+2],b(d,16),g(s,d);case 2:d[1]=t[r+1],b(d,8),g(s,d);case 1:d[1]=t[r],g(s,d),p(s,I),y(s,31),p(s,S),g(c,s)}return g(c,o),g(u,o),h(c,u),h(u,c),k(c),k(u),h(c,u),h(u,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}function Z(e,r,o,i){var a=Object.keys(e).filter((function(e){return!function(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(o,e)})),l=s(u(a,(function(n){return function(e,n){var t=s(new Promise((function(t){var r=Date.now();c(e.bind(null,n),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=Date.now()-r;if(!e[0])return t((function(){return{error:e[1],duration:o}}));var i=e[1];if(function(e){return"function"!=typeof e}(i))return t((function(){return{value:i,duration:o}}));t((function(){return new Promise((function(e){var n=Date.now();c(i,(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=o+Date.now()-n;if(!t[0])return e({error:t[1],duration:i});e({value:t[1],duration:i})}))}))}))}))})));return function(){return t.then((function(e){return e()}))}}(e[n],r)}),i));return function(){return n(this,void 0,void 0,(function(){var e,n,r,o;return t(this,(function(t){switch(t.label){case 0:return[4,l];case 1:return[4,u(t.sent(),(function(e){return s(e())}),i)];case 2:return e=t.sent(),[4,Promise.all(e)];case 3:for(n=t.sent(),r={},o=0;o<a.length;++o)r[a[o]]=n[o];return[2,r]}}))}))}}function E(){var e=window,n=navigator;return m(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function G(){var e=window,n=navigator;return m(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===(n.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function M(){var e=window;return m(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function N(){var e=window,n=e.HTMLElement,t=e.Document;return m(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function C(){var e,n=window;return e=n.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(n.browser)}function F(){var e,n,t=window;return m(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function P(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return m([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function Y(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function j(){var e=G(),n=F(),t=window,r=navigator,o="connection";return e?m([!("SharedWorker"in t),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:!!n&&m(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function T(e){var n=new Error(e);return n.name=e,n}function X(e,r,o){var a,c,u;return void 0===o&&(o=50),n(this,void 0,void 0,(function(){var n,s;return t(this,(function(t){switch(t.label){case 0:n=document,t.label=1;case 1:return n.body?[3,3]:[4,i(o)];case 2:return t.sent(),[3,1];case 3:s=n.createElement("iframe"),t.label=4;case 4:return t.trys.push([4,,10,11]),[4,new Promise((function(e,t){var o=!1,i=function(){o=!0,e()};s.onload=i,s.onerror=function(e){o=!0,t(e)};var a=s.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",r&&"srcdoc"in s?s.srcdoc=r:s.src="about:blank",n.body.appendChild(s);var c=function(){var e,n;o||("complete"===(null===(n=null===(e=s.contentWindow)||void 0===e?void 0:e.document)||void 0===n?void 0:n.readyState)?i():setTimeout(c,10))};c()}))];case 5:t.sent(),t.label=6;case 6:return(null===(c=null===(a=s.contentWindow)||void 0===a?void 0:a.document)||void 0===c?void 0:c.body)?[3,8]:[4,i(o)];case 7:return t.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,t.sent()];case 10:return null===(u=s.parentNode)||void 0===u||u.removeChild(s),[7];case 11:return[2]}}))}))}function _(e){for(var n=function(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,a={},c=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,n){a[e]=a[e]||[],a[e].push(n)};;){var s=c.exec(o[2]);if(!s)break;var l=s[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);u(d[1],null!==(t=null!==(n=d[4])&&void 0!==n?n:d[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[i,a]}(e),t=n[0],r=n[1],o=document.createElement(null!=t?t:"div"),i=0,a=Object.keys(r);i<a.length;i++){var c=a[i],u=r[c].join(" ");"style"===c?A(o.style,u):o.setAttribute(c,u)}return o}function A(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var o=r[t],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var a=i[1],c=i[2],u=i[4];e.setProperty(a,c,u||"")}}}var H=["monospace","sans-serif","serif"],J=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function D(e){return e.toDataURL()}var O,z;function B(){var e=this;return function(){if(void 0===z){var e=function(){var n=U();Q(n)?z=setTimeout(e,2500):(O=n,z=void 0)};e()}}(),function(){return n(e,void 0,void 0,(function(){var e;return t(this,(function(n){switch(n.label){case 0:return Q(e=U())?O?[2,r([],O,!0)]:(t=document).fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement?[4,Y()]:[3,2]:[3,2];case 1:n.sent(),e=U(),n.label=2;case 2:return Q(e)||(O=e),[2,e]}var t}))}))}}function U(){var e=screen;return[f(d(e.availTop),null),f(d(e.width)-d(e.availWidth)-f(d(e.availLeft),0),null),f(d(e.height)-d(e.availHeight)-f(d(e.availTop),0),null),f(d(e.availLeft),null)]}function Q(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function K(e){var r;return n(this,void 0,void 0,(function(){var n,o,a,c,u,s,l;return t(this,(function(t){switch(t.label){case 0:for(n=document,o=n.createElement("div"),a=new Array(e.length),c={},q(o),l=0;l<e.length;++l)"DIALOG"===(u=_(e[l])).tagName&&u.show(),q(s=n.createElement("div")),s.appendChild(u),o.appendChild(s),a[l]=u;t.label=1;case 1:return n.body?[3,3]:[4,i(50)];case 2:return t.sent(),[3,1];case 3:n.body.appendChild(o);try{for(l=0;l<e.length;++l)a[l].offsetParent||(c[e[l]]=!0)}finally{null===(r=o.parentNode)||void 0===r||r.removeChild(o)}return[2,c]}}))}))}function q(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function $(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function ee(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ne(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function te(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function re(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function oe(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ie=Math,ae=function(){return 0};var ce={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ue=function(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=n}};var se=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),le=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),de=["FRAGMENT_SHADER","VERTEX_SHADER"],fe=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],me="WEBGL_debug_renderer_info";function ve(e){if(e.webgl)return e.webgl.context;var n,t=document.createElement("canvas");t.addEventListener("webglCreateContextError",(function(){return n=void 0}));for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{n=t.getContext(i)}catch(e){}if(n)break}return e.webgl={context:n},n}function he(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function pe(e){return Object.keys(e.__proto__).filter(ye)}function ye(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function be(){return F()}function ge(e){return"function"==typeof e.getParameter}var we={fonts:function(){var e=this;return X((function(r,o){var i=o.document;return n(e,void 0,void 0,(function(){var e,n,r,o,a,c,u,s,l,d,f;return t(this,(function(t){for((e=i.body).style.fontSize="48px",(n=i.createElement("div")).style.setProperty("visibility","hidden","important"),r={},o={},a=function(e){var t=i.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},c=function(e,n){return a("'".concat(e,"',").concat(n))},u=function(){for(var e={},n=function(n){e[n]=H.map((function(e){return c(n,e)}))},t=0,r=J;t<r.length;t++){n(r[t])}return e},s=function(e){return H.some((function(n,t){return e[t].offsetWidth!==r[n]||e[t].offsetHeight!==o[n]}))},l=function(){return H.map(a)}(),d=u(),e.appendChild(n),f=0;f<H.length;f++)r[H[f]]=l[f].offsetWidth,o[H[f]]=l[f].offsetHeight;return[2,J.filter((function(e){return s(d[e])}))]}))}))}))},domBlockers:function(e){var r=(void 0===e?{}:e).debug;return n(this,void 0,void 0,(function(){var e,n,o,i,a;return t(this,(function(t){switch(t.label){case 0:return M()||j()?(c=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',c("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",c("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",c("LnNwb25zb3JpdA=="),".ylamainos",c("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",c("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",c("LmhlYWRlci1ibG9ja2VkLWFk"),c("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",c("I2FkXzMwMFgyNTA="),c("I2Jhbm5lcmZsb2F0MjI="),c("I2NhbXBhaWduLWJhbm5lcg=="),c("I0FkLUNvbnRlbnQ=")],adGuardChinese:[c("LlppX2FkX2FfSA=="),c("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",c("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),c("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",c("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",c("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",c("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),c("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),c("LmFkZ29vZ2xl"),c("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[c("YW1wLWF1dG8tYWRz"),c("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",c("I2FkX2ludmlld19hcmVh")],adGuardRussian:[c("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),c("LnJlY2xhbWE="),'div[id^="smi2adblock"]',c("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[c("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),c("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",c("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),c("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),c("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",c("I3Jla2xhbWk="),c("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),c("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),c("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[c("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",c("LndpZGdldF9wb19hZHNfd2lkZ2V0"),c("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",c("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[c("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),c("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",c("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",c("I3Jla2xhbW5pLWJveA=="),c("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",c("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[c("I2FkdmVydGVudGll"),c("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",c("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",c("LnNwb25zb3JsaW5rZ3J1ZW4="),c("I3dlcmJ1bmdza3k="),c("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),c("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[c("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",c("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[c("LnJla2xhbW9zX3RhcnBhcw=="),c("LnJla2xhbW9zX251b3JvZG9z"),c("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),c("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),c("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[c("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[c("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),c("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",c("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[c("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),c("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),c("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",c("LmFkX19tYWlu"),c("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[c("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[c("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),c("I2xpdmVyZUFkV3JhcHBlcg=="),c("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),c("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[c("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",c("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),c("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),c("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[c("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),c("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),c("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",c("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),c("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),c("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),c("ZGl2I3NrYXBpZWNfYWQ=")],ro:[c("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),c("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[c("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),c("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),c("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",c("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),c("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",c("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(e),[4,K((a=[]).concat.apply(a,n.map((function(n){return e[n]}))))]):[2,void 0];case 1:return o=t.sent(),r&&function(e,n){for(var t="DOM blockers debug:\n```",r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];t+="\n".concat(i,":");for(var a=0,c=e[i];a<c.length;a++){var u=c[a];t+="\n ".concat(n[u]?"🚫":"➡️"," ").concat(u)}}console.log("".concat(t,"\n```"))}(e,o),(i=n.filter((function(n){var t=e[n];return m(t.map((function(e){return o[e]})))>.6*t.length}))).sort(),[2,i]}var c}))}))},fontPreferences:function(){return function(e,n){void 0===n&&(n=4e3);return X((function(t,o){var i=o.document,a=i.body,c=a.style;c.width="".concat(n,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",G()?a.style.zoom="".concat(1/o.devicePixelRatio):M()&&(a.style.zoom="reset");var u=i.createElement("div");return u.textContent=r([],Array(n/20|0),!0).map((function(){return"word"})).join(" "),a.appendChild(u),e(i,a)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,n){for(var t={},r={},o=0,i=Object.keys(ce);o<i.length;o++){var a=i[o],c=ce[a],u=c[0],s=void 0===u?{}:u,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,v=Object.keys(s);m<v.length;m++){var h=v[m],p=s[h];void 0!==p&&(f.style[h]=p)}t[a]=f,n.append(e.createElement("br"),f)}for(var y=0,b=Object.keys(ce);y<b.length;y++){r[a=b[y]]=t[a].getBoundingClientRect().width}return r}))},audio:function(){return M()&&P()&&C()||G()&&(e=navigator,n=window,t=Audio.prototype,r=n.visualViewport,m(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var e=window,n=e.URLPattern;return m(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(M()&&!N()&&!function(){var e=window;return m(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var t=4500,r=new n(1,5e3,44100),o=r.createOscillator();o.type="triangle",o.frequency.value=1e4;var i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,o.connect(i),i.connect(r.destination),o.start(0);var c=function(e){var n=3,t=500,r=500,o=5e3,i=function(){},c=new Promise((function(c,u){var l=!1,d=0,f=0;e.oncomplete=function(e){return c(e.renderedBuffer)};var m=function(){setTimeout((function(){return u(T("timeout"))}),Math.min(r,f+o-Date.now()))},v=function(){try{var r=e.startRendering();switch(a(r)&&s(r),e.state){case"running":f=Date.now(),l&&m();break;case"suspended":document.hidden||d++,l&&d>=n?u(T("suspended")):setTimeout(v,t)}}catch(e){u(e)}};v(),i=function(){l||(l=!0,f>0&&m())}}));return[c,i]}(r),u=c[0],l=c[1],d=s(u.then((function(e){return function(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(e.getChannelData(0).subarray(t))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e})));return function(){return l(),d}}();var e,n,t,r},screenFrame:function(){var e=this;if(M()&&P()&&C())return function(){return Promise.resolve(void 0)};var r=B();return function(){return n(e,void 0,void 0,(function(){var e,n;return t(this,(function(t){switch(t.label){case 0:return[4,r()];case 1:return e=t.sent(),[2,[(n=function(e){return null===e?null:v(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},canvas:function(){return function(e){var n,t,r,o=!1,i=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),a=i[0],c=i[1];!function(e,n){return!(!n||!e.toDataURL)}(a,c)?t=r="unsupported":(o=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(c),e?t=r="skipped":(n=function(e,n){!function(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=D(e),r=D(e);if(t!==r)return["unstable","unstable"];!function(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var o=r[t],i=o[0],a=o[1],c=o[2];n.fillStyle=i,n.beginPath(),n.arc(a,c,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n);var o=D(e);return[o,t]}(a,c),t=n[0],r=n[1]));return{winding:o,geometry:t,text:r}}(M()&&P()&&C())},osCpu:function(){return navigator.oscpu},languages:function(){var e,n=navigator,t=[],r=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(void 0!==r&&t.push([r]),Array.isArray(n.languages))G()&&m([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||t.push(n.languages);else if("string"==typeof n.languages){var o=n.languages;o&&t.push(o.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return f(d(navigator.deviceMemory),void 0)},screenResolution:function(){var e,n,t;if(!(M()&&P()&&C()))return e=screen,(t=[(n=function(e){return f(l(e),null)})(e.width),n(e.height)]).sort().reverse(),t},hardwareConcurrency:function(){return f(l(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r,o=(r=(new Date).getFullYear(),-Math.max(d(new Date(r,0,1).getTimezoneOffset()),d(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,n;if(!(E()||(e=window,n=navigator,m(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!E())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&M()&&!N()?function(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return m(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var o=[],i=0;i<r.length;++i){var a=r[i];o.push({type:a.type,suffixes:a.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:o})}}return n}},touchSupport:function(){var e,n=navigator,t=0;void 0!==n.maxTouchPoints?t=l(n.maxTouchPoints):void 0!==n.msMaxTouchPoints&&(t=n.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(n){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],o=window[r];o&&"object"==typeof o&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch(e){return!1}},colorGamut:function(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function(){return!!$("inverted")||!$("none")&&void 0},forcedColors:function(){return!!ee("active")||!ee("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return ne("no-preference")?0:ne("high")||ne("more")?1:ne("low")||ne("less")?-1:ne("forced")?10:void 0},reducedMotion:function(){return!!te("reduce")||!te("no-preference")&&void 0},reducedTransparency:function(){return!!re("reduce")||!re("no-preference")&&void 0},hdr:function(){return!!oe("high")||!oe("standard")&&void 0},math:function(){var e,n=ie.acos||ae,t=ie.acosh||ae,r=ie.asin||ae,o=ie.asinh||ae,i=ie.atanh||ae,a=ie.atan||ae,c=ie.sin||ae,u=ie.sinh||ae,s=ie.cos||ae,l=ie.cosh||ae,d=ie.tan||ae,f=ie.tanh||ae,m=ie.exp||ae,v=ie.expm1||ae,h=ie.log1p||ae;return{acos:n(.12312423423423424),acosh:t(1e308),acoshPf:(e=1e154,ie.log(e+ie.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(e){return ie.log(e+ie.sqrt(e*e+1))}(1),atanh:i(.5),atanhPf:function(e){return ie.log((1+e)/(1-e))/2}(.5),atan:a(.5),sin:c(-1e300),sinh:u(1),sinhPf:function(e){return ie.exp(e)-1/ie.exp(e)/2}(1),cos:s(10.000000000123),cosh:l(1),coshPf:function(e){return(ie.exp(e)+1/ie.exp(e))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(e){return(ie.exp(2*e)-1)/(ie.exp(2*e)+1)}(1),exp:m(1),expm1:v(1),expm1Pf:function(e){return ie.exp(e)-1}(1),log1p:h(10),log1pPf:function(e){return ie.log(1+e)}(10),powPI:function(e){return ie.pow(ie.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(ue())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function(){if(!(j()||M()))return-2;if(!window.AudioContext)return-1;var e=(new AudioContext).baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var n=e().resolvedOptions().locale;return n||""===n?n:-3},webGlBasics:function(e){var n,t,r,o,i,a,c=ve(e.cache);if(!c)return-1;if(!ge(c))return-2;var u=be()?null:c.getExtension(me);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:u?null===(r=c.getParameter(u.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=c.getParameter(c.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:u?null===(i=c.getParameter(u.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(a=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(e){var n=ve(e.cache);if(!n)return-1;if(!ge(n))return-2;var t=n.getSupportedExtensions(),r=n.getContextAttributes(),o=[],i=[],a=[],c=[],u=[];if(r)for(var s=0,l=Object.keys(r);s<l.length;s++){var d=l[s];i.push("".concat(d,"=").concat(r[d]))}for(var f=0,m=pe(n);f<m.length;f++){var v=n[L=m[f]];a.push("".concat(L,"=").concat(v).concat(se.has(v)?"=".concat(n.getParameter(v)):""))}if(t)for(var h=0,p=t;h<p.length;h++){var y=p[h];if(!(y===me&&be()||"WEBGL_polygon_mode"===y&&(G()||M()))){var b=n.getExtension(y);if(b)for(var g=0,w=pe(b);g<w.length;g++){var L;v=b[L=w[g]];c.push("".concat(L,"=").concat(v).concat(le.has(v)?"=".concat(n.getParameter(v)):""))}else o.push(y)}}for(var k=0,I=de;k<I.length;k++)for(var S=I[k],V=0,R=fe;V<R.length;V++){var W=R[V],x=he(n,S,W);u.push("".concat(S,".").concat(W,"=").concat(x.join(",")))}return c.sort(),a.sort(),{contextAttributes:i,parameters:a,shaderPrecisions:u,extensions:t,extensionParameters:c,unsupportedExtensions:o}}};function Le(e){var n=function(e){if(j())return.4;if(M())return!N()||P()&&C()?.3:.5;var n="value"in e.platform?e.platform.value:"";if(/^Win/.test(n))return.6;if(/^Mac/.test(n))return.5;return.7}(e),t=function(e){return v(.99+.01*e,1e-4)}(n);return{score:n,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(t))}}function ke(n){return JSON.stringify(n,(function(n,t){return t instanceof Error?e({name:(r=t).name,message:r.message,stack:null===(o=r.stack)||void 0===o?void 0:o.split("\n")},r):t;var r,o}),2)}function Ie(e){return x(function(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var o=r[t],i=e[o],a="error"in i?"error":JSON.stringify(i.value);n+="".concat(n?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return n}(e))}function Se(e){return void 0===e&&(e=50),function(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise((function(e){return t.call(window,(function(){return e()}),{timeout:n})})):i(Math.min(e,n))}(e,2*e)}function Ve(e,r){var i=Date.now();return{get:function(a){return n(this,void 0,void 0,(function(){var n,c,u;return t(this,(function(t){switch(t.label){case 0:return n=Date.now(),[4,e()];case 1:return c=t.sent(),u=function(e){var n,t=Le(e);return{get visitorId(){return void 0===n&&(n=Ie(this.components)),n},set visitorId(e){n=e},confidence:t,components:e,version:o}}(c),(r||(null==a?void 0:a.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(u.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(n-i,"\nvisitorId: ").concat(u.visitorId,"\ncomponents: ").concat(ke(c),"\n```")),[2,u]}}))}))}}}var Re={load:function(e){var r;return void 0===e&&(e={}),n(this,void 0,void 0,(function(){var n,i,a;return t(this,(function(t){switch(t.label){case 0:return(null===(r=e.monitoring)||void 0===r||r)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),n=e.delayFallback,i=e.debug,[4,Se(n)];case 1:return t.sent(),a=function(e){return Z(we,e,[])}({cache:{},debug:i}),[2,Ve(a,i)]}}))}))},hashComponents:Ie,componentsToDebugString:ke};const We=Ce;!function(e){const n=Ce,t=e();for(;;)try{if(464367===-parseInt(n(525))/1+-parseInt(n(527))/2+parseInt(n(487))/3+-parseInt(n(522))/4+parseInt(n(496))/5*(parseInt(n(499))/6)+-parseInt(n(507))/7+parseInt(n(502))/8)break;t.push(t.shift())}catch(e){t.push(t.shift())}}(Me);const xe=We(529);let Ze=!1;const Ee={uat:We(509),prod:We(517)},Ge={INVALID_INPUT:{code:1001,message:We(514)},INTERNAL_ERROR:{code:1002,message:"Internal Error, Try after some time"},SERVER_ERROR:{code:1003,message:"Server Error, Try after some time"},INTERNET_NOT_CONNECTED:{code:1004,message:We(489)},SYNC_IN_PROGRESS:{code:1005,message:"Previous sms sync is in progress, please try after some time"},SYNC_DISABLED:{code:1006,message:We(523)},SYNC_CANCELLED:{code:1007,message:We(521)}};function Me(){const e=["INVALID_INPUT","797082dLeSsQ","trim","INTERNAL_ERROR","12281752CSEJgI","setItem","getCurrentPosition","getItem","Failed to fetch IP address","4759055jicOFp","geolocation","https://apidemo.digitap.work/sync/",", please try after some time","load","error","syncId","Invalid Input","application/json","sync_device_id","https://api.digitap.ai/sync/","POST","replace","failure","Sync cancelled due to it took more time and another sync initiated","409712iTLtEJ","Sync disabled","get","103171ecWrOe","Previous sms sync is initiated for the user_id ","1498622JWkLws","longitude","WEB_1.0.0","Sync Completed","userId","coords","code","Server error, ","sdk/auth","894687PaypyG","Unexpected error","Internet not connected","Invalid userId","INTERNET_NOT_CONNECTED","onLine","Internal error,","stringify","json","10qffGvy","message"];return(Me=function(){return e})()}async function Ne(){const e=We;return localStorage[e(505)](e(531))}function Ce(e,n){const t=Me();return(Ce=function(e,n){return t[e-=485]})(e,n)}return{start:async function(e,n,t,r){const o=We;let i=null;try{if(!function(e){const n=We;return!(!e||""===String(e).trim()||isNaN(Number(e))||""===String(e)[n(519)](/^0+/,"")[n(500)]())}(t))return r({status:o(512),code:Ge[o(498)][o(533)],message:o(490),data:{userId:t||null,deviceId:null}});if(Ze)return r({status:o(520),code:Ge.SYNC_IN_PROGRESS[o(533)],message:o(526)+Ne()+o(510),data:{userId:t,deviceId:i}});if(!navigator[o(492)])return r({status:o(512),code:Ge.INTERNET_NOT_CONNECTED.code,message:Ge[o(491)][o(497)],data:{userId:t,deviceId:i}});Ze=!0,async function(e){localStorage[We(503)]("userId",e)}(t),i=await async function(){const e=We;let n=localStorage.getItem(e(516));if(!n){const t=await Re[e(511)]();n=(await t[e(524)]()).visitorId,localStorage.setItem(e(516),n)}return n}();const a=await async function(){const e=We,n=await fetch("https://api.ipify.org?format=json");if(!n.ok)throw new Error(e(506));return(await n.json()).ip}(),{latitude:c,longitude:u}=await async function(){return new Promise((e=>{const n=Ce;if(!navigator[n(508)])return e({latitude:-1,longitude:-1});navigator.geolocation[n(504)]((t=>{const r=n;e({latitude:t[r(532)].latitude,longitude:t.coords[r(528)]})}),(()=>{e({latitude:-1,longitude:-1})}),{timeout:1e4})}))}(),s={customAuthenticationToken:e,sdkVersion:xe,userId:t,ipAddress:a,latitude:c,longitude:u,deviceId:i},l=await async function(e,n){const t=We,r=await fetch(Ee[n]+t(486),{method:t(518),headers:{"Content-Type":t(515)},body:JSON[t(494)](e)});if(!r.ok)throw new Error("Failed to send data to API");return await r[t(495)]()}(s,n);200==l.code?r({status:"success",code:200,message:o(530),data:{syncId:l[o(513)]||null,userId:t,deviceId:i}}):r({status:o(520),code:Ge.SERVER_ERROR[o(533)],message:o(485)+l.msg,data:{syncId:l[o(513)]||null,userId:t,deviceId:i}})}catch(e){r({status:"failure",code:Ge[o(501)].code,message:o(493)+(e[o(497)]||o(488)),data:{userId:t,deviceId:i}})}finally{Ze=!1}}}}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Sync=t()}(this,(function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};var t="Blocked by CSP",n="The endpoint parameter is not a valid URL";function r(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}var o=r("WrongRegion"),i=r("SubscriptionNotActive"),a=r("UnsupportedVersion"),s=r("InstallationMethodRestricted"),c=r("HostnameRestricted"),u=r("IntegrationFailed"),d=r("NetworkRestricted"),l=r("InvalidProxyIntegrationSecret"),R="API key required",f="API key not found",E="API key expired",p="Failed to load the JS script of the agent",I="9319";function _(e,r){var o,i,a,s,c,u=[],d=(o=function(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}(e),s=0,i=function(){return Math.random()*Math.min(3e3,100*Math.pow(2,s++))},a=new Set,[o.current(),function(e,r){var s,c=r instanceof Error?r.message:"";if(c===t||c===n)o.exclude(),s=0;else if(c===I)o.exclude();else if(c===p){var u=Date.now()-e.getTime()<50,d=o.current();d&&u&&!a.has(d)&&(a.add(d),s=0),o.postpone()}else o.postpone();var l=o.current();return void 0===l?void 0:[l,null!=s?s:e.getTime()+i()-Date.now()]}]),l=d[0],R=d[1];if(void 0===l)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var f=function(e){var t=new Date,n=function(n){return u.push({url:e,startedAt:t,finishedAt:new Date,error:n})},o=r(e);return o.then((function(){return n()}),n),o.catch((function(e){if(null!=c||(c=e),u.length>=5)throw c;var n=R(t,e);if(!n)throw c;var r,o=n[0],i=n[1];return(r=i,new Promise((function(e){return setTimeout(e,r)}))).then((function(){return f(o)}))}))};return f(l).then((function(e){return[e,u]}))}var O="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function v(e){return function(e,t,n,r){var o,i=document,a="securitypolicyviolation",s=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,c())};i.addEventListener(a,s);var c=function(){return i.removeEventListener(a,s)};return null==r||r.then(c,c),Promise.resolve().then(t).then((function(e){return c(),e}),(function(e){return new Promise((function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})).then((function(){if(c(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){if(function(e){if(URL.prototype)try{return new URL(e,location.href),!1}catch(e){if(e instanceof Error&&"TypeError"===e.name)return!0;throw e}}(e))throw new Error(n);var o=document.createElement("script"),i=function(){var e;return null===(e=o.parentNode)||void 0===e?void 0:e.removeChild(o)},a=document.head||document.getElementsByTagName("head")[0];o.onload=function(){i(),t()},o.onerror=function(){i(),r(new Error(p))},o.async=!0,o.src=e,a.appendChild(o)}))}(e)}),(function(){throw new Error(t)})).then(m)}function m(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(I);return n}var h={load:function(t){var n;t.scriptUrlPattern;var r=t.token,o=t.apiKey,i=void 0===o?r:o,a=function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["scriptUrlPattern","token","apiKey"]),s=null!==(n=function(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}(t,"scriptUrlPattern"))&&void 0!==n?n:O,c=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},n=function(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}(document,"visibilitychange",t);return t(),[e,n]}(),u=c[0],d=c[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(R);return _(function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n("3.11.8"):e}))}(String(e),t)}))}(s,i),v)})).catch((function(e){throw d(),function(e){return e instanceof Error&&e.message===I?new Error(p):e}(e)})).then((function(t){var n=t[0],r=t[1];return d(),n.load(e(e({},a),{ldi:{attempts:r,visibilityStates:u}}))}))},defaultScriptUrlPattern:O,ERROR_SCRIPT_LOAD_FAIL:p,ERROR_API_KEY_EXPIRED:E,ERROR_API_KEY_INVALID:f,ERROR_API_KEY_MISSING:R,ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_CSP_BLOCK:t,ERROR_FORBIDDEN_ENDPOINT:c,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:s,ERROR_INTEGRATION_FAILURE:u,ERROR_INVALID_ENDPOINT:n,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:r("InvalidProxyIntegrationHeaders"),ERROR_INVALID_PROXY_INTEGRATION_SECRET:l,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_NETWORK_RESTRICTED:d,ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:i,ERROR_TOKEN_EXPIRED:E,ERROR_TOKEN_INVALID:f,ERROR_TOKEN_MISSING:R,ERROR_UNSUPPORTED_VERSION:a,ERROR_WRONG_REGION:o,defaultEndpoint:{default:"endpoint"},defaultTlsEndpoint:{default:"tlsEndpoint"}};function y(e,t){const n=A();return(y=function(e,t){return n[e-=474]})(e,t)}const N=y;!function(e){const t=y,n=e();for(;;)try{if(705281===-parseInt(t(505))/1+parseInt(t(490))/2+-parseInt(t(495))/3*(parseInt(t(494))/4)+-parseInt(t(483))/5+-parseInt(t(516))/6+parseInt(t(525))/7+-parseInt(t(474))/8*(-parseInt(t(488))/9))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(A);const g=N(520);let T=!1;const S={uat:N(509),prod:"https://api.digitap.ai/sync/"},w={INVALID_INPUT:{code:1001,message:N(524)},INTERNAL_ERROR:{code:1002,message:N(493)},SERVER_ERROR:{code:1003,message:N(479)},INTERNET_NOT_CONNECTED:{code:1004,message:"Internet not connected"},SYNC_IN_PROGRESS:{code:1005,message:N(491)},SYNC_DISABLED:{code:1006,message:N(510)},SYNC_CANCELLED:{code:1007,message:"Sync cancelled due to it took more time and another sync initiated"}};async function P(){const e=N;return localStorage.getItem(e(507))}function A(){const e=["4656294dHbmte","SYNC_IN_PROGRESS","1291292qJyoCl","Previous sms sync is in progress, please try after some time","trim","Internal Error, Try after some time","4yGfhiV","1467195DIzioz","stringify","INTERNAL_ERROR","longitude","syncId","failure","latitude","Failed to send data to API","getItem","geolocation","1261128KRbjBP","Server error, ","userId","msg","https://apidemo.digitap.work/sync/","Sync disabled","w5EseVLxhpfRzzsVj0fl","sdk/auth","code","message","getCurrentPosition","6825168zzZibd","replace","application/json","SERVER_ERROR","WEB_1.0.0","json","onLine","Sync Completed","Invalid Input","4155788JOXvIh","40OexPqR","get","SYNC_DISABLED","Internal error, ","load","Server Error, Try after some time","POST","setItem","INTERNET_NOT_CONNECTED","1165790qzANSX","visitorId","sync_device_id","coords","Invalid userId"];return(A=function(){return e})()}return{start:async function(e,t,n,r){const o=N;let i=null;try{if(!function(e){const t=N;return!(!e||""===String(e)[t(492)]()||isNaN(Number(e))||""===String(e)[t(517)](/^0+/,"").trim())}(n))return r({status:"error",code:w.INVALID_INPUT[o(513)],message:o(487),data:{userId:n||null,deviceId:null}});if(T)return r({status:o(500),code:w[o(489)][o(513)],message:"Previous sms sync is initiated for the user_id "+P()+", please try after some time",data:{userId:n,deviceId:i}});if(!navigator[o(522)])return r({status:"error",code:w[o(482)][o(513)],message:w.INTERNET_NOT_CONNECTED[o(514)],data:{userId:n,deviceId:i}});T=!0,async function(e){localStorage[N(481)]("userId",e)}(n),i=await async function(){const e=N;let t=localStorage[e(503)](e(485));if(!t){const n=await h[e(478)]({apiKey:e(511)});t=(await n[e(475)]())[e(484)],localStorage.setItem(e(485),t)}return t}();const a=await async function(){const e=N,t=await fetch("https://api.ipify.org?format=json");if(!t.ok)throw new Error("Failed to fetch IP address");return(await t[e(521)]()).ip}(),{latitude:s,longitude:c}=await async function(){return new Promise((e=>{const t=y;if(!navigator[t(504)])return e({latitude:-1,longitude:-1});navigator[t(504)][t(515)]((n=>{const r=t;e({latitude:n[r(486)][r(501)],longitude:n.coords[r(498)]})}),(()=>{e({latitude:-1,longitude:-1})}),{timeout:1e4})}))}(),u={customAuthenticationToken:e,sdkVersion:g,userId:n,ipAddress:a,latitude:s,longitude:c,deviceId:i},d=await async function(e,t){const n=N,r=await fetch(S[t]+n(512),{method:n(480),headers:{"Content-Type":n(518)},body:JSON[n(496)](e)});if(!r.ok)throw new Error(n(502));return await r[n(521)]()}(u,t);200==d[o(513)]?d.model?.isSyncEnabled?r({status:"success",code:200,message:o(523),data:{syncId:d[o(499)]||null,userId:n,deviceId:i}}):r({status:"failure",code:w.SYNC_DISABLED[o(513)],message:w[o(476)][o(514)],data:{syncId:d[o(499)]||null,userId:n,deviceId:i}}):r({status:o(500),code:w[o(519)].code,message:o(506)+d[o(508)],data:{syncId:d[o(499)]||null,userId:n,deviceId:i}})}catch(e){r({status:o(500),code:w[o(497)][o(513)],message:o(477)+(e[o(514)]||"Unexpected error"),data:{userId:n,deviceId:i}})}finally{T=!1}}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitap.ai/sync-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "DigiTap Web Sync SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
],
|
|
26
26
|
"author": "Digitap",
|
|
27
27
|
"license": "ISC",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@fingerprintjs/fingerprintjs-pro": "^3.8.6"
|
|
30
|
+
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
30
33
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
31
34
|
"@rollup/plugin-terser": "^0.4.4",
|
|
32
35
|
"rollup": "^3.29.5",
|
|
33
36
|
"rollup-plugin-obfuscator": "^1.1.0"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@fingerprintjs/fingerprintjs": "^4.6.2"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|