paymentiq-cashier-bootstrapper 1.6.2 → 1.6.4
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/cashier.js +1 -1
- package/index.d.ts +94 -24
- package/package.json +3 -2
- package/theme-v2.d.ts +1061 -0
package/dist/cashier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.beta=t():e.beta=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={750:function(e,t,n){var a,r;!function(i,o,c){"use strict";"undefined"!=typeof window&&n.amdO?void 0===(r="function"==typeof(a=c)?a.call(t,n,t,e):a)||(e.exports=r):e.exports?e.exports=c():o.exports?o.exports=c():o.Fingerprint2=c()}(0,this,(function(){"use strict";void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},a=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},r=function(e,t){return[e[0]^t[0],e[1]^t[1]]},i=function(e){return e=r(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=r(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),r(e,[0,e[0]>>>1])},o=function(o,c){c=c||0;for(var s=(o=o||"").length%16,d=o.length-s,l=[0,c],u=[0,c],f=[0,0],h=[0,0],p=[2277735313,289559509],g=[1291169091,658871167],m=0;m<d;m+=16)f=[255&o.charCodeAt(m+4)|(255&o.charCodeAt(m+5))<<8|(255&o.charCodeAt(m+6))<<16|(255&o.charCodeAt(m+7))<<24,255&o.charCodeAt(m)|(255&o.charCodeAt(m+1))<<8|(255&o.charCodeAt(m+2))<<16|(255&o.charCodeAt(m+3))<<24],h=[255&o.charCodeAt(m+12)|(255&o.charCodeAt(m+13))<<8|(255&o.charCodeAt(m+14))<<16|(255&o.charCodeAt(m+15))<<24,255&o.charCodeAt(m+8)|(255&o.charCodeAt(m+9))<<8|(255&o.charCodeAt(m+10))<<16|(255&o.charCodeAt(m+11))<<24],f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f),l=n(l,27),l=e(l,u),l=e(t(l,[0,5]),[0,1390208809]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h),u=n(u,31),u=e(u,l),u=e(t(u,[0,5]),[0,944331445]);switch(f=[0,0],h=[0,0],s){case 15:h=r(h,a([0,o.charCodeAt(m+14)],48));case 14:h=r(h,a([0,o.charCodeAt(m+13)],40));case 13:h=r(h,a([0,o.charCodeAt(m+12)],32));case 12:h=r(h,a([0,o.charCodeAt(m+11)],24));case 11:h=r(h,a([0,o.charCodeAt(m+10)],16));case 10:h=r(h,a([0,o.charCodeAt(m+9)],8));case 9:h=r(h,[0,o.charCodeAt(m+8)]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h);case 8:f=r(f,a([0,o.charCodeAt(m+7)],56));case 7:f=r(f,a([0,o.charCodeAt(m+6)],48));case 6:f=r(f,a([0,o.charCodeAt(m+5)],40));case 5:f=r(f,a([0,o.charCodeAt(m+4)],32));case 4:f=r(f,a([0,o.charCodeAt(m+3)],24));case 3:f=r(f,a([0,o.charCodeAt(m+2)],16));case 2:f=r(f,a([0,o.charCodeAt(m+1)],8));case 1:f=r(f,[0,o.charCodeAt(m)]),f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f)}return l=r(l,[0,o.length]),u=r(u,[0,o.length]),l=e(l,u),u=e(u,l),l=i(l),u=i(u),l=e(l,u),u=e(u,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},c={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},s=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)},d=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(s(e,(function(e,a,r){n.push(t(e,a,r))})),n)},l=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,a=navigator.plugins.length;n<a;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return u(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),d(t,(function(e){var t=d(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},u=function(e){for(var t=!1,n=0,a=e.plugins.sortPluginsFor.length;n<a;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t},f=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},h=function(){if(!f())return!1;var e=g(),t=!!window.WebGLRenderingContext&&!!e;return m(e),t},p=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},g=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},m=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},v=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(e){if(p())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=d(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(l(e))),t}(t)):e(l(t))}},{key:"canvas",getData:function(e,t){f()?e(function(e){var t=[],n=document.createElement("canvas");n.width=2e3,n.height=200,n.style.display="inline";var a=n.getContext("2d");return a.rect(0,0,10,10),a.rect(2,2,6,6),t.push("canvas winding:"+(!1===a.isPointInPath(5,5,"evenodd")?"yes":"no")),a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",e.dontUseFakeFontInCanvas?a.font="11pt Arial":a.font="11pt no-real-font-123",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),a.fillStyle="rgba(102, 204, 0, 0.2)",a.font="18pt Arial",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),a.globalCompositeOperation="multiply",a.fillStyle="rgb(255,0,255)",a.beginPath(),a.arc(50,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(0,255,255)",a.beginPath(),a.arc(100,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,255,0)",a.beginPath(),a.arc(75,100,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,0,255)",a.arc(75,75,75,0,2*Math.PI,!0),a.arc(75,75,25,0,2*Math.PI,!0),a.fill("evenodd"),n.toDataURL&&t.push("canvas fp:"+n.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){h()?e(function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=g()))return null;var n=[],a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a);var r=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),a.itemSize=3,a.numItems=3;var i=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var c=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(c,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(c),e.attachShader(i,o),e.attachShader(i,c),e.linkProgram(i),e.useProgram(i),i.vertexPosAttrib=e.getAttribLocation(i,"attrVertex"),i.offsetUniform=e.getUniformLocation(i,"uniformOffset"),e.enableVertexAttribArray(i.vertexPosArray),e.vertexAttribPointer(i.vertexPosAttrib,a.itemSize,e.FLOAT,!1,0,0),e.uniform2f(i.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,a.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var d=e.getExtension("WEBGL_debug_renderer_info");d&&(n.push("webgl unmasked vendor:"+e.getParameter(d.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(d.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(s(["FLOAT","INT"],(function(t){s(["VERTEX","FRAGMENT"],(function(a){s(["HIGH","MEDIUM","LOW"],(function(r){s(["precision","rangeMin","rangeMax"],(function(i){var o=e.getShaderPrecisionFormat(e[a+"_SHADER"],e[r+"_"+t])[i];"precision"!==i&&(i="precision "+i);var c=["webgl ",a.toLowerCase()," shader ",r.toLowerCase()," ",t.toLowerCase()," ",i,":",o].join("");n.push(c)}))}))}))})),m(e),n):(m(e),n)}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){h()?e(function(){try{var e=g(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return m(e),n}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,a=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return a.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(a.indexOf("arm")>=0&&"Windows Phone"===e)&&!(a.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((a.indexOf("win")<0&&a.indexOf("linux")<0&&a.indexOf("mac")<0&&a.indexOf("iphone")<0&&a.indexOf("ipad")<0&&a.indexOf("ipod")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"==(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var a,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),a=!0}catch(e){a=!1}}return a&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],a=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(a=a.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),a=(a=a.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return a.indexOf(e)===t}));var r=document.getElementsByTagName("body")[0],i=document.createElement("div"),o=document.createElement("div"),c={},s={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},l=function(e,t){var n=d();return n.style.fontFamily="'"+e+"',"+t,n},u=function(e){for(var t=!1,a=0;a<n.length;a++)if(t=e[a].offsetWidth!==c[n[a]]||e[a].offsetHeight!==s[n[a]])return t;return t},f=function(){for(var e=[],t=0,a=n.length;t<a;t++){var r=d();r.style.fontFamily=n[t],i.appendChild(r),e.push(r)}return e}();r.appendChild(i);for(var h=0,p=n.length;h<p;h++)c[n[h]]=f[h].offsetWidth,s[n[h]]=f[h].offsetHeight;var g=function(){for(var e={},t=0,r=a.length;t<r;t++){for(var i=[],c=0,s=n.length;c<s;c++){var d=l(a[t],n[c]);o.appendChild(d),i.push(d)}e[a[t]]=i}return e}();r.appendChild(o);for(var m=[],v=0,T=a.length;v<T;v++)u(g[a[v]])&&m.push(a[v]);r.removeChild(o),r.removeChild(i),e(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?t.fonts.swfPath?void function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var a,r=t.fonts.swfContainerId;(a=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(a);var i={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==a)return e(t.NOT_AVAILABLE);var r=new a(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();s([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)})),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var c=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,e("audioTimeout")}),n.timeout);r.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),i.disconnect(),o.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],T=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return T.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var n,a;for(a in t)null==(n=t[a])||Object.prototype.hasOwnProperty.call(e,a)||(e[a]=n)}(e,c),e.components=e.extraComponents.concat(v);var n={data:[],addPreprocessedComponent:function(t,a){"function"==typeof e.preprocessor&&(a=e.preprocessor(t,a)),n.data.push({key:t,value:a})}},a=-1,r=function(i){if((a+=1)>=e.components.length)t(n.data);else{var o=e.components[a];if(e.excludes[o.key])r(!1);else{if(!i&&o.pauseBefore)return a-=1,void setTimeout((function(){r(!0)}),1);try{o.getData((function(e){n.addPreprocessedComponent(o.key,e),r(!1)}),e)}catch(e){n.addPreprocessedComponent(o.key,String(e)),r(!1)}}}};r(!1)},T.getPromise=function(e){return new Promise((function(t,n){T.get(e,t)}))},T.getV18=function(e,t){return null==t&&(t=e,e={}),T.get(e,(function(n){for(var a=[],r=0;r<n.length;r++){var i=n[r];if(i.value===(e.NOT_AVAILABLE||"not available"))a.push({key:i.key,value:"unknown"});else if("plugins"===i.key)a.push({key:"plugins",value:d(i.value,(function(e){var t=d(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(i.key)&&Array.isArray(i.value))a.push({key:i.key,value:i.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(i.key)){if(!i.value)continue;a.push({key:i.key,value:1})}else i.value?a.push(i.value.join?{key:i.key,value:i.value.join(";")}:i):a.push({key:i.key,value:i.value})}var c=o(d(a,(function(e){return e.value})).join("~~~"),31);t(c,a)}))},T.x64hash128=o,T.VERSION="2.1.4",T}))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.r(a),n.d(a,{default:()=>ce});var e=function(){return e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))}function r(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var i=n(750),o=n.n(i);const c="UPDATE_DATA",s="CASHIER_PAUSE",d="CASHIER_RESUME",l="PIQ_INITIATE_NATIVE_PAYMENT",u="PIQ_PROCESS_NATIVE_PAYMENT",f="CASHIER_INIT_LOAD",h="IS_LOADING",p="ONLOAD_ERROR",g="PIQ_LOOKUP_SHA_256";var m="piq-cashier-wrapper",v="cashier_container_uid",T=function(e){return e.map((function(e){return String.fromCodePoint(74^e)})).join("")},y=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122],w=[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37],A=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,126,122,122,122],E=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,127,122,122,122],S=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,126,122,122,122],C=[34,62,62,58,57,112,101,101,46,37,41,57,100,58,43,51,39,47,36,62,35,59,100,35,37,101,47,63,56,37,58,47,101,41,43,57,34,35,47,56,101,45,47,36,47,56,43,38,101,32,43,60,43,57,41,56,35,58,62,43,58,35],O={production:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},mrgreen:{cashierApi:T([34,62,62,58,57,112,101,101,39,56,45,56,47,47,36,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},casumo:{cashierApi:T([34,62,62,58,57,112,101,101,41,43,57,63,39,37,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},ecom:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37])},test:{cashierApi:T([34,62,62,58,57,112,101,101,62,47,57,62,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},development:{cashierApi:T(y),cashierOrigin:T(y)},silvercurrent:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47])},softember:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57])},sunpetal:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,63,36,58,47,62,43,38,100,50,51,48,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,63,36,58,47,62,43,38,100,50,51,48])},oceanharborlight:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39])}},I=function(e){return O[e]},b=function(){return T(w)},B=function(){for(var e=[],t=0,n=Object.keys(O);t<n.length;t++){var a=n[t],r=O[a];try{var i=new URL(r.cashierApi).origin;e.includes(i)||e.push(i)}catch(e){}e.includes(r.cashierOrigin)||e.push(r.cashierOrigin)}for(var o=0,c=[T(E),T(S),T(A)];o<c.length;o++){var s=c[o];e.includes(s)||e.push(s)}return e},_=function(){return T(C)},x=null,P=null,k=function(e){return!(!e||"string"!=typeof e)&&B().includes(e)},L=null,M=null,R=null,D=function(e){L=e,window.removeEventListener("message",F,!1),window.addEventListener("message",F)};function N(e){var t,n,a,r=B();return e.origin&&(a=e.origin,k(a)&&(x=a)),!(r.includes(e.origin)||(null===(t=e.data)||void 0===t?void 0:t.eventType)&&["CASHIER_INIT_LOAD","CASHIER_BOOT_REQUEST","LOOKUP_INIT_LOAD","IS_LOADING"].includes(e.data.eventType)||((null===(n=e.data)||void 0===n?void 0:n.eventType)&&console.error("Integration: Failed to read post message - invalid origin",e.origin,e.data.eventType),0))}function U(e){var t;(null===(t=e.data)||void 0===t?void 0:t.eventType)&&console.error("Invalid origin - will not read PIQ Cashier events",e.data.eventType,e.origin)}var F=function(e){if(N(e))return U(e);switch(e.data.eventType){case f:if(L.cashierInitLoad)return L.cashierInitLoad();break;case"LOOKUP_INIT_LOAD":if(L.lookupInitLoad)return L.lookupInitLoad();break;case"CHANGE":if(L.change)return L.change({data:e.data.payload});break;case c:if(L.update)return L.update({data:e.data.payload});break;case"TX_SUCCESS":if(L.success)return L.success({data:e.data.payload});break;case"TX_FAILED":if(L.failure)return L.failure({data:e.data.payload});break;case"TX_PENDING":if(L.pending)return L.pending({data:e.data.payload});break;case"TX_UNRESOLVED":if(L.unresolved)return L.unresolved({data:e.data.payload});break;case"APP_SET_HEIGHT":return ee(e.data.payload.height);case s:if(L.pause)return L.pause({data:e.data.payload});break;case d:if(L.resume)return L.resume({data:e.data.payload});break;case h:if(L.isLoading)return L.isLoading({data:e.data.eventType});break;case"DONE_LOADING":if(L.doneLoading)return L.doneLoading({data:e.data.eventType});break;case"APP_VISIBLE":if(L.isVisible)return L.isVisible();break;case"APP_HIDDEN":if(L.isHidden)return L.isHidden();break;case"SELECTED_TX_METHOD":if(L.paymentMethodSelect&&e.data&&e.data.payload)return L.paymentMethodSelect({data:e.data.payload});break;case"PAYMENT_AMOUNT_CHANGE":if(L.paymentAmountChange&&e.data&&e.data.payload)return L.paymentAmountChange({data:e.data.payload});break;case"ENTERED_TX_METHOD_PAGE":if(L.paymentMethodPageEntered&&e.data&&e.data.payload)return L.paymentMethodPageEntered({data:e.data.payload});break;case"APP_ROUTE_CHANGE":if(L.navigate&&e.data&&e.data.payload)return L.navigate({data:e.data.payload});break;case"NEW_IFRAME":case"NEW_WINDOW":if(L.newProviderWindow)return L.newProviderWindow({data:e.data.eventType});break;case"CANCEL_PENDING_WITHDRAWAL":if(L.cancelledPendingWD)return L.cancelledPendingWD({data:e.data.payload});break;case"TX_VALIDATION_FAILED":if(L.validationFailed)return L.validationFailed({data:e.data.payload});break;case"PIQ_LOOKUP_CUSTOMER_IDENTIFIED":return function(e){var t=e.data,n=t.eventType,a=t.payload;if(!n&&"string"==typeof e.data){var r=JSON.parse(e.data);n=r.eventType,a=r.payload}if(L.lookupUserIdentified&&L.lookupUserIdentified({data:a}),!R||R.cashierLoaded)return X({iframe:document.getElementById("cashierIframe")});var i={userId:a.userId,sessionId:a.sessionId||null,user:a.user,attributes:a.attributes,didToken:a.didToken||null};R.setupCashier(i)}(e);case"PIQ_CUSTOMER_DATA":if(L.lookupUserData)return L.lookupUserData({data:e.data.payload});case"TX_CANCELLED":if(L.cancelled)return L.cancelled({data:e.data.payload});break;case p:if(L.onLoadError)return L.onLoadError({data:e.data.payload});break;case"TRANSACTION_INIT":if(L.transactionInit)return L.transactionInit({data:e.data.payload})}},G=function(e){return t(void 0,void 0,void 0,(function(){var n,a,i,o,c,s,d,f;return r(this,(function(h){if(N(e))return[2,U(e)];try{switch(n=e.data,a=n.eventType,i=n.payload,a||"string"!=typeof e.data||(o=JSON.parse(e.data),a=o.eventType,i=o.payload),a){case"CASHIER_BOOT_REQUEST":!function(){var e,t,n=document.querySelector("#cashierIframe");if(n){var a=null!==(t=null===(e=null==R?void 0:R.cashierConfig)||void 0===e?void 0:e.launchToken)&&void 0!==t?t:null;V({eventType:"CASHIER_BOOT",payload:{launchToken:a}},n.contentWindow,Z(n))}}();break;case"ADD_CONFIG_TO_WINDOW":ae(i);break;case"SETUP_AUTHORIZE_SCRIPT":!function(e){if(null==e?void 0:e.authorizeScript){var t=e.provider,n=e.authorizeScript;try{var a="Authenticate_".concat(t);if(!document.getElementById(a)){var r=document.createElement("script");r.id=a,r.innerHTML=n,document.body.appendChild(r)}}catch(e){console.log(e),console.error("Unable to add authenticate script for ".concat(t))}}}(i);break;case"EXECUTE_AUTHORIZE_METHOD":c=i.method,s=i.parameters,window[c](s);break;case"GET_INTEGRATIONS_SCRIPT_URL":return[2,M(i)];case"TOP_URL_REPLACE":!function(e){window.location.replace(e.url);var t=JSON.stringify({eventType:"APPLICATION_REDIRECT",payload:e});window.ReactNativeWebView?H(t,window.ReactNativeWebView,"*"):H(t)}(i);break;case l:!function(e){var t=JSON.stringify({eventType:l,payload:e});window.ReactNativeWebView?H(t,window.ReactNativeWebView,"*"):H(t)}(i);break;case u:d=document.getElementById("cashierIframe"),H({eventType:u,payload:i},d.contentWindow,J());break;case"PIQ_STATUS_NATIVE_PAYMENT":f=JSON.stringify({eventType:"PIQ_STATUS_NATIVE_PAYMENT",payload:i}),window.ReactNativeWebView?H(f,window.ReactNativeWebView,"*"):H(f);break;case g:!function(e){t(void 0,void 0,void 0,(function(){var t,n,a,i,o;return r(this,(function(r){switch(r.label){case 0:return e.codeVerifier?(t=e.codeVerifier,n=new TextEncoder,a=n.encode(t),[4,window.crypto.subtle.digest("SHA-256",a)]):[3,2];case 1:i=r.sent(),o=document.getElementById("lookupIframe"),V({eventType:g,payload:{codeChallenge:i,codeVerifier:t}},o.contentWindow,Z(o)),r.label=2;case 2:return[2]}}))}))}(i);break;case"PIQ_LOOKUP_EDIT_USER":return[2,j({iframe:document.getElementById("cashierIframe")})];case"PIQ_LOOKUP_CUSTOMER_RESET":re(),R.cashierLoaded=!1;break;case"PIQ_LOOKUP_REPORT_HEIGHT":return[2,te(e.data.payload.height)]}}catch(e){console.log(e)}return[2]}))}))},H=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);try{t?t.postMessage(e,n):window.postMessage(e,J())}catch(t){e.eventType?console.error("Failed to send postMessage: ",e.eventType):console.error(t)}},V=function(e,t,n){var a=b();H(e,t,n),n!==a&&H(e,t,a)},W=function(e,t){V({eventType:"SET_CSS",payload:e},t.iframe.contentWindow,Z(t.iframe))},j=function(e){if(!e.iframe)return null;V({eventType:s},e.iframe.contentWindow,Z(e.iframe));var t=document.getElementById("cashierIframe");t&&(t.tabIndex=-1)},X=function(e){V({eventType:d},e.iframe.contentWindow,Z(e.iframe)),document.getElementById("cashierIframe").tabIndex=0},K=function(e){var t=document.querySelector("#cashierIframe");V({eventType:"POST_INTEGRATION_URL",payload:{url:ne("txRefId",e.txRefId),txRefId:e.txRefId}},t.contentWindow,Z(t))},Q=function(e){if(window._piqDFP){var t=document.getElementById(e);z(t,window._piqDFP),delete window._piqDFP}else setTimeout((function(){Q(e)}),50)},z=function(e,t){t?V({eventType:"PIQ_DEVICE_ID",payload:{deviceId:t}},e.contentWindow,Z(e)):console.error("DeviceId not defined")};function J(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var Z=function(e){return x||(P||function(e){var t=new URL(e.src);return function(e){for(var t=0,n=Object.keys(O);t<n.length;t++){var a=n[t],r=O[a];try{if(new URL(r.cashierApi).origin===e&&r.cashierOrigin!==e)return r.cashierOrigin}catch(e){}}return null}(t.origin)||(null==t?void 0:t.origin)}(e))},q=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);try{var a=function(e){return n?e:encodeURIComponent(e)},r=function(e,t){return a("object"==typeof e&&"trackingPixels"===t?JSON.stringify(e):e)},i=[];for(var o in e){var c=e[o];t?null!==e[o]&&""!==e[o]&&i.push("".concat(a(o),"=").concat(r(c,o))):i.push("".concat(a(o),"=").concat(r(c,o)))}return i.join("&")}catch(e){console.error(e)}},Y=function(t){var n=e({},t);try{var a=n.theme;for(var r in delete n.theme,a)for(var i in a[r])n["theme_".concat(r,"_").concat(i)]=a[r][i]}catch(e){console.log(e)}try{var o=n.attributes;for(var c in function(e){delete e.containerMinHeight,delete e.initLoadErrorTimeout,delete e.attributes,delete e.launchToken}(n),o)n["attributes.".concat(c)]=o[c];var s=n.user;for(var d in delete n.user,s)n["user.".concat(d)]=s[d]}catch(e){console.log(e)}return n},$=function(t){var n=e({},t);return n.config&&(delete n.config.merchantId,delete n.config.userId,delete n.config.sessionId),n},ee=function(e){document.getElementById("cashierIframe").style.height="".concat(e,"px")},te=function(e){document.getElementById("lookupIframe").style.height="".concat(e,"px")},ne=function(e,t){var n=self.window.location.href,a=null,r=new RegExp("[&\\?]"+e+"=");return r.test(n)?(r=new RegExp("([&\\?])"+e+"=\\d+"),a=n.replace(r,"$1".concat(e,"=").concat(t))):a=n.indexOf("?")>-1?"".concat(n,"&").concat(e,"=").concat(t):"".concat(n,"?").concat(e,"=").concat(t),a},ae=function(t){try{var n=JSON.parse(t.config),a="".concat(window.PIQ_CASHIER_URI.split("?")[0],"?").concat(q(Y(n)));window.PIQ_BO_CONFIG_URI=a,window.PIQ_BO_CONFIG_MERGED=e(e({},window.__PIQ_CASHIER_CONFIG__),t)}catch(e){console.log(e)}},re=function(){try{var e=document.getElementById("cashierIframe");e?e.remove():console.log("No PIQ Cashier found and can't reset")}catch(e){console.error(e),console.log("Unable to destroy PIQ Cashier - has it been setup?")}},ie="geolocation *;camera *;payment *;clipboard-read *;clipboard-write *;autoplay *;microphone *;fullscreen *;accelerometer *;magnetometer *;gyroscope *;picture-in-picture *;otp-credentials *;publickey-credentials-get https://checkout-v2.zimpler.net;publickey-credentials-create https://checkout-v2.zimpler.net;";var oe=function(){function t(t,n,a){this.initCssSet=!1;var r=document.querySelector(t);r.className=m,this.cashierContainerId=(new Date).getTime().toString(),r.setAttribute(v,this.cashierContainerId),n.containerMinHeight&&(this.containerMinHeight=n.containerMinHeight);var i=e({},n),c=function(t){var n=t.font,a=t.locale,r=J();if(t.attributes||(t.attributes={}),t.attributes.hostUri=r,t.lookupConfig){var i=e({},t.lookupConfig),o=e(e(e(e({merchantId:t.merchantId},i),n&&{font:n}),a&&{locale:a}),{hostUri:r,theme:e({},t.theme),containerWidth:t.containerWidth||void 0,environment:i.environment||t.environment||"production"});return delete t.lookupConfig,{cashierConfig:t,lookupConfig:o}}return{cashierConfig:t}}(i),s=c.cashierConfig,d=c.lookupConfig;this.cashierConfig=s,this.element=r,this.lookupLoaded=!1,this.cashierLoaded=!1,d?this.setupCheckoutFlow(r,d,a,this):this.setupCashierFlow(a),function(){try{o().getV18({},(function(e){window._piqDFP=e}))}catch(e){console.error("Failed to generate device id"),console.error(e)}}(),i.launchToken;var l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(i,["launchToken"]);return window.__PIQ_CASHIER_CONFIG__=l,this.api(!1,null)}return t.prototype.setupCashierFlow=function(e){this.setupCashier({callback:e})},t.prototype.setupCheckoutFlow=function(t,n,a,r){var i=this,o=null;n&&(n.domElement||t)&&(o=function(t,n,a){var r=e({},n);r.didAccessToken&&(r.didAccessToken=JSON.stringify(r.didAccessToken)),r.userData&&(r.userData=JSON.stringify(r.userData)),a.iframe=document.createElement("iframe");var i=r.environment,o=(r.containerHeight,r.containerWidth),c=void 0===o?"1px":o,s=r.containerMinHeight,d=void 0===s?"0px":s,l=function(e,t){var n;if("development"===e)return T(A);var a=(null===(n=I(e))||void 0===n?void 0:n.cashierOrigin)||b();return"".concat(a,"/checkout-client/").concat(t||"master")}(i,r.version);a.iframe.style.borderWidth=0,a.iframe.style.height="250px",a.iframe.style.minHeight=d,a.iframe.style.width=c,a.iframe.style.minWidth="100%",a.iframe.style.left="0px",a.iframe.allow=ie,a.iframe.id="lookupIframe",a.iframe.setAttribute("data-hj-allow-iframe","true"),a.iframe.setAttribute("data-cy","lookup-iframe");var u=q(Y(r));return u.length>2e3&&console.error("Query length is over 2000 characters. self can be breaking in some browsers. Look into your passed in parameters, are all needed? Did you know that any passed in attributes can be passed in using the Javascript-API instead?. Read more over at ".concat(_())),a.iframe.src="".concat(l,"/?").concat(u),t.appendChild(a.iframe),a.iframe}(n.domElement||t,n,r)),o.onload=function(){i.lookupLoaded=!0,a(i.api(!0,o))}},t.prototype.setupCashier=function(t){var n,a,r=this;try{var i=t.callback,o=void 0===i?null:i,c=t.userId,s=t.sessionId,d=t.user,l=void 0===d?{}:d,u=t.attributes,f=void 0===u?{}:u,h=t.didToken,g=void 0===h?null:h,T=this,y=T.element,w=T.cashierConfig,A=T.cashierLoaded;if(y&&w&&!A){c&&(w.userId=c),s&&(w.sessionId=s),g&&(w.attributes||(w.attributes={}),w.attributes.didToken=g),w.user=e(e({},w.user),l),w.attributes=e(e({},w.attributes),f);var E=function(e,t,n,a){var r,i,o,c;n.iframe=document.createElement("iframe");var s,d=t.environment,l=t.containerHeight,u=void 0===l?"100%":l,f=t.containerWidth,h=void 0===f?"100%":f,p=t.containerMinHeight,g=void 0===p?"0px":p,m=null!==(i=null===(r=I(d))||void 0===r?void 0:r.cashierApi)&&void 0!==i?i:I("production").cashierApi,v=null!==(c=null===(o=I(d))||void 0===o?void 0:o.cashierOrigin)&&void 0!==c?c:I("production").cashierOrigin;k(s=v)&&(P=s),n.iframe.style.borderWidth=0,n.iframe.style.height=u,n.iframe.style.minHeight=g,n.iframe.style.width=h,n.iframe.style.left="0px",n.iframe.allow=ie,n.iframe.allowTransparency,n.iframe.id="cashierIframe",n.iframe.setAttribute("data-hj-allow-iframe","true"),n.iframe.setAttribute("data-cy","cashier-iframe");var T=q(Y(t));T.length>2e3&&console.error("Query length is over 2000 characters. self can be breaking in some browsers. Look into your passed in parameters, are all needed? Did you know that any passed in attributes can be passed in using the Javascript-API instead?. Read more over at ".concat(_()));var y="".concat(T,"&attributes.bootstrapVersion=").concat("1.6.2"),w="".concat(m,"/?").concat(y);return n.iframe.src=w,n.iframe.onload=a,e.appendChild(n.iframe),window.PIQ_CASHIER_URI=w,n.iframe}(y,w,this,(function(){r.cashierLoaded=!0,o&&o(r.api(!0,E))}));n=w.initLoadErrorTimeout,a=this.cashierContainerId,void 0===n&&(n=1e4),setTimeout((function(){var e,t=document.querySelector(".".concat(m)),i=(null==t?void 0:t.attributes)?null===(e=t.attributes[v])||void 0===e?void 0:e.value:"";r.cashierLoaded||a!==i||self.postMessage({eventType:p,payload:{status:"Could not load cashier iframe. Execution time limit was exceeded: ".concat(n," milliseconds"),timeLimit:n}},"*")}),n)}}catch(e){console.log("Failed to setup cashier"),console.error(e)}},t.prototype.api=function(t,n){var a,r,i=this,o={set:function(e){!function(e,t){V({eventType:c,payload:$(e)},t.iframe.contentWindow,Z(t.iframe))}(e,i)},css:function(e){W(e,i)},pause:function(){j(i)},resume:function(){X(i)},on:function(){}};return this.containerMinHeight&&!this.initCssSet&&(a=this.containerMinHeight,r=this,window.addEventListener("message",(function(e){if(e.data.eventType===f){"number"==typeof a&&"".concat(a,"px");var t="\n #app-container.auto-height {\n min-height: ".concat(a,"!important;\n }\n ");W(t,r)}})),this.initCssSet=!0),t&&n?(Q(n.id),R=this,M=K,window.removeEventListener("message",G,!1),window.addEventListener("message",G),e(e({},o),{on:function(e){!function(e){var t;D(e),e.isLoading&&((t=document.querySelector("#cashierIframe"))&&V({eventType:h},t.contentWindow,Z(t)))}(e)}})):o},t}();window._PaymentIQCashier=oe,window._PaymentIQCashierReset=re;const ce=oe})(),a})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.beta=t():e.beta=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={750:function(e,t,n){var a,r;!function(i,o,c){"use strict";"undefined"!=typeof window&&n.amdO?void 0===(r="function"==typeof(a=c)?a.call(t,n,t,e):a)||(e.exports=r):e.exports?e.exports=c():o.exports?o.exports=c():o.Fingerprint2=c()}(0,this,(function(){"use strict";void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},a=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},r=function(e,t){return[e[0]^t[0],e[1]^t[1]]},i=function(e){return e=r(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=r(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),r(e,[0,e[0]>>>1])},o=function(o,c){c=c||0;for(var s=(o=o||"").length%16,d=o.length-s,l=[0,c],u=[0,c],f=[0,0],h=[0,0],p=[2277735313,289559509],g=[1291169091,658871167],m=0;m<d;m+=16)f=[255&o.charCodeAt(m+4)|(255&o.charCodeAt(m+5))<<8|(255&o.charCodeAt(m+6))<<16|(255&o.charCodeAt(m+7))<<24,255&o.charCodeAt(m)|(255&o.charCodeAt(m+1))<<8|(255&o.charCodeAt(m+2))<<16|(255&o.charCodeAt(m+3))<<24],h=[255&o.charCodeAt(m+12)|(255&o.charCodeAt(m+13))<<8|(255&o.charCodeAt(m+14))<<16|(255&o.charCodeAt(m+15))<<24,255&o.charCodeAt(m+8)|(255&o.charCodeAt(m+9))<<8|(255&o.charCodeAt(m+10))<<16|(255&o.charCodeAt(m+11))<<24],f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f),l=n(l,27),l=e(l,u),l=e(t(l,[0,5]),[0,1390208809]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h),u=n(u,31),u=e(u,l),u=e(t(u,[0,5]),[0,944331445]);switch(f=[0,0],h=[0,0],s){case 15:h=r(h,a([0,o.charCodeAt(m+14)],48));case 14:h=r(h,a([0,o.charCodeAt(m+13)],40));case 13:h=r(h,a([0,o.charCodeAt(m+12)],32));case 12:h=r(h,a([0,o.charCodeAt(m+11)],24));case 11:h=r(h,a([0,o.charCodeAt(m+10)],16));case 10:h=r(h,a([0,o.charCodeAt(m+9)],8));case 9:h=r(h,[0,o.charCodeAt(m+8)]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h);case 8:f=r(f,a([0,o.charCodeAt(m+7)],56));case 7:f=r(f,a([0,o.charCodeAt(m+6)],48));case 6:f=r(f,a([0,o.charCodeAt(m+5)],40));case 5:f=r(f,a([0,o.charCodeAt(m+4)],32));case 4:f=r(f,a([0,o.charCodeAt(m+3)],24));case 3:f=r(f,a([0,o.charCodeAt(m+2)],16));case 2:f=r(f,a([0,o.charCodeAt(m+1)],8));case 1:f=r(f,[0,o.charCodeAt(m)]),f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f)}return l=r(l,[0,o.length]),u=r(u,[0,o.length]),l=e(l,u),u=e(u,l),l=i(l),u=i(u),l=e(l,u),u=e(u,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},c={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},s=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)},d=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(s(e,(function(e,a,r){n.push(t(e,a,r))})),n)},l=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,a=navigator.plugins.length;n<a;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return u(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),d(t,(function(e){var t=d(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},u=function(e){for(var t=!1,n=0,a=e.plugins.sortPluginsFor.length;n<a;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t},f=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},h=function(){if(!f())return!1;var e=g(),t=!!window.WebGLRenderingContext&&!!e;return m(e),t},p=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},g=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},m=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},v=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(e){if(p())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=d(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(l(e))),t}(t)):e(l(t))}},{key:"canvas",getData:function(e,t){f()?e(function(e){var t=[],n=document.createElement("canvas");n.width=2e3,n.height=200,n.style.display="inline";var a=n.getContext("2d");return a.rect(0,0,10,10),a.rect(2,2,6,6),t.push("canvas winding:"+(!1===a.isPointInPath(5,5,"evenodd")?"yes":"no")),a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",e.dontUseFakeFontInCanvas?a.font="11pt Arial":a.font="11pt no-real-font-123",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),a.fillStyle="rgba(102, 204, 0, 0.2)",a.font="18pt Arial",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),a.globalCompositeOperation="multiply",a.fillStyle="rgb(255,0,255)",a.beginPath(),a.arc(50,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(0,255,255)",a.beginPath(),a.arc(100,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,255,0)",a.beginPath(),a.arc(75,100,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,0,255)",a.arc(75,75,75,0,2*Math.PI,!0),a.arc(75,75,25,0,2*Math.PI,!0),a.fill("evenodd"),n.toDataURL&&t.push("canvas fp:"+n.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){h()?e(function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=g()))return null;var n=[],a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a);var r=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),a.itemSize=3,a.numItems=3;var i=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var c=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(c,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(c),e.attachShader(i,o),e.attachShader(i,c),e.linkProgram(i),e.useProgram(i),i.vertexPosAttrib=e.getAttribLocation(i,"attrVertex"),i.offsetUniform=e.getUniformLocation(i,"uniformOffset"),e.enableVertexAttribArray(i.vertexPosArray),e.vertexAttribPointer(i.vertexPosAttrib,a.itemSize,e.FLOAT,!1,0,0),e.uniform2f(i.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,a.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var d=e.getExtension("WEBGL_debug_renderer_info");d&&(n.push("webgl unmasked vendor:"+e.getParameter(d.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(d.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(s(["FLOAT","INT"],(function(t){s(["VERTEX","FRAGMENT"],(function(a){s(["HIGH","MEDIUM","LOW"],(function(r){s(["precision","rangeMin","rangeMax"],(function(i){var o=e.getShaderPrecisionFormat(e[a+"_SHADER"],e[r+"_"+t])[i];"precision"!==i&&(i="precision "+i);var c=["webgl ",a.toLowerCase()," shader ",r.toLowerCase()," ",t.toLowerCase()," ",i,":",o].join("");n.push(c)}))}))}))})),m(e),n):(m(e),n)}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){h()?e(function(){try{var e=g(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return m(e),n}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,a=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return a.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(a.indexOf("arm")>=0&&"Windows Phone"===e)&&!(a.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((a.indexOf("win")<0&&a.indexOf("linux")<0&&a.indexOf("mac")<0&&a.indexOf("iphone")<0&&a.indexOf("ipad")<0&&a.indexOf("ipod")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"==(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var a,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),a=!0}catch(e){a=!1}}return a&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],a=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(a=a.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),a=(a=a.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return a.indexOf(e)===t}));var r=document.getElementsByTagName("body")[0],i=document.createElement("div"),o=document.createElement("div"),c={},s={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},l=function(e,t){var n=d();return n.style.fontFamily="'"+e+"',"+t,n},u=function(e){for(var t=!1,a=0;a<n.length;a++)if(t=e[a].offsetWidth!==c[n[a]]||e[a].offsetHeight!==s[n[a]])return t;return t},f=function(){for(var e=[],t=0,a=n.length;t<a;t++){var r=d();r.style.fontFamily=n[t],i.appendChild(r),e.push(r)}return e}();r.appendChild(i);for(var h=0,p=n.length;h<p;h++)c[n[h]]=f[h].offsetWidth,s[n[h]]=f[h].offsetHeight;var g=function(){for(var e={},t=0,r=a.length;t<r;t++){for(var i=[],c=0,s=n.length;c<s;c++){var d=l(a[t],n[c]);o.appendChild(d),i.push(d)}e[a[t]]=i}return e}();r.appendChild(o);for(var m=[],v=0,T=a.length;v<T;v++)u(g[a[v]])&&m.push(a[v]);r.removeChild(o),r.removeChild(i),e(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?t.fonts.swfPath?void function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var a,r=t.fonts.swfContainerId;(a=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(a);var i={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==a)return e(t.NOT_AVAILABLE);var r=new a(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();s([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)})),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var c=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,e("audioTimeout")}),n.timeout);r.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),i.disconnect(),o.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],T=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return T.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var n,a;for(a in t)null==(n=t[a])||Object.prototype.hasOwnProperty.call(e,a)||(e[a]=n)}(e,c),e.components=e.extraComponents.concat(v);var n={data:[],addPreprocessedComponent:function(t,a){"function"==typeof e.preprocessor&&(a=e.preprocessor(t,a)),n.data.push({key:t,value:a})}},a=-1,r=function(i){if((a+=1)>=e.components.length)t(n.data);else{var o=e.components[a];if(e.excludes[o.key])r(!1);else{if(!i&&o.pauseBefore)return a-=1,void setTimeout((function(){r(!0)}),1);try{o.getData((function(e){n.addPreprocessedComponent(o.key,e),r(!1)}),e)}catch(e){n.addPreprocessedComponent(o.key,String(e)),r(!1)}}}};r(!1)},T.getPromise=function(e){return new Promise((function(t,n){T.get(e,t)}))},T.getV18=function(e,t){return null==t&&(t=e,e={}),T.get(e,(function(n){for(var a=[],r=0;r<n.length;r++){var i=n[r];if(i.value===(e.NOT_AVAILABLE||"not available"))a.push({key:i.key,value:"unknown"});else if("plugins"===i.key)a.push({key:"plugins",value:d(i.value,(function(e){var t=d(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(i.key)&&Array.isArray(i.value))a.push({key:i.key,value:i.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(i.key)){if(!i.value)continue;a.push({key:i.key,value:1})}else i.value?a.push(i.value.join?{key:i.key,value:i.value.join(";")}:i):a.push({key:i.key,value:i.value})}var c=o(d(a,(function(e){return e.value})).join("~~~"),31);t(c,a)}))},T.x64hash128=o,T.VERSION="2.1.4",T}))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.r(a),n.d(a,{default:()=>ce});var e=function(){return e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))}function r(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var i=n(750),o=n.n(i);const c="UPDATE_DATA",s="CASHIER_PAUSE",d="CASHIER_RESUME",l="PIQ_INITIATE_NATIVE_PAYMENT",u="PIQ_PROCESS_NATIVE_PAYMENT",f="CASHIER_INIT_LOAD",h="IS_LOADING",p="ONLOAD_ERROR",g="PIQ_LOOKUP_SHA_256";var m="piq-cashier-wrapper",v="cashier_container_uid",T=function(e){return e.map((function(e){return String.fromCodePoint(74^e)})).join("")},y=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122],w=[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37],A=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,126,122,122,122],E=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,127,122,122,122],S=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,126,122,122,122],C=[34,62,62,58,57,112,101,101,46,37,41,57,100,58,43,51,39,47,36,62,35,59,100,35,37,101,47,63,56,37,58,47,101,41,43,57,34,35,47,56,101,45,47,36,47,56,43,38,101,32,43,60,43,57,41,56,35,58,62,43,58,35],O={production:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},mrgreen:{cashierApi:T([34,62,62,58,57,112,101,101,39,56,45,56,47,47,36,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},casumo:{cashierApi:T([34,62,62,58,57,112,101,101,41,43,57,63,39,37,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},ecom:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37])},test:{cashierApi:T([34,62,62,58,57,112,101,101,62,47,57,62,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56]),cashierOrigin:T(w)},development:{cashierApi:T(y),cashierOrigin:T(y)},silvercurrent:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47])},softember:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57])},sunpetal:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,57,63,36,58,47,62,43,38,100,50,51,48,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,63,36,58,47,62,43,38,100,50,51,48])},oceanharborlight:{cashierApi:T([34,62,62,58,57,112,101,101,43,58,35,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39,101,63,35,101,41,43,57,34,35,47,56]),cashierOrigin:T([34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39])}},I=function(e){return O[e]},b=function(){return T(w)},B=function(){for(var e=[],t=0,n=Object.keys(O);t<n.length;t++){var a=n[t],r=O[a];try{var i=new URL(r.cashierApi).origin;e.includes(i)||e.push(i)}catch(e){}e.includes(r.cashierOrigin)||e.push(r.cashierOrigin)}for(var o=0,c=[T(E),T(S),T(A)];o<c.length;o++){var s=c[o];e.includes(s)||e.push(s)}return e},_=function(){return T(C)},x=null,P=null,k=function(e){return!(!e||"string"!=typeof e)&&B().includes(e)},L=null,M=null,R=null,D=function(e){L=e,window.removeEventListener("message",F,!1),window.addEventListener("message",F)};function N(e){var t,n,a,r=B();return e.origin&&(a=e.origin,k(a)&&(x=a)),!(r.includes(e.origin)||(null===(t=e.data)||void 0===t?void 0:t.eventType)&&["CASHIER_INIT_LOAD","CASHIER_BOOT_REQUEST","LOOKUP_INIT_LOAD","IS_LOADING"].includes(e.data.eventType)||((null===(n=e.data)||void 0===n?void 0:n.eventType)&&console.error("Integration: Failed to read post message - invalid origin",e.origin,e.data.eventType),0))}function U(e){var t;(null===(t=e.data)||void 0===t?void 0:t.eventType)&&console.error("Invalid origin - will not read PIQ Cashier events",e.data.eventType,e.origin)}var F=function(e){if(N(e))return U(e);switch(e.data.eventType){case f:if(L.cashierInitLoad)return L.cashierInitLoad();break;case"LOOKUP_INIT_LOAD":if(L.lookupInitLoad)return L.lookupInitLoad();break;case"CHANGE":if(L.change)return L.change({data:e.data.payload});break;case c:if(L.update)return L.update({data:e.data.payload});break;case"TX_SUCCESS":if(L.success)return L.success({data:e.data.payload});break;case"TX_FAILED":if(L.failure)return L.failure({data:e.data.payload});break;case"TX_PENDING":if(L.pending)return L.pending({data:e.data.payload});break;case"TX_UNRESOLVED":if(L.unresolved)return L.unresolved({data:e.data.payload});break;case"APP_SET_HEIGHT":return ee(e.data.payload.height);case s:if(L.pause)return L.pause({data:e.data.payload});break;case d:if(L.resume)return L.resume({data:e.data.payload});break;case h:if(L.isLoading)return L.isLoading({data:e.data.eventType});break;case"DONE_LOADING":if(L.doneLoading)return L.doneLoading({data:e.data.eventType});break;case"APP_VISIBLE":if(L.isVisible)return L.isVisible();break;case"APP_HIDDEN":if(L.isHidden)return L.isHidden();break;case"SELECTED_TX_METHOD":if(L.paymentMethodSelect&&e.data&&e.data.payload)return L.paymentMethodSelect({data:e.data.payload});break;case"PAYMENT_AMOUNT_CHANGE":if(L.paymentAmountChange&&e.data&&e.data.payload)return L.paymentAmountChange({data:e.data.payload});break;case"ENTERED_TX_METHOD_PAGE":if(L.paymentMethodPageEntered&&e.data&&e.data.payload)return L.paymentMethodPageEntered({data:e.data.payload});break;case"APP_ROUTE_CHANGE":if(L.navigate&&e.data&&e.data.payload)return L.navigate({data:e.data.payload});break;case"NEW_IFRAME":case"NEW_WINDOW":if(L.newProviderWindow)return L.newProviderWindow({data:e.data.eventType});break;case"CANCEL_PENDING_WITHDRAWAL":if(L.cancelledPendingWD)return L.cancelledPendingWD({data:e.data.payload});break;case"TX_VALIDATION_FAILED":if(L.validationFailed)return L.validationFailed({data:e.data.payload});break;case"PIQ_LOOKUP_CUSTOMER_IDENTIFIED":return function(e){var t=e.data,n=t.eventType,a=t.payload;if(!n&&"string"==typeof e.data){var r=JSON.parse(e.data);n=r.eventType,a=r.payload}if(L.lookupUserIdentified&&L.lookupUserIdentified({data:a}),!R||R.cashierLoaded)return X({iframe:document.getElementById("cashierIframe")});var i={userId:a.userId,sessionId:a.sessionId||null,user:a.user,attributes:a.attributes,didToken:a.didToken||null};R.setupCashier(i)}(e);case"PIQ_CUSTOMER_DATA":if(L.lookupUserData)return L.lookupUserData({data:e.data.payload});case"TX_CANCELLED":if(L.cancelled)return L.cancelled({data:e.data.payload});break;case p:if(L.onLoadError)return L.onLoadError({data:e.data.payload});break;case"TRANSACTION_INIT":if(L.transactionInit)return L.transactionInit({data:e.data.payload})}},G=function(e){return t(void 0,void 0,void 0,(function(){var n,a,i,o,c,s,d,f;return r(this,(function(h){if(N(e))return[2,U(e)];try{switch(n=e.data,a=n.eventType,i=n.payload,a||"string"!=typeof e.data||(o=JSON.parse(e.data),a=o.eventType,i=o.payload),a){case"CASHIER_BOOT_REQUEST":!function(){var e,t,n=document.querySelector("#cashierIframe");if(n){var a=null!==(t=null===(e=null==R?void 0:R.cashierConfig)||void 0===e?void 0:e.launchToken)&&void 0!==t?t:null;V({eventType:"CASHIER_BOOT",payload:{launchToken:a}},n.contentWindow,Z(n))}}();break;case"ADD_CONFIG_TO_WINDOW":ae(i);break;case"SETUP_AUTHORIZE_SCRIPT":!function(e){if(null==e?void 0:e.authorizeScript){var t=e.provider,n=e.authorizeScript;try{var a="Authenticate_".concat(t);if(!document.getElementById(a)){var r=document.createElement("script");r.id=a,r.innerHTML=n,document.body.appendChild(r)}}catch(e){console.log(e),console.error("Unable to add authenticate script for ".concat(t))}}}(i);break;case"EXECUTE_AUTHORIZE_METHOD":c=i.method,s=i.parameters,window[c](s);break;case"GET_INTEGRATIONS_SCRIPT_URL":return[2,M(i)];case"TOP_URL_REPLACE":!function(e){window.location.replace(e.url);var t=JSON.stringify({eventType:"APPLICATION_REDIRECT",payload:e});window.ReactNativeWebView?H(t,window.ReactNativeWebView,"*"):H(t)}(i);break;case l:!function(e){var t=JSON.stringify({eventType:l,payload:e});window.ReactNativeWebView?H(t,window.ReactNativeWebView,"*"):H(t)}(i);break;case u:d=document.getElementById("cashierIframe"),H({eventType:u,payload:i},d.contentWindow,J());break;case"PIQ_STATUS_NATIVE_PAYMENT":f=JSON.stringify({eventType:"PIQ_STATUS_NATIVE_PAYMENT",payload:i}),window.ReactNativeWebView?H(f,window.ReactNativeWebView,"*"):H(f);break;case g:!function(e){t(void 0,void 0,void 0,(function(){var t,n,a,i,o;return r(this,(function(r){switch(r.label){case 0:return e.codeVerifier?(t=e.codeVerifier,n=new TextEncoder,a=n.encode(t),[4,window.crypto.subtle.digest("SHA-256",a)]):[3,2];case 1:i=r.sent(),o=document.getElementById("lookupIframe"),V({eventType:g,payload:{codeChallenge:i,codeVerifier:t}},o.contentWindow,Z(o)),r.label=2;case 2:return[2]}}))}))}(i);break;case"PIQ_LOOKUP_EDIT_USER":return[2,j({iframe:document.getElementById("cashierIframe")})];case"PIQ_LOOKUP_CUSTOMER_RESET":re(),R.cashierLoaded=!1;break;case"PIQ_LOOKUP_REPORT_HEIGHT":return[2,te(e.data.payload.height)]}}catch(e){console.log(e)}return[2]}))}))},H=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);try{t?t.postMessage(e,n):window.postMessage(e,J())}catch(t){e.eventType?console.error("Failed to send postMessage: ",e.eventType):console.error(t)}},V=function(e,t,n){var a=b();H(e,t,n),n!==a&&H(e,t,a)},W=function(e,t){V({eventType:"SET_CSS",payload:e},t.iframe.contentWindow,Z(t.iframe))},j=function(e){if(!e.iframe)return null;V({eventType:s},e.iframe.contentWindow,Z(e.iframe));var t=document.getElementById("cashierIframe");t&&(t.tabIndex=-1)},X=function(e){V({eventType:d},e.iframe.contentWindow,Z(e.iframe)),document.getElementById("cashierIframe").tabIndex=0},K=function(e){var t=document.querySelector("#cashierIframe");V({eventType:"POST_INTEGRATION_URL",payload:{url:ne("txRefId",e.txRefId),txRefId:e.txRefId}},t.contentWindow,Z(t))},Q=function(e){if(window._piqDFP){var t=document.getElementById(e);z(t,window._piqDFP),delete window._piqDFP}else setTimeout((function(){Q(e)}),50)},z=function(e,t){t?V({eventType:"PIQ_DEVICE_ID",payload:{deviceId:t}},e.contentWindow,Z(e)):console.error("DeviceId not defined")};function J(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var Z=function(e){return x||(P||function(e){var t=new URL(e.src);return function(e){for(var t=0,n=Object.keys(O);t<n.length;t++){var a=n[t],r=O[a];try{if(new URL(r.cashierApi).origin===e&&r.cashierOrigin!==e)return r.cashierOrigin}catch(e){}}return null}(t.origin)||(null==t?void 0:t.origin)}(e))},q=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);try{var a=function(e){return n?e:encodeURIComponent(e)},r=function(e,t){return a("object"==typeof e&&"trackingPixels"===t?JSON.stringify(e):e)},i=[];for(var o in e){var c=e[o];t?null!==e[o]&&""!==e[o]&&i.push("".concat(a(o),"=").concat(r(c,o))):i.push("".concat(a(o),"=").concat(r(c,o)))}return i.join("&")}catch(e){console.error(e)}},Y=function(t){var n=e({},t);try{var a=n.theme;for(var r in delete n.theme,a)for(var i in a[r])n["theme_".concat(r,"_").concat(i)]=a[r][i]}catch(e){console.log(e)}try{var o=n.attributes;for(var c in function(e){delete e.containerMinHeight,delete e.initLoadErrorTimeout,delete e.attributes,delete e.launchToken}(n),o)n["attributes.".concat(c)]=o[c];var s=n.user;for(var d in delete n.user,s)n["user.".concat(d)]=s[d]}catch(e){console.log(e)}return n},$=function(t){var n=e({},t);return n.config&&(delete n.config.merchantId,delete n.config.userId,delete n.config.sessionId),n},ee=function(e){document.getElementById("cashierIframe").style.height="".concat(e,"px")},te=function(e){document.getElementById("lookupIframe").style.height="".concat(e,"px")},ne=function(e,t){var n=self.window.location.href,a=null,r=new RegExp("[&\\?]"+e+"=");return r.test(n)?(r=new RegExp("([&\\?])"+e+"=\\d+"),a=n.replace(r,"$1".concat(e,"=").concat(t))):a=n.indexOf("?")>-1?"".concat(n,"&").concat(e,"=").concat(t):"".concat(n,"?").concat(e,"=").concat(t),a},ae=function(t){try{var n=JSON.parse(t.config),a="".concat(window.PIQ_CASHIER_URI.split("?")[0],"?").concat(q(Y(n)));window.PIQ_BO_CONFIG_URI=a,window.PIQ_BO_CONFIG_MERGED=e(e({},window.__PIQ_CASHIER_CONFIG__),t)}catch(e){console.log(e)}},re=function(){try{var e=document.getElementById("cashierIframe");e?e.remove():console.log("No PIQ Cashier found and can't reset")}catch(e){console.error(e),console.log("Unable to destroy PIQ Cashier - has it been setup?")}},ie="geolocation *;camera *;payment *;clipboard-read *;clipboard-write *;autoplay *;microphone *;fullscreen *;accelerometer *;magnetometer *;gyroscope *;picture-in-picture *;otp-credentials *;publickey-credentials-get https://checkout-v2.zimpler.net;publickey-credentials-create https://checkout-v2.zimpler.net;";var oe=function(){function t(t,n,a){this.initCssSet=!1;var r=document.querySelector(t);r.className=m,this.cashierContainerId=(new Date).getTime().toString(),r.setAttribute(v,this.cashierContainerId),n.containerMinHeight&&(this.containerMinHeight=n.containerMinHeight);var i=e({},n),c=function(t){var n=t.font,a=t.locale,r=J();if(t.attributes||(t.attributes={}),t.attributes.hostUri=r,t.lookupConfig){var i=e({},t.lookupConfig),o=e(e(e(e({merchantId:t.merchantId},i),n&&{font:n}),a&&{locale:a}),{hostUri:r,theme:e({},t.theme),containerWidth:t.containerWidth||void 0,environment:i.environment||t.environment||"production"});return delete t.lookupConfig,{cashierConfig:t,lookupConfig:o}}return{cashierConfig:t}}(i),s=c.cashierConfig,d=c.lookupConfig;this.cashierConfig=s,this.element=r,this.lookupLoaded=!1,this.cashierLoaded=!1,d?this.setupCheckoutFlow(r,d,a,this):this.setupCashierFlow(a),function(){try{o().getV18({},(function(e){window._piqDFP=e}))}catch(e){console.error("Failed to generate device id"),console.error(e)}}(),i.launchToken;var l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(i,["launchToken"]);return window.__PIQ_CASHIER_CONFIG__=l,this.api(!1,null)}return t.prototype.setupCashierFlow=function(e){this.setupCashier({callback:e})},t.prototype.setupCheckoutFlow=function(t,n,a,r){var i=this,o=null;n&&(n.domElement||t)&&(o=function(t,n,a){var r=e({},n);r.didAccessToken&&(r.didAccessToken=JSON.stringify(r.didAccessToken)),r.userData&&(r.userData=JSON.stringify(r.userData)),a.iframe=document.createElement("iframe");var i=r.environment,o=(r.containerHeight,r.containerWidth),c=void 0===o?"1px":o,s=r.containerMinHeight,d=void 0===s?"0px":s,l=function(e,t){var n;if("development"===e)return T(A);var a=(null===(n=I(e))||void 0===n?void 0:n.cashierOrigin)||b();return"".concat(a,"/checkout-client/").concat(t||"master")}(i,r.version);a.iframe.style.borderWidth=0,a.iframe.style.display="block",a.iframe.style.height="250px",a.iframe.style.minHeight=d,a.iframe.style.width=c,a.iframe.style.minWidth="100%",a.iframe.style.left="0px",a.iframe.allow=ie,a.iframe.id="lookupIframe",a.iframe.setAttribute("data-hj-allow-iframe","true"),a.iframe.setAttribute("data-cy","lookup-iframe");var u=q(Y(r));return u.length>2e3&&console.error("Query length is over 2000 characters. self can be breaking in some browsers. Look into your passed in parameters, are all needed? Did you know that any passed in attributes can be passed in using the Javascript-API instead?. Read more over at ".concat(_())),a.iframe.src="".concat(l,"/?").concat(u),t.appendChild(a.iframe),a.iframe}(n.domElement||t,n,r)),o.onload=function(){i.lookupLoaded=!0,a(i.api(!0,o))}},t.prototype.setupCashier=function(t){var n,a,r=this;try{var i=t.callback,o=void 0===i?null:i,c=t.userId,s=t.sessionId,d=t.user,l=void 0===d?{}:d,u=t.attributes,f=void 0===u?{}:u,h=t.didToken,g=void 0===h?null:h,T=this,y=T.element,w=T.cashierConfig,A=T.cashierLoaded;if(y&&w&&!A){c&&(w.userId=c),s&&(w.sessionId=s),g&&(w.attributes||(w.attributes={}),w.attributes.didToken=g),w.user=e(e({},w.user),l),w.attributes=e(e({},w.attributes),f);var E=function(e,t,n,a){var r,i,o,c;n.iframe=document.createElement("iframe");var s,d=t.environment,l=t.containerHeight,u=void 0===l?"100%":l,f=t.containerWidth,h=void 0===f?"100%":f,p=t.containerMinHeight,g=void 0===p?"0px":p,m=null!==(i=null===(r=I(d))||void 0===r?void 0:r.cashierApi)&&void 0!==i?i:I("production").cashierApi,v=null!==(c=null===(o=I(d))||void 0===o?void 0:o.cashierOrigin)&&void 0!==c?c:I("production").cashierOrigin;k(s=v)&&(P=s),n.iframe.style.borderWidth=0,n.iframe.style.display="block",n.iframe.style.height=u,n.iframe.style.minHeight=g,n.iframe.style.width=h,n.iframe.style.left="0px",n.iframe.allow=ie,n.iframe.allowTransparency,n.iframe.id="cashierIframe",n.iframe.setAttribute("data-hj-allow-iframe","true"),n.iframe.setAttribute("data-cy","cashier-iframe");var T=q(Y(t));T.length>2e3&&console.error("Query length is over 2000 characters. self can be breaking in some browsers. Look into your passed in parameters, are all needed? Did you know that any passed in attributes can be passed in using the Javascript-API instead?. Read more over at ".concat(_()));var y="".concat(T,"&attributes.bootstrapVersion=").concat("1.6.4"),w="".concat(m,"/?").concat(y);return n.iframe.src=w,n.iframe.onload=a,e.appendChild(n.iframe),window.PIQ_CASHIER_URI=w,n.iframe}(y,w,this,(function(){r.cashierLoaded=!0,o&&o(r.api(!0,E))}));n=w.initLoadErrorTimeout,a=this.cashierContainerId,void 0===n&&(n=1e4),setTimeout((function(){var e,t=document.querySelector(".".concat(m)),i=(null==t?void 0:t.attributes)?null===(e=t.attributes[v])||void 0===e?void 0:e.value:"";r.cashierLoaded||a!==i||self.postMessage({eventType:p,payload:{status:"Could not load cashier iframe. Execution time limit was exceeded: ".concat(n," milliseconds"),timeLimit:n}},"*")}),n)}}catch(e){console.log("Failed to setup cashier"),console.error(e)}},t.prototype.api=function(t,n){var a,r,i=this,o={set:function(e){!function(e,t){V({eventType:c,payload:$(e)},t.iframe.contentWindow,Z(t.iframe))}(e,i)},css:function(e){W(e,i)},pause:function(){j(i)},resume:function(){X(i)},on:function(){}};return this.containerMinHeight&&!this.initCssSet&&(a=this.containerMinHeight,r=this,window.addEventListener("message",(function(e){if(e.data.eventType===f){"number"==typeof a&&"".concat(a,"px");var t="\n #app-container.auto-height {\n min-height: ".concat(a,"!important;\n }\n ");W(t,r)}})),this.initCssSet=!0),t&&n?(Q(n.id),R=this,M=K,window.removeEventListener("message",G,!1),window.addEventListener("message",G),e(e({},o),{on:function(e){!function(e){var t;D(e),e.isLoading&&((t=document.querySelector("#cashierIframe"))&&V({eventType:h},t.contentWindow,Z(t)))}(e)}})):o},t}();window._PaymentIQCashier=oe,window._PaymentIQCashierReset=re;const ce=oe})(),a})()));
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export interface User {
|
|
10
|
-
|
|
10
|
+
// Click to Pay prefill overrides — let the host feed correct C2P enrollment
|
|
11
|
+
// data without changing the underlying account/user record. Settable via
|
|
12
|
+
// `user.<prop>` URL params or at runtime via `api.set`.
|
|
13
|
+
emailOverride?: string;
|
|
14
|
+
firstNameOverride?: string;
|
|
15
|
+
lastNameOverride?: string;
|
|
16
|
+
mobileNumberOverride?: string;
|
|
17
|
+
countryOverride?: string;
|
|
18
|
+
[key: string]: string | number | boolean | undefined;
|
|
11
19
|
}
|
|
12
20
|
|
|
13
21
|
export interface Attributes {
|
|
@@ -97,6 +105,61 @@ type ScrollToPm = 'nearest' | null | 'center' | 'start' | 'end';
|
|
|
97
105
|
type ListType = 'list' | 'grid';
|
|
98
106
|
type TrackingEvent = 'allDeposits' | 'firstDeposit' | 'allWithdrawals';
|
|
99
107
|
type DisplayLogoOrName = 'both' | 'logo' | 'name';
|
|
108
|
+
type C2PPrefillDataFlow = 'default' | 'hide';
|
|
109
|
+
type ThemeMode = 'auto' | 'light' | 'dark';
|
|
110
|
+
|
|
111
|
+
// ─── V2 theme overrides (runtime only — see note below) ─────────
|
|
112
|
+
// Precise types mirroring the cashier's auto-generated design tokens. Kept in a
|
|
113
|
+
// separate file (theme-v2.d.ts) because it is large and regenerated from the
|
|
114
|
+
// cashier's Style Dictionary pipeline — re-copy that file when tokens change.
|
|
115
|
+
import { ThemeV2 } from './theme-v2';
|
|
116
|
+
export { ColorModeValue, ThemeV2 } from './theme-v2';
|
|
117
|
+
|
|
118
|
+
// Seed colors that regenerate the primitive palette ramps (OKLCH) and cascade
|
|
119
|
+
// through every semantic token in both modes.
|
|
120
|
+
export interface ThemeSeeds {
|
|
121
|
+
brand?: string; // → brand ramp (buttons, focus, links)
|
|
122
|
+
layout?: string; // → greyNeutral ramp (surfaces, text, borders)
|
|
123
|
+
danger?: string; // → red ramp
|
|
124
|
+
success?: string; // → green ramp
|
|
125
|
+
warning?: string; // → orange ramp
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Payload for `api.set()` (sent to the cashier as an UPDATE_DATA postMessage).
|
|
130
|
+
*
|
|
131
|
+
* Channel difference vs. bootstrap:
|
|
132
|
+
* - At bootstrap (constructor), the merchant passes ONE combined object, so
|
|
133
|
+
* `user`/`attributes`/`theme` are nested inside the config object.
|
|
134
|
+
* - At runtime (`api.set`), the cashier reads them as TOP-LEVEL siblings of
|
|
135
|
+
* `config` (`payload.user`, `payload.attributes`, `payload.theme`) — confirmed
|
|
136
|
+
* in both the Vue and React cashiers (`handleApiSet` / `onUpdateData`). The
|
|
137
|
+
* `config` slot therefore EXCLUDES those keys to avoid a duplicate home.
|
|
138
|
+
*
|
|
139
|
+
* NOTE: `themeV2` and `seeds` are RUNTIME-ONLY overrides — they can ONLY be sent
|
|
140
|
+
* via `api.set()`, never as bootstrap/URL config like `theme` (v1). The cashier
|
|
141
|
+
* does not read them from URL params: their deeply-nested, per-mode
|
|
142
|
+
* (`{ light, dark }`) shape can't be flattened into the `theme_<section>_<prop>`
|
|
143
|
+
* URL scheme. Do NOT add `themeV2`/`seeds` to CashierConfig.
|
|
144
|
+
*
|
|
145
|
+
* `launchToken` is intentionally excluded from `config`: it is a boot-time
|
|
146
|
+
* credential, relayed once via the CASHIER_BOOT channel, and cannot be updated
|
|
147
|
+
* at runtime through `set()`.
|
|
148
|
+
*/
|
|
149
|
+
export interface UpdateDataPayload {
|
|
150
|
+
config?: Omit<
|
|
151
|
+
Partial<CashierConfig>,
|
|
152
|
+
'user' | 'attributes' | 'theme' | 'lookupConfig' | 'launchToken'
|
|
153
|
+
>;
|
|
154
|
+
user?: User;
|
|
155
|
+
attributes?: Attributes;
|
|
156
|
+
theme?: Theme;
|
|
157
|
+
themeV2?: ThemeV2;
|
|
158
|
+
seeds?: { theme?: ThemeSeeds };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ─── Cashier V3 feature types ───
|
|
162
|
+
type MaintenanceDisplay = 'hide' | 'grey-out';
|
|
100
163
|
|
|
101
164
|
interface UserData {
|
|
102
165
|
email?: string;
|
|
@@ -241,6 +304,36 @@ export interface CashierConfig {
|
|
|
241
304
|
prefillCreditcardHolder?: boolean;
|
|
242
305
|
prefillCreditcardHolderEditable?: boolean;
|
|
243
306
|
smartDeclineRecovery?: BooleanOrBooleanString;
|
|
307
|
+
// Controls the Click to Pay prefill data flow. `'hide'` suppresses prefilled
|
|
308
|
+
// PII in the C2P enrollment UI.
|
|
309
|
+
c2pPrefillDataFlow?: C2PPrefillDataFlow;
|
|
310
|
+
// Selects the V2 color mode. `'auto'` follows the user's prefers-color-scheme.
|
|
311
|
+
themeMode?: ThemeMode;
|
|
312
|
+
|
|
313
|
+
/* ──────────────────────────────────────────────────────────────
|
|
314
|
+
* Cashier V3 features
|
|
315
|
+
*
|
|
316
|
+
* V3 (React) cashier-only flags. Not gated by any entitlement —
|
|
317
|
+
* they work on the V3 cashier out of the box. Documented in the
|
|
318
|
+
* configuration parameters reference:
|
|
319
|
+
* https://docs.paymentiq.io/docs/developers/integration_guides/cashier/reference/09-reference-configuration-parameters
|
|
320
|
+
* ────────────────────────────────────────────────────────────── */
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Maintenance grey-out UX. `'grey-out'` renders payment methods that are in
|
|
324
|
+
* maintenance as disabled/greyed-out — the user sees the method exists but is
|
|
325
|
+
* temporarily unavailable — instead of failing hard. `'hide'` (default)
|
|
326
|
+
* removes them from the list, the standard behaviour.
|
|
327
|
+
*/
|
|
328
|
+
maintenanceDisplay?: MaintenanceDisplay;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Whether the cashier shows min/max amount-limit notices for the selected
|
|
332
|
+
* payment method and validates the entered amount against those limits.
|
|
333
|
+
* Defaults to `true`.
|
|
334
|
+
*/
|
|
335
|
+
limitBasedMethodAvailability?: BooleanOrBooleanString;
|
|
336
|
+
|
|
244
337
|
/**
|
|
245
338
|
* Merchant-minted ES256 launch token. Relayed to the cashier via a
|
|
246
339
|
* `CASHIER_BOOT` postMessage (never appended to the iframe URL) so the SPA can
|
|
@@ -282,29 +375,6 @@ export interface HostCallbackType {
|
|
|
282
375
|
paymentAmountChange?: (data?: any) => void;
|
|
283
376
|
}
|
|
284
377
|
|
|
285
|
-
/**
|
|
286
|
-
* Payload for `api.set()` (sent to the cashier as an UPDATE_DATA postMessage).
|
|
287
|
-
*
|
|
288
|
-
* Unlike the bootstrap config — one combined object passed to the constructor —
|
|
289
|
-
* the runtime `set()` payload nests config under `config`, with
|
|
290
|
-
* `user`/`attributes`/`theme` as TOP-LEVEL siblings. That is what the cashier
|
|
291
|
-
* reads (`payload.config`, `payload.user`, ...), so a flat config object passed
|
|
292
|
-
* here does NOT update config.
|
|
293
|
-
*
|
|
294
|
-
* `launchToken` is intentionally excluded from `config`: it is a boot-time
|
|
295
|
-
* credential, relayed once via the CASHIER_BOOT channel, and cannot be updated
|
|
296
|
-
* at runtime through `set()`.
|
|
297
|
-
*/
|
|
298
|
-
export interface UpdateDataPayload {
|
|
299
|
-
config?: Omit<
|
|
300
|
-
Partial<CashierConfig>,
|
|
301
|
-
'user' | 'attributes' | 'theme' | 'lookupConfig' | 'launchToken'
|
|
302
|
-
>;
|
|
303
|
-
user?: User;
|
|
304
|
-
attributes?: Attributes;
|
|
305
|
-
theme?: Theme;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
378
|
export interface IPiqCashierApiMethods {
|
|
309
379
|
set: (data: UpdateDataPayload) => void;
|
|
310
380
|
css: (css: string) => void;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paymentiq-cashier-bootstrapper",
|
|
3
3
|
"description": "Integration bootstrapper for the PaymentIQ Cashier V2\"",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.4",
|
|
5
5
|
"main": "dist/cashier.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"index.d.ts"
|
|
9
|
+
"index.d.ts",
|
|
10
|
+
"theme-v2.d.ts"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build": "webpack --progress --config build/webpack.base.conf.js",
|