@truework/credentials
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -1,1 +0,1 @@ | ||
{"processes":{"06d87ae2-5efe-45b5-9f03-dc2b18937c07":{"parent":null,"children":["739fd3c7-2ed9-4a3f-b127-834dbabf854a","aeec022d-ffa0-46ad-993b-565329604079","d8d76236-1135-4a3c-936e-8605930c0b4c"]},"739fd3c7-2ed9-4a3f-b127-834dbabf854a":{"parent":"06d87ae2-5efe-45b5-9f03-dc2b18937c07","externalId":"src/__tests__/frame.test.ts","children":[]},"aeec022d-ffa0-46ad-993b-565329604079":{"parent":"06d87ae2-5efe-45b5-9f03-dc2b18937c07","externalId":"src/__tests__/events.test.ts","children":[]},"d8d76236-1135-4a3c-936e-8605930c0b4c":{"parent":"06d87ae2-5efe-45b5-9f03-dc2b18937c07","externalId":"src/__tests__/index.test.ts","children":[]}},"files":{"/home/runner/work/truework.js/truework.js/packages/credentials/src/frame.ts":["739fd3c7-2ed9-4a3f-b127-834dbabf854a","d8d76236-1135-4a3c-936e-8605930c0b4c"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/constants.ts":["aeec022d-ffa0-46ad-993b-565329604079","d8d76236-1135-4a3c-936e-8605930c0b4c"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/events.ts":["aeec022d-ffa0-46ad-993b-565329604079","d8d76236-1135-4a3c-936e-8605930c0b4c"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/index.ts":["d8d76236-1135-4a3c-936e-8605930c0b4c"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/api.ts":["d8d76236-1135-4a3c-936e-8605930c0b4c"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/utils.ts":["d8d76236-1135-4a3c-936e-8605930c0b4c"]},"externalIds":{"src/__tests__/frame.test.ts":{"root":"739fd3c7-2ed9-4a3f-b127-834dbabf854a","children":[]},"src/__tests__/events.test.ts":{"root":"aeec022d-ffa0-46ad-993b-565329604079","children":[]},"src/__tests__/index.test.ts":{"root":"d8d76236-1135-4a3c-936e-8605930c0b4c","children":[]}}} | ||
{"processes":{"b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1":{"parent":"c22b052c-eae7-4d37-9a09-e5690015a3d8","externalId":"src/__tests__/index.test.ts","children":[]},"c22b052c-eae7-4d37-9a09-e5690015a3d8":{"parent":null,"children":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1","c304af0e-a4ad-4c29-a43b-f071aa7a5adb","d9b844b4-64d4-4876-8449-ee839d98741b"]},"c304af0e-a4ad-4c29-a43b-f071aa7a5adb":{"parent":"c22b052c-eae7-4d37-9a09-e5690015a3d8","externalId":"src/__tests__/events.test.ts","children":[]},"d9b844b4-64d4-4876-8449-ee839d98741b":{"parent":"c22b052c-eae7-4d37-9a09-e5690015a3d8","externalId":"src/__tests__/frame.test.ts","children":[]}},"files":{"/home/runner/work/truework.js/truework.js/packages/credentials/src/constants.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1","c304af0e-a4ad-4c29-a43b-f071aa7a5adb"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/index.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/api.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/utils.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/events.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1","c304af0e-a4ad-4c29-a43b-f071aa7a5adb"],"/home/runner/work/truework.js/truework.js/packages/credentials/src/frame.ts":["b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1","d9b844b4-64d4-4876-8449-ee839d98741b"]},"externalIds":{"src/__tests__/index.test.ts":{"root":"b3d1cbf6-812b-47cc-a46d-d4de98d3e9b1","children":[]},"src/__tests__/events.test.ts":{"root":"c304af0e-a4ad-4c29-a43b-f071aa7a5adb","children":[]},"src/__tests__/frame.test.ts":{"root":"d9b844b4-64d4-4876-8449-ee839d98741b","children":[]}}} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e){e.exports=JSON.parse('{"name":"@truework/credentials","version":"0.9.0","description":"The embeddable Truework Credentials experience.","author":"truework-team","main":"build/index.js","types":"build/src/index.d.ts","scripts":{"build":"webpack --mode production && pnpm typegen","watch":"webpack -w --mode development","typegen":"pnpm exec tsc --emitDeclarationOnly","typecheck":"pnpm exec tsc --noEmit","test":"TJS_FRAME_ORIGIN=http://localhost:4002 tap --ts --no-check-coverage --test-regex .*test\\\\.tsx?"},"devDependencies":{"@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","@babel/preset-typescript":"^7.15.0","@tsconfig/create-react-app":"^1.0.2","@types/jsdom":"^16.2.13","@types/node":"^17.0.31","@types/proxyquire":"^1.3.28","@types/tap":"^15.0.5","@types/ua-parser-js":"^0.7.36","babel-loader":"^8.2.2","core-js":"^3.21.1","jsdom":"^17.0.0","proxyquire":"^2.1.3","regenerator-runtime":"^0.13.9","tap":"^15.0.9","ts-node":"^10.2.1","typescript":"^4.3.5","webpack":"^4.46.0","webpack-cli":"^4.8.0"},"dependencies":{"gretchen":"^1.5.0","ua-parser-js":"^1.0.32","unik-id":"^0.0.3"}}')},function(e,t,r){var n;!function(i,o){"use strict";var a="model",s="name",c="type",u="vendor",l="version",b="mobile",d="tablet",p="smarttv",f=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},w=function(e,t){return"string"==typeof e&&-1!==m(t).indexOf(m(e))},m=function(e){return e.toLowerCase()},v=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),void 0===t?e:e.substring(0,350)},h=function(e,t){for(var r,n,i,o,a,s,c=0;c<t.length&&!a;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!a;)if(a=u[r++].exec(e))for(i=0;i<l.length;i++)s=a[++n],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;c+=2}},y=function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w(t[r][n],e))return"?"===r?void 0:r}else if(w(t[r],e))return"?"===r?void 0:r;return e},g={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},x={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",m]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",m]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,"Samsung"],[c,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,"Samsung"],[c,b]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[u,"Apple"],[c,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,"OPPO"],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,"Motorola"],[c,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,b]],[/(pixel c)\b/i],[a,[u,"Google"],[c,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[c,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,b]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,b]],[/(nexus 9)/i],[a,[u,"HTC"],[c,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,d]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,b]],[/(u304aa)/i],[a,[u,"AT&T"],[c,b]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,b]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,d]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,d]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,d]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,d]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,d]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,b]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,b]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,d]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,d]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,b]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,d]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,d]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,d]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,d]],[/(sprint) (\w+)/i],[u,a,[c,b]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,"console"]],[/droid.+; (shield) bui/i],[a,[u,"Nvidia"],[c,"console"]],[/(playstation [345portablevi]+)/i],[a,[u,"Sony"],[c,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,"Microsoft"],[c,"console"]],[/smart-tv.+(samsung)/i],[u,[c,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[c,p]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,p]],[/(apple) ?tv/i],[u,[a,"Apple TV"],[c,p]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[c,p]],[/droid.+aft(\w)( bui|\))/i],[a,[u,"Amazon"],[c,p]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,"Sharp"],[c,p]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,"Sony"],[c,p]],[/(mitv-\w{5}) bui/i],[a,[u,"Xiaomi"],[c,p]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,v],[a,v],[c,p]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,p]],[/((pebble))app/i],[u,a,[c,"wearable"]],[/droid.+; (glass) \d/i],[a,[u,"Google"],[c,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,"Zebra"],[c,"wearable"]],[/(quest( 2)?)/i],[a,[u,"Facebook"],[c,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,b]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,y,g]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,y,g]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],l],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,l]]},k=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof k))return new k(e,t).getResult();var r=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(x,t):x;return this.getBrowser=function(){var e,t={};return t[s]=void 0,t[l]=void 0,h.call(t,r,n.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return h.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return h.call(e,r,n.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return h.call(e,r,n.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return h.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"==typeof e&&e.length>350?v(e,350):e,this},this.setUA(r),this};k.VERSION="1.0.32",k.BROWSER=f([s,l,"major"]),k.CPU=f(["architecture"]),k.DEVICE=f([a,u,c,"console",b,p,d,"wearable","embedded"]),k.ENGINE=k.OS=f([s,l]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=k),t.UAParser=k):r(2)?void 0===(n=function(){return k}.call(t,r,t,e))||(e.exports=n):void 0!==i&&(i.UAParser=k);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var _=new k;O.ua=_.getResult(),O.ua.get=function(){return _.getUA()},O.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)O.ua[r]=t[r]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){"use strict";r.r(t),r.d(t,"version",(function(){return re})),r.d(t,"init",(function(){return ie})),r.d(t,"MessageTypes",(function(){return x})),r.d(t,"Env",(function(){return y})),r.d(t,"ErrorCode",(function(){return k}));var n=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),i=r(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return(l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function b(e){var t="function"==typeof Map?new Map:void 0;return(b=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}var d=function(e){function t(t){var r;return(r=e.call(this,t.statusText)||this).name="HTTPError",r.status=t.status,r.url=t.url,r}return a(t,e),t}(b(Error)),p=function(e){function t(){var t;return(t=e.call(this,"Request timed out")||this).name="HTTPTimeout",t}return a(t,e),t}(b(Error)),f={attempts:2,codes:[408,413,429],methods:["GET"],delay:6},w=/https?:\/\//;function m(e){var t={};return e.forEach((function(e,r){t[r]=e})),t}function v(e,t){void 0===e&&(e={}),void 0===t&&(t={});for(var r=o({},e),n=0,i=Object.keys(t);n<i.length;n++){var a=i[n],s=t[a];r[a]="object"==typeof s?"headers"===a?v(m(new Headers(e[a])),m(new Headers(s))):s.pop&&e[a].pop?[].concat(e[a]||[],s):"object"!=typeof e[a]||e[a].pop?s:v(e[a],s):s}return r}var h,y,g,x,k,O=["method","baseURL","json","retry","timeout","hooks"];function _(e,t){void 0===t&&(t={});var r=t.method,n=void 0===r?"GET":r,i=t.baseURL,a=t.json,s=t.retry,c=void 0===s?f:s,u=t.timeout,l=void 0===u?1e4:u,b=t.hooks,m=void 0===b?{}:b,v=o({method:n,headers:{}},function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(t,O)),h="undefined"!=typeof AbortController?new AbortController:null;h&&(v.signal=h.signal),a&&(v.headers=o({"Content-Type":"application/json"},v.headers),v.body=JSON.stringify(a));var y=void 0!==i?function(e,t){var r=t.baseURL;if(w.test(e)||!r)return e;var n=(r.match(w)||[""])[0];return n+((r.replace(n,"")+"/").replace(/\/\//,"/")+e).replace(/\/\//,"/")}(e,{baseURL:i}):e,g=new Request(y,v);m.before&&[].concat(m.before).forEach((function(e){return e(g,t)}));var x=function(){return l?function(e,t,r){void 0===t&&(t=1e4);try{return Promise.resolve(new Promise((function(n,i){var o=setTimeout((function(){r&&r.abort(),i(new p)}),t);e.then(n).catch(i).then((function(){return clearTimeout(o)}))})))}catch(e){return Promise.reject(e)}}(fetch(g),l,h):fetch(g)},k=!1===c?x():function e(t,r,n){try{return Promise.resolve(t()).then((function(i){var a,s=i.status,c=i.headers.get("Retry-After"),u=o({},f,n),l=u.attempts,b=u.codes,d=u.methods,w=u.delay,m=b.indexOf(s)>-1||s>=500&&s<600,v=d.indexOf(r)>-1,h=function(){if(m&&v)return 0===l||i instanceof p?(a=1,i):Promise.resolve(new Promise((function(e){setTimeout(e,c?1e3*parseInt(c,10):w)}))).then((function(){return a=1,e(t,r,{attempts:l-1,codes:b,methods:d,delay:w*w})}))}();return h&&h.then?h.then((function(e){return a?e:i})):a?h:i}))}catch(e){return Promise.reject(e)}}(x,n,c),_={flush:function(){try{return Promise.resolve(k).then((function(e){return{url:y,status:e.status,response:e}}))}catch(e){return Promise.reject(e)}}};return["json","text","formData","arrayBuffer","blob"].forEach((function(e){_[e]=function(){try{var r,n,i,a,s=function(){var e={url:y,status:c,data:a,error:i,response:r};return m.after&&[].concat(m.after).forEach((function(r){return r(o({},e),t)})),e},c=500,u=function(t,o){try{var s=Promise.resolve(k).then((function(t){function o(){r.ok?a=n:i=n||new d(r)}c=(r=t).status||500;var s=function(){if(204!==c)return Promise.resolve(r[e]()).then((function(e){n=e}))}();return s&&s.then?s.then(o):o()}))}catch(t){return o(t)}return s&&s.then?s.then(void 0,o):s}(0,(function(e){i=e||"You tried to make fetch happen, but it didn't."}));return Promise.resolve(u&&u.then?u.then(s):s())}catch(e){return Promise.reject(e)}}})),_}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.Production="production",e.Sandbox="sandbox"}(y||(y={})),function(e){e.Production="https://js.truework.com/frames/credentials/v1/index.html",e.Sandbox="https://js.truework.com/frames/credentials/v1/index.html"}(g||(g={})),function(e){e.Bootstrap="bootstrap",e.Open="open",e.Close="close",e.Success="success",e.Error="error"}(x||(x={})),function(e){e[e.Critical=0]="Critical",e[e.Error=1]="Error"}(k||(k={}));var S,E=(j(h={},y.Production,g.Production),j(h,y.Sandbox,g.Sandbox),h);!function(e){e.TrueworkJSEvents="truework_js_events_fe"}(S||(S={}));var P,T=r(1),C=r.n(T);function R(e,t,r){var n;null===(n=e.contentWindow)||void 0===n||n.postMessage(r,t)}function N(){var e,t,r,n,i=new C.a(navigator.userAgent).getResult(),o=i.os,a=i.browser,s=o.name||"";return{browser:a.name||"",device:function(e){return"".concat(e.name," - ").concat(e.version)}(o),os:s,screen_size:(e=window.screen,t=e.width,r=e.height,"".concat(t,"x").concat(r)),viewport_size:(n=window.visualViewport)?"".concat(n.width,"x").concat(n.height):""}}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D,M,B=(z(P={},y.Production,"https://app.truework.com"),z(P,y.Sandbox,"https://app.truework-sandbox.com"),P);function U(e){var t=e.publishableKey,r=e.sessionToken,n=e.env,i=void 0===n?y.Production:n,o=e.version,a=e.instanceId,s=function(e){return void 0===e&&(e={}),function(t,r){return void 0===r&&(r={}),_(t,v(e,r))}}({baseURL:B[i],timeout:1e4,hooks:{before:function(e){e.headers.set("Content-Type","application/json"),e.headers.set("Accept","application/json"),e.headers.set("Authorization","Token ".concat(r)),e.headers.set("X-TW-Version",o)}}}),c={connect_session_token:r,truework_js_event_version:"1.0",truework_js_version:o,instance_id:a,publishable_key:t,event_source:D.INTERNAL_WIDGET,browser_info:N()};return{sendNativeEvent:function(e){return s("/api/connect/monitoring/",{method:"POST",json:q(q({},c),e)}).json()},getFeatureFlags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.values(S);return s("/api/trueflag/experiments/",{method:"POST",json:{flags:e}}).json()}}}function F(){var e,t=(e={},{clear:function(){e={}},emit:function(t,r){e[t]&&e[t].forEach((function(e){return e(r)})),e["*"]&&e["*"].forEach((function(e){return e(r)}))},on:function(t,r){return e[t]=e[t]?e[t].concat(r):[r],function(){e[t].splice(e[t].indexOf(r),1)}}});return{emitOpen:function(){t.emit(M.Open)},emitClose:function(){t.emit(M.Close)},emitSuccess:function(){t.emit(M.Success)},emitError:function(e){t.emit(M.Error,e)},onOpen:function(e){return t.on(M.Open,e)},onClose:function(e){return t.on(M.Close,e)},onSuccess:function(e){return t.on(M.Success,e)},onError:function(e){return t.on(M.Error,e)}}}function I(e){var t=e.src,r=document.createElement("iframe");return r.src=t,r.setAttribute("sandbox","allow-scripts allow-forms allow-same-origin allow-popups"),r.style.position="fixed",r.style.top="0",r.style.bottom="0",r.style.left="0",r.style.right="0",r.style.zIndex="999999999",r.style.border="0",r.style.padding="0",r.style.margin="0",r.width="100%",r.height="100%",r}function L(e){return new Promise((function(t,r){e.onload=t,e.onerror=r,document.body.appendChild(e)}))}function G(e){document.body.removeChild(e)}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function H(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){if(t&&("object"===V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){var t="function"==typeof Map?new Map:void 0;return(J=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $(e,arguments,ee(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Q(n,e)})(e)}function $(e,t,r){return($=Y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Q(i,r.prototype),i}).apply(null,arguments)}function Y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.INTERNAL_WIDGET="internal-widget"}(D||(D={})),function(e){e.Open="open",e.Close="close",e.Success="success",e.Error="error"}(M||(M={}));var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(s,e);var t,r,n,i,o,a=(t=s,r=Y(),function(){var e,n=ee(t);if(r){var i=ee(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return X(this,e)});function s(){return K(this,s),a.apply(this,arguments)}return n=s,i&&Z(n.prototype,i),o&&Z(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n}(J(Error)),re="@truework/credentials@0.9.0@",ne=0;function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.publishableKey,r=e.sessionToken,o=e.env;if(!t)throw new te("".concat(i.name," — missing publishableKey"));if(!r)throw new te("".concat(i.name," — missing sessionToken"));if(o||(o=y.Production),!Object.values(y).includes(o))throw new te("".concat(i.name," — invalid environment ").concat(o));var a=E[o],s=I({src:a}),c=F(),u=n(),l=U({publishableKey:t,sessionToken:r,env:o,version:re,instanceId:u}),b=!1;ne+=1,H(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.getFeatureFlags();case 2:t=e.sent,(r=t.data)&&(b="enabled"===r.experiment_results[S.TrueworkJSEvents]);case 5:case"end":return e.stop()}}),e)})))();var d=function e(t){var r=t.data;switch(r.type){case x.Open:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-booted"}),c.emitOpen();break;case x.Close:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"user-exited"}),c.emitClose(),G(s),ne-=1,window.removeEventListener("message",e);break;case x.Success:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-success"}),c.emitSuccess();break;case x.Error:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-error",partner_event:r}),c.emitError(r)}};return c.onError((function(e){e.code===k.Critical&&(G(s),ne-=1,window.removeEventListener("message",d))})),window.addEventListener("message",d),{open:function(){return H(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,L(s);case 3:R(s,a,{type:x.Bootstrap,publishableKey:t,sessionToken:r,env:o,packageVersion:re,bundleVersion:null===(n=window)||void 0===n||null===(i=n.Truework)||void 0===i?void 0:i.version,invocationCount:ne,instanceId:u}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),c.emitError({code:k.Critical});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))()},close:function(){R(s,a,{type:x.Close})},onOpen:function(e){return c.onOpen(e)},onClose:function(e){return c.onClose(e)},onSuccess:function(e){return c.onSuccess(e)},onError:function(e){return c.onError(e)}}}}])); | ||
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e){e.exports=JSON.parse('{"name":"@truework/credentials","version":"0.10.0","description":"The embeddable Truework Credentials experience.","author":"truework-team","main":"build/index.js","types":"build/src/index.d.ts","scripts":{"build":"webpack --mode production && pnpm typegen","watch":"webpack -w --mode development","typegen":"pnpm exec tsc --emitDeclarationOnly","typecheck":"pnpm exec tsc --noEmit","test":"TJS_FRAME_ORIGIN=http://localhost:4002 tap --ts --no-check-coverage --test-regex .*test\\\\.tsx?"},"devDependencies":{"@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","@babel/preset-typescript":"^7.15.0","@tsconfig/create-react-app":"^1.0.2","@types/jsdom":"^16.2.13","@types/node":"^17.0.31","@types/proxyquire":"^1.3.28","@types/tap":"^15.0.5","@types/ua-parser-js":"^0.7.36","babel-loader":"^8.2.2","core-js":"^3.21.1","jsdom":"^17.0.0","proxyquire":"^2.1.3","regenerator-runtime":"^0.13.9","tap":"^15.0.9","ts-node":"^10.2.1","typescript":"^4.3.5","webpack":"^4.46.0","webpack-cli":"^4.8.0"},"dependencies":{"gretchen":"^1.5.0","ua-parser-js":"^1.0.32","unik-id":"^0.0.3"}}')},function(e,t,r){var n;!function(i,o){"use strict";var a="model",s="name",c="type",u="vendor",l="version",b="mobile",d="tablet",p="smarttv",f=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},w=function(e,t){return"string"==typeof e&&-1!==m(t).indexOf(m(e))},m=function(e){return e.toLowerCase()},v=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),void 0===t?e:e.substring(0,350)},h=function(e,t){for(var r,n,i,o,a,s,c=0;c<t.length&&!a;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!a;)if(a=u[r++].exec(e))for(i=0;i<l.length;i++)s=a[++n],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;c+=2}},y=function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(w(t[r][n],e))return"?"===r?void 0:r}else if(w(t[r],e))return"?"===r?void 0:r;return e},g={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},x={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",m]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",m]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,"Samsung"],[c,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,"Samsung"],[c,b]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[u,"Apple"],[c,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,"OPPO"],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,"Motorola"],[c,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,b]],[/(pixel c)\b/i],[a,[u,"Google"],[c,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[c,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,b]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,b]],[/(nexus 9)/i],[a,[u,"HTC"],[c,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,d]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,b]],[/(u304aa)/i],[a,[u,"AT&T"],[c,b]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,b]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,d]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,d]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,d]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,d]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,d]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,b]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,b]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,d]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,d]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,b]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,d]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,d]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,d]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,d]],[/(sprint) (\w+)/i],[u,a,[c,b]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,"console"]],[/droid.+; (shield) bui/i],[a,[u,"Nvidia"],[c,"console"]],[/(playstation [345portablevi]+)/i],[a,[u,"Sony"],[c,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,"Microsoft"],[c,"console"]],[/smart-tv.+(samsung)/i],[u,[c,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[c,p]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,p]],[/(apple) ?tv/i],[u,[a,"Apple TV"],[c,p]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[c,p]],[/droid.+aft(\w)( bui|\))/i],[a,[u,"Amazon"],[c,p]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,"Sharp"],[c,p]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,"Sony"],[c,p]],[/(mitv-\w{5}) bui/i],[a,[u,"Xiaomi"],[c,p]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,v],[a,v],[c,p]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,p]],[/((pebble))app/i],[u,a,[c,"wearable"]],[/droid.+; (glass) \d/i],[a,[u,"Google"],[c,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,"Zebra"],[c,"wearable"]],[/(quest( 2)?)/i],[a,[u,"Facebook"],[c,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,b]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,y,g]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,y,g]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],l],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,l]]},k=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof k))return new k(e,t).getResult();var r=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(x,t):x;return this.getBrowser=function(){var e,t={};return t[s]=void 0,t[l]=void 0,h.call(t,r,n.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return h.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return h.call(e,r,n.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return h.call(e,r,n.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return h.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"==typeof e&&e.length>350?v(e,350):e,this},this.setUA(r),this};k.VERSION="1.0.32",k.BROWSER=f([s,l,"major"]),k.CPU=f(["architecture"]),k.DEVICE=f([a,u,c,"console",b,p,d,"wearable","embedded"]),k.ENGINE=k.OS=f([s,l]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=k),t.UAParser=k):r(2)?void 0===(n=function(){return k}.call(t,r,t,e))||(e.exports=n):void 0!==i&&(i.UAParser=k);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var _=new k;O.ua=_.getResult(),O.ua.get=function(){return _.getUA()},O.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var r in t)O.ua[r]=t[r]}}}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){"use strict";r.r(t),r.d(t,"version",(function(){return re})),r.d(t,"init",(function(){return ie})),r.d(t,"MessageTypes",(function(){return x})),r.d(t,"Env",(function(){return y})),r.d(t,"ErrorCode",(function(){return k}));var n=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),i=r(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return(l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function b(e){var t="function"==typeof Map?new Map:void 0;return(b=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}var d=function(e){function t(t){var r;return(r=e.call(this,t.statusText)||this).name="HTTPError",r.status=t.status,r.url=t.url,r}return a(t,e),t}(b(Error)),p=function(e){function t(){var t;return(t=e.call(this,"Request timed out")||this).name="HTTPTimeout",t}return a(t,e),t}(b(Error)),f={attempts:2,codes:[408,413,429],methods:["GET"],delay:6},w=/https?:\/\//;function m(e){var t={};return e.forEach((function(e,r){t[r]=e})),t}function v(e,t){void 0===e&&(e={}),void 0===t&&(t={});for(var r=o({},e),n=0,i=Object.keys(t);n<i.length;n++){var a=i[n],s=t[a];r[a]="object"==typeof s?"headers"===a?v(m(new Headers(e[a])),m(new Headers(s))):s.pop&&e[a].pop?[].concat(e[a]||[],s):"object"!=typeof e[a]||e[a].pop?s:v(e[a],s):s}return r}var h,y,g,x,k,O=["method","baseURL","json","retry","timeout","hooks"];function _(e,t){void 0===t&&(t={});var r=t.method,n=void 0===r?"GET":r,i=t.baseURL,a=t.json,s=t.retry,c=void 0===s?f:s,u=t.timeout,l=void 0===u?1e4:u,b=t.hooks,m=void 0===b?{}:b,v=o({method:n,headers:{}},function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(t,O)),h="undefined"!=typeof AbortController?new AbortController:null;h&&(v.signal=h.signal),a&&(v.headers=o({"Content-Type":"application/json"},v.headers),v.body=JSON.stringify(a));var y=void 0!==i?function(e,t){var r=t.baseURL;if(w.test(e)||!r)return e;var n=(r.match(w)||[""])[0];return n+((r.replace(n,"")+"/").replace(/\/\//,"/")+e).replace(/\/\//,"/")}(e,{baseURL:i}):e,g=new Request(y,v);m.before&&[].concat(m.before).forEach((function(e){return e(g,t)}));var x=function(){return l?function(e,t,r){void 0===t&&(t=1e4);try{return Promise.resolve(new Promise((function(n,i){var o=setTimeout((function(){r&&r.abort(),i(new p)}),t);e.then(n).catch(i).then((function(){return clearTimeout(o)}))})))}catch(e){return Promise.reject(e)}}(fetch(g),l,h):fetch(g)},k=!1===c?x():function e(t,r,n){try{return Promise.resolve(t()).then((function(i){var a,s=i.status,c=i.headers.get("Retry-After"),u=o({},f,n),l=u.attempts,b=u.codes,d=u.methods,w=u.delay,m=b.indexOf(s)>-1||s>=500&&s<600,v=d.indexOf(r)>-1,h=function(){if(m&&v)return 0===l||i instanceof p?(a=1,i):Promise.resolve(new Promise((function(e){setTimeout(e,c?1e3*parseInt(c,10):w)}))).then((function(){return a=1,e(t,r,{attempts:l-1,codes:b,methods:d,delay:w*w})}))}();return h&&h.then?h.then((function(e){return a?e:i})):a?h:i}))}catch(e){return Promise.reject(e)}}(x,n,c),_={flush:function(){try{return Promise.resolve(k).then((function(e){return{url:y,status:e.status,response:e}}))}catch(e){return Promise.reject(e)}}};return["json","text","formData","arrayBuffer","blob"].forEach((function(e){_[e]=function(){try{var r,n,i,a,s=function(){var e={url:y,status:c,data:a,error:i,response:r};return m.after&&[].concat(m.after).forEach((function(r){return r(o({},e),t)})),e},c=500,u=function(t,o){try{var s=Promise.resolve(k).then((function(t){function o(){r.ok?a=n:i=n||new d(r)}c=(r=t).status||500;var s=function(){if(204!==c)return Promise.resolve(r[e]()).then((function(e){n=e}))}();return s&&s.then?s.then(o):o()}))}catch(t){return o(t)}return s&&s.then?s.then(void 0,o):s}(0,(function(e){i=e||"You tried to make fetch happen, but it didn't."}));return Promise.resolve(u&&u.then?u.then(s):s())}catch(e){return Promise.reject(e)}}})),_}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.Production="production",e.Sandbox="sandbox"}(y||(y={})),function(e){e.Production="https://js.truework.com/frames/credentials/v1/index.html",e.Sandbox="https://js.truework.com/frames/credentials/v1/index.html"}(g||(g={})),function(e){e.Bootstrap="bootstrap",e.Open="open",e.Close="close",e.Success="success",e.Error="error"}(x||(x={})),function(e){e[e.Critical=0]="Critical",e[e.Error=1]="Error"}(k||(k={}));var S,E=(j(h={},y.Production,g.Production),j(h,y.Sandbox,g.Sandbox),h);!function(e){e.TrueworkJSEvents="truework_js_events_fe"}(S||(S={}));var P,T=r(1),C=r.n(T);function R(e,t,r){var n;null===(n=e.contentWindow)||void 0===n||n.postMessage(r,t)}function N(){var e,t,r,n,i=new C.a(navigator.userAgent).getResult(),o=i.os,a=i.browser,s=o.name||"";return{browser:a.name||"",device:function(e){return"".concat(e.name," - ").concat(e.version)}(o),os:s,screen_size:(e=window.screen,t=e.width,r=e.height,"".concat(t,"x").concat(r)),viewport_size:(n=window.visualViewport)?"".concat(n.width,"x").concat(n.height):""}}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D,M,B=(z(P={},y.Production,"https://app.truework.com"),z(P,y.Sandbox,"https://app.truework-sandbox.com"),P);function U(e){var t=e.publishableKey,r=e.sessionToken,n=e.env,i=void 0===n?y.Production:n,o=e.version,a=e.instanceId,s=function(e){return void 0===e&&(e={}),function(t,r){return void 0===r&&(r={}),_(t,v(e,r))}}({baseURL:B[i],timeout:1e4,hooks:{before:function(e){e.headers.set("Content-Type","application/json"),e.headers.set("Accept","application/json"),e.headers.set("Authorization","Token ".concat(r)),e.headers.set("X-TW-Version",o)}}}),c={connect_session_token:r,truework_js_event_version:"1.0",truework_js_version:o,instance_id:a,publishable_key:t,event_source:D.INTERNAL_WIDGET,browser_info:N()};return{sendNativeEvent:function(e){return s("/api/connect/monitoring/",{method:"POST",json:q(q({},c),e)}).json()},getFeatureFlags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.values(S);return s("/api/trueflag/experiments/",{method:"POST",json:{flags:e}}).json()}}}function F(){var e,t=(e={},{clear:function(){e={}},emit:function(t,r){e[t]&&e[t].forEach((function(e){return e(r)})),e["*"]&&e["*"].forEach((function(e){return e(r)}))},on:function(t,r){return e[t]=e[t]?e[t].concat(r):[r],function(){e[t].splice(e[t].indexOf(r),1)}}});return{emitOpen:function(){t.emit(M.Open)},emitClose:function(){t.emit(M.Close)},emitSuccess:function(){t.emit(M.Success)},emitError:function(e){t.emit(M.Error,e)},onOpen:function(e){return t.on(M.Open,e)},onClose:function(e){return t.on(M.Close,e)},onSuccess:function(e){return t.on(M.Success,e)},onError:function(e){return t.on(M.Error,e)}}}function I(e){var t=e.src,r=document.createElement("iframe");return r.src=t,r.setAttribute("sandbox","allow-scripts allow-forms allow-same-origin allow-popups"),r.style.position="fixed",r.style.top="0",r.style.bottom="0",r.style.left="0",r.style.right="0",r.style.zIndex="999999999",r.style.border="0",r.style.padding="0",r.style.margin="0",r.width="100%",r.height="100%",r}function L(e){return new Promise((function(t,r){e.onload=t,e.onerror=r,document.body.appendChild(e)}))}function G(e){document.body.removeChild(e)}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function H(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){if(t&&("object"===V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){var t="function"==typeof Map?new Map:void 0;return(J=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $(e,arguments,ee(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Q(n,e)})(e)}function $(e,t,r){return($=Y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Q(i,r.prototype),i}).apply(null,arguments)}function Y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.INTERNAL_WIDGET="internal-widget"}(D||(D={})),function(e){e.Open="open",e.Close="close",e.Success="success",e.Error="error"}(M||(M={}));var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(s,e);var t,r,n,i,o,a=(t=s,r=Y(),function(){var e,n=ee(t);if(r){var i=ee(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return X(this,e)});function s(){return K(this,s),a.apply(this,arguments)}return n=s,i&&Z(n.prototype,i),o&&Z(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n}(J(Error)),re="@truework/credentials@0.10.0@",ne=0;function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.publishableKey,r=e.sessionToken,o=e.env;if(!t)throw new te("".concat(i.name," — missing publishableKey"));if(!r)throw new te("".concat(i.name," — missing sessionToken"));if(o||(o=y.Production),!Object.values(y).includes(o))throw new te("".concat(i.name," — invalid environment ").concat(o));var a=E[o],s=I({src:a}),c=F(),u=n(),l=U({publishableKey:t,sessionToken:r,env:o,version:re,instanceId:u}),b=!1;ne+=1,H(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.getFeatureFlags();case 2:t=e.sent,(r=t.data)&&(b="enabled"===r.experiment_results[S.TrueworkJSEvents]);case 5:case"end":return e.stop()}}),e)})))();var d=function e(t){var r=t.data;switch(r.type){case x.Open:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-booted"}),c.emitOpen();break;case x.Close:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"user-exited"}),c.emitClose(),G(s),ne-=1,window.removeEventListener("message",e);break;case x.Success:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-success"}),c.emitSuccess();break;case x.Error:b&&o===y.Sandbox&&l.sendNativeEvent({created_at:new Date,sent_at:new Date,event_name:"widget-error",partner_event:r}),c.emitError(r)}};return c.onError((function(e){e.code===k.Critical&&(G(s),ne-=1,window.removeEventListener("message",d))})),window.addEventListener("message",d),{open:function(){return H(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,L(s);case 3:R(s,a,{type:x.Bootstrap,publishableKey:t,sessionToken:r,env:o,packageVersion:re,bundleVersion:null===(n=window)||void 0===n||null===(i=n.Truework)||void 0===i?void 0:i.version,invocationCount:ne,instanceId:u}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),c.emitError({code:k.Critical});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))()},close:function(){R(s,a,{type:x.Close})},onOpen:function(e){return c.onOpen(e)},onClose:function(e){return c.onClose(e)},onSuccess:function(e){return c.onSuccess(e)},onError:function(e){return c.onError(e)}}}}])); |
# @truework/credentials | ||
## 0.10.0 | ||
### Minor Changes | ||
- 7d7ee8d: Release changeset | ||
## 0.9.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@truework/credentials", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "The embeddable Truework Credentials experience.", | ||
@@ -5,0 +5,0 @@ "author": "truework-team", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173961