@tapni/auth 0.0.132 → 0.0.133
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/.vite/manifest.json +6 -6
- package/dist/{Account-DN_5QFOl.js → Account-AvDwGV77.js} +1 -1
- package/dist/{QR-KjkCkFzI.js → QR-7dG4PzRO.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +2 -2
- package/dist/{install-nGnT_BIc.js → install-GTp8Fldz.js} +5 -5
- package/package.json +2 -2
- package/src/App.vue +3 -3
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_install-
|
|
3
|
-
"file": "install-
|
|
2
|
+
"_install-GTp8Fldz.js": {
|
|
3
|
+
"file": "install-GTp8Fldz.js",
|
|
4
4
|
"dynamicImports": [
|
|
5
5
|
"src/views/Account.vue",
|
|
6
6
|
"src/views/QR.vue",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"isEntry": true
|
|
31
31
|
},
|
|
32
32
|
"src/views/Account.vue": {
|
|
33
|
-
"file": "Account-
|
|
33
|
+
"file": "Account-AvDwGV77.js",
|
|
34
34
|
"src": "src/views/Account.vue",
|
|
35
35
|
"isDynamicEntry": true,
|
|
36
36
|
"imports": [
|
|
37
|
-
"_install-
|
|
37
|
+
"_install-GTp8Fldz.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"src/views/QR.vue": {
|
|
41
|
-
"file": "QR-
|
|
41
|
+
"file": "QR-7dG4PzRO.js",
|
|
42
42
|
"src": "src/views/QR.vue",
|
|
43
43
|
"isDynamicEntry": true,
|
|
44
44
|
"imports": [
|
|
45
|
-
"_install-
|
|
45
|
+
"_install-GTp8Fldz.js"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"style.css": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as l, A as d, E as g } from "./install-
|
|
1
|
+
import { _ as l, A as d, E as g } from "./install-GTp8Fldz.js";
|
|
2
2
|
import { openBlock as r, createElementBlock as p, createElementVNode as t, toDisplayString as i, createCommentVNode as c, pushScopeId as _, popScopeId as u } from "vue";
|
|
3
3
|
var h = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
4
4
|
const m = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, A as a, Q as i } from "./install-
|
|
1
|
+
import { _ as s, A as a, Q as i } from "./install-GTp8Fldz.js";
|
|
2
2
|
import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
|
|
3
3
|
const g = {
|
|
4
4
|
name: "AuthQR",
|
package/dist/TapniAuth.es.js
CHANGED
package/dist/TapniAuth.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(c,on){typeof exports=="object"&&typeof module<"u"?module.exports=on(require("vue"),require("vue-router"),require("buffer"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@capacitor/device"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","buffer","await-to-js","@capacitor/core","jwt-decode","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@capacitor/device","@tapni/capacitor-reactive-localstorage-vue3"],on):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=on(c.Vue,c.vueRouter,c.buffer$2,c.to,c.core,c.jwtDecode,c.axios,c.browser$1,c.QRCodeStyling,c.sanitizeUrl,c.device,c.ReactiveStorage))})(this,function(c,on,Wi,ue,nt,Eo,Mr,Xn,Co,Ji,Zn,Xi){"use strict";function Zi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var To={exports:{}},Ce=To.exports={},Ct,Tt;function Or(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ct=setTimeout:Ct=Or}catch{Ct=Or}try{typeof clearTimeout=="function"?Tt=clearTimeout:Tt=Lr}catch{Tt=Lr}})();function So(n){if(Ct===setTimeout)return setTimeout(n,0);if((Ct===Or||!Ct)&&setTimeout)return Ct=setTimeout,setTimeout(n,0);try{return Ct(n,0)}catch{try{return Ct.call(null,n,0)}catch{return Ct.call(this,n,0)}}}function ea(n){if(Tt===clearTimeout)return clearTimeout(n);if((Tt===Lr||!Tt)&&clearTimeout)return Tt=clearTimeout,clearTimeout(n);try{return Tt(n)}catch{try{return Tt.call(null,n)}catch{return Tt.call(this,n)}}}var jt=[],wn=!1,an,er=-1;function ta(){!wn||!an||(wn=!1,an.length?jt=an.concat(jt):er=-1,jt.length&&Io())}function Io(){if(!wn){var n=So(ta);wn=!0;for(var e=jt.length;e;){for(an=jt,jt=[];++er<e;)an&&an[er].run();er=-1,e=jt.length}an=null,wn=!1,ea(n)}}Ce.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];jt.push(new Ao(n,e)),jt.length===1&&!wn&&So(Io)};function Ao(n,e){this.fun=n,this.array=e}Ao.prototype.run=function(){this.fun.apply(null,this.array)},Ce.title="browser",Ce.browser=!0,Ce.env={},Ce.argv=[],Ce.version="",Ce.versions={};function Ht(){}Ce.on=Ht,Ce.addListener=Ht,Ce.once=Ht,Ce.off=Ht,Ce.removeListener=Ht,Ce.removeAllListeners=Ht,Ce.emit=Ht,Ce.prependListener=Ht,Ce.prependOnceListener=Ht,Ce.listeners=function(n){return[]},Ce.binding=function(n){throw new Error("process.binding is not supported")},Ce.cwd=function(){return"/"},Ce.chdir=function(n){throw new Error("process.chdir is not supported")},Ce.umask=function(){return 0};var na=To.exports;const pe=Zi(na),zn=globalThis||void 0||self;function ra(){return Ro().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ro(){return typeof navigator<"u"&&typeof window<"u"?window:typeof zn<"u"?zn:{}}const oa=typeof Proxy=="function",ia="devtools-plugin:setup",aa="plugin:settings:set";let kn,xr;function sa(){var n;return kn!==void 0||(typeof window<"u"&&window.performance?(kn=!0,xr=window.performance):typeof zn<"u"&&(!((n=zn.perf_hooks)===null||n===void 0)&&n.performance)?(kn=!0,xr=zn.perf_hooks.performance):kn=!1),kn}function ca(){return sa()?xr.now():Date.now()}class la{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const a in e.settings){const s=e.settings[a];r[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(i,s)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return ca()}},t&&t.on(aa,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(h=>{this.targetQueue.push({method:s,args:l,resolve:h})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function da(n,e){const t=n,r=Ro(),o=ra(),i=oa&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(ia,n,e);else{const a=i?new la(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}var ua="store";function sn(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function No(n){return n!==null&&typeof n=="object"}function pa(n){return n&&typeof n.then=="function"}function gt(n,e){if(!n)throw new Error("[vuex] "+e)}function ha(n,e){return function(){return n(e)}}function Po(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var r=e.indexOf(n);r>-1&&e.splice(r,1)}}function Mo(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;tr(n,t,[],n._modules.root,!0),zr(n,t,e)}function zr(n,e,t){var r=n._state;n.getters={},n._makeLocalGettersCache=Object.create(null);var o=n._wrappedGetters,i={};sn(o,function(a,s){i[s]=ha(a,n),Object.defineProperty(n.getters,s,{get:function(){return i[s]()},enumerable:!0})}),n._state=c.reactive({data:e}),n.strict&&ya(n),r&&t&&n._withCommit(function(){r.data=null})}function tr(n,e,t,r,o){var i=!t.length,a=n._modules.getNamespace(t);if(r.namespaced&&(n._modulesNamespaceMap[a]&&pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+t.join("/")),n._modulesNamespaceMap[a]=r),!i&&!o){var s=Br(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){pe.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+t.join(".")+'"'),s[l]=r.state})}var h=r.context=fa(n,a,t);r.forEachMutation(function(d,g){var m=a+g;ma(n,m,d,h)}),r.forEachAction(function(d,g){var m=d.root?g:a+g,y=d.handler||d;ga(n,m,y,h)}),r.forEachGetter(function(d,g){var m=a+g;_a(n,m,d,h)}),r.forEachChild(function(d,g){tr(n,e,t.concat(g),d,o)})}function fa(n,e,t){var r=e==="",o={dispatch:r?n.dispatch:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._actions[g])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+g);return}return n.dispatch(g,h)},commit:r?n.commit:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._mutations[g])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+g);return}n.commit(g,h,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return n.getters}:function(){return Oo(n,e)}},state:{get:function(){return Br(n.state,t)}}}),o}function Oo(n,e){if(!n._makeLocalGettersCache[e]){var t={},r=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(t,i,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ma(n,e,t,r){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(a){t.call(n,r.state,a)})}function ga(n,e,t,r){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(a){var s=t.call(n,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:n.getters,rootState:n.state},a);return pa(s)||(s=Promise.resolve(s)),n._devtoolHook?s.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):s})}function _a(n,e,t,r){if(n._wrappedGetters[e]){pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}n._wrappedGetters[e]=function(i){return t(r.state,r.getters,i.state,i.getters)}}function ya(n){c.watch(function(){return n._state.data},function(){pe.env.NODE_ENV!=="production"&>(n._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Br(n,e){return e.reduce(function(t,r){return t[r]},n)}function nr(n,e,t){return No(n)&&n.type&&(t=e,e=n,n=n.type),pe.env.NODE_ENV!=="production"&>(typeof n=="string","expects string as the type, but found "+typeof n+"."),{type:n,payload:e,options:t}}var va="vuex bindings",Lo="vuex:mutations",Ur="vuex:actions",bn="vuex",wa=0;function ka(n,e){da({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[va]},function(t){t.addTimelineLayer({id:Lo,label:"Vuex Mutations",color:xo}),t.addTimelineLayer({id:Ur,label:"Vuex Actions",color:xo}),t.addInspector({id:bn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(r){if(r.app===n&&r.inspectorId===bn)if(r.filter){var o=[];Do(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uo(e._modules.root,"")]}),t.on.getInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId;Oo(e,o),r.state=Ca(Sa(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(bn),t.sendInspectorState(bn),t.addTimelineEvent({layerId:Lo,event:{time:Date.now(),title:r.type,data:i}})}),e.subscribeAction({before:function(r,o){var i={};r.payload&&(i.payload=r.payload),r._id=wa++,r._time=Date.now(),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,o){var i={},a=Date.now()-r._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},r.payload&&(i.payload=r.payload),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var xo=8702998,ba=6710886,Ea=16777215,zo={label:"namespaced",textColor:Ea,backgroundColor:ba};function Bo(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function Uo(n,e){return{id:e||"root",label:Bo(e),tags:n.namespaced?[zo]:[],children:Object.keys(n._children).map(function(t){return Uo(n._children[t],e+t+"/")})}}function Do(n,e,t,r){r.includes(t)&&n.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[zo]:[]}),Object.keys(e._children).forEach(function(o){Do(n,e._children[o],t,r+o+"/")})}function Ca(n,e,t){e=t==="root"?e:e[t];var r=Object.keys(e),o={state:Object.keys(n.state).map(function(a){return{key:a,editable:!0,value:n.state[a]}})};if(r.length){var i=Ta(e);o.getters=Object.keys(i).map(function(a){return{key:a.endsWith("/")?Bo(a):a,editable:!1,value:Dr(function(){return i[a]})}})}return o}function Ta(n){var e={};return Object.keys(n).forEach(function(t){var r=t.split("/");if(r.length>1){var o=e,i=r.pop();r.forEach(function(a){o[a]||(o[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),o=o[a]._custom.value}),o[i]=Dr(function(){return n[t]})}else e[t]=Dr(function(){return n[t]})}),e}function Sa(n,e){var t=e.split("/").filter(function(r){return r});return t.reduce(function(r,o,i){var a=r[o];if(!a)throw new Error('Missing module "'+o+'" for path "'+e+'".');return i===t.length-1?a:a._children},e==="root"?n:n.root._children)}function Dr(n){try{return n()}catch(e){return e}}var _t=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},jo={namespaced:{configurable:!0}};jo.namespaced.get=function(){return!!this._rawModule.namespaced},_t.prototype.addChild=function(e,t){this._children[e]=t},_t.prototype.removeChild=function(e){delete this._children[e]},_t.prototype.getChild=function(e){return this._children[e]},_t.prototype.hasChild=function(e){return e in this._children},_t.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},_t.prototype.forEachChild=function(e){sn(this._children,e)},_t.prototype.forEachGetter=function(e){this._rawModule.getters&&sn(this._rawModule.getters,e)},_t.prototype.forEachAction=function(e){this._rawModule.actions&&sn(this._rawModule.actions,e)},_t.prototype.forEachMutation=function(e){this._rawModule.mutations&&sn(this._rawModule.mutations,e)},Object.defineProperties(_t.prototype,jo);var cn=function(e){this.register([],e,!1)};cn.prototype.get=function(e){return e.reduce(function(t,r){return t.getChild(r)},this.root)},cn.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(r,o){return t=t.getChild(o),r+(t.namespaced?o+"/":"")},"")},cn.prototype.update=function(e){Ho([],this.root,e)},cn.prototype.register=function(e,t,r){var o=this;r===void 0&&(r=!0),pe.env.NODE_ENV!=="production"&&Vo(e,t);var i=new _t(t,r);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&sn(t.modules,function(s,l){o.register(e.concat(l),s,r)})},cn.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],o=t.getChild(r);if(!o){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&t.removeChild(r)},cn.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t?t.hasChild(r):!1};function Ho(n,e,t){if(pe.env.NODE_ENV!=="production"&&Vo(n,t),e.update(t),t.modules)for(var r in t.modules){if(!e.getChild(r)){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}Ho(n.concat(r),e.getChild(r),t.modules[r])}}var Fo={assert:function(n){return typeof n=="function"},expected:"function"},Ia={assert:function(n){return typeof n=="function"||typeof n=="object"&&typeof n.handler=="function"},expected:'function or object with "handler" function'},qo={getters:Fo,mutations:Fo,actions:Ia};function Vo(n,e){Object.keys(qo).forEach(function(t){if(e[t]){var r=qo[t];sn(e[t],function(o,i){gt(r.assert(o),Aa(n,t,i,o,r.expected))})}})}function Aa(n,e,t,r,o){var i=e+" should be "+o+' but "'+e+"."+t+'"';return n.length>0&&(i+=' in module "'+n.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}function Ra(n){return new We(n)}var We=function n(e){var t=this;e===void 0&&(e={}),pe.env.NODE_ENV!=="production"&&(gt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gt(this instanceof n,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var o=e.strict;o===void 0&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new cn(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var a=this,s=this,l=s.dispatch,h=s.commit;this.dispatch=function(m,y){return l.call(a,m,y)},this.commit=function(m,y,E){return h.call(a,m,y,E)},this.strict=o;var d=this._modules.root.state;tr(this,d,[],this._modules.root),zr(this,d),r.forEach(function(g){return g(t)})},jr={state:{configurable:!0}};We.prototype.install=function(e,t){e.provide(t||ua,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:pe.env.NODE_ENV!=="production"||!1;r&&ka(e,this)},jr.state.get=function(){return this._state.data},jr.state.set=function(n){pe.env.NODE_ENV!=="production"&>(!1,"use store.replaceState() to explicit replace store state.")},We.prototype.commit=function(e,t,r){var o=this,i=nr(e,t,r),a=i.type,s=i.payload,l=i.options,h={type:a,payload:s},d=this._mutations[a];if(!d){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(m){m(s)})}),this._subscribers.slice().forEach(function(g){return g(h,o.state)}),pe.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")},We.prototype.dispatch=function(e,t){var r=this,o=nr(e,t),i=o.type,a=o.payload,s={type:i,payload:a},l=this._actions[i];if(!l){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,r.state)})}catch(d){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,g){h.then(function(m){try{r._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(s,r.state)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(m)},function(m){try{r._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(s,r.state,m)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}g(m)})})},We.prototype.subscribe=function(e,t){return Po(e,this._subscribers,t)},We.prototype.subscribeAction=function(e,t){var r=typeof e=="function"?{before:e}:e;return Po(r,this._actionSubscribers,t)},We.prototype.watch=function(e,t,r){var o=this;return pe.env.NODE_ENV!=="production"&>(typeof e=="function","store.watch only accepts a function."),c.watch(function(){return e(o.state,o.getters)},t,Object.assign({},r))},We.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},We.prototype.registerModule=function(e,t,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&(gt(Array.isArray(e),"module path must be a string or an Array."),gt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,t),tr(this,this.state,e,this._modules.get(e),r.preserveState),zr(this,this.state)},We.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&>(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=Br(t.state,e.slice(0,-1));delete r[e[e.length-1]]}),Mo(this)},We.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&>(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},We.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},We.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(We.prototype,jr);var Na=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){var s=this.$store.state,l=this.$store.getters;if(n){var h=ir(this.$store,"mapState",n);if(!h)return;s=h.context.state,l=h.context.getters}return typeof i=="function"?i.call(this,s,l):s[i]},t[o].vuex=!0}),t}),Pa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.commit;if(n){var d=ir(this.$store,"mapMutations",n);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),Ma=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;i=n+i,t[o]=function(){if(!(n&&!ir(this.$store,"mapGetters",n))){if(pe.env.NODE_ENV!=="production"&&!(i in this.$store.getters)){console.error("[vuex] unknown getter: "+i);return}return this.$store.getters[i]}},t[o].vuex=!0}),t}),Oa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.dispatch;if(n){var d=ir(this.$store,"mapActions",n);if(!d)return;h=d.context.dispatch}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),La=function(n){return{mapState:Na.bind(null,n),mapGetters:Ma.bind(null,n),mapMutations:Pa.bind(null,n),mapActions:Oa.bind(null,n)}};function rr(n){return Bn(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function Bn(n){return Array.isArray(n)||No(n)}function or(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function ir(n,e,t){var r=n._modulesNamespaceMap[t];return pe.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+t),r}const ar=c.reactive(new Map),q={$on(n,e){let t=ar.get(n);t||(t=new Set,ar.set(n,t)),t.add(e)},$emit(n,...e){const t=ar.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=ar.get(n);t&&t.delete(e)}};c.readonly(q);const xa={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||nt.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||nt.Capacitor.getPlatform()==="ios"},isNative(){return nt.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:za,mapActions:Ba,mapGetters:Ua}=La("auth"),je={mixins:[xa],computed:{...za(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...Ua(["isLoggedIn","renderView","appLanguage"])},methods:{...Ba(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Da={name:"AuthWelcome",mixins:[je],data(){return{loading:!0}},async mounted(){console.log("yoo");let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Ko=n=>(c.pushScopeId("data-v-3d89d57a"),n=n(),c.popScopeId(),n),ja={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ha=["autoplay"],Fa=[Ko(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],qa={class:"bold full-top no-bottom center-text"},Va={class:"full-bottom half-top center-text color-black font-16"},Ka={class:"page-login-links center-text"},Ga=Ko(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Qa={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},$a=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a>',3)];function Ya(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",ja,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Fa,8,Ha),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",Va,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",Ka,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ga]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",Qa,$a))])}const Hr=Qe(Da,[["render",Ya],["__scopeId","data-v-3d89d57a"]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Ja="0.0.132",sr={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},Go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Fr={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},Qo={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
|
|
1
|
+
(function(c,on){typeof exports=="object"&&typeof module<"u"?module.exports=on(require("vue"),require("vue-router"),require("buffer"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@capacitor/device"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","buffer","await-to-js","@capacitor/core","jwt-decode","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@capacitor/device","@tapni/capacitor-reactive-localstorage-vue3"],on):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=on(c.Vue,c.vueRouter,c.buffer$2,c.to,c.core,c.jwtDecode,c.axios,c.browser$1,c.QRCodeStyling,c.sanitizeUrl,c.device,c.ReactiveStorage))})(this,function(c,on,Wi,ue,nt,Eo,Mr,Xn,Co,Ji,Zn,Xi){"use strict";function Zi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var To={exports:{}},Ce=To.exports={},Ct,Tt;function Or(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ct=setTimeout:Ct=Or}catch{Ct=Or}try{typeof clearTimeout=="function"?Tt=clearTimeout:Tt=Lr}catch{Tt=Lr}})();function So(n){if(Ct===setTimeout)return setTimeout(n,0);if((Ct===Or||!Ct)&&setTimeout)return Ct=setTimeout,setTimeout(n,0);try{return Ct(n,0)}catch{try{return Ct.call(null,n,0)}catch{return Ct.call(this,n,0)}}}function ea(n){if(Tt===clearTimeout)return clearTimeout(n);if((Tt===Lr||!Tt)&&clearTimeout)return Tt=clearTimeout,clearTimeout(n);try{return Tt(n)}catch{try{return Tt.call(null,n)}catch{return Tt.call(this,n)}}}var jt=[],wn=!1,an,er=-1;function ta(){!wn||!an||(wn=!1,an.length?jt=an.concat(jt):er=-1,jt.length&&Io())}function Io(){if(!wn){var n=So(ta);wn=!0;for(var e=jt.length;e;){for(an=jt,jt=[];++er<e;)an&&an[er].run();er=-1,e=jt.length}an=null,wn=!1,ea(n)}}Ce.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];jt.push(new Ao(n,e)),jt.length===1&&!wn&&So(Io)};function Ao(n,e){this.fun=n,this.array=e}Ao.prototype.run=function(){this.fun.apply(null,this.array)},Ce.title="browser",Ce.browser=!0,Ce.env={},Ce.argv=[],Ce.version="",Ce.versions={};function Ht(){}Ce.on=Ht,Ce.addListener=Ht,Ce.once=Ht,Ce.off=Ht,Ce.removeListener=Ht,Ce.removeAllListeners=Ht,Ce.emit=Ht,Ce.prependListener=Ht,Ce.prependOnceListener=Ht,Ce.listeners=function(n){return[]},Ce.binding=function(n){throw new Error("process.binding is not supported")},Ce.cwd=function(){return"/"},Ce.chdir=function(n){throw new Error("process.chdir is not supported")},Ce.umask=function(){return 0};var na=To.exports;const pe=Zi(na),zn=globalThis||void 0||self;function ra(){return Ro().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ro(){return typeof navigator<"u"&&typeof window<"u"?window:typeof zn<"u"?zn:{}}const oa=typeof Proxy=="function",ia="devtools-plugin:setup",aa="plugin:settings:set";let kn,xr;function sa(){var n;return kn!==void 0||(typeof window<"u"&&window.performance?(kn=!0,xr=window.performance):typeof zn<"u"&&(!((n=zn.perf_hooks)===null||n===void 0)&&n.performance)?(kn=!0,xr=zn.perf_hooks.performance):kn=!1),kn}function ca(){return sa()?xr.now():Date.now()}class la{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const a in e.settings){const s=e.settings[a];r[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(i,s)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return ca()}},t&&t.on(aa,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(h=>{this.targetQueue.push({method:s,args:l,resolve:h})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function da(n,e){const t=n,r=Ro(),o=ra(),i=oa&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(ia,n,e);else{const a=i?new la(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}var ua="store";function sn(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function No(n){return n!==null&&typeof n=="object"}function pa(n){return n&&typeof n.then=="function"}function gt(n,e){if(!n)throw new Error("[vuex] "+e)}function ha(n,e){return function(){return n(e)}}function Po(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var r=e.indexOf(n);r>-1&&e.splice(r,1)}}function Mo(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;tr(n,t,[],n._modules.root,!0),zr(n,t,e)}function zr(n,e,t){var r=n._state;n.getters={},n._makeLocalGettersCache=Object.create(null);var o=n._wrappedGetters,i={};sn(o,function(a,s){i[s]=ha(a,n),Object.defineProperty(n.getters,s,{get:function(){return i[s]()},enumerable:!0})}),n._state=c.reactive({data:e}),n.strict&&ya(n),r&&t&&n._withCommit(function(){r.data=null})}function tr(n,e,t,r,o){var i=!t.length,a=n._modules.getNamespace(t);if(r.namespaced&&(n._modulesNamespaceMap[a]&&pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+t.join("/")),n._modulesNamespaceMap[a]=r),!i&&!o){var s=Br(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){pe.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+t.join(".")+'"'),s[l]=r.state})}var h=r.context=fa(n,a,t);r.forEachMutation(function(d,g){var m=a+g;ma(n,m,d,h)}),r.forEachAction(function(d,g){var m=d.root?g:a+g,y=d.handler||d;ga(n,m,y,h)}),r.forEachGetter(function(d,g){var m=a+g;_a(n,m,d,h)}),r.forEachChild(function(d,g){tr(n,e,t.concat(g),d,o)})}function fa(n,e,t){var r=e==="",o={dispatch:r?n.dispatch:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._actions[g])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+g);return}return n.dispatch(g,h)},commit:r?n.commit:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._mutations[g])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+g);return}n.commit(g,h,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return n.getters}:function(){return Oo(n,e)}},state:{get:function(){return Br(n.state,t)}}}),o}function Oo(n,e){if(!n._makeLocalGettersCache[e]){var t={},r=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(t,i,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ma(n,e,t,r){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(a){t.call(n,r.state,a)})}function ga(n,e,t,r){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(a){var s=t.call(n,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:n.getters,rootState:n.state},a);return pa(s)||(s=Promise.resolve(s)),n._devtoolHook?s.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):s})}function _a(n,e,t,r){if(n._wrappedGetters[e]){pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}n._wrappedGetters[e]=function(i){return t(r.state,r.getters,i.state,i.getters)}}function ya(n){c.watch(function(){return n._state.data},function(){pe.env.NODE_ENV!=="production"&>(n._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Br(n,e){return e.reduce(function(t,r){return t[r]},n)}function nr(n,e,t){return No(n)&&n.type&&(t=e,e=n,n=n.type),pe.env.NODE_ENV!=="production"&>(typeof n=="string","expects string as the type, but found "+typeof n+"."),{type:n,payload:e,options:t}}var va="vuex bindings",Lo="vuex:mutations",Ur="vuex:actions",bn="vuex",wa=0;function ka(n,e){da({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[va]},function(t){t.addTimelineLayer({id:Lo,label:"Vuex Mutations",color:xo}),t.addTimelineLayer({id:Ur,label:"Vuex Actions",color:xo}),t.addInspector({id:bn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(r){if(r.app===n&&r.inspectorId===bn)if(r.filter){var o=[];Do(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uo(e._modules.root,"")]}),t.on.getInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId;Oo(e,o),r.state=Ca(Sa(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(bn),t.sendInspectorState(bn),t.addTimelineEvent({layerId:Lo,event:{time:Date.now(),title:r.type,data:i}})}),e.subscribeAction({before:function(r,o){var i={};r.payload&&(i.payload=r.payload),r._id=wa++,r._time=Date.now(),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,o){var i={},a=Date.now()-r._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},r.payload&&(i.payload=r.payload),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var xo=8702998,ba=6710886,Ea=16777215,zo={label:"namespaced",textColor:Ea,backgroundColor:ba};function Bo(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function Uo(n,e){return{id:e||"root",label:Bo(e),tags:n.namespaced?[zo]:[],children:Object.keys(n._children).map(function(t){return Uo(n._children[t],e+t+"/")})}}function Do(n,e,t,r){r.includes(t)&&n.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[zo]:[]}),Object.keys(e._children).forEach(function(o){Do(n,e._children[o],t,r+o+"/")})}function Ca(n,e,t){e=t==="root"?e:e[t];var r=Object.keys(e),o={state:Object.keys(n.state).map(function(a){return{key:a,editable:!0,value:n.state[a]}})};if(r.length){var i=Ta(e);o.getters=Object.keys(i).map(function(a){return{key:a.endsWith("/")?Bo(a):a,editable:!1,value:Dr(function(){return i[a]})}})}return o}function Ta(n){var e={};return Object.keys(n).forEach(function(t){var r=t.split("/");if(r.length>1){var o=e,i=r.pop();r.forEach(function(a){o[a]||(o[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),o=o[a]._custom.value}),o[i]=Dr(function(){return n[t]})}else e[t]=Dr(function(){return n[t]})}),e}function Sa(n,e){var t=e.split("/").filter(function(r){return r});return t.reduce(function(r,o,i){var a=r[o];if(!a)throw new Error('Missing module "'+o+'" for path "'+e+'".');return i===t.length-1?a:a._children},e==="root"?n:n.root._children)}function Dr(n){try{return n()}catch(e){return e}}var _t=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},jo={namespaced:{configurable:!0}};jo.namespaced.get=function(){return!!this._rawModule.namespaced},_t.prototype.addChild=function(e,t){this._children[e]=t},_t.prototype.removeChild=function(e){delete this._children[e]},_t.prototype.getChild=function(e){return this._children[e]},_t.prototype.hasChild=function(e){return e in this._children},_t.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},_t.prototype.forEachChild=function(e){sn(this._children,e)},_t.prototype.forEachGetter=function(e){this._rawModule.getters&&sn(this._rawModule.getters,e)},_t.prototype.forEachAction=function(e){this._rawModule.actions&&sn(this._rawModule.actions,e)},_t.prototype.forEachMutation=function(e){this._rawModule.mutations&&sn(this._rawModule.mutations,e)},Object.defineProperties(_t.prototype,jo);var cn=function(e){this.register([],e,!1)};cn.prototype.get=function(e){return e.reduce(function(t,r){return t.getChild(r)},this.root)},cn.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(r,o){return t=t.getChild(o),r+(t.namespaced?o+"/":"")},"")},cn.prototype.update=function(e){Ho([],this.root,e)},cn.prototype.register=function(e,t,r){var o=this;r===void 0&&(r=!0),pe.env.NODE_ENV!=="production"&&Vo(e,t);var i=new _t(t,r);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&sn(t.modules,function(s,l){o.register(e.concat(l),s,r)})},cn.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],o=t.getChild(r);if(!o){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&t.removeChild(r)},cn.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t?t.hasChild(r):!1};function Ho(n,e,t){if(pe.env.NODE_ENV!=="production"&&Vo(n,t),e.update(t),t.modules)for(var r in t.modules){if(!e.getChild(r)){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}Ho(n.concat(r),e.getChild(r),t.modules[r])}}var Fo={assert:function(n){return typeof n=="function"},expected:"function"},Ia={assert:function(n){return typeof n=="function"||typeof n=="object"&&typeof n.handler=="function"},expected:'function or object with "handler" function'},qo={getters:Fo,mutations:Fo,actions:Ia};function Vo(n,e){Object.keys(qo).forEach(function(t){if(e[t]){var r=qo[t];sn(e[t],function(o,i){gt(r.assert(o),Aa(n,t,i,o,r.expected))})}})}function Aa(n,e,t,r,o){var i=e+" should be "+o+' but "'+e+"."+t+'"';return n.length>0&&(i+=' in module "'+n.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}function Ra(n){return new We(n)}var We=function n(e){var t=this;e===void 0&&(e={}),pe.env.NODE_ENV!=="production"&&(gt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gt(this instanceof n,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var o=e.strict;o===void 0&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new cn(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var a=this,s=this,l=s.dispatch,h=s.commit;this.dispatch=function(m,y){return l.call(a,m,y)},this.commit=function(m,y,E){return h.call(a,m,y,E)},this.strict=o;var d=this._modules.root.state;tr(this,d,[],this._modules.root),zr(this,d),r.forEach(function(g){return g(t)})},jr={state:{configurable:!0}};We.prototype.install=function(e,t){e.provide(t||ua,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:pe.env.NODE_ENV!=="production"||!1;r&&ka(e,this)},jr.state.get=function(){return this._state.data},jr.state.set=function(n){pe.env.NODE_ENV!=="production"&>(!1,"use store.replaceState() to explicit replace store state.")},We.prototype.commit=function(e,t,r){var o=this,i=nr(e,t,r),a=i.type,s=i.payload,l=i.options,h={type:a,payload:s},d=this._mutations[a];if(!d){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(m){m(s)})}),this._subscribers.slice().forEach(function(g){return g(h,o.state)}),pe.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")},We.prototype.dispatch=function(e,t){var r=this,o=nr(e,t),i=o.type,a=o.payload,s={type:i,payload:a},l=this._actions[i];if(!l){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,r.state)})}catch(d){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,g){h.then(function(m){try{r._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(s,r.state)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(m)},function(m){try{r._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(s,r.state,m)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}g(m)})})},We.prototype.subscribe=function(e,t){return Po(e,this._subscribers,t)},We.prototype.subscribeAction=function(e,t){var r=typeof e=="function"?{before:e}:e;return Po(r,this._actionSubscribers,t)},We.prototype.watch=function(e,t,r){var o=this;return pe.env.NODE_ENV!=="production"&>(typeof e=="function","store.watch only accepts a function."),c.watch(function(){return e(o.state,o.getters)},t,Object.assign({},r))},We.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},We.prototype.registerModule=function(e,t,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&(gt(Array.isArray(e),"module path must be a string or an Array."),gt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,t),tr(this,this.state,e,this._modules.get(e),r.preserveState),zr(this,this.state)},We.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&>(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=Br(t.state,e.slice(0,-1));delete r[e[e.length-1]]}),Mo(this)},We.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&>(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},We.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},We.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(We.prototype,jr);var Na=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){var s=this.$store.state,l=this.$store.getters;if(n){var h=ir(this.$store,"mapState",n);if(!h)return;s=h.context.state,l=h.context.getters}return typeof i=="function"?i.call(this,s,l):s[i]},t[o].vuex=!0}),t}),Pa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.commit;if(n){var d=ir(this.$store,"mapMutations",n);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),Ma=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;i=n+i,t[o]=function(){if(!(n&&!ir(this.$store,"mapGetters",n))){if(pe.env.NODE_ENV!=="production"&&!(i in this.$store.getters)){console.error("[vuex] unknown getter: "+i);return}return this.$store.getters[i]}},t[o].vuex=!0}),t}),Oa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.dispatch;if(n){var d=ir(this.$store,"mapActions",n);if(!d)return;h=d.context.dispatch}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),La=function(n){return{mapState:Na.bind(null,n),mapGetters:Ma.bind(null,n),mapMutations:Pa.bind(null,n),mapActions:Oa.bind(null,n)}};function rr(n){return Bn(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function Bn(n){return Array.isArray(n)||No(n)}function or(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function ir(n,e,t){var r=n._modulesNamespaceMap[t];return pe.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+t),r}const ar=c.reactive(new Map),q={$on(n,e){let t=ar.get(n);t||(t=new Set,ar.set(n,t)),t.add(e)},$emit(n,...e){const t=ar.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=ar.get(n);t&&t.delete(e)}};c.readonly(q);const xa={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||nt.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||nt.Capacitor.getPlatform()==="ios"},isNative(){return nt.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:za,mapActions:Ba,mapGetters:Ua}=La("auth"),je={mixins:[xa],computed:{...za(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...Ua(["isLoggedIn","renderView","appLanguage"])},methods:{...Ba(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Da={name:"AuthWelcome",mixins:[je],data(){return{loading:!0}},async mounted(){console.log("yoo");let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Ko=n=>(c.pushScopeId("data-v-3d89d57a"),n=n(),c.popScopeId(),n),ja={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ha=["autoplay"],Fa=[Ko(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],qa={class:"bold full-top no-bottom center-text"},Va={class:"full-bottom half-top center-text color-black font-16"},Ka={class:"page-login-links center-text"},Ga=Ko(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Qa={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},$a=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a>',3)];function Ya(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",ja,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Fa,8,Ha),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",Va,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",Ka,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ga]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",Qa,$a))])}const Hr=Qe(Da,[["render",Ya],["__scopeId","data-v-3d89d57a"]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Ja="0.0.133",sr={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},Go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Fr={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},Qo={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
|
|
2
2
|
so that we can know who you are.
|
|
3
3
|
<br><br>Be exclusive.
|
|
4
4
|
<br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
|
|
@@ -134,7 +134,7 @@ Error Description: `+h.message)),[2,null];case 4:return o||(this.logger.warning(
|
|
|
134
134
|
*
|
|
135
135
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
136
136
|
* @license MIT
|
|
137
|
-
*/(function(n){const e=Sr,t=lo,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=d,n.SlowBuffer=F,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;d.TYPED_ARRAY_SUPPORT=l(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const f=new i(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,i.prototype),Object.setPrototypeOf(f,u),f.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function h(f){if(f>o)throw new RangeError('The value "'+f+'" is invalid for option "size"');const u=new i(f);return Object.setPrototypeOf(u,d.prototype),u}function d(f,u,p){if(typeof f=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(f)}return g(f,u,p)}d.poolSize=8192;function g(f,u,p){if(typeof f=="string")return N(f,u);if(a.isView(f))return D(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(Me(f,a)||f&&Me(f.buffer,a)||typeof s<"u"&&(Me(f,s)||f&&Me(f.buffer,s)))return R(f,u,p);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=f.valueOf&&f.valueOf();if(_!=null&&_!==f)return d.from(_,u,p);const b=T(f);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return d.from(f[Symbol.toPrimitive]("string"),u,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}d.from=function(f,u,p){return g(f,u,p)},Object.setPrototypeOf(d.prototype,i.prototype),Object.setPrototypeOf(d,i);function m(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function y(f,u,p){return m(f),f<=0?h(f):u!==void 0?typeof p=="string"?h(f).fill(u,p):h(f).fill(u):h(f)}d.alloc=function(f,u,p){return y(f,u,p)};function E(f){return m(f),h(f<0?0:z(f)|0)}d.allocUnsafe=function(f){return E(f)},d.allocUnsafeSlow=function(f){return E(f)};function N(f,u){if((typeof u!="string"||u==="")&&(u="utf8"),!d.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=Y(f,u)|0;let _=h(p);const b=_.write(f,u);return b!==p&&(_=_.slice(0,b)),_}function M(f){const u=f.length<0?0:z(f.length)|0,p=h(u);for(let _=0;_<u;_+=1)p[_]=f[_]&255;return p}function D(f){if(Me(f,i)){const u=new i(f);return R(u.buffer,u.byteOffset,u.byteLength)}return M(f)}function R(f,u,p){if(u<0||f.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<u+(p||0))throw new RangeError('"length" is outside of buffer bounds');let _;return u===void 0&&p===void 0?_=new i(f):p===void 0?_=new i(f,u):_=new i(f,u,p),Object.setPrototypeOf(_,d.prototype),_}function T(f){if(d.isBuffer(f)){const u=z(f.length)|0,p=h(u);return p.length===0||f.copy(p,0,0,u),p}if(f.length!==void 0)return typeof f.length!="number"||ct(f.length)?h(0):M(f);if(f.type==="Buffer"&&Array.isArray(f.data))return M(f.data)}function z(f){if(f>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return f|0}function F(f){return+f!=f&&(f=0),d.alloc(+f)}d.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==d.prototype},d.compare=function(u,p){if(Me(u,i)&&(u=d.from(u,u.offset,u.byteLength)),Me(p,i)&&(p=d.from(p,p.offset,p.byteLength)),!d.isBuffer(u)||!d.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let _=u.length,b=p.length;for(let S=0,P=Math.min(_,b);S<P;++S)if(u[S]!==p[S]){_=u[S],b=p[S];break}return _<b?-1:b<_?1:0},d.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return d.alloc(0);let _;if(p===void 0)for(p=0,_=0;_<u.length;++_)p+=u[_].length;const b=d.allocUnsafe(p);let S=0;for(_=0;_<u.length;++_){let P=u[_];if(Me(P,i))S+P.length>b.length?(d.isBuffer(P)||(P=d.from(P)),P.copy(b,S)):i.prototype.set.call(b,P,S);else if(d.isBuffer(P))P.copy(b,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=P.length}return b};function Y(f,u){if(d.isBuffer(f))return f.length;if(a.isView(f)||Me(f,a))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const p=f.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&p===0)return 0;let b=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ft(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Ue(f).length;default:if(b)return _?-1:ft(f).length;u=(""+u).toLowerCase(),b=!0}}d.byteLength=Y;function J(f,u,p){let _=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,u>>>=0,p<=u))return"";for(f||(f="utf8");;)switch(f){case"hex":return nn(this,u,p);case"utf8":case"utf-8":return Ot(this,u,p);case"ascii":return tn(this,u,p);case"latin1":case"binary":return _n(this,u,p);case"base64":return Mt(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xn(this,u,p);default:if(_)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),_=!0}}d.prototype._isBuffer=!0;function $(f,u,p){const _=f[u];f[u]=f[p],f[p]=_}d.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<u;p+=2)$(this,p,p+1);return this},d.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<u;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},d.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<u;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},d.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?Ot(this,0,u):J.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(u){if(!d.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:d.compare(this,u)===0},d.prototype.inspect=function(){let u="";const p=n.INSPECT_MAX_BYTES;return u=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(u+=" ... "),"<Buffer "+u+">"},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(u,p,_,b,S){if(Me(u,i)&&(u=d.from(u,u.offset,u.byteLength)),!d.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(p===void 0&&(p=0),_===void 0&&(_=u?u.length:0),b===void 0&&(b=0),S===void 0&&(S=this.length),p<0||_>u.length||b<0||S>this.length)throw new RangeError("out of range index");if(b>=S&&p>=_)return 0;if(b>=S)return-1;if(p>=_)return 1;if(p>>>=0,_>>>=0,b>>>=0,S>>>=0,this===u)return 0;let P=S-b,oe=_-p;const ye=Math.min(P,oe),_e=this.slice(b,S),ve=u.slice(p,_);for(let fe=0;fe<ye;++fe)if(_e[fe]!==ve[fe]){P=_e[fe],oe=ve[fe];break}return P<oe?-1:oe<P?1:0};function ie(f,u,p,_,b){if(f.length===0)return-1;if(typeof p=="string"?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,ct(p)&&(p=b?0:f.length-1),p<0&&(p=f.length+p),p>=f.length){if(b)return-1;p=f.length-1}else if(p<0)if(b)p=0;else return-1;if(typeof u=="string"&&(u=d.from(u,_)),d.isBuffer(u))return u.length===0?-1:ce(f,u,p,_,b);if(typeof u=="number")return u=u&255,typeof i.prototype.indexOf=="function"?b?i.prototype.indexOf.call(f,u,p):i.prototype.lastIndexOf.call(f,u,p):ce(f,[u],p,_,b);throw new TypeError("val must be string, number or Buffer")}function ce(f,u,p,_,b){let S=1,P=f.length,oe=u.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(f.length<2||u.length<2)return-1;S=2,P/=2,oe/=2,p/=2}function ye(ve,fe){return S===1?ve[fe]:ve.readUInt16BE(fe*S)}let _e;if(b){let ve=-1;for(_e=p;_e<P;_e++)if(ye(f,_e)===ye(u,ve===-1?0:_e-ve)){if(ve===-1&&(ve=_e),_e-ve+1===oe)return ve*S}else ve!==-1&&(_e-=_e-ve),ve=-1}else for(p+oe>P&&(p=P-oe),_e=p;_e>=0;_e--){let ve=!0;for(let fe=0;fe<oe;fe++)if(ye(f,_e+fe)!==ye(u,fe)){ve=!1;break}if(ve)return _e}return-1}d.prototype.includes=function(u,p,_){return this.indexOf(u,p,_)!==-1},d.prototype.indexOf=function(u,p,_){return ie(this,u,p,_,!0)},d.prototype.lastIndexOf=function(u,p,_){return ie(this,u,p,_,!1)};function ge(f,u,p,_){p=Number(p)||0;const b=f.length-p;_?(_=Number(_),_>b&&(_=b)):_=b;const S=u.length;_>S/2&&(_=S/2);let P;for(P=0;P<_;++P){const oe=parseInt(u.substr(P*2,2),16);if(ct(oe))return P;f[p+P]=oe}return P}function Ae(f,u,p,_){return mt(ft(u,f.length-p),f,p,_)}function $t(f,u,p,_){return mt(yn(u),f,p,_)}function Ke(f,u,p,_){return mt(Ue(u),f,p,_)}function en(f,u,p,_){return mt(bt(u,f.length-p),f,p,_)}d.prototype.write=function(u,p,_,b){if(p===void 0)b="utf8",_=this.length,p=0;else if(_===void 0&&typeof p=="string")b=p,_=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(_)?(_=_>>>0,b===void 0&&(b="utf8")):(b=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-p;if((_===void 0||_>S)&&(_=S),u.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let P=!1;for(;;)switch(b){case"hex":return ge(this,u,p,_);case"utf8":case"utf-8":return Ae(this,u,p,_);case"ascii":case"latin1":case"binary":return $t(this,u,p,_);case"base64":return Ke(this,u,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return en(this,u,p,_);default:if(P)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),P=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(f,u,p){return u===0&&p===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(u,p))}function Ot(f,u,p){p=Math.min(f.length,p);const _=[];let b=u;for(;b<p;){const S=f[b];let P=null,oe=S>239?4:S>223?3:S>191?2:1;if(b+oe<=p){let ye,_e,ve,fe;switch(oe){case 1:S<128&&(P=S);break;case 2:ye=f[b+1],(ye&192)===128&&(fe=(S&31)<<6|ye&63,fe>127&&(P=fe));break;case 3:ye=f[b+1],_e=f[b+2],(ye&192)===128&&(_e&192)===128&&(fe=(S&15)<<12|(ye&63)<<6|_e&63,fe>2047&&(fe<55296||fe>57343)&&(P=fe));break;case 4:ye=f[b+1],_e=f[b+2],ve=f[b+3],(ye&192)===128&&(_e&192)===128&&(ve&192)===128&&(fe=(S&15)<<18|(ye&63)<<12|(_e&63)<<6|ve&63,fe>65535&&fe<1114112&&(P=fe))}}P===null?(P=65533,oe=1):P>65535&&(P-=65536,_.push(P>>>10&1023|55296),P=56320|P&1023),_.push(P),b+=oe}return gn(_)}const it=4096;function gn(f){const u=f.length;if(u<=it)return String.fromCharCode.apply(String,f);let p="",_=0;for(;_<u;)p+=String.fromCharCode.apply(String,f.slice(_,_+=it));return p}function tn(f,u,p){let _="";p=Math.min(f.length,p);for(let b=u;b<p;++b)_+=String.fromCharCode(f[b]&127);return _}function _n(f,u,p){let _="";p=Math.min(f.length,p);for(let b=u;b<p;++b)_+=String.fromCharCode(f[b]);return _}function nn(f,u,p){const _=f.length;(!u||u<0)&&(u=0),(!p||p<0||p>_)&&(p=_);let b="";for(let S=u;S<p;++S)b+=vn[f[S]];return b}function xn(f,u,p){const _=f.slice(u,p);let b="";for(let S=0;S<_.length-1;S+=2)b+=String.fromCharCode(_[S]+_[S+1]*256);return b}d.prototype.slice=function(u,p){const _=this.length;u=~~u,p=p===void 0?_:~~p,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),p<0?(p+=_,p<0&&(p=0)):p>_&&(p=_),p<u&&(p=u);const b=this.subarray(u,p);return Object.setPrototypeOf(b,d.prototype),b};function be(f,u,p){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+u>p)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u],S=1,P=0;for(;++P<p&&(S*=256);)b+=this[u+P]*S;return b},d.prototype.readUintBE=d.prototype.readUIntBE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u+--p],S=1;for(;p>0&&(S*=256);)b+=this[u+--p]*S;return b},d.prototype.readUint8=d.prototype.readUInt8=function(u,p){return u=u>>>0,p||be(u,1,this.length),this[u]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(u,p){return u=u>>>0,p||be(u,2,this.length),this[u]|this[u+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(u,p){return u=u>>>0,p||be(u,2,this.length),this[u]<<8|this[u+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(u,p){return u=u>>>0,p||be(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},d.prototype.readBigUInt64LE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=p+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,S=this[++u]+this[++u]*2**8+this[++u]*2**16+_*2**24;return BigInt(b)+(BigInt(S)<<BigInt(32))}),d.prototype.readBigUInt64BE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=p*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],S=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+_;return(BigInt(b)<<BigInt(32))+BigInt(S)}),d.prototype.readIntLE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u],S=1,P=0;for(;++P<p&&(S*=256);)b+=this[u+P]*S;return S*=128,b>=S&&(b-=Math.pow(2,8*p)),b},d.prototype.readIntBE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=p,S=1,P=this[u+--b];for(;b>0&&(S*=256);)P+=this[u+--b]*S;return S*=128,P>=S&&(P-=Math.pow(2,8*p)),P},d.prototype.readInt8=function(u,p){return u=u>>>0,p||be(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},d.prototype.readInt16LE=function(u,p){u=u>>>0,p||be(u,2,this.length);const _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},d.prototype.readInt16BE=function(u,p){u=u>>>0,p||be(u,2,this.length);const _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},d.prototype.readInt32LE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},d.prototype.readInt32BE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},d.prototype.readBigInt64LE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(_<<24);return(BigInt(b)<<BigInt(32))+BigInt(p+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),d.prototype.readBigInt64BE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=(p<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(b)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+_)}),d.prototype.readFloatLE=function(u,p){return u=u>>>0,p||be(u,4,this.length),t.read(this,u,!0,23,4)},d.prototype.readFloatBE=function(u,p){return u=u>>>0,p||be(u,4,this.length),t.read(this,u,!1,23,4)},d.prototype.readDoubleLE=function(u,p){return u=u>>>0,p||be(u,8,this.length),t.read(this,u,!0,52,8)},d.prototype.readDoubleBE=function(u,p){return u=u>>>0,p||be(u,8,this.length),t.read(this,u,!1,52,8)};function Te(f,u,p,_,b,S){if(!d.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>b||u<S)throw new RangeError('"value" argument is out of bounds');if(p+_>f.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(u,p,_,b){if(u=+u,p=p>>>0,_=_>>>0,!b){const oe=Math.pow(2,8*_)-1;Te(this,u,p,_,oe,0)}let S=1,P=0;for(this[p]=u&255;++P<_&&(S*=256);)this[p+P]=u/S&255;return p+_},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(u,p,_,b){if(u=+u,p=p>>>0,_=_>>>0,!b){const oe=Math.pow(2,8*_)-1;Te(this,u,p,_,oe,0)}let S=_-1,P=1;for(this[p+S]=u&255;--S>=0&&(P*=256);)this[p+S]=u/P&255;return p+_},d.prototype.writeUint8=d.prototype.writeUInt8=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,1,255,0),this[p]=u&255,p+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,65535,0),this[p]=u&255,this[p+1]=u>>>8,p+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=u&255,p+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,4294967295,0),this[p+3]=u>>>24,this[p+2]=u>>>16,this[p+1]=u>>>8,this[p]=u&255,p+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,4294967295,0),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=u&255,p+4};function Yt(f,u,p,_,b){Ge(u,_,b,f,p,7);let S=Number(u&BigInt(4294967295));f[p++]=S,S=S>>8,f[p++]=S,S=S>>8,f[p++]=S,S=S>>8,f[p++]=S;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,p}function Be(f,u,p,_,b){Ge(u,_,b,f,p,7);let S=Number(u&BigInt(4294967295));f[p+7]=S,S=S>>8,f[p+6]=S,S=S>>8,f[p+5]=S,S=S>>8,f[p+4]=S;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p+3]=P,P=P>>8,f[p+2]=P,P=P>>8,f[p+1]=P,P=P>>8,f[p]=P,p+8}d.prototype.writeBigUInt64LE=De(function(u,p=0){return Yt(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=De(function(u,p=0){return Be(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(u,p,_,b){if(u=+u,p=p>>>0,!b){const ye=Math.pow(2,8*_-1);Te(this,u,p,_,ye-1,-ye)}let S=0,P=1,oe=0;for(this[p]=u&255;++S<_&&(P*=256);)u<0&&oe===0&&this[p+S-1]!==0&&(oe=1),this[p+S]=(u/P>>0)-oe&255;return p+_},d.prototype.writeIntBE=function(u,p,_,b){if(u=+u,p=p>>>0,!b){const ye=Math.pow(2,8*_-1);Te(this,u,p,_,ye-1,-ye)}let S=_-1,P=1,oe=0;for(this[p+S]=u&255;--S>=0&&(P*=256);)u<0&&oe===0&&this[p+S+1]!==0&&(oe=1),this[p+S]=(u/P>>0)-oe&255;return p+_},d.prototype.writeInt8=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=u&255,p+1},d.prototype.writeInt16LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,32767,-32768),this[p]=u&255,this[p+1]=u>>>8,p+2},d.prototype.writeInt16BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=u&255,p+2},d.prototype.writeInt32LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,2147483647,-2147483648),this[p]=u&255,this[p+1]=u>>>8,this[p+2]=u>>>16,this[p+3]=u>>>24,p+4},d.prototype.writeInt32BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=u&255,p+4},d.prototype.writeBigInt64LE=De(function(u,p=0){return Yt(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=De(function(u,p=0){return Be(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(f,u,p,_,b,S){if(p+_>f.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Lt(f,u,p,_,b){return u=+u,p=p>>>0,b||Pe(f,u,p,4),t.write(f,u,p,_,23,4),p+4}d.prototype.writeFloatLE=function(u,p,_){return Lt(this,u,p,!0,_)},d.prototype.writeFloatBE=function(u,p,_){return Lt(this,u,p,!1,_)};function kt(f,u,p,_,b){return u=+u,p=p>>>0,b||Pe(f,u,p,8),t.write(f,u,p,_,52,8),p+8}d.prototype.writeDoubleLE=function(u,p,_){return kt(this,u,p,!0,_)},d.prototype.writeDoubleBE=function(u,p,_){return kt(this,u,p,!1,_)},d.prototype.copy=function(u,p,_,b){if(!d.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),!b&&b!==0&&(b=this.length),p>=u.length&&(p=u.length),p||(p=0),b>0&&b<_&&(b=_),b===_||u.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),u.length-p<b-_&&(b=u.length-p+_);const S=b-_;return this===u&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,_,b):i.prototype.set.call(u,this.subarray(_,b),p),S},d.prototype.fill=function(u,p,_,b){if(typeof u=="string"){if(typeof p=="string"?(b=p,p=0,_=this.length):typeof _=="string"&&(b=_,_=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!d.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(u.length===1){const P=u.charCodeAt(0);(b==="utf8"&&P<128||b==="latin1")&&(u=P)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;p=p>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);let S;if(typeof u=="number")for(S=p;S<_;++S)this[S]=u;else{const P=d.isBuffer(u)?u:d.from(u,b),oe=P.length;if(oe===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(S=0;S<_-p;++S)this[S+p]=P[S%oe]}return this};const Ye={};function at(f,u,p){Ye[f]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(f,u){return`The "${f}" argument must be of type number. Received type ${typeof u}`},TypeError),at("ERR_OUT_OF_RANGE",function(f,u,p){let _=`The value of "${f}" is out of range.`,b=p;return Number.isInteger(p)&&Math.abs(p)>2**32?b=Wt(String(p)):typeof p=="bigint"&&(b=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(b=Wt(b)),b+="n"),_+=` It must be ${u}. Received ${b}`,_},RangeError);function Wt(f){let u="",p=f.length;const _=f[0]==="-"?1:0;for(;p>=_+4;p-=3)u=`_${f.slice(p-3,p)}${u}`;return`${f.slice(0,p)}${u}`}function xt(f,u,p){Se(u,"offset"),(f[u]===void 0||f[u+p]===void 0)&&st(u,f.length-(p+1))}function Ge(f,u,p,_,b,S){if(f>p||f<u){const P=typeof u=="bigint"?"n":"";let oe;throw S>3?u===0||u===BigInt(0)?oe=`>= 0${P} and < 2${P} ** ${(S+1)*8}${P}`:oe=`>= -(2${P} ** ${(S+1)*8-1}${P}) and < 2 ** ${(S+1)*8-1}${P}`:oe=`>= ${u}${P} and <= ${p}${P}`,new Ye.ERR_OUT_OF_RANGE("value",oe,f)}xt(_,b,S)}function Se(f,u){if(typeof f!="number")throw new Ye.ERR_INVALID_ARG_TYPE(u,"number",f)}function st(f,u,p){throw Math.floor(f)!==f?(Se(f,p),new Ye.ERR_OUT_OF_RANGE(p||"offset","an integer",f)):u<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,f)}const zt=/[^+/0-9A-Za-z-_]/g;function Bt(f){if(f=f.split("=")[0],f=f.trim().replace(zt,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function ft(f,u){u=u||1/0;let p;const _=f.length;let b=null;const S=[];for(let P=0;P<_;++P){if(p=f.charCodeAt(P),p>55295&&p<57344){if(!b){if(p>56319){(u-=3)>-1&&S.push(239,191,189);continue}else if(P+1===_){(u-=3)>-1&&S.push(239,191,189);continue}b=p;continue}if(p<56320){(u-=3)>-1&&S.push(239,191,189),b=p;continue}p=(b-55296<<10|p-56320)+65536}else b&&(u-=3)>-1&&S.push(239,191,189);if(b=null,p<128){if((u-=1)<0)break;S.push(p)}else if(p<2048){if((u-=2)<0)break;S.push(p>>6|192,p&63|128)}else if(p<65536){if((u-=3)<0)break;S.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((u-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return S}function yn(f){const u=[];for(let p=0;p<f.length;++p)u.push(f.charCodeAt(p)&255);return u}function bt(f,u){let p,_,b;const S=[];for(let P=0;P<f.length&&!((u-=2)<0);++P)p=f.charCodeAt(P),_=p>>8,b=p%256,S.push(b),S.push(_);return S}function Ue(f){return e.toByteArray(Bt(f))}function mt(f,u,p,_){let b;for(b=0;b<_&&!(b+p>=u.length||b>=f.length);++b)u[b+p]=f[b];return b}function Me(f,u){return f instanceof u||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===u.name}function ct(f){return f!==f}const vn=function(){const f="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const _=p*16;for(let b=0;b<16;++b)u[_+b]=f[p]+f[b]}return u}();function De(f){return typeof BigInt>"u"?Ut:f}function Ut(){throw new Error("BigInt not supported")}})(Bi);const mn=Bi.Buffer;var Di={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(window,function(){return function(t){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=t,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,(function(h){return i[h]}).bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=12)}([function(t,r,o){var i;t.exports=(i=i||function(a,s){var l=Object.create||function(){function T(){}return function(z){var F;return T.prototype=z,F=new T,T.prototype=null,F}}(),h={},d=h.lib={},g=d.Base={extend:function(T){var z=l(this);return T&&z.mixIn(T),z.hasOwnProperty("init")&&this.init!==z.init||(z.init=function(){z.$super.init.apply(this,arguments)}),z.init.prototype=z,z.$super=this,z},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var z in T)T.hasOwnProperty(z)&&(this[z]=T[z]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}},m=d.WordArray=g.extend({init:function(T,z){T=this.words=T||[],this.sigBytes=z??4*T.length},toString:function(T){return(T||E).stringify(this)},concat:function(T){var z=this.words,F=T.words,Y=this.sigBytes,J=T.sigBytes;if(this.clamp(),Y%4)for(var $=0;$<J;$++){var ie=F[$>>>2]>>>24-$%4*8&255;z[Y+$>>>2]|=ie<<24-(Y+$)%4*8}else for($=0;$<J;$+=4)z[Y+$>>>2]=F[$>>>2];return this.sigBytes+=J,this},clamp:function(){var T=this.words,z=this.sigBytes;T[z>>>2]&=4294967295<<32-z%4*8,T.length=a.ceil(z/4)},clone:function(){var T=g.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var z,F=[],Y=function(ie){ie=ie;var ce=987654321,ge=4294967295;return function(){var Ae=((ce=36969*(65535&ce)+(ce>>16)&ge)<<16)+(ie=18e3*(65535&ie)+(ie>>16)&ge)≥return Ae/=4294967296,(Ae+=.5)*(a.random()>.5?1:-1)}},J=0;J<T;J+=4){var $=Y(4294967296*(z||a.random()));z=987654071*$(),F.push(4294967296*$()|0)}return new m.init(F,T)}}),y=h.enc={},E=y.Hex={stringify:function(T){for(var z=T.words,F=T.sigBytes,Y=[],J=0;J<F;J++){var $=z[J>>>2]>>>24-J%4*8&255;Y.push(($>>>4).toString(16)),Y.push((15&$).toString(16))}return Y.join("")},parse:function(T){for(var z=T.length,F=[],Y=0;Y<z;Y+=2)F[Y>>>3]|=parseInt(T.substr(Y,2),16)<<24-Y%8*4;return new m.init(F,z/2)}},N=y.Latin1={stringify:function(T){for(var z=T.words,F=T.sigBytes,Y=[],J=0;J<F;J++){var $=z[J>>>2]>>>24-J%4*8&255;Y.push(String.fromCharCode($))}return Y.join("")},parse:function(T){for(var z=T.length,F=[],Y=0;Y<z;Y++)F[Y>>>2]|=(255&T.charCodeAt(Y))<<24-Y%4*8;return new m.init(F,z)}},M=y.Utf8={stringify:function(T){try{return decodeURIComponent(escape(N.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return N.parse(unescape(encodeURIComponent(T)))}},D=d.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=M.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var z=this._data,F=z.words,Y=z.sigBytes,J=this.blockSize,$=Y/(4*J),ie=($=T?a.ceil($):a.max((0|$)-this._minBufferSize,0))*J,ce=a.min(4*ie,Y);if(ie){for(var ge=0;ge<ie;ge+=J)this._doProcessBlock(F,ge);var Ae=F.splice(0,ie);z.sigBytes-=ce}return new m.init(Ae,ce)},clone:function(){var T=g.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0}),R=(d.Hasher=D.extend({cfg:g.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){D.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){return T&&this._append(T),this._doFinalize()},blockSize:16,_createHelper:function(T){return function(z,F){return new T.init(F).finalize(z)}},_createHmacHelper:function(T){return function(z,F){return new R.HMAC.init(T,F).finalize(z)}}}),h.algo={});return h}(Math),i)},function(t,r,o){var i,a,s,l;t.exports=(i=o(0),s=(a=i).lib.Base,l=a.enc.Utf8,void(a.algo.HMAC=s.extend({init:function(h,d){h=this._hasher=new h.init,typeof d=="string"&&(d=l.parse(d));var g=h.blockSize,m=4*g;d.sigBytes>m&&(d=h.finalize(d)),d.clamp();for(var y=this._oKey=d.clone(),E=this._iKey=d.clone(),N=y.words,M=E.words,D=0;D<g;D++)N[D]^=1549556828,M[D]^=909522486;y.sigBytes=E.sigBytes=m,this.reset()},reset:function(){var h=this._hasher;h.reset(),h.update(this._iKey)},update:function(h){return this._hasher.update(h),this},finalize:function(h){var d=this._hasher,g=d.finalize(h);return d.reset(),d.finalize(this._oKey.clone().concat(g))}})))},function(t,r,o){var i;t.exports=(i=o(0),i.enc.Hex)},function(t,r,o){var i,a,s,l,h,d;t.exports=(d=o(0),a=(i=d).lib,s=a.Base,l=a.WordArray,(h=i.x64={}).Word=s.extend({init:function(g,m){this.high=g,this.low=m}}),h.WordArray=s.extend({init:function(g,m){g=this.words=g||[],this.sigBytes=m??8*g.length},toX32:function(){for(var g=this.words,m=g.length,y=[],E=0;E<m;E++){var N=g[E];y.push(N.high),y.push(N.low)}return l.create(y,this.sigBytes)},clone:function(){for(var g=s.clone.call(this),m=g.words=this.words.slice(0),y=m.length,E=0;E<y;E++)m[E]=m[E].clone();return g}}),d)},function(t,r,o){var i;t.exports=(i=o(0),o(9),o(1),i.HmacSHA1)},function(t,r,o){var i;t.exports=(i=o(0),o(10),o(1),i.HmacSHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),o(11),o(1),i.HmacSHA512)},function(t,r){function o(i,a){var s=i.indexOf(a);if(s===-1)throw new Error("Invalid character found: "+a);return s}t.exports=function(i,a){var s;switch(a){case"RFC3548":case"RFC4648":s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",i=i.replace(/=+$/,"");break;case"RFC4648-HEX":s="0123456789ABCDEFGHIJKLMNOPQRSTUV",i=i.replace(/=+$/,"");break;case"Crockford":s="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=i.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1");break;default:throw new Error("Unknown base32 variant: "+a)}for(var l=i.length,h=0,d=0,g=0,m=new Uint8Array(5*l/8|0),y=0;y<l;y++)d=d<<5|o(s,i[y]),(h+=5)>=8&&(m[g++]=d>>>h-8&255,h-=8);return m.buffer}},function(t,r){t.exports=function(o,i,a){var s,l;switch(a=a||{},i){case"RFC3548":case"RFC4648":s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",l=!0;break;case"RFC4648-HEX":s="0123456789ABCDEFGHIJKLMNOPQRSTUV",l=!0;break;case"Crockford":s="0123456789ABCDEFGHJKMNPQRSTVWXYZ",l=!1;break;default:throw new Error("Unknown base32 variant: "+i)}for(var h=a.padding!==void 0?a.padding:l,d=o.byteLength,g=new Uint8Array(o),m=0,y=0,E="",N=0;N<d;N++)for(y=y<<8|g[N],m+=8;m>=5;)E+=s[y>>>m-5&31],m-=5;if(m>0&&(E+=s[y<<5-m&31]),h)for(;E.length%8!=0;)E+="=";return E}},function(t,r,o){var i,a,s,l,h,d,g,m;t.exports=(m=o(0),a=(i=m).lib,s=a.WordArray,l=a.Hasher,h=i.algo,d=[],g=h.SHA1=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,E){for(var N=this._hash.words,M=N[0],D=N[1],R=N[2],T=N[3],z=N[4],F=0;F<80;F++){if(F<16)d[F]=0|y[E+F];else{var Y=d[F-3]^d[F-8]^d[F-14]^d[F-16];d[F]=Y<<1|Y>>>31}var J=(M<<5|M>>>27)+z+d[F];J+=F<20?1518500249+(D&R|~D&T):F<40?1859775393+(D^R^T):F<60?(D&R|D&T|R&T)-1894007588:(D^R^T)-899497514,z=T,T=R,R=D<<30|D>>>2,D=M,M=J}N[0]=N[0]+M|0,N[1]=N[1]+D|0,N[2]=N[2]+R|0,N[3]=N[3]+T|0,N[4]=N[4]+z|0},_doFinalize:function(){var y=this._data,E=y.words,N=8*this._nDataBytes,M=8*y.sigBytes;return E[M>>>5]|=128<<24-M%32,E[14+(M+64>>>9<<4)]=Math.floor(N/4294967296),E[15+(M+64>>>9<<4)]=N,y.sigBytes=4*E.length,this._process(),this._hash},clone:function(){var y=l.clone.call(this);return y._hash=this._hash.clone(),y}}),i.SHA1=l._createHelper(g),i.HmacSHA1=l._createHmacHelper(g),m.SHA1)},function(t,r,o){var i;t.exports=(i=o(0),function(a){var s=i,l=s.lib,h=l.WordArray,d=l.Hasher,g=s.algo,m=[],y=[];(function(){function M(z){for(var F=a.sqrt(z),Y=2;Y<=F;Y++)if(!(z%Y))return!1;return!0}function D(z){return 4294967296*(z-(0|z))|0}for(var R=2,T=0;T<64;)M(R)&&(T<8&&(m[T]=D(a.pow(R,.5))),y[T]=D(a.pow(R,1/3)),T++),R++})();var E=[],N=g.SHA256=d.extend({_doReset:function(){this._hash=new h.init(m.slice(0))},_doProcessBlock:function(M,D){for(var R=this._hash.words,T=R[0],z=R[1],F=R[2],Y=R[3],J=R[4],$=R[5],ie=R[6],ce=R[7],ge=0;ge<64;ge++){if(ge<16)E[ge]=0|M[D+ge];else{var Ae=E[ge-15],$t=(Ae<<25|Ae>>>7)^(Ae<<14|Ae>>>18)^Ae>>>3,Ke=E[ge-2],en=(Ke<<15|Ke>>>17)^(Ke<<13|Ke>>>19)^Ke>>>10;E[ge]=$t+E[ge-7]+en+E[ge-16]}var Mt=T&z^T&F^z&F,Ot=(T<<30|T>>>2)^(T<<19|T>>>13)^(T<<10|T>>>22),it=ce+((J<<26|J>>>6)^(J<<21|J>>>11)^(J<<7|J>>>25))+(J&$^~J&ie)+y[ge]+E[ge];ce=ie,ie=$,$=J,J=Y+it|0,Y=F,F=z,z=T,T=it+(Ot+Mt)|0}R[0]=R[0]+T|0,R[1]=R[1]+z|0,R[2]=R[2]+F|0,R[3]=R[3]+Y|0,R[4]=R[4]+J|0,R[5]=R[5]+$|0,R[6]=R[6]+ie|0,R[7]=R[7]+ce|0},_doFinalize:function(){var M=this._data,D=M.words,R=8*this._nDataBytes,T=8*M.sigBytes;return D[T>>>5]|=128<<24-T%32,D[14+(T+64>>>9<<4)]=a.floor(R/4294967296),D[15+(T+64>>>9<<4)]=R,M.sigBytes=4*D.length,this._process(),this._hash},clone:function(){var M=d.clone.call(this);return M._hash=this._hash.clone(),M}});s.SHA256=d._createHelper(N),s.HmacSHA256=d._createHmacHelper(N)}(Math),i.SHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),function(){var a=i,s=a.lib.Hasher,l=a.x64,h=l.Word,d=l.WordArray,g=a.algo;function m(){return h.create.apply(h,arguments)}var y=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],E=[];(function(){for(var M=0;M<80;M++)E[M]=m()})();var N=g.SHA512=s.extend({_doReset:function(){this._hash=new d.init([new h.init(1779033703,4089235720),new h.init(3144134277,2227873595),new h.init(1013904242,4271175723),new h.init(2773480762,1595750129),new h.init(1359893119,2917565137),new h.init(2600822924,725511199),new h.init(528734635,4215389547),new h.init(1541459225,327033209)])},_doProcessBlock:function(M,D){for(var R=this._hash.words,T=R[0],z=R[1],F=R[2],Y=R[3],J=R[4],$=R[5],ie=R[6],ce=R[7],ge=T.high,Ae=T.low,$t=z.high,Ke=z.low,en=F.high,Mt=F.low,Ot=Y.high,it=Y.low,gn=J.high,tn=J.low,_n=$.high,nn=$.low,xn=ie.high,be=ie.low,Te=ce.high,Yt=ce.low,Be=ge,Pe=Ae,Lt=$t,kt=Ke,Ye=en,at=Mt,Wt=Ot,xt=it,Ge=gn,Se=tn,st=_n,zt=nn,Bt=xn,ft=be,yn=Te,bt=Yt,Ue=0;Ue<80;Ue++){var mt=E[Ue];if(Ue<16)var Me=mt.high=0|M[D+2*Ue],ct=mt.low=0|M[D+2*Ue+1];else{var vn=E[Ue-15],De=vn.high,Ut=vn.low,f=(De>>>1|Ut<<31)^(De>>>8|Ut<<24)^De>>>7,u=(Ut>>>1|De<<31)^(Ut>>>8|De<<24)^(Ut>>>7|De<<25),p=E[Ue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xt,Y.high=Ot+Wt+(it>>>0<xt>>>0?1:0),tn=J.low=tn+Se,J.high=gn+Ge+(tn>>>0<Se>>>0?1:0),nn=$.low=nn+zt,$.high=_n+st+(nn>>>0<zt>>>0?1:0),be=ie.low=be+ft,ie.high=xn+Bt+(be>>>0<ft>>>0?1:0),Yt=ce.low=Yt+bt,ce.high=Te+yn+(Yt>>>0<bt>>>0?1:0)},_doFinalize:function(){var M=this._data,D=M.words,R=8*this._nDataBytes,T=8*M.sigBytes;return D[T>>>5]|=128<<24-T%32,D[30+(T+128>>>10<<5)]=Math.floor(R/4294967296),D[31+(T+128>>>10<<5)]=R,M.sigBytes=4*D.length,this._process(),this._hash.toX32()},clone:function(){var M=s.clone.call(this);return M._hash=this._hash.clone(),M},blockSize:32});a.SHA512=s._createHelper(N),a.HmacSHA512=s._createHmacHelper(N)}(),i.SHA512)},function(t,r,o){o.r(r);var i,a=o(0),s=o.n(a),l=o(4),h=o.n(l),d=o(5),g=o.n(d),m=o(6),y=o.n(m),E=o(2),N=o.n(E);function M(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function D(v){for(var w=1;w<arguments.length;w++){var C=arguments[w]!=null?arguments[w]:{};w%2?M(Object(C),!0).forEach(function(I){R(v,I,C[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):M(Object(C)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(C,I))})}return v}function R(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function T(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function z(v){return Object.keys(v).map(function(w){return v[w]})}(function(v){v.SHA1="sha1",v.SHA256="sha256",v.SHA512="sha512"})(i||(i={}));var F,Y=z(i);(function(v){v.ASCII="ascii",v.BASE64="base64",v.HEX="hex",v.LATIN1="latin1",v.UTF8="utf8"})(F||(F={}));var J,$=z(F);(function(v){v.HOTP="hotp",v.TOTP="totp"})(J||(J={}));var ie=z(J),ce=function(){throw new Error("Please provide an options.createDigest implementation.")};function ge(v){return/^(\d+)$/.test(v)}function Ae(v,w,C){if(v.length>=w)return v;var I=Array(w+1).join(C);return"".concat(I).concat(v).slice(-1*w)}function $t(v){var w="otpauth://".concat(v.type,"/{labelPrefix}:{accountName}?secret={secret}{query}"),C=[];if(ie.indexOf(v.type)<0)throw new Error("Expecting options.type to be one of ".concat(ie.join(", "),". Received ").concat(v.type,"."));if(v.type==="hotp"){if(v.counter==null||typeof v.counter!="number")throw new Error('Expecting options.counter to be a number when options.type is "hotp".');C.push("&counter=".concat(v.counter))}return v.type==="totp"&&v.step&&C.push("&period=".concat(v.step)),v.digits&&C.push("&digits=".concat(v.digits)),v.algorithm&&C.push("&algorithm=".concat(v.algorithm.toUpperCase())),v.issuer&&C.push("&issuer=".concat(encodeURIComponent(v.issuer))),w.replace("{labelPrefix}",encodeURIComponent(v.issuer||v.accountName)).replace("{accountName}",encodeURIComponent(v.accountName)).replace("{secret}",v.secret).replace("{query}",C.join(""))}function Ke(v){return(Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function en(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function Mt(v,w){return!w||Ke(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function Ot(v){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function it(v,w){return(it=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function gn(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function tn(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function _n(v){if(typeof v.createDigest!="function")throw new Error("Expecting options.createDigest to be a function.");if(typeof v.createHmacKey!="function")throw new Error("Expecting options.createHmacKey to be a function.");if(typeof v.digits!="number")throw new Error("Expecting options.digits to be a number.");if(!v.algorithm||Y.indexOf(v.algorithm)<0)throw new Error("Expecting options.algorithm to be one of ".concat(Y.join(", "),". Received ").concat(v.algorithm,"."));if(!v.encoding||$.indexOf(v.encoding)<0)throw new Error("Expecting options.encoding to be one of ".concat($.join(", "),". Received ").concat(v.encoding,"."))}var nn=function(v,w,C){return mn.from(w,C).toString("hex")};function xn(v){var w=function(C){for(var I=1;I<arguments.length;I++){var O=arguments[I]!=null?arguments[I]:{};I%2?gn(Object(O),!0).forEach(function(j){tn(C,j,O[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):gn(Object(O)).forEach(function(j){Object.defineProperty(C,j,Object.getOwnPropertyDescriptor(O,j))})}return C}({},{algorithm:i.SHA1,createHmacKey:nn,createDigest:ce,digits:6,encoding:F.ASCII},{},v);return _n(w),Object.freeze(w)}function be(v,w,C){var I=function(j){return Ae(j.toString(16),16,"0")}(w),O=C.createHmacKey(C.algorithm,v,C.encoding);return C.createDigest(C.algorithm,O,I)}function Te(v,w,C){return function(I,O){var j=mn.from(I,"hex"),de=15&j[j.length-1],tt=((127&j[de])<<24|(255&j[de+1])<<16|(255&j[de+2])<<8|255&j[de+3])%Math.pow(10,O);return Ae(String(tt),O,"0")}(C.digest||be(v,w,C),C.digits)}function Yt(v,w,C,I,O){return $t({algorithm:O.algorithm,digits:O.digits,type:J.HOTP,accountName:v,counter:I,issuer:w,secret:C})}var Be=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),Mt(this,Ot(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&it(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return xn(this.options)}},{key:"generate",value:function(O,j){return Te(O,j,this.allOptions())}},{key:"check",value:function(O,j,de){return function(tt,Dt,rn,bo){return!!ge(tt)&&tt===Te(Dt,rn,bo)}(O,j,de,this.allOptions())}},{key:"verify",value:function(O){if(Ke(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret,O.counter)}},{key:"keyuri",value:function(O,j,de,tt){return Yt(O,j,de,tt,this.allOptions())}}])&&en(C.prototype,I),w}(function(){function v(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")})(this,v),this._defaultOptions=Object.freeze(D({},I)),this._options=Object.freeze({})}var w,C;return w=v,(C=[{key:"create",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new v(I)}},{key:"clone",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=this.create(D({},this._defaultOptions,{},I));return O.options=this._options,O}},{key:"allOptions",value:function(){return this.options}},{key:"resetOptions",value:function(){this._options=Object.freeze({})}},{key:"options",get:function(){return Object.freeze(D({},this._defaultOptions,{},this._options))},set:function(I){this._options=Object.freeze(D({},this._options,{},I))}}])&&T(w.prototype,C),v}());function Pe(v){return(Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function Lt(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function kt(v,w){return!w||Pe(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function Ye(v){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function at(v,w){return(at=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function Wt(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function xt(v){for(var w=1;w<arguments.length;w++){var C=arguments[w]!=null?arguments[w]:{};w%2?Wt(Object(C),!0).forEach(function(I){Ge(v,I,C[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):Wt(Object(C)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(C,I))})}return v}function Ge(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function Se(v,w){return function(C){if(Array.isArray(C))return C}(v)||function(C,I){if(Symbol.iterator in Object(C)||Object.prototype.toString.call(C)==="[object Arguments]"){var O=[],j=!0,de=!1,tt=void 0;try{for(var Dt,rn=C[Symbol.iterator]();!(j=(Dt=rn.next()).done)&&(O.push(Dt.value),!I||O.length!==I);j=!0);}catch(bo){de=!0,tt=bo}finally{try{j||rn.return==null||rn.return()}finally{if(de)throw tt}}return O}}(v,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function st(v){if(typeof v=="number")return[Math.abs(v),Math.abs(v)];if(Array.isArray(v)){var w=Se(v,2),C=w[0],I=w[1];if(typeof C=="number"&&typeof I=="number")return[Math.abs(C),Math.abs(I)]}throw new Error("Expecting options.window to be an number or [number, number].")}function zt(v){if(_n(v),st(v.window),typeof v.epoch!="number")throw new Error("Expecting options.epoch to be a number.");if(typeof v.step!="number")throw new Error("Expecting options.step to be a number.")}var Bt=function(v,w,C){var I=v.length,O=mn.from(v,w).toString("hex");if(I<C){var j=new Array(C-I+1).join(O);return mn.from(j,"hex").slice(0,C).toString("hex")}return O},ft=function(v,w,C){switch(v){case i.SHA1:return Bt(w,C,20);case i.SHA256:return Bt(w,C,32);case i.SHA512:return Bt(w,C,64);default:throw new Error("Expecting algorithm to be one of ".concat(Y.join(", "),". Received ").concat(v,"."))}};function yn(v){var w=xt({},{algorithm:i.SHA1,createDigest:ce,createHmacKey:ft,digits:6,encoding:F.ASCII,epoch:Date.now(),step:30,window:0},{},v);return zt(w),Object.freeze(w)}function bt(v,w){var C,I;return Te(v,(C=w.epoch,I=w.step,Math.floor(C/I/1e3)),w)}function Ue(v,w,C,I){var O=[];if(I===0)return O;for(var j=1;j<=I;j++){var de=w*j*C;O.push(v+de)}return O}function mt(v,w,C){return!!ge(v)&&v===bt(w,C)}function Me(v,w,C,I){var O=null;return v.some(function(j,de){return!!mt(w,C,xt({},I,{epoch:j}))&&(O=de+1,!0)}),O}function ct(v,w,C){if(mt(v,w,C))return 0;var I,O,j,de,tt,Dt=(I=C.epoch,O=C.step,j=C.window,de=st(j),{current:I,past:Ue(I,-1,tt=1e3*O,de[0]),future:Ue(I,1,tt,de[1])}),rn=Me(Dt.past,v,w,C);return rn!==null?-1*rn:Me(Dt.future,v,w,C)}function vn(v,w){return Math.floor(v/1e3)%w}function De(v,w,C,I){return $t({algorithm:I.algorithm,digits:I.digits,step:I.step,type:J.TOTP,accountName:v,issuer:w,secret:C})}var Ut=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),kt(this,Ye(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&at(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return yn(this.options)}},{key:"generate",value:function(O){return bt(O,this.allOptions())}},{key:"checkDelta",value:function(O,j){return ct(O,j,this.allOptions())}},{key:"check",value:function(O,j){return typeof this.checkDelta(O,j)=="number"}},{key:"verify",value:function(O){if(Pe(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret)}},{key:"timeRemaining",value:function(){var O,j,de=this.allOptions();return O=de.epoch,(j=de.step)-vn(O,j)}},{key:"timeUsed",value:function(){var O=this.allOptions();return vn(O.epoch,O.step)}},{key:"keyuri",value:function(O,j,de){return De(O,j,de,this.allOptions())}}])&&Lt(C.prototype,I),w}(Be);function f(v){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function u(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function p(v,w){return!w||f(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function _(v){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function b(v,w){return(b=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function S(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function P(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function oe(v){var w=function(C){for(var I=1;I<arguments.length;I++){var O=arguments[I]!=null?arguments[I]:{};I%2?S(Object(O),!0).forEach(function(j){P(C,j,O[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):S(Object(O)).forEach(function(j){Object.defineProperty(C,j,Object.getOwnPropertyDescriptor(O,j))})}return C}({},{algorithm:i.SHA1,createDigest:ce,createHmacKey:ft,digits:6,encoding:F.HEX,epoch:Date.now(),step:30,window:0},{},v);return function(C){if(zt(C),typeof C.keyDecoder!="function")throw new Error("Expecting options.keyDecoder to be a function.");if(C.keyEncoder&&typeof C.keyEncoder!="function")throw new Error("Expecting options.keyEncoder to be a function.")}(w),Object.freeze(w)}function ye(v,w){return w.keyEncoder(v,w.encoding)}function _e(v,w){return w.keyDecoder(v,w.encoding)}function ve(v,w){return ye(w.createRandomBytes(v,w.encoding),w)}var fe=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),p(this,_(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&b(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return oe(this.options)}},{key:"generate",value:function(O){return function(j,de){return bt(_e(j,de),de)}(O,this.allOptions())}},{key:"checkDelta",value:function(O,j){return function(de,tt,Dt){return ct(de,_e(tt,Dt),Dt)}(O,j,this.allOptions())}},{key:"encode",value:function(O){return ye(O,this.allOptions())}},{key:"decode",value:function(O){return _e(O,this.allOptions())}},{key:"generateSecret",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;return ve(O,this.allOptions())}}])&&u(C.prototype,I),w}(Ut),Ar=s.a.lib.WordArray,Et=function(v,w,C){var I=function(de){switch(de){case i.SHA1:return h.a;case i.SHA256:return g.a;case i.SHA512:return y.a;default:throw new Error("Expecting argument 0 to be one of ".concat(Y.join(", "),". Received ").concat(de,"."))}}(v),O=N.a.parse(C),j=N.a.parse(w);return String(I(O,j))},_o=o(7),Rr=o.n(_o),yo=o(8),vo=o.n(yo);function Nr(v){return(Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}o.d(r,"hotp",function(){return Pr}),o.d(r,"totp",function(){return wo}),o.d(r,"authenticator",function(){return ko}),(typeof window>"u"?"undefined":Nr(window))==="object"&&window.Buffer===void 0&&(window.Buffer=buffer.Buffer);var Pr=new Be({createDigest:Et}),wo=new Ut({createDigest:Et}),ko=new fe({createDigest:Et,createRandomBytes:function(v,w){var C=Ar.random(v);return mn.from(C.toString(),"hex").toString(w)},keyDecoder:function(v,w){var C=Rr()(v.toUpperCase(),"RFC4648");return mn.from(C).toString(w)},keyEncoder:function(v,w){return vo()(mn.from(v,w),"RFC4648",{padding:!1})}})}])})})(Di);var ji=Di.exports;const Hi={data(){return{otpToken:null,otpSecret:null,mfaEnable:!1,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null,loading:!1}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{promptMFA(){return!1}},async mounted(){this.$route.name==="AuthMFA"&&(await this.getAccountSettings(),this.generateOTPQrCode()),q.$on("otpSubmitted",this.otpSubmitted)},methods:{otpSubmitted(n){this.otpToken=n,this.submit()},generateOTPQrCode(){const n=this.account.email;if(this.account.mfaEnabled)this.mfaEnable=!0;else{const e="Tapni",t=ji.authenticator.generateSecret();this.otpSecret=t;const r=ji.authenticator.keyuri(n,e,t);new Co({width:200,height:200,data:r}).append(document.getElementById("qrCodeContainer"))}},async cancelMFA(){q.$emit("ssoEvent",{name:"mfaCancel",data:!0})},async validateMFA(){q.$emit("toggleOTPModal",!0)}}},Fi={data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{displayQRLogin(){return this.$route.name==="AuthLogin"&&this.display!=="npm"}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await c.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const r=new Uint32Array(32);return window.crypto.getRandomValues(r),r.forEach(o=>{t+=n.charAt(o%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new Co({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[n,e]=await ue(Fr.qrCodePooling({qrToken:this.qrCodeHash},this.$storex));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await c.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}},yc={name:"AuthLogin",mixins:[ri,oi,ii,Er,Cr,Tr,je,Fi,Hi],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){return this.emailLogin},displayResetPasswordLogin(){return!0},displayRegisterLogin(){return!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.$route.query.qrLogin&&this.changeLoginToQr(),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)}},methods:{async submit(){if(console.log("oy"),this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password,otpToken:this.otpToken};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,r]=await ue(this.login(e));t&&console.error(t),this.submitted=!1,r===!0&&(this.emailOrUsername="",this.password="")},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storex.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},vc=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],wc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},kc=c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),bc={key:1},Ec={class:"page-login-field half-top"},Cc=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Tc=["placeholder"],Sc=c.createElementVNode("em",null,null,-1),Ic={class:"page-login-field half-bottom"},Ac=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Rc=["type","placeholder"],Nc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Pc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Mc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Oc={key:0},Lc={key:1,class:"button--loading button__loader"},xc=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),zc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Bc={key:0},Uc={key:1,class:"button--loading-black button__loader"},Dc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),jc={key:0},Hc={key:1,class:"button--loading-black button__loader"},Fc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),qc={key:0},Vc={key:1,class:"button--loading-black button__loader"},Kc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Gc={key:0},Qc={key:1,class:"button--loading-black button__loader"},$c=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Yc={key:0},Wc={key:1,class:"button--loading-black button__loader"},Jc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Xc={key:0},Zc={key:1,class:"button--loading-black button__loader"},el=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),tl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/qr.png",style:{position:"absolute","margin-left":"-5px",padding:"15px 0",height:"100%"}},null,-1),nl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),rl={class:"close-text center-text half-top color-black"},ol=c.createElementVNode("br",null,null,-1),il={class:"",href:"https://tapni.com/policies/terms-of-service"},al={href:"https://tapni.com/policies/privacy-policy"},sl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),cl={key:10,class:"page-login-links"},ll=c.createElementVNode("div",{class:"clear"},null,-1),dl={class:"forgot center-text pointer small-top"},ul=c.createElementVNode("br",null,null,-1),pl=c.createElementVNode("div",{class:"clear"},null,-1);function hl(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[14]||(e[14]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},vc)):c.createCommentVNode("",!0),c.createElementVNode("h1",wc,c.toDisplayString(this.ssoLang[this.appLanguage].login),1),kc,i.displayFormLogin?(c.openBlock(),c.createElementBlock("span",bc,[c.createElementVNode("div",Ec,[Cc,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.emailOrUsername=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:n.ssoLang[this.appLanguage].email_username,required:""},null,40,Tc),[[c.vModelText,o.emailOrUsername]]),Sc]),c.createElementVNode("div",Ic,[Ac,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Rc),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",Nc,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Pc,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",Mc,[o.submitted?(c.openBlock(),c.createElementBlock("span",Lc)):(c.openBlock(),c.createElementBlock("span",Oc,c.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):c.createCommentVNode("",!0),xc,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[5]||(e[5]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[zc,n.appleLoad?(c.openBlock(),c.createElementBlock("span",Uc)):(c.openBlock(),c.createElementBlock("span",Bc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):c.createCommentVNode("",!0),n.displayGoogleLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[6]||(e[6]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Dc,n.googleLoad?(c.openBlock(),c.createElementBlock("span",Hc)):(c.openBlock(),c.createElementBlock("span",jc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):c.createCommentVNode("",!0),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[7]||(e[7]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fc,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",Vc)):(c.openBlock(),c.createElementBlock("span",qc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Facebook",1))])):c.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:5,onClick:e[8]||(e[8]=(...s)=>n.microsoftLogin&&n.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[Kc,n.microsoftLoad?(c.openBlock(),c.createElementBlock("span",Qc)):(c.openBlock(),c.createElementBlock("span",Gc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:6,onClick:e[9]||(e[9]=(...s)=>n.ssoLogin&&n.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[$c,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Wc)):(c.openBlock(),c.createElementBlock("span",Yc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(c.openBlock(),c.createElementBlock("a",{key:7,onClick:e[10]||(e[10]=s=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[Jc,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Xc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(c.openBlock(),c.createElementBlock("span",Zc))])):c.createCommentVNode("",!0),i.displayFormLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:8,onClick:e[11]||(e[11]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[el,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),n.displayQRLogin?(c.openBlock(),c.createElementBlock("a",{key:9,onClick:e[12]||(e[12]=s=>n.$router.push("/qr")),class:"button-center button button-90 google-button pointer"},[tl,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" QR",1)])):c.createCommentVNode("",!0),nl,c.createElementVNode("p",rl,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),ol,c.createElementVNode("a",il,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),c.createElementVNode("a",al,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),sl,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:11,class:"page-login-links",onClick:e[13]||(e[13]=(...s)=>i.createAccountModal&&i.createAccountModal(...s))},[c.createElementVNode("a",dl,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),ul,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),pl])):(c.openBlock(),c.createElementBlock("div",cl,[i.displayRegisterLogin?(c.openBlock(),c.createBlock(a,{key:0,class:"forgot float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):c.createCommentVNode("",!0),i.displayResetPasswordLogin?(c.openBlock(),c.createBlock(a,{key:1,class:"create float-left",to:"/reset"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):c.createCommentVNode("",!0),ll]))],36)}const uo=Qe(yc,[["render",hl]]),fl=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ml={name:"AuthRegister",mixins:[ri,oi,ii,Er,je],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&q.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storex.referral&&(this.referral=this.$storex.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let n={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?q.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):e.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storex.verifyEmail=n},referral(n){this.$storex.referral=n}}},gl=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],_l={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},yl={class:"half-bottom small-top center-text color-black"},vl={key:0},wl=c.createElementVNode("br",null,null,-1),kl={key:1},bl={class:"page-login-field half-top"},El=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Cl=["placeholder"],Tl=c.createElementVNode("em",null,null,-1),Sl={class:"page-login-field half-top"},Il=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Al=["placeholder","disabled"],Rl=c.createElementVNode("em",null,null,-1),Nl={class:"page-login-field half-top half-bottom"},Pl=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ml=["type","placeholder"],Ol={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ll={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},xl={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},zl={key:0},Bl={key:1,class:"button--loading button__loader"},Ul=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Dl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),jl={key:0},Hl={key:1,class:"button--loading-black button__loader"},Fl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),ql={key:0},Vl={key:1,class:"button--loading-black button__loader"},Kl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),Gl={key:0},Ql={key:1,class:"button--loading-black button__loader"},$l=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),Yl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Wl={class:"close-text center-text half-top color-black"},Jl=c.createElementVNode("br",null,null,-1),Xl={class:"",href:"https://tapni.co/policies/terms-of-service"},Zl={href:"https://tapni.co/policies/privacy-policy"},ed=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),td={key:5,class:"page-login-links"},nd=c.createElementVNode("div",{class:"clear"},null,-1),rd={class:"forgot center-text pointer small-top"},od=c.createElementVNode("br",null,null,-1),id=c.createElementVNode("div",{class:"clear"},null,-1);function ad(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[12]||(e[12]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},gl)):c.createCommentVNode("",!0),c.createElementVNode("h1",_l,c.toDisplayString(n.ssoLang[this.appLanguage].register),1),c.createElementVNode("p",yl,[o.usernameRegister?(c.openBlock(),c.createElementBlock("span",vl,[c.createTextVNode(" t.link/"+c.toDisplayString(o.username)+" "+c.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),wl])):c.createCommentVNode("",!0)]),o.emailLogin?(c.openBlock(),c.createElementBlock("span",kl,[c.createElementVNode("div",bl,[El,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Cl),[[c.vModelText,o.email]]),Tl]),c.createElementVNode("div",Sl,[Il,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.username=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:o.usernameRegister,class:c.normalizeClass({"input-disabled":o.usernameRegister})},null,42,Al),[[c.vModelText,o.username]]),Rl]),c.createElementVNode("div",Nl,[Pl,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ml),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",Ol,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Ll,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",xl,[o.submitted?(c.openBlock(),c.createElementBlock("span",Bl)):(c.openBlock(),c.createElementBlock("span",zl,c.toDisplayString(o.formButtonText),1))])])):c.createCommentVNode("",!0),Ul,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Dl,n.appleLoad?(c.openBlock(),c.createElementBlock("span",Hl)):(c.openBlock(),c.createElementBlock("span",jl,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):c.createCommentVNode("",!0),c.createElementVNode("a",{onClick:e[8]||(e[8]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fl,n.googleLoad?(c.openBlock(),c.createElementBlock("span",Vl)):(c.openBlock(),c.createElementBlock("span",ql,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Kl,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",Ql)):(c.openBlock(),c.createElementBlock("span",Gl,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):c.createCommentVNode("",!0),o.emailLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[$l,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),Yl,c.createElementVNode("p",Wl,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),Jl,c.createElementVNode("a",Xl,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),c.createElementVNode("a",Zl,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),ed,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:6,class:"page-login-links",onClick:e[11]||(e[11]=(...s)=>i.loginAccountModal&&i.loginAccountModal(...s))},[c.createElementVNode("a",rd,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),od,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),id])):(c.openBlock(),c.createElementBlock("div",td,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),nd]))],36)}const po=Qe(ml,[["render",ad]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),cd={name:"AuthVerify",mixins:[je],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),q.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",q.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storex.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},ht=n=>(c.pushScopeId("data-v-89d98ef3"),n=n(),c.popScopeId(),n),ld=[ht(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],dd={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},ud=ht(()=>c.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),pd={class:"page-login-field half-top"},hd=ht(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),fd=["placeholder"],md=ht(()=>c.createElementVNode("em",null,null,-1)),gd={class:"page-login-field half-top"},_d=ht(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),yd=["placeholder"],vd=ht(()=>c.createElementVNode("em",null,null,-1)),wd={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},kd={key:0,class:"uppercase"},bd={key:1,class:"button--loading button__loader"},Ed=ht(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Cd={class:"close-text center-text half-top color-black"},Td=["innerHTML"],Sd=ht(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Id=ht(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Ad={key:1,class:"page-login-links"},Rd=ht(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Nd={class:"forgot center-text pointer small-top"},Pd=ht(()=>c.createElementVNode("br",null,null,-1)),Md=ht(()=>c.createElementVNode("div",{class:"clear"},null,-1));function Od(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},ld)):c.createCommentVNode("",!0),c.createElementVNode("h1",dd,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),ud,c.createElementVNode("div",pd,[hd,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,fd),[[c.vModelText,o.email]]),md]),c.createElementVNode("div",gd,[_d,c.withDirectives(c.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=s=>o.code=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,yd),[[c.vModelText,o.code]]),vd]),c.createElementVNode("button",wd,[o.submitted?(c.openBlock(),c.createElementBlock("span",bd)):(c.openBlock(),c.createElementBlock("span",kd,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),Ed,c.createElementVNode("p",Cd,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,Td),Sd]),Id,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:2,class:"page-login-links",onClick:e[5]||(e[5]=(...s)=>i.registerAccountModal&&i.registerAccountModal(...s))},[c.createElementVNode("a",Nd,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),Pd,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),Md])):(c.openBlock(),c.createElementBlock("div",Ad,[c.createVNode(a,{class:"create float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Rd]))],36)}const ho=Qe(cd,[["render",Od],["__scopeId","data-v-89d98ef3"]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:ho},Symbol.toStringTag,{value:"Module"})),xd={name:"AuthMFA",mixins:[je,Hi],props:{payload:{type:Object,default:{}}},mounted(){this.isLoggedIn||this.$router.push("/login")},methods:{async submit(){let n={otpToken:this.otpToken,otpSecret:this.otpSecret,enable:this.mfaEnable};this.mfaEnable||delete n.otpSecret,this.loading=!0;const[e,t]=await ue(He.setMfa(n,this.$storex));if(this.loading=!1,e)return q.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);t.data.success&&(this.getAccountSettings(),this.successSnack(t.data.message))}}},zd={class:"page-login content-boxed content-boxed-padding"},Bd=c.createElementVNode("h4",{style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"50px"}}," 2-Step Verification ",-1),Ud=c.createElementVNode("br",null,null,-1),Dd={class:"qrCodeLoginContainer center-text"},jd={class:"ios-switch",style:{display:"inline-block",float:"right"}},Hd=c.createElementVNode("label",{class:"ios-switch-label",for:"mfa-open-switch"},null,-1),Fd=c.createElementVNode("br",null,null,-1),qd={style:{"text-align":"center"}},Vd=c.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1),Kd=c.createElementVNode("br",null,null,-1),Gd=c.createElementVNode("br",null,null,-1),Qd=c.createElementVNode("br",null,null,-1),$d=c.createElementVNode("div",{style:{margin:"0 auto",width:"85%","text-align":"center"}},[c.createElementVNode("h5",{class:""},"Scan the QR code above or enter the secret key into your authenticator app."),c.createElementVNode("br")],-1),Yd={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},Wd={key:0},Jd={key:1,class:"button--loading button__loader"},Xd={key:1,style:{margin:"0 auto",width:"100%","text-align":"center"}},Zd={key:0,class:""},eu=c.createElementVNode("br",null,null,-1),tu={key:1,class:""};function nu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",zd,[Bd,Ud,c.createElementVNode("div",Dd,[c.createElementVNode("div",null,[c.createTextVNode(" Enable Multi-Factor Authentication "),c.createElementVNode("div",jd,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>n.mfaEnable=a),type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"mfa-open-switch"},null,512),[[c.vModelCheckbox,n.mfaEnable]]),Hd])]),Fd,c.withDirectives(c.createElementVNode("div",qd,[Vd,Kd,c.createElementVNode("p",{class:"bold pointer font-16 underline",onClick:e[1]||(e[1]=a=>n.copy(n.otpSecret))},c.toDisplayString(n.otpSecret),1),Gd,Qd,$d],512),[[c.vShow,n.mfaEnable&&!n.account.mfaEnabled]]),n.account.mfaEnabled!==n.mfaEnable?(c.openBlock(),c.createElementBlock("form",{key:0,onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>n.validateMFA&&n.validateMFA(...a),["prevent"]))},[c.createElementVNode("button",Yd,[n.loading?(c.openBlock(),c.createElementBlock("span",Jd)):(c.openBlock(),c.createElementBlock("span",Wd,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),c.createElementVNode("a",{href:"javascript:;",onClick:e[2]||(e[2]=(...a)=>n.cancelMFA&&n.cancelMFA(...a))},"Cancel")],32)):(c.openBlock(),c.createElementBlock("div",Xd,[c.createElementVNode("div",null,[n.mfaEnable?(c.openBlock(),c.createElementBlock("h5",Zd,[c.createTextVNode(" Your account is protected via "),eu,c.createTextVNode(" multi-factor authentication (MFA) ✅ ")])):(c.openBlock(),c.createElementBlock("h5",tu,"Protect your account from unauthorized access by enabling multi-factor authentication (MFA)")),c.createElementVNode("a",{class:"half-top",href:"javascript:;",onClick:e[4]||(e[4]=(...a)=>n.cancelMFA&&n.cancelMFA(...a))},"Go Back to Account Settings")])]))])])}const fo=Qe(xd,[["render",nu]]),ru=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),ou={name:"AuthReset",mixins:[je],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),q.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storex.verifyEmail=n}}},Qt=n=>(c.pushScopeId("data-v-69a9cfa3"),n=n(),c.popScopeId(),n),iu={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},au=Qt(()=>c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),su={class:"page-login-field half-top color-black"},cu=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"10px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),lu=["placeholder"],du=Qt(()=>c.createElementVNode("em",null,null,-1)),uu={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},pu={key:0,class:"uppercase"},hu={key:1,class:"button--loading button__loader"},fu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),mu={class:"close-text center-text half-top color-black"},gu=["innerHTML"],_u=["href"],yu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vu={class:"page-login-links"},wu=Qt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),ku={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},bu={class:"half-bottom small-top center-text color-black"},Eu={class:"page-login-field half-top"},Cu=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Tu=["type","placeholder"],Su={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Iu={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Au={class:"page-login-field half-top"},Ru=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Nu=["type","placeholder"],Pu={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Mu={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ou={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Lu={key:0,class:"uppercase"},xu={key:1,class:"button--loading button__loader"},zu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Bu={class:"close-text center-text half-top color-black"},Uu=["innerHTML"],Du=["href"];function ju(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return o.passwordChange?(c.openBlock(),c.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=c.withModifiers((...s)=>i.changePw&&i.changePw(...s),["prevent"]))},[c.createElementVNode("h3",ku,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),c.createElementVNode("p",bu,c.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),c.createElementVNode("div",Eu,[Cu,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,Tu),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword)},[c.withDirectives(c.createElementVNode("img",Su,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Iu,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("div",Au,[Ru,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.passwordRepeat=s),type:o.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,Nu),[[c.vModelDynamic,o.passwordRepeat]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword2=!o.revealPassword2)},[c.withDirectives(c.createElementVNode("img",Pu,null,512),[[c.vShow,!o.revealPassword2]]),c.withDirectives(c.createElementVNode("img",Mu,null,512),[[c.vShow,o.revealPassword2]])])]),c.createElementVNode("button",Ou,[o.submitted?(c.openBlock(),c.createElementBlock("span",xu)):(c.openBlock(),c.createElementBlock("span",Lu,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),zu,c.createElementVNode("p",Bu,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,Uu),c.createTextVNode(),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Du)])],32)):(c.openBlock(),c.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=c.withModifiers((...s)=>i.resetEmail&&i.resetEmail(...s),["prevent"])),autocomplete:"on"},[c.createElementVNode("h3",iu,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),au,c.createElementVNode("div",su,[cu,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=s=>o.email=s),onKeydown:e[1]||(e[1]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,lu),[[c.vModelText,o.email]]),du]),c.createElementVNode("button",uu,[o.submitted?(c.openBlock(),c.createElementBlock("span",hu)):(c.openBlock(),c.createElementBlock("span",pu,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),fu,c.createElementVNode("p",mu,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,gu),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,_u)]),yu,c.createElementVNode("div",vu,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wu])],32))}const mo=Qe(ou,[["render",ju],["__scopeId","data-v-69a9cfa3"]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"})),Fu={name:"AuthCallback",mixins:[Cr,Tr,je],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=Ji.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},qu={class:"page-login content-boxed content-boxed-padding"},Vu={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ku=c.createElementVNode("br",null,null,-1),Gu={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Qu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",qu,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(c.openBlock(),c.createElementBlock("h5",Vu,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),Ku,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),c.createElementVNode("span",{onClick:e[0]||(e[0]=(...a)=>i.inAppRedirect&&i.inAppRedirect(...a)),style:{color:"blue",cursor:"pointer"}},c.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),c.createTextVNode(".")])):(c.openBlock(),c.createElementBlock("h4",Gu,c.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const go=Qe(Fu,[["render",Qu]]),$u=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"})),Yu={name:"ModalOverlay",mixins:[je],data(){return{toggle:!1}},mounted(){q.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),q.$on("openModalOverlay",()=>{this.toggle=!0}),q.$on("toggleSSOLanguageModal",this.toggleModal),q.$on("toggleOTPModal",this.toggleModal),q.$on("toggleSSOModal",this.toggleModal),q.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(n=!0){n&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var n,e;!this.isLoggedIn&&((e=(n=this.user)==null?void 0:n.lead_form)!=null&&e.forceFilling)||q.$emit("closeModal")}}};function Wu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":o.toggle}),onClick:e[0]||(e[0]=(...a)=>i.toggleEmit&&i.toggleEmit(...a))},null,2)}const qi=Qe(Yu,[["render",Wu],["__scopeId","data-v-17c95816"]]),Ju={name:"SSO",mixins:[Er,Cr,Tr,je],data(){return{toggle:!1,email:"",loading:!1}},mounted(){q.$on("toggleSSOModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleSSOModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e.length<=1?(e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl)):(this.forceClose(),q.$emit("toggleSSOPickModal",{sso:n.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Xu=[(n=>(c.pushScopeId("data-v-11f19a09"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Zu={class:"bold center-text color-black half-top half-bottom"},ep=["placeholder"],tp={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},np={key:0},rp={key:1,class:"button--loading button__loader"};function op(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Xu),c.createElementVNode("h3",Zu,c.toDisplayString(n.ssoLang[n.appLanguage].enter_company_email),1),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.email=a),placeholder:n.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,ep),[[c.vModelText,o.email]])]),c.createElementVNode("button",tp,[o.loading?(c.openBlock(),c.createElementBlock("span",rp)):(c.openBlock(),c.createElementBlock("span",np,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))])],34)}const Vi=Qe(Ju,[["render",op],["__scopeId","data-v-11f19a09"]]),ip={name:"OTP",mixins:[je],data(){return{toggle:!1,otp:"",loading:!1}},mounted(){q.$on("toggleOTPModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleOTPModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async submit(){if(!this.otp||this.otp.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.loading=!0,q.$emit("otpSubmitted",this.otp),q.$emit("toggleOTPModal"),this.loading=!1},toggleModal(){this.toggle=!this.toggle}}},Ki=n=>(c.pushScopeId("data-v-2b6d6269"),n=n(),c.popScopeId(),n),ap=[Ki(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],sp=["src"],cp={class:"bold center-text color-black half-top half-bottom"},lp=["innerHTML"],dp=["placeholder"],up={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},pp={key:0},hp={key:1,class:"button--loading button__loader"},fp={class:"close-text center-text half-top color-black"},mp=["innerHTML"],gp=Ki(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=MFA Authentication Problem"}," support@tapni.com",-1));function _p(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},ap),c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"padlock-img small-bottom"},null,8,sp),c.createElementVNode("h3",cp,c.toDisplayString(n.ssoLang[n.appLanguage].otp_title),1),c.createElementVNode("p",{class:"half-top full-bottom padding-left padding-right",innerHTML:n.ssoLang[n.appLanguage].otp_subtitle},null,8,lp),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.otp=a),placeholder:n.ssoLang[n.appLanguage].otp_code,class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,dp),[[c.vModelText,o.otp]])]),c.createElementVNode("button",up,[o.loading?(c.openBlock(),c.createElementBlock("span",hp)):(c.openBlock(),c.createElementBlock("span",pp,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),c.createElementVNode("p",fp,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].otp_p1},null,8,mp),gp])],34)}const Gi=Qe(ip,[["render",_p],["__scopeId","data-v-2b6d6269"]]),yp={name:"SSOPick",mixins:[Er,Cr,Tr,je],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){q.$on("toggleSSOPickModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleSSOPickModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(n){n==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),n==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),n==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(n){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,n&&(this.sso=n.sso,this.email=n.email),this.toggle=!this.toggle}}},Ir=n=>(c.pushScopeId("data-v-4f821f65"),n=n(),c.popScopeId(),n),vp=[Ir(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],wp={class:"bold center-text color-black half-top half-bottom"},kp=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),bp={key:0},Ep={key:1,class:"button--loading button__loader"},Cp=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Tp={key:0},Sp={key:1,class:"button--loading button__loader"},Ip=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Ap={key:0},Rp={key:1,class:"button--loading button__loader"};function Np(n,e,t,r,o,i){var a,s,l;return c.openBlock(),c.createElementBlock("form",{onSubmit:e[4]||(e[4]=c.withModifiers(()=>{},["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...h)=>i.forceClose&&i.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},vp),c.createElementVNode("h3",wp,c.toDisplayString(n.ssoLang[n.appLanguage].select_sign_method),1),(a=o.sso)!=null&&a.azure?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[1]||(e[1]=h=>i.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[kp,o.azureLoad?(c.openBlock(),c.createElementBlock("span",Ep)):(c.openBlock(),c.createElementBlock("span",bp,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Azure",1))])):c.createCommentVNode("",!0),(s=o.sso)!=null&&s.okta?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:e[2]||(e[2]=h=>i.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Cp,o.oktaLoad?(c.openBlock(),c.createElementBlock("span",Sp)):(c.openBlock(),c.createElementBlock("span",Tp,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Okta",1))])):c.createCommentVNode("",!0),(l=o.sso)!=null&&l.saml?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[3]||(e[3]=h=>i.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Ip,o.samlLoad?(c.openBlock(),c.createElementBlock("span",Rp)):(c.openBlock(),c.createElementBlock("span",Ap,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SAML",1))])):c.createCommentVNode("",!0)],34)}const Qi=Qe(yp,[["render",Np],["__scopeId","data-v-4f821f65"]]),Pp={name:"LinkIcon",mixins:[je],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},Mp=["src","alt"],Op=["src","alt"],Lp=["src","alt"],xp=["src","alt"];function zp(n,e,t,r,o,i){var a,s;return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["disable-select",t.linkStyle+(t.disabled?" opacity-50":"")]),style:c.normalizeStyle((t.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[c.createElementVNode("span",{class:c.normalizeClass({"user-link-img":!0,"pulse pulse-border":t.pulse,"link-drag":t.editing}),style:c.normalizeStyle({...(a=t.customLinkStyle)==null?void 0:a.linkIcon})},[!t.data.custom_icon&&t.data.type!=="customlink"?(c.openBlock(),c.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+t.data.type+".png",class:"responsive-image",alt:t.data.text,onLoad:e[0]||(e[0]=l=>n.$emit("loaded")),onError:e[1]||(e[1]=l=>n.$emit("loaded"))},null,40,Mp)):!t.data.custom_icon&&t.data.type==="customlink"&&t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:t.data.text,onLoad:e[2]||(e[2]=l=>n.$emit("loaded")),onError:e[3]||(e[3]=l=>n.$emit("loaded"))},null,40,Op)):!t.data.custom_icon&&t.data.type==="customlink"&&!t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:t.data.text,onLoad:e[4]||(e[4]=l=>n.$emit("loaded")),onError:e[5]||(e[5]=l=>n.$emit("loaded"))},null,40,Lp)):(c.openBlock(),c.createElementBlock("img",{key:3,src:t.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:t.data.text,onLoad:e[6]||(e[6]=l=>n.$emit("loaded")),onError:e[7]||(e[7]=l=>n.$emit("loaded"))},null,40,xp))],6),c.createElementVNode("span",{class:"link-text link-drag color-black",style:c.normalizeStyle({color:(s=t.customLinkStyle)==null?void 0:s.color})},c.toDisplayString(i.linkText),5)],6)}const Bp=Qe(Pp,[["render",zp]]),Up={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},Dp={name:"Language",mixins:[je],components:{LinkIcon:Bp},data(){return{toggle:!1}},async mounted(){q.$on("toggleSSOLanguageModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1});let n=this.isNative?await Zn.Device.getLanguageCode():On.getFirstBrowserLanguage();n&&Up.SUPPORTED_LANGUAGES.includes(n)&&this.updateLanguage(n)},beforeDestroy(){q._events.toggleSSOLanguageModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(n){this.updateLang(n),q.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},jp=[(n=>(c.pushScopeId("data-v-a49a90e5"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 fa color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],Hp={class:"bold center-text color-black small-bottom"};function Fp(n,e,t,r,o,i){const a=c.resolveComponent("LinkIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},jp),c.createElementVNode("h3",Hp,c.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),c.createVNode(a,{onClick:e[1]||(e[1]=s=>i.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:n.ssoLang[this.appLanguage].english},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[2]||(e[2]=s=>i.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:n.ssoLang[this.appLanguage].spanish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[3]||(e[3]=s=>i.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:n.ssoLang[this.appLanguage].german},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[4]||(e[4]=s=>i.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:n.ssoLang[this.appLanguage].italian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[5]||(e[5]=s=>i.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:n.ssoLang[this.appLanguage].french},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[6]||(e[6]=s=>i.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:n.ssoLang[this.appLanguage].korean},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[7]||(e[7]=s=>i.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:n.ssoLang[this.appLanguage].serbian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[8]||(e[8]=s=>i.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:n.ssoLang[this.appLanguage].turkish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const $i=Qe(Dp,[["render",Fp],["__scopeId","data-v-a49a90e5"]]);var qp={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Vp={id:"ssoapp"},Kp={key:0,href:"/",class:"header-logo"},Gp=[c.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgN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IVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],Qp={class:"lang-icon"},$p={class:"snackbar snackbar-boxed",id:"snackbar"},Yp={class:"snack-body",id:"errorSnack"},Wp={id:"errorMessage"},Jp=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Xp={class:"snack-body",id:"successSnack"},Zp={id:"successMessage"},eh=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],th=Object.assign({store:qr,name:"TapniAuth",mixins:[Xi,je],data(){return{storeInterval:null,isSetup:!1}},components:{Language:$i,OTP:Gi,SSOPick:Qi,SSO:Vi,ModalOverlay:qi,AuthCallback:go,AuthReset:mo,AuthVerify:ho,AuthMFA:fo,AuthRegister:po,AuthLogin:uo,AuthWelcome:Hr},props:{viewProp:{type:String,default:"AuthWelcome"},isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}},options:{type:Object,default:{token:"",refreshTokens:"",username:"",UserId:"",verifyEmail:"",subdomain:"",localUser:""}}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){console.log("eey"),this.applyBgStyle(),this.setView(this.viewProp),q.$on("ssoEvent",this.ssoOutgoingEvent),q.$on("ssoLogout",n=>this.logout(n.refreshToken)),q.$on("getLoggedInAccounts",n=>this.getLoggedInAccounts(n)),q.$on("refreshTokenAction",n=>this.refreshTokenAction({...n,storage:this.$storex})),q.$on("switchAccount",n=>this.switchAccount(n)),q.$on("setToken",n=>this.setToken(n))},methods:{async init(){if(console.log("initt"),this.setStorage(this.$storage),this.isSetup)return;this.isSetup=!0,this.setToken(this.$storex.token);const n=this.getRefreshTokens();this.setRefreshToken(n[0]),await this.getLoggedInAccounts(n),this.$emit("ssoLibraryReady",this.$storex)},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){q.$emit(n.name,n.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleSSOLanguageModal(){q.$emit("toggleSSOLanguageModal",!0)}},watch:{display(){this.applyBgStyle()},"$storageReady.value"(n){n&&this.$nextTick(()=>{this.init()})},$storex:{handler(n){clearInterval(this.storeInterval),this.storeInterval=setTimeout(()=>{Object.keys(n).forEach(e=>{this.$storage[e]=n[e]})},250)},deep:!0}}},{setup(n){return window.Buffer=Wi.Buffer,document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${qp.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(e)}),(e,t)=>(c.openBlock(),c.createElementBlock("div",Vp,[e.display==="redirect"||e.renderView.includes("Auth")?(c.openBlock(),c.createElementBlock("a",Kp,Gp)):c.createCommentVNode("",!0),e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:t[0]||(t[0]=(...r)=>e.toggleSSOLanguageModal&&e.toggleSSOLanguageModal(...r)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[c.createElementVNode("span",Qp,c.toDisplayString(e.appLanguage.toUpperCase()),1)])):c.createCommentVNode("",!0),c.createVNode(qi),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock($i,{key:2})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Vi,{key:3})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Qi,{key:4})),c.createVNode(Gi),e.initialized&&e.renderView==="AuthWelcome"?(c.openBlock(),c.createBlock(Hr,{key:5})):e.initialized&&e.renderView==="AuthLogin"?(c.openBlock(),c.createBlock(uo,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthRegister"?(c.openBlock(),c.createBlock(po,{key:7,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(c.openBlock(),c.createBlock(ho,{key:8,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthMFA"?(c.openBlock(),c.createBlock(fo,{key:9,isModal:n.isModal,payload:n.payload},null,8,["isModal","payload"])):e.initialized&&e.renderView==="AuthReset"?(c.openBlock(),c.createBlock(mo,{key:10})):e.initialized&&e.renderView==="AuthCallback"?(c.openBlock(),c.createBlock(go,{key:11})):e.display!=="npm"?(c.openBlock(),c.createBlock(c.unref(on.RouterView),{key:12})):c.createCommentVNode("",!0),c.createElementVNode("div",$p,[c.createElementVNode("p",Yp,[c.createElementVNode("span",Wp,c.toDisplayString(e.ssoLang[e.appLanguage].error),1),c.createElementVNode("a",{onClick:t[1]||(t[1]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Jp)]),c.createElementVNode("p",Xp,[c.createElementVNode("span",Zp,c.toDisplayString(e.ssoLang[e.appLanguage].success),1),c.createElementVNode("a",{onClick:t[2]||(t[2]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},eh)])])]))}}),nh={install:(n,e)=>{n.component("TapniAuth",th),e.hasModule("auth")||e.registerModule("auth",qr)}};var rh={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const oh={mixins:[je],data(){return{expanded:!1,addAccountReady:!1,appVersion:rh.APP_VERSION}},async mounted(){this.getAccountSettings()},methods:{continueTo(n){console.log("continue to "+n)},addAccount(){this.$router.push("/login")},switchAccount(n){console.log("switch",n)},toggleAccountSettingsModal(){this.$router.push("/mfa")},toggleLanguageModal(){q.$emit("toggleSSOLanguageModal")},logout(){this.logout()}}},Pt=n=>(c.pushScopeId("data-v-99676a71"),n=n(),c.popScopeId(),n),ih={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ah=Pt(()=>c.createElementVNode("br",null,null,-1)),sh={class:"bold full-top no-bottom center-text"},ch={class:"full-bottom half-top center-text color-black font-16"},gf={key:0,class:"full-top full-bottom"},_f={class:"page-login-links center-text"},yf=Pt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),lh={class:"container"},dh={class:"settingsCard pointer left-text"},uh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newSettings.svg",style:{width:"50px","border-radius":"20px"}})],-1)),ph={class:"middle"},hh=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1)),fh=Pt(()=>c.createElementVNode("div",{class:"divider"},null,-1)),mh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newPublicProfile.svg",style:{width:"50px","border-radius":"20px"}})],-1)),gh={class:"middle"},_h=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1)),yh=Pt(()=>c.createElementVNode("div",{class:"divider"},null,-1)),vh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newLogout.svg",style:{width:"50px","border-radius":"20px"}})],-1)),wh={class:"middle"},kh=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1));function bh(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",ih,[ah,c.createElementVNode("h1",sh,c.toDisplayString(n.ssoLang[n.appLanguage].welcome)+", "+c.toDisplayString(n.account.name),1),c.createElementVNode("p",ch,c.toDisplayString(n.account.email),1),(n.display,c.createCommentVNode("",!0)),c.createElementVNode("div",lh,[c.createCommentVNode("",!0),c.createElementVNode("div",dh,[c.createElementVNode("div",{class:"device",onClick:e[4]||(e[4]=(...a)=>i.toggleAccountSettingsModal&&i.toggleAccountSettingsModal(...a))},[uh,c.createElementVNode("div",ph,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].mfa),1)]),hh]),fh,c.createElementVNode("div",{class:"device",onClick:e[5]||(e[5]=(...a)=>i.toggleLanguageModal&&i.toggleLanguageModal(...a))},[mh,c.createElementVNode("div",gh,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].change_language),1)]),_h]),yh,c.createElementVNode("div",{class:"device",onClick:e[6]||(e[6]=(...a)=>i.logout&&i.logout(...a))},[vh,c.createElementVNode("div",wh,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].logout),1)]),kh]),c.createCommentVNode("",!0)])])])}const Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Qe(oh,[["render",bh],["__scopeId","data-v-99676a71"]])},Symbol.toStringTag,{value:"Module"})),Ch={name:"AuthQR",mixins:[je,Fi]},Th={class:"page-login content-boxed content-boxed-padding"},Sh={style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"130px"}},Ih=c.createElementVNode("br",null,null,-1),Ah={class:"qrCodeLoginContainer center-text"},Rh=c.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1),Nh=c.createElementVNode("br",null,null,-1),Ph=c.createElementVNode("br",null,null,-1),Mh={style:{margin:"0 auto",width:"85%","text-align":"left"}},Oh={class:"center-text"},Lh=c.createElementVNode("br",null,null,-1),xh=c.createElementVNode("br",null,null,-1),zh=c.createElementVNode("br",null,null,-1);function Bh(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",Th,[c.createElementVNode("h5",Sh,c.toDisplayString(n.ssoLang[n.appLanguage].use_tapni_on_the_web),1),Ih,c.createElementVNode("div",Ah,[Rh,Nh,Ph,c.createElementVNode("div",Mh,[c.createElementVNode("h2",Oh,c.toDisplayString(n.ssoLang[n.appLanguage].login_by_scanning_qr_code),1),Lh,c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].open_tapni_app_on_your_phone),1),c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].go_to_settings_link_a_device),1),c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].point_your_phone_at_this_qr_code),1),xh,zh]),c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].choose_other_login_methods),1)]),_:1})])])}const Uh=Object.freeze(Object.defineProperty({__proto__:null,default:Qe(Ch,[["render",Bh]])},Symbol.toStringTag,{value:"Module"}));class Dh extends nt.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.defer=!0,o.async=!0,o.id=e,o.onload=this.platformJsLoaded.bind(this),o.src="https://apis.google.com/js/platform.js",r.appendChild(o)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,r;if(typeof window>"u")return;const o=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||o||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(r=e.grantOfflineAccess)!==null&&r!==void 0?r:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(a=>{window.gapiResolve=a,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var r;try{let o;const i=(r=this.options.grantOfflineAccess)!==null&&r!==void 0?r:!1;i?o=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const a=gapi.auth2.getAuthInstance().currentUser.get();i&&await a.reloadAuthResponse();const s=this.getUserFrom(a);s.serverAuthCode=o,e(s)}catch(o){t(o)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},r=e.getBasicProfile();t.email=r.getEmail(),t.familyName=r.getFamilyName(),t.givenName=r.getGivenName(),t.id=r.getId(),t.imageUrl=r.getImageUrl(),t.name=r.getName();const o=e.getAuthResponse(!0);return t.authentication={accessToken:o.access_token,idToken:o.id_token,refreshToken:""},t}}const jh=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:Dh},Symbol.toStringTag,{value:"Module"}));class Hh extends nt.WebPlugin{async initialize(e){const t={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},t),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const t="fb";if(document.getElementById(t))return Promise.resolve();const o=document.getElementsByTagName("head")[0],i=document.createElement("script");return new Promise(a=>{i.onload=()=>a(),i.defer=!0,i.async=!0,i.id=t,i.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,o.appendChild(i)})}async login(e){return new Promise((t,r)=>{FB.login(o=>{o.status==="connected"?t({accessToken:{token:o.authResponse.accessToken}}):r({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(t=>e(t)))}async getCurrentAccessToken(){return new Promise((e,t)=>{FB.getLoginStatus(r=>{if(r.status==="connected"){const o={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:r.authResponse.accessToken,userId:r.authResponse.userID}};e(o)}else t({accessToken:{token:null}})})})}async getProfile(e){const t=e.fields.join(",");return new Promise((r,o)=>{FB.api("/me",{fields:t},i=>{if(i.error){o(i.error.message);return}r(i)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}const Fh=Object.freeze(Object.defineProperty({__proto__:null,FacebookLoginWeb:Hh},Symbol.toStringTag,{value:"Module"}));var Yi={exports:{}};/*!
|
|
137
|
+
*/(function(n){const e=Sr,t=lo,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=d,n.SlowBuffer=F,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;d.TYPED_ARRAY_SUPPORT=l(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const f=new i(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,i.prototype),Object.setPrototypeOf(f,u),f.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function h(f){if(f>o)throw new RangeError('The value "'+f+'" is invalid for option "size"');const u=new i(f);return Object.setPrototypeOf(u,d.prototype),u}function d(f,u,p){if(typeof f=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(f)}return g(f,u,p)}d.poolSize=8192;function g(f,u,p){if(typeof f=="string")return N(f,u);if(a.isView(f))return D(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(Me(f,a)||f&&Me(f.buffer,a)||typeof s<"u"&&(Me(f,s)||f&&Me(f.buffer,s)))return R(f,u,p);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=f.valueOf&&f.valueOf();if(_!=null&&_!==f)return d.from(_,u,p);const b=T(f);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return d.from(f[Symbol.toPrimitive]("string"),u,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}d.from=function(f,u,p){return g(f,u,p)},Object.setPrototypeOf(d.prototype,i.prototype),Object.setPrototypeOf(d,i);function m(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function y(f,u,p){return m(f),f<=0?h(f):u!==void 0?typeof p=="string"?h(f).fill(u,p):h(f).fill(u):h(f)}d.alloc=function(f,u,p){return y(f,u,p)};function E(f){return m(f),h(f<0?0:z(f)|0)}d.allocUnsafe=function(f){return E(f)},d.allocUnsafeSlow=function(f){return E(f)};function N(f,u){if((typeof u!="string"||u==="")&&(u="utf8"),!d.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=Y(f,u)|0;let _=h(p);const b=_.write(f,u);return b!==p&&(_=_.slice(0,b)),_}function M(f){const u=f.length<0?0:z(f.length)|0,p=h(u);for(let _=0;_<u;_+=1)p[_]=f[_]&255;return p}function D(f){if(Me(f,i)){const u=new i(f);return R(u.buffer,u.byteOffset,u.byteLength)}return M(f)}function R(f,u,p){if(u<0||f.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<u+(p||0))throw new RangeError('"length" is outside of buffer bounds');let _;return u===void 0&&p===void 0?_=new i(f):p===void 0?_=new i(f,u):_=new i(f,u,p),Object.setPrototypeOf(_,d.prototype),_}function T(f){if(d.isBuffer(f)){const u=z(f.length)|0,p=h(u);return p.length===0||f.copy(p,0,0,u),p}if(f.length!==void 0)return typeof f.length!="number"||ct(f.length)?h(0):M(f);if(f.type==="Buffer"&&Array.isArray(f.data))return M(f.data)}function z(f){if(f>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return f|0}function F(f){return+f!=f&&(f=0),d.alloc(+f)}d.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==d.prototype},d.compare=function(u,p){if(Me(u,i)&&(u=d.from(u,u.offset,u.byteLength)),Me(p,i)&&(p=d.from(p,p.offset,p.byteLength)),!d.isBuffer(u)||!d.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let _=u.length,b=p.length;for(let S=0,P=Math.min(_,b);S<P;++S)if(u[S]!==p[S]){_=u[S],b=p[S];break}return _<b?-1:b<_?1:0},d.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return d.alloc(0);let _;if(p===void 0)for(p=0,_=0;_<u.length;++_)p+=u[_].length;const b=d.allocUnsafe(p);let S=0;for(_=0;_<u.length;++_){let P=u[_];if(Me(P,i))S+P.length>b.length?(d.isBuffer(P)||(P=d.from(P)),P.copy(b,S)):i.prototype.set.call(b,P,S);else if(d.isBuffer(P))P.copy(b,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=P.length}return b};function Y(f,u){if(d.isBuffer(f))return f.length;if(a.isView(f)||Me(f,a))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const p=f.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&p===0)return 0;let b=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ft(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Ue(f).length;default:if(b)return _?-1:ft(f).length;u=(""+u).toLowerCase(),b=!0}}d.byteLength=Y;function J(f,u,p){let _=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,u>>>=0,p<=u))return"";for(f||(f="utf8");;)switch(f){case"hex":return nn(this,u,p);case"utf8":case"utf-8":return Ot(this,u,p);case"ascii":return tn(this,u,p);case"latin1":case"binary":return _n(this,u,p);case"base64":return Mt(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xn(this,u,p);default:if(_)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),_=!0}}d.prototype._isBuffer=!0;function $(f,u,p){const _=f[u];f[u]=f[p],f[p]=_}d.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<u;p+=2)$(this,p,p+1);return this},d.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<u;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},d.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<u;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},d.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?Ot(this,0,u):J.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(u){if(!d.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:d.compare(this,u)===0},d.prototype.inspect=function(){let u="";const p=n.INSPECT_MAX_BYTES;return u=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(u+=" ... "),"<Buffer "+u+">"},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(u,p,_,b,S){if(Me(u,i)&&(u=d.from(u,u.offset,u.byteLength)),!d.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(p===void 0&&(p=0),_===void 0&&(_=u?u.length:0),b===void 0&&(b=0),S===void 0&&(S=this.length),p<0||_>u.length||b<0||S>this.length)throw new RangeError("out of range index");if(b>=S&&p>=_)return 0;if(b>=S)return-1;if(p>=_)return 1;if(p>>>=0,_>>>=0,b>>>=0,S>>>=0,this===u)return 0;let P=S-b,oe=_-p;const ye=Math.min(P,oe),_e=this.slice(b,S),ve=u.slice(p,_);for(let fe=0;fe<ye;++fe)if(_e[fe]!==ve[fe]){P=_e[fe],oe=ve[fe];break}return P<oe?-1:oe<P?1:0};function ie(f,u,p,_,b){if(f.length===0)return-1;if(typeof p=="string"?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,ct(p)&&(p=b?0:f.length-1),p<0&&(p=f.length+p),p>=f.length){if(b)return-1;p=f.length-1}else if(p<0)if(b)p=0;else return-1;if(typeof u=="string"&&(u=d.from(u,_)),d.isBuffer(u))return u.length===0?-1:ce(f,u,p,_,b);if(typeof u=="number")return u=u&255,typeof i.prototype.indexOf=="function"?b?i.prototype.indexOf.call(f,u,p):i.prototype.lastIndexOf.call(f,u,p):ce(f,[u],p,_,b);throw new TypeError("val must be string, number or Buffer")}function ce(f,u,p,_,b){let S=1,P=f.length,oe=u.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(f.length<2||u.length<2)return-1;S=2,P/=2,oe/=2,p/=2}function ye(ve,fe){return S===1?ve[fe]:ve.readUInt16BE(fe*S)}let _e;if(b){let ve=-1;for(_e=p;_e<P;_e++)if(ye(f,_e)===ye(u,ve===-1?0:_e-ve)){if(ve===-1&&(ve=_e),_e-ve+1===oe)return ve*S}else ve!==-1&&(_e-=_e-ve),ve=-1}else for(p+oe>P&&(p=P-oe),_e=p;_e>=0;_e--){let ve=!0;for(let fe=0;fe<oe;fe++)if(ye(f,_e+fe)!==ye(u,fe)){ve=!1;break}if(ve)return _e}return-1}d.prototype.includes=function(u,p,_){return this.indexOf(u,p,_)!==-1},d.prototype.indexOf=function(u,p,_){return ie(this,u,p,_,!0)},d.prototype.lastIndexOf=function(u,p,_){return ie(this,u,p,_,!1)};function ge(f,u,p,_){p=Number(p)||0;const b=f.length-p;_?(_=Number(_),_>b&&(_=b)):_=b;const S=u.length;_>S/2&&(_=S/2);let P;for(P=0;P<_;++P){const oe=parseInt(u.substr(P*2,2),16);if(ct(oe))return P;f[p+P]=oe}return P}function Ae(f,u,p,_){return mt(ft(u,f.length-p),f,p,_)}function $t(f,u,p,_){return mt(yn(u),f,p,_)}function Ke(f,u,p,_){return mt(Ue(u),f,p,_)}function en(f,u,p,_){return mt(bt(u,f.length-p),f,p,_)}d.prototype.write=function(u,p,_,b){if(p===void 0)b="utf8",_=this.length,p=0;else if(_===void 0&&typeof p=="string")b=p,_=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(_)?(_=_>>>0,b===void 0&&(b="utf8")):(b=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-p;if((_===void 0||_>S)&&(_=S),u.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let P=!1;for(;;)switch(b){case"hex":return ge(this,u,p,_);case"utf8":case"utf-8":return Ae(this,u,p,_);case"ascii":case"latin1":case"binary":return $t(this,u,p,_);case"base64":return Ke(this,u,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return en(this,u,p,_);default:if(P)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),P=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(f,u,p){return u===0&&p===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(u,p))}function Ot(f,u,p){p=Math.min(f.length,p);const _=[];let b=u;for(;b<p;){const S=f[b];let P=null,oe=S>239?4:S>223?3:S>191?2:1;if(b+oe<=p){let ye,_e,ve,fe;switch(oe){case 1:S<128&&(P=S);break;case 2:ye=f[b+1],(ye&192)===128&&(fe=(S&31)<<6|ye&63,fe>127&&(P=fe));break;case 3:ye=f[b+1],_e=f[b+2],(ye&192)===128&&(_e&192)===128&&(fe=(S&15)<<12|(ye&63)<<6|_e&63,fe>2047&&(fe<55296||fe>57343)&&(P=fe));break;case 4:ye=f[b+1],_e=f[b+2],ve=f[b+3],(ye&192)===128&&(_e&192)===128&&(ve&192)===128&&(fe=(S&15)<<18|(ye&63)<<12|(_e&63)<<6|ve&63,fe>65535&&fe<1114112&&(P=fe))}}P===null?(P=65533,oe=1):P>65535&&(P-=65536,_.push(P>>>10&1023|55296),P=56320|P&1023),_.push(P),b+=oe}return gn(_)}const it=4096;function gn(f){const u=f.length;if(u<=it)return String.fromCharCode.apply(String,f);let p="",_=0;for(;_<u;)p+=String.fromCharCode.apply(String,f.slice(_,_+=it));return p}function tn(f,u,p){let _="";p=Math.min(f.length,p);for(let b=u;b<p;++b)_+=String.fromCharCode(f[b]&127);return _}function _n(f,u,p){let _="";p=Math.min(f.length,p);for(let b=u;b<p;++b)_+=String.fromCharCode(f[b]);return _}function nn(f,u,p){const _=f.length;(!u||u<0)&&(u=0),(!p||p<0||p>_)&&(p=_);let b="";for(let S=u;S<p;++S)b+=vn[f[S]];return b}function xn(f,u,p){const _=f.slice(u,p);let b="";for(let S=0;S<_.length-1;S+=2)b+=String.fromCharCode(_[S]+_[S+1]*256);return b}d.prototype.slice=function(u,p){const _=this.length;u=~~u,p=p===void 0?_:~~p,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),p<0?(p+=_,p<0&&(p=0)):p>_&&(p=_),p<u&&(p=u);const b=this.subarray(u,p);return Object.setPrototypeOf(b,d.prototype),b};function be(f,u,p){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+u>p)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u],S=1,P=0;for(;++P<p&&(S*=256);)b+=this[u+P]*S;return b},d.prototype.readUintBE=d.prototype.readUIntBE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u+--p],S=1;for(;p>0&&(S*=256);)b+=this[u+--p]*S;return b},d.prototype.readUint8=d.prototype.readUInt8=function(u,p){return u=u>>>0,p||be(u,1,this.length),this[u]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(u,p){return u=u>>>0,p||be(u,2,this.length),this[u]|this[u+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(u,p){return u=u>>>0,p||be(u,2,this.length),this[u]<<8|this[u+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(u,p){return u=u>>>0,p||be(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},d.prototype.readBigUInt64LE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=p+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,S=this[++u]+this[++u]*2**8+this[++u]*2**16+_*2**24;return BigInt(b)+(BigInt(S)<<BigInt(32))}),d.prototype.readBigUInt64BE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=p*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],S=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+_;return(BigInt(b)<<BigInt(32))+BigInt(S)}),d.prototype.readIntLE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=this[u],S=1,P=0;for(;++P<p&&(S*=256);)b+=this[u+P]*S;return S*=128,b>=S&&(b-=Math.pow(2,8*p)),b},d.prototype.readIntBE=function(u,p,_){u=u>>>0,p=p>>>0,_||be(u,p,this.length);let b=p,S=1,P=this[u+--b];for(;b>0&&(S*=256);)P+=this[u+--b]*S;return S*=128,P>=S&&(P-=Math.pow(2,8*p)),P},d.prototype.readInt8=function(u,p){return u=u>>>0,p||be(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},d.prototype.readInt16LE=function(u,p){u=u>>>0,p||be(u,2,this.length);const _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},d.prototype.readInt16BE=function(u,p){u=u>>>0,p||be(u,2,this.length);const _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},d.prototype.readInt32LE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},d.prototype.readInt32BE=function(u,p){return u=u>>>0,p||be(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},d.prototype.readBigInt64LE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(_<<24);return(BigInt(b)<<BigInt(32))+BigInt(p+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),d.prototype.readBigInt64BE=De(function(u){u=u>>>0,Se(u,"offset");const p=this[u],_=this[u+7];(p===void 0||_===void 0)&&st(u,this.length-8);const b=(p<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(b)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+_)}),d.prototype.readFloatLE=function(u,p){return u=u>>>0,p||be(u,4,this.length),t.read(this,u,!0,23,4)},d.prototype.readFloatBE=function(u,p){return u=u>>>0,p||be(u,4,this.length),t.read(this,u,!1,23,4)},d.prototype.readDoubleLE=function(u,p){return u=u>>>0,p||be(u,8,this.length),t.read(this,u,!0,52,8)},d.prototype.readDoubleBE=function(u,p){return u=u>>>0,p||be(u,8,this.length),t.read(this,u,!1,52,8)};function Te(f,u,p,_,b,S){if(!d.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>b||u<S)throw new RangeError('"value" argument is out of bounds');if(p+_>f.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(u,p,_,b){if(u=+u,p=p>>>0,_=_>>>0,!b){const oe=Math.pow(2,8*_)-1;Te(this,u,p,_,oe,0)}let S=1,P=0;for(this[p]=u&255;++P<_&&(S*=256);)this[p+P]=u/S&255;return p+_},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(u,p,_,b){if(u=+u,p=p>>>0,_=_>>>0,!b){const oe=Math.pow(2,8*_)-1;Te(this,u,p,_,oe,0)}let S=_-1,P=1;for(this[p+S]=u&255;--S>=0&&(P*=256);)this[p+S]=u/P&255;return p+_},d.prototype.writeUint8=d.prototype.writeUInt8=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,1,255,0),this[p]=u&255,p+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,65535,0),this[p]=u&255,this[p+1]=u>>>8,p+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=u&255,p+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,4294967295,0),this[p+3]=u>>>24,this[p+2]=u>>>16,this[p+1]=u>>>8,this[p]=u&255,p+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,4294967295,0),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=u&255,p+4};function Yt(f,u,p,_,b){Ge(u,_,b,f,p,7);let S=Number(u&BigInt(4294967295));f[p++]=S,S=S>>8,f[p++]=S,S=S>>8,f[p++]=S,S=S>>8,f[p++]=S;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,p}function Be(f,u,p,_,b){Ge(u,_,b,f,p,7);let S=Number(u&BigInt(4294967295));f[p+7]=S,S=S>>8,f[p+6]=S,S=S>>8,f[p+5]=S,S=S>>8,f[p+4]=S;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p+3]=P,P=P>>8,f[p+2]=P,P=P>>8,f[p+1]=P,P=P>>8,f[p]=P,p+8}d.prototype.writeBigUInt64LE=De(function(u,p=0){return Yt(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=De(function(u,p=0){return Be(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(u,p,_,b){if(u=+u,p=p>>>0,!b){const ye=Math.pow(2,8*_-1);Te(this,u,p,_,ye-1,-ye)}let S=0,P=1,oe=0;for(this[p]=u&255;++S<_&&(P*=256);)u<0&&oe===0&&this[p+S-1]!==0&&(oe=1),this[p+S]=(u/P>>0)-oe&255;return p+_},d.prototype.writeIntBE=function(u,p,_,b){if(u=+u,p=p>>>0,!b){const ye=Math.pow(2,8*_-1);Te(this,u,p,_,ye-1,-ye)}let S=_-1,P=1,oe=0;for(this[p+S]=u&255;--S>=0&&(P*=256);)u<0&&oe===0&&this[p+S+1]!==0&&(oe=1),this[p+S]=(u/P>>0)-oe&255;return p+_},d.prototype.writeInt8=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=u&255,p+1},d.prototype.writeInt16LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,32767,-32768),this[p]=u&255,this[p+1]=u>>>8,p+2},d.prototype.writeInt16BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=u&255,p+2},d.prototype.writeInt32LE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,2147483647,-2147483648),this[p]=u&255,this[p+1]=u>>>8,this[p+2]=u>>>16,this[p+3]=u>>>24,p+4},d.prototype.writeInt32BE=function(u,p,_){return u=+u,p=p>>>0,_||Te(this,u,p,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=u&255,p+4},d.prototype.writeBigInt64LE=De(function(u,p=0){return Yt(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=De(function(u,p=0){return Be(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(f,u,p,_,b,S){if(p+_>f.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Lt(f,u,p,_,b){return u=+u,p=p>>>0,b||Pe(f,u,p,4),t.write(f,u,p,_,23,4),p+4}d.prototype.writeFloatLE=function(u,p,_){return Lt(this,u,p,!0,_)},d.prototype.writeFloatBE=function(u,p,_){return Lt(this,u,p,!1,_)};function kt(f,u,p,_,b){return u=+u,p=p>>>0,b||Pe(f,u,p,8),t.write(f,u,p,_,52,8),p+8}d.prototype.writeDoubleLE=function(u,p,_){return kt(this,u,p,!0,_)},d.prototype.writeDoubleBE=function(u,p,_){return kt(this,u,p,!1,_)},d.prototype.copy=function(u,p,_,b){if(!d.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),!b&&b!==0&&(b=this.length),p>=u.length&&(p=u.length),p||(p=0),b>0&&b<_&&(b=_),b===_||u.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),u.length-p<b-_&&(b=u.length-p+_);const S=b-_;return this===u&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,_,b):i.prototype.set.call(u,this.subarray(_,b),p),S},d.prototype.fill=function(u,p,_,b){if(typeof u=="string"){if(typeof p=="string"?(b=p,p=0,_=this.length):typeof _=="string"&&(b=_,_=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!d.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(u.length===1){const P=u.charCodeAt(0);(b==="utf8"&&P<128||b==="latin1")&&(u=P)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;p=p>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);let S;if(typeof u=="number")for(S=p;S<_;++S)this[S]=u;else{const P=d.isBuffer(u)?u:d.from(u,b),oe=P.length;if(oe===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(S=0;S<_-p;++S)this[S+p]=P[S%oe]}return this};const Ye={};function at(f,u,p){Ye[f]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(f,u){return`The "${f}" argument must be of type number. Received type ${typeof u}`},TypeError),at("ERR_OUT_OF_RANGE",function(f,u,p){let _=`The value of "${f}" is out of range.`,b=p;return Number.isInteger(p)&&Math.abs(p)>2**32?b=Wt(String(p)):typeof p=="bigint"&&(b=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(b=Wt(b)),b+="n"),_+=` It must be ${u}. Received ${b}`,_},RangeError);function Wt(f){let u="",p=f.length;const _=f[0]==="-"?1:0;for(;p>=_+4;p-=3)u=`_${f.slice(p-3,p)}${u}`;return`${f.slice(0,p)}${u}`}function xt(f,u,p){Se(u,"offset"),(f[u]===void 0||f[u+p]===void 0)&&st(u,f.length-(p+1))}function Ge(f,u,p,_,b,S){if(f>p||f<u){const P=typeof u=="bigint"?"n":"";let oe;throw S>3?u===0||u===BigInt(0)?oe=`>= 0${P} and < 2${P} ** ${(S+1)*8}${P}`:oe=`>= -(2${P} ** ${(S+1)*8-1}${P}) and < 2 ** ${(S+1)*8-1}${P}`:oe=`>= ${u}${P} and <= ${p}${P}`,new Ye.ERR_OUT_OF_RANGE("value",oe,f)}xt(_,b,S)}function Se(f,u){if(typeof f!="number")throw new Ye.ERR_INVALID_ARG_TYPE(u,"number",f)}function st(f,u,p){throw Math.floor(f)!==f?(Se(f,p),new Ye.ERR_OUT_OF_RANGE(p||"offset","an integer",f)):u<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,f)}const zt=/[^+/0-9A-Za-z-_]/g;function Bt(f){if(f=f.split("=")[0],f=f.trim().replace(zt,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function ft(f,u){u=u||1/0;let p;const _=f.length;let b=null;const S=[];for(let P=0;P<_;++P){if(p=f.charCodeAt(P),p>55295&&p<57344){if(!b){if(p>56319){(u-=3)>-1&&S.push(239,191,189);continue}else if(P+1===_){(u-=3)>-1&&S.push(239,191,189);continue}b=p;continue}if(p<56320){(u-=3)>-1&&S.push(239,191,189),b=p;continue}p=(b-55296<<10|p-56320)+65536}else b&&(u-=3)>-1&&S.push(239,191,189);if(b=null,p<128){if((u-=1)<0)break;S.push(p)}else if(p<2048){if((u-=2)<0)break;S.push(p>>6|192,p&63|128)}else if(p<65536){if((u-=3)<0)break;S.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((u-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return S}function yn(f){const u=[];for(let p=0;p<f.length;++p)u.push(f.charCodeAt(p)&255);return u}function bt(f,u){let p,_,b;const S=[];for(let P=0;P<f.length&&!((u-=2)<0);++P)p=f.charCodeAt(P),_=p>>8,b=p%256,S.push(b),S.push(_);return S}function Ue(f){return e.toByteArray(Bt(f))}function mt(f,u,p,_){let b;for(b=0;b<_&&!(b+p>=u.length||b>=f.length);++b)u[b+p]=f[b];return b}function Me(f,u){return f instanceof u||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===u.name}function ct(f){return f!==f}const vn=function(){const f="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const _=p*16;for(let b=0;b<16;++b)u[_+b]=f[p]+f[b]}return u}();function De(f){return typeof BigInt>"u"?Ut:f}function Ut(){throw new Error("BigInt not supported")}})(Bi);const mn=Bi.Buffer;var Di={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(window,function(){return function(t){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=t,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,(function(h){return i[h]}).bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=12)}([function(t,r,o){var i;t.exports=(i=i||function(a,s){var l=Object.create||function(){function T(){}return function(z){var F;return T.prototype=z,F=new T,T.prototype=null,F}}(),h={},d=h.lib={},g=d.Base={extend:function(T){var z=l(this);return T&&z.mixIn(T),z.hasOwnProperty("init")&&this.init!==z.init||(z.init=function(){z.$super.init.apply(this,arguments)}),z.init.prototype=z,z.$super=this,z},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var z in T)T.hasOwnProperty(z)&&(this[z]=T[z]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}},m=d.WordArray=g.extend({init:function(T,z){T=this.words=T||[],this.sigBytes=z??4*T.length},toString:function(T){return(T||E).stringify(this)},concat:function(T){var z=this.words,F=T.words,Y=this.sigBytes,J=T.sigBytes;if(this.clamp(),Y%4)for(var $=0;$<J;$++){var ie=F[$>>>2]>>>24-$%4*8&255;z[Y+$>>>2]|=ie<<24-(Y+$)%4*8}else for($=0;$<J;$+=4)z[Y+$>>>2]=F[$>>>2];return this.sigBytes+=J,this},clamp:function(){var T=this.words,z=this.sigBytes;T[z>>>2]&=4294967295<<32-z%4*8,T.length=a.ceil(z/4)},clone:function(){var T=g.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var z,F=[],Y=function(ie){ie=ie;var ce=987654321,ge=4294967295;return function(){var Ae=((ce=36969*(65535&ce)+(ce>>16)&ge)<<16)+(ie=18e3*(65535&ie)+(ie>>16)&ge)≥return Ae/=4294967296,(Ae+=.5)*(a.random()>.5?1:-1)}},J=0;J<T;J+=4){var $=Y(4294967296*(z||a.random()));z=987654071*$(),F.push(4294967296*$()|0)}return new m.init(F,T)}}),y=h.enc={},E=y.Hex={stringify:function(T){for(var z=T.words,F=T.sigBytes,Y=[],J=0;J<F;J++){var $=z[J>>>2]>>>24-J%4*8&255;Y.push(($>>>4).toString(16)),Y.push((15&$).toString(16))}return Y.join("")},parse:function(T){for(var z=T.length,F=[],Y=0;Y<z;Y+=2)F[Y>>>3]|=parseInt(T.substr(Y,2),16)<<24-Y%8*4;return new m.init(F,z/2)}},N=y.Latin1={stringify:function(T){for(var z=T.words,F=T.sigBytes,Y=[],J=0;J<F;J++){var $=z[J>>>2]>>>24-J%4*8&255;Y.push(String.fromCharCode($))}return Y.join("")},parse:function(T){for(var z=T.length,F=[],Y=0;Y<z;Y++)F[Y>>>2]|=(255&T.charCodeAt(Y))<<24-Y%4*8;return new m.init(F,z)}},M=y.Utf8={stringify:function(T){try{return decodeURIComponent(escape(N.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return N.parse(unescape(encodeURIComponent(T)))}},D=d.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=M.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var z=this._data,F=z.words,Y=z.sigBytes,J=this.blockSize,$=Y/(4*J),ie=($=T?a.ceil($):a.max((0|$)-this._minBufferSize,0))*J,ce=a.min(4*ie,Y);if(ie){for(var ge=0;ge<ie;ge+=J)this._doProcessBlock(F,ge);var Ae=F.splice(0,ie);z.sigBytes-=ce}return new m.init(Ae,ce)},clone:function(){var T=g.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0}),R=(d.Hasher=D.extend({cfg:g.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){D.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){return T&&this._append(T),this._doFinalize()},blockSize:16,_createHelper:function(T){return function(z,F){return new T.init(F).finalize(z)}},_createHmacHelper:function(T){return function(z,F){return new R.HMAC.init(T,F).finalize(z)}}}),h.algo={});return h}(Math),i)},function(t,r,o){var i,a,s,l;t.exports=(i=o(0),s=(a=i).lib.Base,l=a.enc.Utf8,void(a.algo.HMAC=s.extend({init:function(h,d){h=this._hasher=new h.init,typeof d=="string"&&(d=l.parse(d));var g=h.blockSize,m=4*g;d.sigBytes>m&&(d=h.finalize(d)),d.clamp();for(var y=this._oKey=d.clone(),E=this._iKey=d.clone(),N=y.words,M=E.words,D=0;D<g;D++)N[D]^=1549556828,M[D]^=909522486;y.sigBytes=E.sigBytes=m,this.reset()},reset:function(){var h=this._hasher;h.reset(),h.update(this._iKey)},update:function(h){return this._hasher.update(h),this},finalize:function(h){var d=this._hasher,g=d.finalize(h);return d.reset(),d.finalize(this._oKey.clone().concat(g))}})))},function(t,r,o){var i;t.exports=(i=o(0),i.enc.Hex)},function(t,r,o){var i,a,s,l,h,d;t.exports=(d=o(0),a=(i=d).lib,s=a.Base,l=a.WordArray,(h=i.x64={}).Word=s.extend({init:function(g,m){this.high=g,this.low=m}}),h.WordArray=s.extend({init:function(g,m){g=this.words=g||[],this.sigBytes=m??8*g.length},toX32:function(){for(var g=this.words,m=g.length,y=[],E=0;E<m;E++){var N=g[E];y.push(N.high),y.push(N.low)}return l.create(y,this.sigBytes)},clone:function(){for(var g=s.clone.call(this),m=g.words=this.words.slice(0),y=m.length,E=0;E<y;E++)m[E]=m[E].clone();return g}}),d)},function(t,r,o){var i;t.exports=(i=o(0),o(9),o(1),i.HmacSHA1)},function(t,r,o){var i;t.exports=(i=o(0),o(10),o(1),i.HmacSHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),o(11),o(1),i.HmacSHA512)},function(t,r){function o(i,a){var s=i.indexOf(a);if(s===-1)throw new Error("Invalid character found: "+a);return s}t.exports=function(i,a){var s;switch(a){case"RFC3548":case"RFC4648":s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",i=i.replace(/=+$/,"");break;case"RFC4648-HEX":s="0123456789ABCDEFGHIJKLMNOPQRSTUV",i=i.replace(/=+$/,"");break;case"Crockford":s="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=i.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1");break;default:throw new Error("Unknown base32 variant: "+a)}for(var l=i.length,h=0,d=0,g=0,m=new Uint8Array(5*l/8|0),y=0;y<l;y++)d=d<<5|o(s,i[y]),(h+=5)>=8&&(m[g++]=d>>>h-8&255,h-=8);return m.buffer}},function(t,r){t.exports=function(o,i,a){var s,l;switch(a=a||{},i){case"RFC3548":case"RFC4648":s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",l=!0;break;case"RFC4648-HEX":s="0123456789ABCDEFGHIJKLMNOPQRSTUV",l=!0;break;case"Crockford":s="0123456789ABCDEFGHJKMNPQRSTVWXYZ",l=!1;break;default:throw new Error("Unknown base32 variant: "+i)}for(var h=a.padding!==void 0?a.padding:l,d=o.byteLength,g=new Uint8Array(o),m=0,y=0,E="",N=0;N<d;N++)for(y=y<<8|g[N],m+=8;m>=5;)E+=s[y>>>m-5&31],m-=5;if(m>0&&(E+=s[y<<5-m&31]),h)for(;E.length%8!=0;)E+="=";return E}},function(t,r,o){var i,a,s,l,h,d,g,m;t.exports=(m=o(0),a=(i=m).lib,s=a.WordArray,l=a.Hasher,h=i.algo,d=[],g=h.SHA1=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,E){for(var N=this._hash.words,M=N[0],D=N[1],R=N[2],T=N[3],z=N[4],F=0;F<80;F++){if(F<16)d[F]=0|y[E+F];else{var Y=d[F-3]^d[F-8]^d[F-14]^d[F-16];d[F]=Y<<1|Y>>>31}var J=(M<<5|M>>>27)+z+d[F];J+=F<20?1518500249+(D&R|~D&T):F<40?1859775393+(D^R^T):F<60?(D&R|D&T|R&T)-1894007588:(D^R^T)-899497514,z=T,T=R,R=D<<30|D>>>2,D=M,M=J}N[0]=N[0]+M|0,N[1]=N[1]+D|0,N[2]=N[2]+R|0,N[3]=N[3]+T|0,N[4]=N[4]+z|0},_doFinalize:function(){var y=this._data,E=y.words,N=8*this._nDataBytes,M=8*y.sigBytes;return E[M>>>5]|=128<<24-M%32,E[14+(M+64>>>9<<4)]=Math.floor(N/4294967296),E[15+(M+64>>>9<<4)]=N,y.sigBytes=4*E.length,this._process(),this._hash},clone:function(){var y=l.clone.call(this);return y._hash=this._hash.clone(),y}}),i.SHA1=l._createHelper(g),i.HmacSHA1=l._createHmacHelper(g),m.SHA1)},function(t,r,o){var i;t.exports=(i=o(0),function(a){var s=i,l=s.lib,h=l.WordArray,d=l.Hasher,g=s.algo,m=[],y=[];(function(){function M(z){for(var F=a.sqrt(z),Y=2;Y<=F;Y++)if(!(z%Y))return!1;return!0}function D(z){return 4294967296*(z-(0|z))|0}for(var R=2,T=0;T<64;)M(R)&&(T<8&&(m[T]=D(a.pow(R,.5))),y[T]=D(a.pow(R,1/3)),T++),R++})();var E=[],N=g.SHA256=d.extend({_doReset:function(){this._hash=new h.init(m.slice(0))},_doProcessBlock:function(M,D){for(var R=this._hash.words,T=R[0],z=R[1],F=R[2],Y=R[3],J=R[4],$=R[5],ie=R[6],ce=R[7],ge=0;ge<64;ge++){if(ge<16)E[ge]=0|M[D+ge];else{var Ae=E[ge-15],$t=(Ae<<25|Ae>>>7)^(Ae<<14|Ae>>>18)^Ae>>>3,Ke=E[ge-2],en=(Ke<<15|Ke>>>17)^(Ke<<13|Ke>>>19)^Ke>>>10;E[ge]=$t+E[ge-7]+en+E[ge-16]}var Mt=T&z^T&F^z&F,Ot=(T<<30|T>>>2)^(T<<19|T>>>13)^(T<<10|T>>>22),it=ce+((J<<26|J>>>6)^(J<<21|J>>>11)^(J<<7|J>>>25))+(J&$^~J&ie)+y[ge]+E[ge];ce=ie,ie=$,$=J,J=Y+it|0,Y=F,F=z,z=T,T=it+(Ot+Mt)|0}R[0]=R[0]+T|0,R[1]=R[1]+z|0,R[2]=R[2]+F|0,R[3]=R[3]+Y|0,R[4]=R[4]+J|0,R[5]=R[5]+$|0,R[6]=R[6]+ie|0,R[7]=R[7]+ce|0},_doFinalize:function(){var M=this._data,D=M.words,R=8*this._nDataBytes,T=8*M.sigBytes;return D[T>>>5]|=128<<24-T%32,D[14+(T+64>>>9<<4)]=a.floor(R/4294967296),D[15+(T+64>>>9<<4)]=R,M.sigBytes=4*D.length,this._process(),this._hash},clone:function(){var M=d.clone.call(this);return M._hash=this._hash.clone(),M}});s.SHA256=d._createHelper(N),s.HmacSHA256=d._createHmacHelper(N)}(Math),i.SHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),function(){var a=i,s=a.lib.Hasher,l=a.x64,h=l.Word,d=l.WordArray,g=a.algo;function m(){return h.create.apply(h,arguments)}var y=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],E=[];(function(){for(var M=0;M<80;M++)E[M]=m()})();var N=g.SHA512=s.extend({_doReset:function(){this._hash=new d.init([new h.init(1779033703,4089235720),new h.init(3144134277,2227873595),new h.init(1013904242,4271175723),new h.init(2773480762,1595750129),new h.init(1359893119,2917565137),new h.init(2600822924,725511199),new h.init(528734635,4215389547),new h.init(1541459225,327033209)])},_doProcessBlock:function(M,D){for(var R=this._hash.words,T=R[0],z=R[1],F=R[2],Y=R[3],J=R[4],$=R[5],ie=R[6],ce=R[7],ge=T.high,Ae=T.low,$t=z.high,Ke=z.low,en=F.high,Mt=F.low,Ot=Y.high,it=Y.low,gn=J.high,tn=J.low,_n=$.high,nn=$.low,xn=ie.high,be=ie.low,Te=ce.high,Yt=ce.low,Be=ge,Pe=Ae,Lt=$t,kt=Ke,Ye=en,at=Mt,Wt=Ot,xt=it,Ge=gn,Se=tn,st=_n,zt=nn,Bt=xn,ft=be,yn=Te,bt=Yt,Ue=0;Ue<80;Ue++){var mt=E[Ue];if(Ue<16)var Me=mt.high=0|M[D+2*Ue],ct=mt.low=0|M[D+2*Ue+1];else{var vn=E[Ue-15],De=vn.high,Ut=vn.low,f=(De>>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t,z.high=$t+Lt+(Ke>>>0<kt>>>0?1:0),Mt=F.low=Mt+at,F.high=en+Ye+(Mt>>>0<at>>>0?1:0),it=Y.low=it+xt,Y.high=Ot+Wt+(it>>>0<xt>>>0?1:0),tn=J.low=tn+Se,J.high=gn+Ge+(tn>>>0<Se>>>0?1:0),nn=$.low=nn+zt,$.high=_n+st+(nn>>>0<zt>>>0?1:0),be=ie.low=be+ft,ie.high=xn+Bt+(be>>>0<ft>>>0?1:0),Yt=ce.low=Yt+bt,ce.high=Te+yn+(Yt>>>0<bt>>>0?1:0)},_doFinalize:function(){var M=this._data,D=M.words,R=8*this._nDataBytes,T=8*M.sigBytes;return D[T>>>5]|=128<<24-T%32,D[30+(T+128>>>10<<5)]=Math.floor(R/4294967296),D[31+(T+128>>>10<<5)]=R,M.sigBytes=4*D.length,this._process(),this._hash.toX32()},clone:function(){var M=s.clone.call(this);return M._hash=this._hash.clone(),M},blockSize:32});a.SHA512=s._createHelper(N),a.HmacSHA512=s._createHmacHelper(N)}(),i.SHA512)},function(t,r,o){o.r(r);var i,a=o(0),s=o.n(a),l=o(4),h=o.n(l),d=o(5),g=o.n(d),m=o(6),y=o.n(m),E=o(2),N=o.n(E);function M(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function D(v){for(var w=1;w<arguments.length;w++){var C=arguments[w]!=null?arguments[w]:{};w%2?M(Object(C),!0).forEach(function(I){R(v,I,C[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):M(Object(C)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(C,I))})}return v}function R(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function T(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function z(v){return Object.keys(v).map(function(w){return v[w]})}(function(v){v.SHA1="sha1",v.SHA256="sha256",v.SHA512="sha512"})(i||(i={}));var F,Y=z(i);(function(v){v.ASCII="ascii",v.BASE64="base64",v.HEX="hex",v.LATIN1="latin1",v.UTF8="utf8"})(F||(F={}));var J,$=z(F);(function(v){v.HOTP="hotp",v.TOTP="totp"})(J||(J={}));var ie=z(J),ce=function(){throw new Error("Please provide an options.createDigest implementation.")};function ge(v){return/^(\d+)$/.test(v)}function Ae(v,w,C){if(v.length>=w)return v;var I=Array(w+1).join(C);return"".concat(I).concat(v).slice(-1*w)}function $t(v){var w="otpauth://".concat(v.type,"/{labelPrefix}:{accountName}?secret={secret}{query}"),C=[];if(ie.indexOf(v.type)<0)throw new Error("Expecting options.type to be one of ".concat(ie.join(", "),". Received ").concat(v.type,"."));if(v.type==="hotp"){if(v.counter==null||typeof v.counter!="number")throw new Error('Expecting options.counter to be a number when options.type is "hotp".');C.push("&counter=".concat(v.counter))}return v.type==="totp"&&v.step&&C.push("&period=".concat(v.step)),v.digits&&C.push("&digits=".concat(v.digits)),v.algorithm&&C.push("&algorithm=".concat(v.algorithm.toUpperCase())),v.issuer&&C.push("&issuer=".concat(encodeURIComponent(v.issuer))),w.replace("{labelPrefix}",encodeURIComponent(v.issuer||v.accountName)).replace("{accountName}",encodeURIComponent(v.accountName)).replace("{secret}",v.secret).replace("{query}",C.join(""))}function Ke(v){return(Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function en(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function Mt(v,w){return!w||Ke(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function Ot(v){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function it(v,w){return(it=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function gn(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function tn(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function _n(v){if(typeof v.createDigest!="function")throw new Error("Expecting options.createDigest to be a function.");if(typeof v.createHmacKey!="function")throw new Error("Expecting options.createHmacKey to be a function.");if(typeof v.digits!="number")throw new Error("Expecting options.digits to be a number.");if(!v.algorithm||Y.indexOf(v.algorithm)<0)throw new Error("Expecting options.algorithm to be one of ".concat(Y.join(", "),". Received ").concat(v.algorithm,"."));if(!v.encoding||$.indexOf(v.encoding)<0)throw new Error("Expecting options.encoding to be one of ".concat($.join(", "),". Received ").concat(v.encoding,"."))}var nn=function(v,w,C){return mn.from(w,C).toString("hex")};function xn(v){var w=function(C){for(var I=1;I<arguments.length;I++){var O=arguments[I]!=null?arguments[I]:{};I%2?gn(Object(O),!0).forEach(function(j){tn(C,j,O[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):gn(Object(O)).forEach(function(j){Object.defineProperty(C,j,Object.getOwnPropertyDescriptor(O,j))})}return C}({},{algorithm:i.SHA1,createHmacKey:nn,createDigest:ce,digits:6,encoding:F.ASCII},{},v);return _n(w),Object.freeze(w)}function be(v,w,C){var I=function(j){return Ae(j.toString(16),16,"0")}(w),O=C.createHmacKey(C.algorithm,v,C.encoding);return C.createDigest(C.algorithm,O,I)}function Te(v,w,C){return function(I,O){var j=mn.from(I,"hex"),de=15&j[j.length-1],tt=((127&j[de])<<24|(255&j[de+1])<<16|(255&j[de+2])<<8|255&j[de+3])%Math.pow(10,O);return Ae(String(tt),O,"0")}(C.digest||be(v,w,C),C.digits)}function Yt(v,w,C,I,O){return $t({algorithm:O.algorithm,digits:O.digits,type:J.HOTP,accountName:v,counter:I,issuer:w,secret:C})}var Be=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),Mt(this,Ot(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&it(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return xn(this.options)}},{key:"generate",value:function(O,j){return Te(O,j,this.allOptions())}},{key:"check",value:function(O,j,de){return function(tt,Dt,rn,bo){return!!ge(tt)&&tt===Te(Dt,rn,bo)}(O,j,de,this.allOptions())}},{key:"verify",value:function(O){if(Ke(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret,O.counter)}},{key:"keyuri",value:function(O,j,de,tt){return Yt(O,j,de,tt,this.allOptions())}}])&&en(C.prototype,I),w}(function(){function v(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")})(this,v),this._defaultOptions=Object.freeze(D({},I)),this._options=Object.freeze({})}var w,C;return w=v,(C=[{key:"create",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new v(I)}},{key:"clone",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=this.create(D({},this._defaultOptions,{},I));return O.options=this._options,O}},{key:"allOptions",value:function(){return this.options}},{key:"resetOptions",value:function(){this._options=Object.freeze({})}},{key:"options",get:function(){return Object.freeze(D({},this._defaultOptions,{},this._options))},set:function(I){this._options=Object.freeze(D({},this._options,{},I))}}])&&T(w.prototype,C),v}());function Pe(v){return(Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function Lt(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function kt(v,w){return!w||Pe(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function Ye(v){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function at(v,w){return(at=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function Wt(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function xt(v){for(var w=1;w<arguments.length;w++){var C=arguments[w]!=null?arguments[w]:{};w%2?Wt(Object(C),!0).forEach(function(I){Ge(v,I,C[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(C)):Wt(Object(C)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(C,I))})}return v}function Ge(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function Se(v,w){return function(C){if(Array.isArray(C))return C}(v)||function(C,I){if(Symbol.iterator in Object(C)||Object.prototype.toString.call(C)==="[object Arguments]"){var O=[],j=!0,de=!1,tt=void 0;try{for(var Dt,rn=C[Symbol.iterator]();!(j=(Dt=rn.next()).done)&&(O.push(Dt.value),!I||O.length!==I);j=!0);}catch(bo){de=!0,tt=bo}finally{try{j||rn.return==null||rn.return()}finally{if(de)throw tt}}return O}}(v,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function st(v){if(typeof v=="number")return[Math.abs(v),Math.abs(v)];if(Array.isArray(v)){var w=Se(v,2),C=w[0],I=w[1];if(typeof C=="number"&&typeof I=="number")return[Math.abs(C),Math.abs(I)]}throw new Error("Expecting options.window to be an number or [number, number].")}function zt(v){if(_n(v),st(v.window),typeof v.epoch!="number")throw new Error("Expecting options.epoch to be a number.");if(typeof v.step!="number")throw new Error("Expecting options.step to be a number.")}var Bt=function(v,w,C){var I=v.length,O=mn.from(v,w).toString("hex");if(I<C){var j=new Array(C-I+1).join(O);return mn.from(j,"hex").slice(0,C).toString("hex")}return O},ft=function(v,w,C){switch(v){case i.SHA1:return Bt(w,C,20);case i.SHA256:return Bt(w,C,32);case i.SHA512:return Bt(w,C,64);default:throw new Error("Expecting algorithm to be one of ".concat(Y.join(", "),". Received ").concat(v,"."))}};function yn(v){var w=xt({},{algorithm:i.SHA1,createDigest:ce,createHmacKey:ft,digits:6,encoding:F.ASCII,epoch:Date.now(),step:30,window:0},{},v);return zt(w),Object.freeze(w)}function bt(v,w){var C,I;return Te(v,(C=w.epoch,I=w.step,Math.floor(C/I/1e3)),w)}function Ue(v,w,C,I){var O=[];if(I===0)return O;for(var j=1;j<=I;j++){var de=w*j*C;O.push(v+de)}return O}function mt(v,w,C){return!!ge(v)&&v===bt(w,C)}function Me(v,w,C,I){var O=null;return v.some(function(j,de){return!!mt(w,C,xt({},I,{epoch:j}))&&(O=de+1,!0)}),O}function ct(v,w,C){if(mt(v,w,C))return 0;var I,O,j,de,tt,Dt=(I=C.epoch,O=C.step,j=C.window,de=st(j),{current:I,past:Ue(I,-1,tt=1e3*O,de[0]),future:Ue(I,1,tt,de[1])}),rn=Me(Dt.past,v,w,C);return rn!==null?-1*rn:Me(Dt.future,v,w,C)}function vn(v,w){return Math.floor(v/1e3)%w}function De(v,w,C,I){return $t({algorithm:I.algorithm,digits:I.digits,step:I.step,type:J.TOTP,accountName:v,issuer:w,secret:C})}var Ut=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),kt(this,Ye(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&at(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return yn(this.options)}},{key:"generate",value:function(O){return bt(O,this.allOptions())}},{key:"checkDelta",value:function(O,j){return ct(O,j,this.allOptions())}},{key:"check",value:function(O,j){return typeof this.checkDelta(O,j)=="number"}},{key:"verify",value:function(O){if(Pe(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret)}},{key:"timeRemaining",value:function(){var O,j,de=this.allOptions();return O=de.epoch,(j=de.step)-vn(O,j)}},{key:"timeUsed",value:function(){var O=this.allOptions();return vn(O.epoch,O.step)}},{key:"keyuri",value:function(O,j,de){return De(O,j,de,this.allOptions())}}])&&Lt(C.prototype,I),w}(Be);function f(v){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}function u(v,w){for(var C=0;C<w.length;C++){var I=w[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(v,I.key,I)}}function p(v,w){return!w||f(w)!=="object"&&typeof w!="function"?function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(v):w}function _(v){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(v)}function b(v,w){return(b=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C})(v,w)}function S(v,w){var C=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);w&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),C.push.apply(C,I)}return C}function P(v,w,C){return w in v?Object.defineProperty(v,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[w]=C,v}function oe(v){var w=function(C){for(var I=1;I<arguments.length;I++){var O=arguments[I]!=null?arguments[I]:{};I%2?S(Object(O),!0).forEach(function(j){P(C,j,O[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):S(Object(O)).forEach(function(j){Object.defineProperty(C,j,Object.getOwnPropertyDescriptor(O,j))})}return C}({},{algorithm:i.SHA1,createDigest:ce,createHmacKey:ft,digits:6,encoding:F.HEX,epoch:Date.now(),step:30,window:0},{},v);return function(C){if(zt(C),typeof C.keyDecoder!="function")throw new Error("Expecting options.keyDecoder to be a function.");if(C.keyEncoder&&typeof C.keyEncoder!="function")throw new Error("Expecting options.keyEncoder to be a function.")}(w),Object.freeze(w)}function ye(v,w){return w.keyEncoder(v,w.encoding)}function _e(v,w){return w.keyDecoder(v,w.encoding)}function ve(v,w){return ye(w.createRandomBytes(v,w.encoding),w)}var fe=function(v){function w(){return function(O,j){if(!(O instanceof j))throw new TypeError("Cannot call a class as a function")}(this,w),p(this,_(w).apply(this,arguments))}var C,I;return function(O,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),j&&b(O,j)}(w,v),C=w,(I=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new w(O)}},{key:"allOptions",value:function(){return oe(this.options)}},{key:"generate",value:function(O){return function(j,de){return bt(_e(j,de),de)}(O,this.allOptions())}},{key:"checkDelta",value:function(O,j){return function(de,tt,Dt){return ct(de,_e(tt,Dt),Dt)}(O,j,this.allOptions())}},{key:"encode",value:function(O){return ye(O,this.allOptions())}},{key:"decode",value:function(O){return _e(O,this.allOptions())}},{key:"generateSecret",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;return ve(O,this.allOptions())}}])&&u(C.prototype,I),w}(Ut),Ar=s.a.lib.WordArray,Et=function(v,w,C){var I=function(de){switch(de){case i.SHA1:return h.a;case i.SHA256:return g.a;case i.SHA512:return y.a;default:throw new Error("Expecting argument 0 to be one of ".concat(Y.join(", "),". Received ").concat(de,"."))}}(v),O=N.a.parse(C),j=N.a.parse(w);return String(I(O,j))},_o=o(7),Rr=o.n(_o),yo=o(8),vo=o.n(yo);function Nr(v){return(Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(v)}o.d(r,"hotp",function(){return Pr}),o.d(r,"totp",function(){return wo}),o.d(r,"authenticator",function(){return ko}),(typeof window>"u"?"undefined":Nr(window))==="object"&&window.Buffer===void 0&&(window.Buffer=buffer.Buffer);var Pr=new Be({createDigest:Et}),wo=new Ut({createDigest:Et}),ko=new fe({createDigest:Et,createRandomBytes:function(v,w){var C=Ar.random(v);return mn.from(C.toString(),"hex").toString(w)},keyDecoder:function(v,w){var C=Rr()(v.toUpperCase(),"RFC4648");return mn.from(C).toString(w)},keyEncoder:function(v,w){return vo()(mn.from(v,w),"RFC4648",{padding:!1})}})}])})})(Di);var ji=Di.exports;const Hi={data(){return{otpToken:null,otpSecret:null,mfaEnable:!1,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null,loading:!1}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{promptMFA(){return!1}},async mounted(){this.$route.name==="AuthMFA"&&(await this.getAccountSettings(),this.generateOTPQrCode()),q.$on("otpSubmitted",this.otpSubmitted)},methods:{otpSubmitted(n){this.otpToken=n,this.submit()},generateOTPQrCode(){const n=this.account.email;if(this.account.mfaEnabled)this.mfaEnable=!0;else{const e="Tapni",t=ji.authenticator.generateSecret();this.otpSecret=t;const r=ji.authenticator.keyuri(n,e,t);new Co({width:200,height:200,data:r}).append(document.getElementById("qrCodeContainer"))}},async cancelMFA(){q.$emit("ssoEvent",{name:"mfaCancel",data:!0})},async validateMFA(){q.$emit("toggleOTPModal",!0)}}},Fi={data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{displayQRLogin(){return this.$route.name==="AuthLogin"&&this.display!=="npm"}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await c.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const r=new Uint32Array(32);return window.crypto.getRandomValues(r),r.forEach(o=>{t+=n.charAt(o%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new Co({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[n,e]=await ue(Fr.qrCodePooling({qrToken:this.qrCodeHash},this.$storex));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await c.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}},yc={name:"AuthLogin",mixins:[ri,oi,ii,Er,Cr,Tr,je,Fi,Hi],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){return this.emailLogin},displayResetPasswordLogin(){return!0},displayRegisterLogin(){return!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.$route.query.qrLogin&&this.changeLoginToQr(),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)}},methods:{async submit(){if(console.log("oy"),this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password,otpToken:this.otpToken};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,r]=await ue(this.login(e));t&&console.error(t),this.submitted=!1,r===!0&&(this.emailOrUsername="",this.password="")},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storex.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},vc=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],wc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},kc=c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),bc={key:1},Ec={class:"page-login-field half-top"},Cc=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Tc=["placeholder"],Sc=c.createElementVNode("em",null,null,-1),Ic={class:"page-login-field half-bottom"},Ac=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Rc=["type","placeholder"],Nc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Pc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Mc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Oc={key:0},Lc={key:1,class:"button--loading button__loader"},xc=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),zc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Bc={key:0},Uc={key:1,class:"button--loading-black button__loader"},Dc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),jc={key:0},Hc={key:1,class:"button--loading-black button__loader"},Fc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),qc={key:0},Vc={key:1,class:"button--loading-black button__loader"},Kc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Gc={key:0},Qc={key:1,class:"button--loading-black button__loader"},$c=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Yc={key:0},Wc={key:1,class:"button--loading-black button__loader"},Jc=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Xc={key:0},Zc={key:1,class:"button--loading-black button__loader"},el=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),tl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/qr.png",style:{position:"absolute","margin-left":"-5px",padding:"15px 0",height:"100%"}},null,-1),nl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),rl={class:"close-text center-text half-top color-black"},ol=c.createElementVNode("br",null,null,-1),il={class:"",href:"https://tapni.com/policies/terms-of-service"},al={href:"https://tapni.com/policies/privacy-policy"},sl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),cl={key:10,class:"page-login-links"},ll=c.createElementVNode("div",{class:"clear"},null,-1),dl={class:"forgot center-text pointer small-top"},ul=c.createElementVNode("br",null,null,-1),pl=c.createElementVNode("div",{class:"clear"},null,-1);function hl(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[14]||(e[14]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},vc)):c.createCommentVNode("",!0),c.createElementVNode("h1",wc,c.toDisplayString(this.ssoLang[this.appLanguage].login),1),kc,i.displayFormLogin?(c.openBlock(),c.createElementBlock("span",bc,[c.createElementVNode("div",Ec,[Cc,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.emailOrUsername=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:n.ssoLang[this.appLanguage].email_username,required:""},null,40,Tc),[[c.vModelText,o.emailOrUsername]]),Sc]),c.createElementVNode("div",Ic,[Ac,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Rc),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",Nc,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Pc,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",Mc,[o.submitted?(c.openBlock(),c.createElementBlock("span",Lc)):(c.openBlock(),c.createElementBlock("span",Oc,c.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):c.createCommentVNode("",!0),xc,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[5]||(e[5]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[zc,n.appleLoad?(c.openBlock(),c.createElementBlock("span",Uc)):(c.openBlock(),c.createElementBlock("span",Bc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):c.createCommentVNode("",!0),n.displayGoogleLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[6]||(e[6]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Dc,n.googleLoad?(c.openBlock(),c.createElementBlock("span",Hc)):(c.openBlock(),c.createElementBlock("span",jc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):c.createCommentVNode("",!0),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[7]||(e[7]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fc,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",Vc)):(c.openBlock(),c.createElementBlock("span",qc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Facebook",1))])):c.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:5,onClick:e[8]||(e[8]=(...s)=>n.microsoftLogin&&n.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[Kc,n.microsoftLoad?(c.openBlock(),c.createElementBlock("span",Qc)):(c.openBlock(),c.createElementBlock("span",Gc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:6,onClick:e[9]||(e[9]=(...s)=>n.ssoLogin&&n.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[$c,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Wc)):(c.openBlock(),c.createElementBlock("span",Yc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(c.openBlock(),c.createElementBlock("a",{key:7,onClick:e[10]||(e[10]=s=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[Jc,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Xc,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(c.openBlock(),c.createElementBlock("span",Zc))])):c.createCommentVNode("",!0),i.displayFormLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:8,onClick:e[11]||(e[11]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[el,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),n.displayQRLogin?(c.openBlock(),c.createElementBlock("a",{key:9,onClick:e[12]||(e[12]=s=>n.$router.push("/qr")),class:"button-center button button-90 google-button pointer"},[tl,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" QR",1)])):c.createCommentVNode("",!0),nl,c.createElementVNode("p",rl,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),ol,c.createElementVNode("a",il,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),c.createElementVNode("a",al,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),sl,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:11,class:"page-login-links",onClick:e[13]||(e[13]=(...s)=>i.createAccountModal&&i.createAccountModal(...s))},[c.createElementVNode("a",dl,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),ul,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),pl])):(c.openBlock(),c.createElementBlock("div",cl,[i.displayRegisterLogin?(c.openBlock(),c.createBlock(a,{key:0,class:"forgot float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):c.createCommentVNode("",!0),i.displayResetPasswordLogin?(c.openBlock(),c.createBlock(a,{key:1,class:"create float-left",to:"/reset"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):c.createCommentVNode("",!0),ll]))],36)}const uo=Qe(yc,[["render",hl]]),fl=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ml={name:"AuthRegister",mixins:[ri,oi,ii,Er,je],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&q.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storex.referral&&(this.referral=this.$storex.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let n={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?q.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):e.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storex.verifyEmail=n},referral(n){this.$storex.referral=n}}},gl=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],_l={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},yl={class:"half-bottom small-top center-text color-black"},vl={key:0},wl=c.createElementVNode("br",null,null,-1),kl={key:1},bl={class:"page-login-field half-top"},El=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Cl=["placeholder"],Tl=c.createElementVNode("em",null,null,-1),Sl={class:"page-login-field half-top"},Il=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Al=["placeholder","disabled"],Rl=c.createElementVNode("em",null,null,-1),Nl={class:"page-login-field half-top half-bottom"},Pl=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ml=["type","placeholder"],Ol={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ll={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},xl={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},zl={key:0},Bl={key:1,class:"button--loading button__loader"},Ul=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Dl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),jl={key:0},Hl={key:1,class:"button--loading-black button__loader"},Fl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),ql={key:0},Vl={key:1,class:"button--loading-black button__loader"},Kl=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),Gl={key:0},Ql={key:1,class:"button--loading-black button__loader"},$l=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),Yl=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Wl={class:"close-text center-text half-top color-black"},Jl=c.createElementVNode("br",null,null,-1),Xl={class:"",href:"https://tapni.co/policies/terms-of-service"},Zl={href:"https://tapni.co/policies/privacy-policy"},ed=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),td={key:5,class:"page-login-links"},nd=c.createElementVNode("div",{class:"clear"},null,-1),rd={class:"forgot center-text pointer small-top"},od=c.createElementVNode("br",null,null,-1),id=c.createElementVNode("div",{class:"clear"},null,-1);function ad(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[12]||(e[12]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},gl)):c.createCommentVNode("",!0),c.createElementVNode("h1",_l,c.toDisplayString(n.ssoLang[this.appLanguage].register),1),c.createElementVNode("p",yl,[o.usernameRegister?(c.openBlock(),c.createElementBlock("span",vl,[c.createTextVNode(" t.link/"+c.toDisplayString(o.username)+" "+c.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),wl])):c.createCommentVNode("",!0)]),o.emailLogin?(c.openBlock(),c.createElementBlock("span",kl,[c.createElementVNode("div",bl,[El,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Cl),[[c.vModelText,o.email]]),Tl]),c.createElementVNode("div",Sl,[Il,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.username=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:o.usernameRegister,class:c.normalizeClass({"input-disabled":o.usernameRegister})},null,42,Al),[[c.vModelText,o.username]]),Rl]),c.createElementVNode("div",Nl,[Pl,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ml),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",Ol,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Ll,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",xl,[o.submitted?(c.openBlock(),c.createElementBlock("span",Bl)):(c.openBlock(),c.createElementBlock("span",zl,c.toDisplayString(o.formButtonText),1))])])):c.createCommentVNode("",!0),Ul,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Dl,n.appleLoad?(c.openBlock(),c.createElementBlock("span",Hl)):(c.openBlock(),c.createElementBlock("span",jl,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):c.createCommentVNode("",!0),c.createElementVNode("a",{onClick:e[8]||(e[8]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fl,n.googleLoad?(c.openBlock(),c.createElementBlock("span",Vl)):(c.openBlock(),c.createElementBlock("span",ql,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Kl,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",Ql)):(c.openBlock(),c.createElementBlock("span",Gl,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):c.createCommentVNode("",!0),o.emailLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[$l,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),Yl,c.createElementVNode("p",Wl,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),Jl,c.createElementVNode("a",Xl,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),c.createElementVNode("a",Zl,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),ed,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:6,class:"page-login-links",onClick:e[11]||(e[11]=(...s)=>i.loginAccountModal&&i.loginAccountModal(...s))},[c.createElementVNode("a",rd,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),od,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),id])):(c.openBlock(),c.createElementBlock("div",td,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),nd]))],36)}const po=Qe(ml,[["render",ad]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),cd={name:"AuthVerify",mixins:[je],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),q.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",q.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storex.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){q.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){q.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},ht=n=>(c.pushScopeId("data-v-89d98ef3"),n=n(),c.popScopeId(),n),ld=[ht(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],dd={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},ud=ht(()=>c.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),pd={class:"page-login-field half-top"},hd=ht(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),fd=["placeholder"],md=ht(()=>c.createElementVNode("em",null,null,-1)),gd={class:"page-login-field half-top"},_d=ht(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),yd=["placeholder"],vd=ht(()=>c.createElementVNode("em",null,null,-1)),wd={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},kd={key:0,class:"uppercase"},bd={key:1,class:"button--loading button__loader"},Ed=ht(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Cd={class:"close-text center-text half-top color-black"},Td=["innerHTML"],Sd=ht(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Id=ht(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Ad={key:1,class:"page-login-links"},Rd=ht(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Nd={class:"forgot center-text pointer small-top"},Pd=ht(()=>c.createElementVNode("br",null,null,-1)),Md=ht(()=>c.createElementVNode("div",{class:"clear"},null,-1));function Od(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},ld)):c.createCommentVNode("",!0),c.createElementVNode("h1",dd,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),ud,c.createElementVNode("div",pd,[hd,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,fd),[[c.vModelText,o.email]]),md]),c.createElementVNode("div",gd,[_d,c.withDirectives(c.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=s=>o.code=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,yd),[[c.vModelText,o.code]]),vd]),c.createElementVNode("button",wd,[o.submitted?(c.openBlock(),c.createElementBlock("span",bd)):(c.openBlock(),c.createElementBlock("span",kd,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),Ed,c.createElementVNode("p",Cd,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,Td),Sd]),Id,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:2,class:"page-login-links",onClick:e[5]||(e[5]=(...s)=>i.registerAccountModal&&i.registerAccountModal(...s))},[c.createElementVNode("a",Nd,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),Pd,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),Md])):(c.openBlock(),c.createElementBlock("div",Ad,[c.createVNode(a,{class:"create float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Rd]))],36)}const ho=Qe(cd,[["render",Od],["__scopeId","data-v-89d98ef3"]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:ho},Symbol.toStringTag,{value:"Module"})),xd={name:"AuthMFA",mixins:[je,Hi],props:{payload:{type:Object,default:{}}},mounted(){this.isLoggedIn||this.$router.push("/login")},methods:{async submit(){let n={otpToken:this.otpToken,otpSecret:this.otpSecret,enable:this.mfaEnable};this.mfaEnable||delete n.otpSecret,this.loading=!0;const[e,t]=await ue(He.setMfa(n,this.$storex));if(this.loading=!1,e)return q.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);t.data.success&&(this.getAccountSettings(),this.successSnack(t.data.message))}}},zd={class:"page-login content-boxed content-boxed-padding"},Bd=c.createElementVNode("h4",{style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"50px"}}," 2-Step Verification ",-1),Ud=c.createElementVNode("br",null,null,-1),Dd={class:"qrCodeLoginContainer center-text"},jd={class:"ios-switch",style:{display:"inline-block",float:"right"}},Hd=c.createElementVNode("label",{class:"ios-switch-label",for:"mfa-open-switch"},null,-1),Fd=c.createElementVNode("br",null,null,-1),qd={style:{"text-align":"center"}},Vd=c.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1),Kd=c.createElementVNode("br",null,null,-1),Gd=c.createElementVNode("br",null,null,-1),Qd=c.createElementVNode("br",null,null,-1),$d=c.createElementVNode("div",{style:{margin:"0 auto",width:"85%","text-align":"center"}},[c.createElementVNode("h5",{class:""},"Scan the QR code above or enter the secret key into your authenticator app."),c.createElementVNode("br")],-1),Yd={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},Wd={key:0},Jd={key:1,class:"button--loading button__loader"},Xd={key:1,style:{margin:"0 auto",width:"100%","text-align":"center"}},Zd={key:0,class:""},eu=c.createElementVNode("br",null,null,-1),tu={key:1,class:""};function nu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",zd,[Bd,Ud,c.createElementVNode("div",Dd,[c.createElementVNode("div",null,[c.createTextVNode(" Enable Multi-Factor Authentication "),c.createElementVNode("div",jd,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>n.mfaEnable=a),type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"mfa-open-switch"},null,512),[[c.vModelCheckbox,n.mfaEnable]]),Hd])]),Fd,c.withDirectives(c.createElementVNode("div",qd,[Vd,Kd,c.createElementVNode("p",{class:"bold pointer font-16 underline",onClick:e[1]||(e[1]=a=>n.copy(n.otpSecret))},c.toDisplayString(n.otpSecret),1),Gd,Qd,$d],512),[[c.vShow,n.mfaEnable&&!n.account.mfaEnabled]]),n.account.mfaEnabled!==n.mfaEnable?(c.openBlock(),c.createElementBlock("form",{key:0,onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>n.validateMFA&&n.validateMFA(...a),["prevent"]))},[c.createElementVNode("button",Yd,[n.loading?(c.openBlock(),c.createElementBlock("span",Jd)):(c.openBlock(),c.createElementBlock("span",Wd,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),c.createElementVNode("a",{href:"javascript:;",onClick:e[2]||(e[2]=(...a)=>n.cancelMFA&&n.cancelMFA(...a))},"Cancel")],32)):(c.openBlock(),c.createElementBlock("div",Xd,[c.createElementVNode("div",null,[n.mfaEnable?(c.openBlock(),c.createElementBlock("h5",Zd,[c.createTextVNode(" Your account is protected via "),eu,c.createTextVNode(" multi-factor authentication (MFA) ✅ ")])):(c.openBlock(),c.createElementBlock("h5",tu,"Protect your account from unauthorized access by enabling multi-factor authentication (MFA)")),c.createElementVNode("a",{class:"half-top",href:"javascript:;",onClick:e[4]||(e[4]=(...a)=>n.cancelMFA&&n.cancelMFA(...a))},"Go Back to Account Settings")])]))])])}const fo=Qe(xd,[["render",nu]]),ru=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),ou={name:"AuthReset",mixins:[je],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),q.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storex.verifyEmail=n}}},Qt=n=>(c.pushScopeId("data-v-69a9cfa3"),n=n(),c.popScopeId(),n),iu={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},au=Qt(()=>c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),su={class:"page-login-field half-top color-black"},cu=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"10px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),lu=["placeholder"],du=Qt(()=>c.createElementVNode("em",null,null,-1)),uu={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},pu={key:0,class:"uppercase"},hu={key:1,class:"button--loading button__loader"},fu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),mu={class:"close-text center-text half-top color-black"},gu=["innerHTML"],_u=["href"],yu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vu={class:"page-login-links"},wu=Qt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),ku={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},bu={class:"half-bottom small-top center-text color-black"},Eu={class:"page-login-field half-top"},Cu=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Tu=["type","placeholder"],Su={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Iu={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Au={class:"page-login-field half-top"},Ru=Qt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Nu=["type","placeholder"],Pu={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Mu={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ou={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Lu={key:0,class:"uppercase"},xu={key:1,class:"button--loading button__loader"},zu=Qt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Bu={class:"close-text center-text half-top color-black"},Uu=["innerHTML"],Du=["href"];function ju(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return o.passwordChange?(c.openBlock(),c.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=c.withModifiers((...s)=>i.changePw&&i.changePw(...s),["prevent"]))},[c.createElementVNode("h3",ku,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),c.createElementVNode("p",bu,c.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),c.createElementVNode("div",Eu,[Cu,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,Tu),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword)},[c.withDirectives(c.createElementVNode("img",Su,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Iu,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("div",Au,[Ru,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.passwordRepeat=s),type:o.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,Nu),[[c.vModelDynamic,o.passwordRepeat]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword2=!o.revealPassword2)},[c.withDirectives(c.createElementVNode("img",Pu,null,512),[[c.vShow,!o.revealPassword2]]),c.withDirectives(c.createElementVNode("img",Mu,null,512),[[c.vShow,o.revealPassword2]])])]),c.createElementVNode("button",Ou,[o.submitted?(c.openBlock(),c.createElementBlock("span",xu)):(c.openBlock(),c.createElementBlock("span",Lu,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),zu,c.createElementVNode("p",Bu,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,Uu),c.createTextVNode(),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Du)])],32)):(c.openBlock(),c.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=c.withModifiers((...s)=>i.resetEmail&&i.resetEmail(...s),["prevent"])),autocomplete:"on"},[c.createElementVNode("h3",iu,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),au,c.createElementVNode("div",su,[cu,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=s=>o.email=s),onKeydown:e[1]||(e[1]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,lu),[[c.vModelText,o.email]]),du]),c.createElementVNode("button",uu,[o.submitted?(c.openBlock(),c.createElementBlock("span",hu)):(c.openBlock(),c.createElementBlock("span",pu,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),fu,c.createElementVNode("p",mu,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,gu),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,_u)]),yu,c.createElementVNode("div",vu,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wu])],32))}const mo=Qe(ou,[["render",ju],["__scopeId","data-v-69a9cfa3"]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"})),Fu={name:"AuthCallback",mixins:[Cr,Tr,je],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=Ji.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},qu={class:"page-login content-boxed content-boxed-padding"},Vu={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ku=c.createElementVNode("br",null,null,-1),Gu={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Qu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",qu,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(c.openBlock(),c.createElementBlock("h5",Vu,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),Ku,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),c.createElementVNode("span",{onClick:e[0]||(e[0]=(...a)=>i.inAppRedirect&&i.inAppRedirect(...a)),style:{color:"blue",cursor:"pointer"}},c.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),c.createTextVNode(".")])):(c.openBlock(),c.createElementBlock("h4",Gu,c.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const go=Qe(Fu,[["render",Qu]]),$u=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"})),Yu={name:"ModalOverlay",mixins:[je],data(){return{toggle:!1}},mounted(){q.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),q.$on("openModalOverlay",()=>{this.toggle=!0}),q.$on("toggleSSOLanguageModal",this.toggleModal),q.$on("toggleOTPModal",this.toggleModal),q.$on("toggleSSOModal",this.toggleModal),q.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(n=!0){n&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var n,e;!this.isLoggedIn&&((e=(n=this.user)==null?void 0:n.lead_form)!=null&&e.forceFilling)||q.$emit("closeModal")}}};function Wu(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":o.toggle}),onClick:e[0]||(e[0]=(...a)=>i.toggleEmit&&i.toggleEmit(...a))},null,2)}const qi=Qe(Yu,[["render",Wu],["__scopeId","data-v-17c95816"]]),Ju={name:"SSO",mixins:[Er,Cr,Tr,je],data(){return{toggle:!1,email:"",loading:!1}},mounted(){q.$on("toggleSSOModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleSSOModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e.length<=1?(e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl)):(this.forceClose(),q.$emit("toggleSSOPickModal",{sso:n.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Xu=[(n=>(c.pushScopeId("data-v-11f19a09"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Zu={class:"bold center-text color-black half-top half-bottom"},ep=["placeholder"],tp={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},np={key:0},rp={key:1,class:"button--loading button__loader"};function op(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Xu),c.createElementVNode("h3",Zu,c.toDisplayString(n.ssoLang[n.appLanguage].enter_company_email),1),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.email=a),placeholder:n.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,ep),[[c.vModelText,o.email]])]),c.createElementVNode("button",tp,[o.loading?(c.openBlock(),c.createElementBlock("span",rp)):(c.openBlock(),c.createElementBlock("span",np,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))])],34)}const Vi=Qe(Ju,[["render",op],["__scopeId","data-v-11f19a09"]]),ip={name:"OTP",mixins:[je],data(){return{toggle:!1,otp:"",loading:!1}},mounted(){q.$on("toggleOTPModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleOTPModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async submit(){if(!this.otp||this.otp.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.loading=!0,q.$emit("otpSubmitted",this.otp),q.$emit("toggleOTPModal"),this.loading=!1},toggleModal(){this.toggle=!this.toggle}}},Ki=n=>(c.pushScopeId("data-v-2b6d6269"),n=n(),c.popScopeId(),n),ap=[Ki(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],sp=["src"],cp={class:"bold center-text color-black half-top half-bottom"},lp=["innerHTML"],dp=["placeholder"],up={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},pp={key:0},hp={key:1,class:"button--loading button__loader"},fp={class:"close-text center-text half-top color-black"},mp=["innerHTML"],gp=Ki(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=MFA Authentication Problem"}," support@tapni.com",-1));function _p(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},ap),c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"padlock-img small-bottom"},null,8,sp),c.createElementVNode("h3",cp,c.toDisplayString(n.ssoLang[n.appLanguage].otp_title),1),c.createElementVNode("p",{class:"half-top full-bottom padding-left padding-right",innerHTML:n.ssoLang[n.appLanguage].otp_subtitle},null,8,lp),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.otp=a),placeholder:n.ssoLang[n.appLanguage].otp_code,class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,dp),[[c.vModelText,o.otp]])]),c.createElementVNode("button",up,[o.loading?(c.openBlock(),c.createElementBlock("span",hp)):(c.openBlock(),c.createElementBlock("span",pp,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),c.createElementVNode("p",fp,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].otp_p1},null,8,mp),gp])],34)}const Gi=Qe(ip,[["render",_p],["__scopeId","data-v-2b6d6269"]]),yp={name:"SSOPick",mixins:[Er,Cr,Tr,je],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){q.$on("toggleSSOPickModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){q._events.toggleSSOPickModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(n){n==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),n==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),n==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(n){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,n&&(this.sso=n.sso,this.email=n.email),this.toggle=!this.toggle}}},Ir=n=>(c.pushScopeId("data-v-4f821f65"),n=n(),c.popScopeId(),n),vp=[Ir(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],wp={class:"bold center-text color-black half-top half-bottom"},kp=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),bp={key:0},Ep={key:1,class:"button--loading button__loader"},Cp=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Tp={key:0},Sp={key:1,class:"button--loading button__loader"},Ip=Ir(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Ap={key:0},Rp={key:1,class:"button--loading button__loader"};function Np(n,e,t,r,o,i){var a,s,l;return c.openBlock(),c.createElementBlock("form",{onSubmit:e[4]||(e[4]=c.withModifiers(()=>{},["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...h)=>i.forceClose&&i.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},vp),c.createElementVNode("h3",wp,c.toDisplayString(n.ssoLang[n.appLanguage].select_sign_method),1),(a=o.sso)!=null&&a.azure?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[1]||(e[1]=h=>i.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[kp,o.azureLoad?(c.openBlock(),c.createElementBlock("span",Ep)):(c.openBlock(),c.createElementBlock("span",bp,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Azure",1))])):c.createCommentVNode("",!0),(s=o.sso)!=null&&s.okta?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:e[2]||(e[2]=h=>i.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Cp,o.oktaLoad?(c.openBlock(),c.createElementBlock("span",Sp)):(c.openBlock(),c.createElementBlock("span",Tp,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Okta",1))])):c.createCommentVNode("",!0),(l=o.sso)!=null&&l.saml?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[3]||(e[3]=h=>i.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Ip,o.samlLoad?(c.openBlock(),c.createElementBlock("span",Rp)):(c.openBlock(),c.createElementBlock("span",Ap,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SAML",1))])):c.createCommentVNode("",!0)],34)}const Qi=Qe(yp,[["render",Np],["__scopeId","data-v-4f821f65"]]),Pp={name:"LinkIcon",mixins:[je],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},Mp=["src","alt"],Op=["src","alt"],Lp=["src","alt"],xp=["src","alt"];function zp(n,e,t,r,o,i){var a,s;return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["disable-select",t.linkStyle+(t.disabled?" opacity-50":"")]),style:c.normalizeStyle((t.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[c.createElementVNode("span",{class:c.normalizeClass({"user-link-img":!0,"pulse pulse-border":t.pulse,"link-drag":t.editing}),style:c.normalizeStyle({...(a=t.customLinkStyle)==null?void 0:a.linkIcon})},[!t.data.custom_icon&&t.data.type!=="customlink"?(c.openBlock(),c.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+t.data.type+".png",class:"responsive-image",alt:t.data.text,onLoad:e[0]||(e[0]=l=>n.$emit("loaded")),onError:e[1]||(e[1]=l=>n.$emit("loaded"))},null,40,Mp)):!t.data.custom_icon&&t.data.type==="customlink"&&t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:t.data.text,onLoad:e[2]||(e[2]=l=>n.$emit("loaded")),onError:e[3]||(e[3]=l=>n.$emit("loaded"))},null,40,Op)):!t.data.custom_icon&&t.data.type==="customlink"&&!t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:t.data.text,onLoad:e[4]||(e[4]=l=>n.$emit("loaded")),onError:e[5]||(e[5]=l=>n.$emit("loaded"))},null,40,Lp)):(c.openBlock(),c.createElementBlock("img",{key:3,src:t.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:t.data.text,onLoad:e[6]||(e[6]=l=>n.$emit("loaded")),onError:e[7]||(e[7]=l=>n.$emit("loaded"))},null,40,xp))],6),c.createElementVNode("span",{class:"link-text link-drag color-black",style:c.normalizeStyle({color:(s=t.customLinkStyle)==null?void 0:s.color})},c.toDisplayString(i.linkText),5)],6)}const Bp=Qe(Pp,[["render",zp]]),Up={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},Dp={name:"Language",mixins:[je],components:{LinkIcon:Bp},data(){return{toggle:!1}},async mounted(){q.$on("toggleSSOLanguageModal",this.toggleModal),q.$on("closeModal",()=>{this.toggle=!1});let n=this.isNative?await Zn.Device.getLanguageCode():On.getFirstBrowserLanguage();n&&Up.SUPPORTED_LANGUAGES.includes(n)&&this.updateLanguage(n)},beforeDestroy(){q._events.toggleSSOLanguageModal.pop()},methods:{forceClose(){q.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(n){this.updateLang(n),q.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},jp=[(n=>(c.pushScopeId("data-v-a49a90e5"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 fa color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],Hp={class:"bold center-text color-black small-bottom"};function Fp(n,e,t,r,o,i){const a=c.resolveComponent("LinkIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},jp),c.createElementVNode("h3",Hp,c.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),c.createVNode(a,{onClick:e[1]||(e[1]=s=>i.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:n.ssoLang[this.appLanguage].english},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[2]||(e[2]=s=>i.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:n.ssoLang[this.appLanguage].spanish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[3]||(e[3]=s=>i.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:n.ssoLang[this.appLanguage].german},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[4]||(e[4]=s=>i.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:n.ssoLang[this.appLanguage].italian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[5]||(e[5]=s=>i.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:n.ssoLang[this.appLanguage].french},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[6]||(e[6]=s=>i.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:n.ssoLang[this.appLanguage].korean},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[7]||(e[7]=s=>i.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:n.ssoLang[this.appLanguage].serbian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[8]||(e[8]=s=>i.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:n.ssoLang[this.appLanguage].turkish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const $i=Qe(Dp,[["render",Fp],["__scopeId","data-v-a49a90e5"]]);var qp={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Vp={id:"ssoapp"},Kp={key:0,href:"/",class:"header-logo"},Gp=[c.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQG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qjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],Qp={class:"lang-icon"},$p={class:"snackbar snackbar-boxed",id:"snackbar"},Yp={class:"snack-body",id:"errorSnack"},Wp={id:"errorMessage"},Jp=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Xp={class:"snack-body",id:"successSnack"},Zp={id:"successMessage"},eh=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],th=Object.assign({store:qr,name:"TapniAuth",mixins:[Xi,je],data(){return{storeInterval:null,isSetup:!1}},components:{Language:$i,OTP:Gi,SSOPick:Qi,SSO:Vi,ModalOverlay:qi,AuthCallback:go,AuthReset:mo,AuthVerify:ho,AuthMFA:fo,AuthRegister:po,AuthLogin:uo,AuthWelcome:Hr},props:{viewProp:{type:String,default:"AuthWelcome"},isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}},options:{type:Object,default:{token:"",refreshTokens:"",username:"",UserId:"",verifyEmail:"",subdomain:"",localUser:""}}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){console.log("eey"),this.applyBgStyle(),this.setView(this.viewProp),q.$on("ssoEvent",this.ssoOutgoingEvent),q.$on("ssoLogout",n=>this.logout(n.refreshToken)),q.$on("getLoggedInAccounts",n=>this.getLoggedInAccounts(n)),q.$on("refreshTokenAction",n=>this.refreshTokenAction({...n,storage:this.$storex})),q.$on("switchAccount",n=>this.switchAccount(n)),q.$on("setToken",n=>this.setToken(n))},methods:{async init(){if(console.log("initt"),this.setStorage(this.strg),this.isSetup)return;this.isSetup=!0,this.setToken(this.$storex.token);const n=this.getRefreshTokens();this.setRefreshToken(n[0]),await this.getLoggedInAccounts(n),this.$emit("ssoLibraryReady",this.$storex)},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){q.$emit(n.name,n.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleSSOLanguageModal(){q.$emit("toggleSSOLanguageModal",!0)}},watch:{display(){this.applyBgStyle()},"strgReady.value"(n){n&&this.$nextTick(()=>{this.init()})},$storex:{handler(n){clearInterval(this.storeInterval),this.storeInterval=setTimeout(()=>{Object.keys(n).forEach(e=>{this.strg[e]=n[e]})},250)},deep:!0}}},{setup(n){return window.Buffer=Wi.Buffer,document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${qp.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(e)}),(e,t)=>(c.openBlock(),c.createElementBlock("div",Vp,[e.display==="redirect"||e.renderView.includes("Auth")?(c.openBlock(),c.createElementBlock("a",Kp,Gp)):c.createCommentVNode("",!0),e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:t[0]||(t[0]=(...r)=>e.toggleSSOLanguageModal&&e.toggleSSOLanguageModal(...r)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[c.createElementVNode("span",Qp,c.toDisplayString(e.appLanguage.toUpperCase()),1)])):c.createCommentVNode("",!0),c.createVNode(qi),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock($i,{key:2})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Vi,{key:3})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Qi,{key:4})),c.createVNode(Gi),e.initialized&&e.renderView==="AuthWelcome"?(c.openBlock(),c.createBlock(Hr,{key:5})):e.initialized&&e.renderView==="AuthLogin"?(c.openBlock(),c.createBlock(uo,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthRegister"?(c.openBlock(),c.createBlock(po,{key:7,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(c.openBlock(),c.createBlock(ho,{key:8,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthMFA"?(c.openBlock(),c.createBlock(fo,{key:9,isModal:n.isModal,payload:n.payload},null,8,["isModal","payload"])):e.initialized&&e.renderView==="AuthReset"?(c.openBlock(),c.createBlock(mo,{key:10})):e.initialized&&e.renderView==="AuthCallback"?(c.openBlock(),c.createBlock(go,{key:11})):e.display!=="npm"?(c.openBlock(),c.createBlock(c.unref(on.RouterView),{key:12})):c.createCommentVNode("",!0),c.createElementVNode("div",$p,[c.createElementVNode("p",Yp,[c.createElementVNode("span",Wp,c.toDisplayString(e.ssoLang[e.appLanguage].error),1),c.createElementVNode("a",{onClick:t[1]||(t[1]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Jp)]),c.createElementVNode("p",Xp,[c.createElementVNode("span",Zp,c.toDisplayString(e.ssoLang[e.appLanguage].success),1),c.createElementVNode("a",{onClick:t[2]||(t[2]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},eh)])])]))}}),nh={install:(n,e)=>{n.component("TapniAuth",th),e.hasModule("auth")||e.registerModule("auth",qr)}};var rh={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const oh={mixins:[je],data(){return{expanded:!1,addAccountReady:!1,appVersion:rh.APP_VERSION}},async mounted(){this.getAccountSettings()},methods:{continueTo(n){console.log("continue to "+n)},addAccount(){this.$router.push("/login")},switchAccount(n){console.log("switch",n)},toggleAccountSettingsModal(){this.$router.push("/mfa")},toggleLanguageModal(){q.$emit("toggleSSOLanguageModal")},logout(){this.logout()}}},Pt=n=>(c.pushScopeId("data-v-99676a71"),n=n(),c.popScopeId(),n),ih={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ah=Pt(()=>c.createElementVNode("br",null,null,-1)),sh={class:"bold full-top no-bottom center-text"},ch={class:"full-bottom half-top center-text color-black font-16"},gf={key:0,class:"full-top full-bottom"},_f={class:"page-login-links center-text"},yf=Pt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),lh={class:"container"},dh={class:"settingsCard pointer left-text"},uh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newSettings.svg",style:{width:"50px","border-radius":"20px"}})],-1)),ph={class:"middle"},hh=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1)),fh=Pt(()=>c.createElementVNode("div",{class:"divider"},null,-1)),mh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newPublicProfile.svg",style:{width:"50px","border-radius":"20px"}})],-1)),gh={class:"middle"},_h=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1)),yh=Pt(()=>c.createElementVNode("div",{class:"divider"},null,-1)),vh=Pt(()=>c.createElementVNode("div",{class:"left"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newLogout.svg",style:{width:"50px","border-radius":"20px"}})],-1)),wh={class:"middle"},kh=Pt(()=>c.createElementVNode("div",{class:"right"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/newArrowRight.svg"})],-1));function bh(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",ih,[ah,c.createElementVNode("h1",sh,c.toDisplayString(n.ssoLang[n.appLanguage].welcome)+", "+c.toDisplayString(n.account.name),1),c.createElementVNode("p",ch,c.toDisplayString(n.account.email),1),(n.display,c.createCommentVNode("",!0)),c.createElementVNode("div",lh,[c.createCommentVNode("",!0),c.createElementVNode("div",dh,[c.createElementVNode("div",{class:"device",onClick:e[4]||(e[4]=(...a)=>i.toggleAccountSettingsModal&&i.toggleAccountSettingsModal(...a))},[uh,c.createElementVNode("div",ph,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].mfa),1)]),hh]),fh,c.createElementVNode("div",{class:"device",onClick:e[5]||(e[5]=(...a)=>i.toggleLanguageModal&&i.toggleLanguageModal(...a))},[mh,c.createElementVNode("div",gh,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].change_language),1)]),_h]),yh,c.createElementVNode("div",{class:"device",onClick:e[6]||(e[6]=(...a)=>i.logout&&i.logout(...a))},[vh,c.createElementVNode("div",wh,[c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].logout),1)]),kh]),c.createCommentVNode("",!0)])])])}const Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Qe(oh,[["render",bh],["__scopeId","data-v-99676a71"]])},Symbol.toStringTag,{value:"Module"})),Ch={name:"AuthQR",mixins:[je,Fi]},Th={class:"page-login content-boxed content-boxed-padding"},Sh={style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"130px"}},Ih=c.createElementVNode("br",null,null,-1),Ah={class:"qrCodeLoginContainer center-text"},Rh=c.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1),Nh=c.createElementVNode("br",null,null,-1),Ph=c.createElementVNode("br",null,null,-1),Mh={style:{margin:"0 auto",width:"85%","text-align":"left"}},Oh={class:"center-text"},Lh=c.createElementVNode("br",null,null,-1),xh=c.createElementVNode("br",null,null,-1),zh=c.createElementVNode("br",null,null,-1);function Bh(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",Th,[c.createElementVNode("h5",Sh,c.toDisplayString(n.ssoLang[n.appLanguage].use_tapni_on_the_web),1),Ih,c.createElementVNode("div",Ah,[Rh,Nh,Ph,c.createElementVNode("div",Mh,[c.createElementVNode("h2",Oh,c.toDisplayString(n.ssoLang[n.appLanguage].login_by_scanning_qr_code),1),Lh,c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].open_tapni_app_on_your_phone),1),c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].go_to_settings_link_a_device),1),c.createElementVNode("h4",null,c.toDisplayString(n.ssoLang[n.appLanguage].point_your_phone_at_this_qr_code),1),xh,zh]),c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].choose_other_login_methods),1)]),_:1})])])}const Uh=Object.freeze(Object.defineProperty({__proto__:null,default:Qe(Ch,[["render",Bh]])},Symbol.toStringTag,{value:"Module"}));class Dh extends nt.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.defer=!0,o.async=!0,o.id=e,o.onload=this.platformJsLoaded.bind(this),o.src="https://apis.google.com/js/platform.js",r.appendChild(o)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,r;if(typeof window>"u")return;const o=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||o||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(r=e.grantOfflineAccess)!==null&&r!==void 0?r:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(a=>{window.gapiResolve=a,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var r;try{let o;const i=(r=this.options.grantOfflineAccess)!==null&&r!==void 0?r:!1;i?o=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const a=gapi.auth2.getAuthInstance().currentUser.get();i&&await a.reloadAuthResponse();const s=this.getUserFrom(a);s.serverAuthCode=o,e(s)}catch(o){t(o)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},r=e.getBasicProfile();t.email=r.getEmail(),t.familyName=r.getFamilyName(),t.givenName=r.getGivenName(),t.id=r.getId(),t.imageUrl=r.getImageUrl(),t.name=r.getName();const o=e.getAuthResponse(!0);return t.authentication={accessToken:o.access_token,idToken:o.id_token,refreshToken:""},t}}const jh=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:Dh},Symbol.toStringTag,{value:"Module"}));class Hh extends nt.WebPlugin{async initialize(e){const t={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},t),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const t="fb";if(document.getElementById(t))return Promise.resolve();const o=document.getElementsByTagName("head")[0],i=document.createElement("script");return new Promise(a=>{i.onload=()=>a(),i.defer=!0,i.async=!0,i.id=t,i.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,o.appendChild(i)})}async login(e){return new Promise((t,r)=>{FB.login(o=>{o.status==="connected"?t({accessToken:{token:o.authResponse.accessToken}}):r({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(t=>e(t)))}async getCurrentAccessToken(){return new Promise((e,t)=>{FB.getLoginStatus(r=>{if(r.status==="connected"){const o={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:r.authResponse.accessToken,userId:r.authResponse.userID}};e(o)}else t({accessToken:{token:null}})})})}async getProfile(e){const t=e.fields.join(",");return new Promise((r,o)=>{FB.api("/me",{fields:t},i=>{if(i.error){o(i.error.message);return}r(i)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}const Fh=Object.freeze(Object.defineProperty({__proto__:null,FacebookLoginWeb:Hh},Symbol.toStringTag,{value:"Module"}));var Yi={exports:{}};/*!
|
|
138
138
|
* $script.js JS loader & dependency manager
|
|
139
139
|
* https://github.com/ded/script.js
|
|
140
140
|
* (c) Dustin Diaz 2014 | License MIT
|
|
@@ -1186,7 +1186,7 @@ function Es(n, e, t, r, o, i) {
|
|
|
1186
1186
|
const So = /* @__PURE__ */ _t(ps, [["render", Es], ["__scopeId", "data-v-3d89d57a"]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1187
1187
|
__proto__: null,
|
|
1188
1188
|
default: So
|
|
1189
|
-
}, Symbol.toStringTag, { value: "Module" })), Ss = "0.0.
|
|
1189
|
+
}, Symbol.toStringTag, { value: "Module" })), Ss = "0.0.133", yr = {
|
|
1190
1190
|
getMe() {
|
|
1191
1191
|
return ce().get("/users/me");
|
|
1192
1192
|
},
|
|
@@ -5327,7 +5327,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5327
5327
|
choose_other_login_methods: "다른 로그인 방법 선택하기",
|
|
5328
5328
|
no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
|
|
5329
5329
|
}
|
|
5330
|
-
}, Qo = () => Promise.resolve().then(() => Ts), As = () => Promise.resolve().then(() => Zl), Rs = () => Promise.resolve().then(() => Qu), Ps = () => Promise.resolve().then(() => Ap), Ms = () => import("./Account-
|
|
5330
|
+
}, Qo = () => Promise.resolve().then(() => Ts), As = () => Promise.resolve().then(() => Zl), Rs = () => Promise.resolve().then(() => Qu), Ps = () => Promise.resolve().then(() => Ap), Ms = () => import("./Account-AvDwGV77.js"), Ns = () => Promise.resolve().then(() => wd), Os = () => Promise.resolve().then(() => xp), Ls = () => import("./QR-7dG4PzRO.js"), xs = () => Promise.resolve().then(() => Kd), zs = [
|
|
5331
5331
|
{
|
|
5332
5332
|
path: "/welcome",
|
|
5333
5333
|
name: "AuthWelcome",
|
|
@@ -19020,7 +19020,7 @@ const Uh = { id: "ssoapp" }, Bh = {
|
|
|
19020
19020
|
},
|
|
19021
19021
|
methods: {
|
|
19022
19022
|
async init() {
|
|
19023
|
-
if (console.log("initt"), this.setStorage(this
|
|
19023
|
+
if (console.log("initt"), this.setStorage(this.strg), this.isSetup)
|
|
19024
19024
|
return;
|
|
19025
19025
|
this.isSetup = !0, this.setToken(this.$storex.token);
|
|
19026
19026
|
const n = this.getRefreshTokens();
|
|
@@ -19043,7 +19043,7 @@ const Uh = { id: "ssoapp" }, Bh = {
|
|
|
19043
19043
|
display() {
|
|
19044
19044
|
this.applyBgStyle();
|
|
19045
19045
|
},
|
|
19046
|
-
"
|
|
19046
|
+
"strgReady.value"(n) {
|
|
19047
19047
|
n && this.$nextTick(() => {
|
|
19048
19048
|
this.init();
|
|
19049
19049
|
});
|
|
@@ -19052,7 +19052,7 @@ const Uh = { id: "ssoapp" }, Bh = {
|
|
|
19052
19052
|
handler(n) {
|
|
19053
19053
|
clearInterval(this.storeInterval), this.storeInterval = setTimeout(() => {
|
|
19054
19054
|
Object.keys(n).forEach((e) => {
|
|
19055
|
-
this
|
|
19055
|
+
this.strg[e] = n[e];
|
|
19056
19056
|
});
|
|
19057
19057
|
}, 250);
|
|
19058
19058
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.133",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@codetrix-studio/capacitor-google-auth": "^3.3.6",
|
|
35
35
|
"@otplib/preset-browser": "^12.0.1",
|
|
36
36
|
"@recognizebv/capacitor-plugin-msauth": "^3.5.1",
|
|
37
|
-
"@tapni/capacitor-reactive-localstorage-vue3": "^0.0.
|
|
37
|
+
"@tapni/capacitor-reactive-localstorage-vue3": "^0.0.17",
|
|
38
38
|
"@tapni/styles": "^0.0.3",
|
|
39
39
|
"await-to-js": "^3.0.0",
|
|
40
40
|
"axios": "^1.6.5",
|
package/src/App.vue
CHANGED
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
console.log('initt');
|
|
163
163
|
|
|
164
164
|
// Set $storage into vuex $storex
|
|
165
|
-
this.setStorage(this
|
|
165
|
+
this.setStorage(this.strg);
|
|
166
166
|
|
|
167
167
|
// Make sure the function is called just once
|
|
168
168
|
if (this.isSetup) return;
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
197
197
|
display () {
|
|
198
198
|
this.applyBgStyle()
|
|
199
199
|
},
|
|
200
|
-
'
|
|
200
|
+
'strgReady.value' (nv) {
|
|
201
201
|
if (nv) {
|
|
202
202
|
// Initialize Library after all event listeners & storage are set
|
|
203
203
|
this.$nextTick(() => {
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
210
210
|
clearInterval(this.storeInterval);
|
|
211
211
|
this.storeInterval = setTimeout(() => {
|
|
212
212
|
Object.keys(nv).forEach(key => {
|
|
213
|
-
this
|
|
213
|
+
this.strg[key] = nv[key];
|
|
214
214
|
});
|
|
215
215
|
}, 250)
|
|
216
216
|
},
|