<!doctype html>
<html lang="en">

<head>
  <title>Loan App Elite</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="/themes/icons/favicon.ico">
  <link
      id="GoogleFont"
      href="https://fonts.googleapis.com/css?family=Arvo|Lato|Merriweather|Montserrat|Open+Sans|Oxygen|PT+Sans|Roboto|Roboto+Slab|Sanchez|Ubuntu|Vollkorn|Kalam"
      rel="stylesheet">

  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    window.gtag('js', new Date());
  </script>
  <!-- End Google Analytics -->
  <script>
    var emuiUserMonitoring = {};
  </script>
  <script type="module" crossorigin src="/loan-app/main.PNSXHr6P.js"></script>
  <link rel="stylesheet" crossorigin href="/loan-app/styles/index.BbxYsk7Z.css">
</head>

<body>
  <div id="root" data-iframe-height>
    <!-- Spinner for slow network connection show during js file loading -->
    <style> .screen-loader { font-family: "proxima-nova", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; display: flex; justify-content: center; z-index: 1000; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; opacity: 1; background-color: rgba(255, 255, 255, 0.6); transition: opacity 1s linear 0s; } .screen-loader .api-loader, .screen-loader p { position: absolute; top: calc(50% - 44px); left: calc(50% - 44px); } .screen-loader p { margin: 64px 3px 0 3px; padding: 0; font-size: inherit; line-height: 1.6; color: #4a4a4a; text-rendering: optimizeLegibility; } @-ms-keyframes spin { from { -ms-transform: rotate(0deg); } to { -ms-transform: rotate(360deg); } } @-moz-keyframes spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .api-loader { width: 80px; height: 80px; animation-name: spin; animation-duration: 1s; animation-iteration-count: infinite; animation-timing-function: linear; border-radius: 50%; background: transparent; border-top: 4px solid rgb(53, 60, 70); border-right: 4px solid rgb(53, 60, 70); border-bottom: 4px solid rgb(221, 221, 221); border-left: 4px solid rgb(221, 221, 221); } .float-center { display: block; margin-right: auto; margin-left: auto; } </style> <div class='screen-loader' role='alert' aria-live='assertive'> <div class='api-loader float-center'></div> <p class='text-center' style='padding-top: 35px' tabIndex='0'>Loading...</p> </div>
  </div>
  <script>
    // NOTE: Allow iFrame resizing for CMS. iframe-resizer 3.5.7
    !function(a,b){"use strict";function c(b,c,d){"addEventListener"in a?b.addEventListener(c,d,!1):"attachEvent"in a&&b.attachEvent("on"+c,d)}function d(b,c,d){"removeEventListener"in a?b.removeEventListener(c,d,!1):"detachEvent"in a&&b.detachEvent("on"+c,d)}function e(a){return a.charAt(0).toUpperCase()+a.slice(1)}function f(a){var b,c,d,e=null,f=0,g=function(){f=Ia(),e=null,d=a.apply(b,c),e||(b=c=null)};return function(){var h=Ia();f||(f=h);var i=ya-(h-f);return b=this,c=arguments,0>=i||i>ya?(e&&(clearTimeout(e),e=null),f=h,d=a.apply(b,c),e||(b=c=null)):e||(e=setTimeout(g,i)),d}}function g(a){return na+"["+pa+"] "+a}function h(b){ma&&"object"==typeof a.console&&console.log(g(b))}function i(b){"object"==typeof a.console&&console.warn(g(b))}function j(){k(),h("Initialising iFrame ("+location.href+")"),l(),o(),n("background",X),n("padding",_),B(),t(),u(),p(),D(),v(),ja=C(),O("init","Init message from host page"),Ea()}function k(){function a(a){return"true"===a?!0:!1}var c=ia.substr(oa).split(":");pa=c[0],Y=b!==c[1]?Number(c[1]):Y,aa=b!==c[2]?a(c[2]):aa,ma=b!==c[3]?a(c[3]):ma,ka=b!==c[4]?Number(c[4]):ka,V=b!==c[6]?a(c[6]):V,Z=c[7],ga=b!==c[8]?c[8]:ga,X=c[9],_=c[10],va=b!==c[11]?Number(c[11]):va,ja.enable=b!==c[12]?a(c[12]):!1,ra=b!==c[13]?c[13]:ra,Ba=b!==c[14]?c[14]:Ba}function l(){function b(){var b=a.iFrameResizer;h("Reading data from page: "+JSON.stringify(b)),Da="messageCallback"in b?b.messageCallback:Da,Ea="readyCallback"in b?b.readyCallback:Ea,ua="targetOrigin"in b?b.targetOrigin:ua,ga="heightCalculationMethod"in b?b.heightCalculationMethod:ga,Ba="widthCalculationMethod"in b?b.widthCalculationMethod:Ba}function c(a,b){return"function"==typeof a&&(h("Setup custom "+b+"CalcMethod"),Ga[b]=a,a="custom"),a}"iFrameResizer"in a&&Object===a.iFrameResizer.constructor&&(b(),ga=c(ga,"height"),Ba=c(Ba,"width")),h("TargetOrigin for parent set to: "+ua)}function m(a,b){return-1!==b.indexOf("-")&&(i("Negative CSS value ignored for "+a),b=""),b}function n(a,c){b!==c&&""!==c&&"null"!==c&&(document.body.style[a]=c,h("Body "+a+' set to "'+c+'"'))}function o(){b===Z&&(Z=Y+"px"),n("margin",m("margin",Z))}function p(){document.documentElement.style.height="",document.body.style.height="",h('HTML & body height set to "auto"')}function q(b){var f={add:function(d){function e(){O(b.eventName,b.eventType)}Ha[d]=e,c(a,d,e)},remove:function(b){var c=Ha[b];delete Ha[b],d(a,b,c)}};b.eventNames&&Array.prototype.map?(b.eventName=b.eventNames[0],b.eventNames.map(f[b.method])):f[b.method](b.eventName),h(e(b.method)+" event listener: "+b.eventType)}function r(a){q({method:a,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),q({method:a,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),q({method:a,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),q({method:a,eventType:"Input",eventName:"input"}),q({method:a,eventType:"Mouse Up",eventName:"mouseup"}),q({method:a,eventType:"Mouse Down",eventName:"mousedown"}),q({method:a,eventType:"Orientation Change",eventName:"orientationchange"}),q({method:a,eventType:"Print",eventName:["afterprint","beforeprint"]}),q({method:a,eventType:"Ready State Change",eventName:"readystatechange"}),q({method:a,eventType:"Touch Start",eventName:"touchstart"}),q({method:a,eventType:"Touch End",eventName:"touchend"}),q({method:a,eventType:"Touch Cancel",eventName:"touchcancel"}),q({method:a,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),q({method:a,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),q({method:a,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===ra&&q({method:a,eventType:"IFrame Resized",eventName:"resize"})}function s(a,b,c,d){return b!==a&&(a in c||(i(a+" is not a valid option for "+d+"CalculationMethod."),a=b),h(d+' calculation method set to "'+a+'"')),a}function t(){ga=s(ga,fa,Ja,"height")}function u(){Ba=s(Ba,Aa,Ka,"width")}function v(){!0===V?(r("add"),G()):h("Auto Resize disabled")}function w(){h("Disable outgoing messages"),sa=!1}function x(){h("Remove event listener: Message"),d(a,"message",T)}function y(){null!==$&&$.disconnect()}function z(){r("remove"),y(),clearInterval(la)}function A(){w(),x(),!0===V&&z()}function B(){var a=document.createElement("div");a.style.clear="both",a.style.display="block",document.body.appendChild(a)}function C(){function d(){return{x:a.pageXOffset!==b?a.pageXOffset:document.documentElement.scrollLeft,y:a.pageYOffset!==b?a.pageYOffset:document.documentElement.scrollTop}}function e(a){var b=a.getBoundingClientRect(),c=d();return{x:parseInt(b.left,10)+parseInt(c.x,10),y:parseInt(b.top,10)+parseInt(c.y,10)}}function f(a){function c(a){var b=e(a);h("Moving to in page link (#"+d+") at x: "+b.x+" y: "+b.y),S(b.y,b.x,"scrollToOffset")}var d=a.split("#")[1]||a,f=decodeURIComponent(d),g=document.getElementById(f)||document.getElementsByName(f)[0];b!==g?c(g):(h("In page link (#"+d+") not found in iFrame, so sending to parent"),S(0,0,"inPageLink","#"+d))}function g(){""!==location.hash&&"#"!==location.hash&&f(location.href)}function j(){function a(a){function b(a){a.preventDefault(),f(this.getAttribute("href"))}"#"!==a.getAttribute("href")&&c(a,"click",b)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),a)}function k(){c(a,"hashchange",g)}function l(){setTimeout(g,ca)}function m(){Array.prototype.forEach&&document.querySelectorAll?(h("Setting up location.hash handlers"),j(),k(),l()):i("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return ja.enable?m():h("In page linking not enabled"),{findTarget:f}}function D(){h("Enable public methods"),Ca.parentIFrame={autoResize:function(a){return!0===a&&!1===V?(V=!0,v()):!1===a&&!0===V&&(V=!1,z()),V},close:function(){S(0,0,"close"),A()},getId:function(){return pa},getPageInfo:function(a){"function"==typeof a?(Fa=a,S(0,0,"pageInfo")):(Fa=function(){},S(0,0,"pageInfoStop"))},moveToAnchor:function(a){ja.findTarget(a)},reset:function(){R("parentIFrame.reset")},scrollTo:function(a,b){S(b,a,"scrollTo")},scrollToOffset:function(a,b){S(b,a,"scrollToOffset")},sendMessage:function(a,b){S(0,0,"message",JSON.stringify(a),b)},setHeightCalculationMethod:function(a){ga=a,t()},setWidthCalculationMethod:function(a){Ba=a,u()},setTargetOrigin:function(a){h("Set targetOrigin: "+a),ua=a},size:function(a,b){var c=""+(a?a:"")+(b?","+b:"");O("size","parentIFrame.size("+c+")",a,b)}}}function E(){0!==ka&&(h("setInterval: "+ka+"ms"),la=setInterval(function(){O("interval","setInterval: "+ka)},Math.abs(ka)))}function F(){function c(a){function b(a){!1===a.complete&&(h("Attach listeners to "+a.src),a.addEventListener("load",g,!1),a.addEventListener("error",i,!1),l.push(a))}"attributes"===a.type&&"src"===a.attributeName?b(a.target):"childList"===a.type&&Array.prototype.forEach.call(a.target.querySelectorAll("img"),b)}function d(a){l.splice(l.indexOf(a),1)}function e(a){h("Remove listeners from "+a.src),a.removeEventListener("load",g,!1),a.removeEventListener("error",i,!1),d(a)}function f(a,c,d){e(a.target),O(c,d+": "+a.target.src,b,b)}function g(a){f(a,"imageLoad","Image loaded")}function i(a){f(a,"imageLoadFailed","Image load failed")}function j(a){O("mutationObserver","mutationObserver: "+a[0].target+" "+a[0].type),a.forEach(c)}function k(){var a=document.querySelector("body"),b={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return n=new m(j),h("Create body MutationObserver"),n.observe(a,b),n}var l=[],m=a.MutationObserver||a.WebKitMutationObserver,n=k();return{disconnect:function(){"disconnect"in n&&(h("Disconnect body MutationObserver"),n.disconnect(),l.forEach(e))}}}function G(){var b=0>ka;a.MutationObserver||a.WebKitMutationObserver?b?E():$=F():(h("MutationObserver not supported in this browser!"),E())}function H(a,b){function c(a){var c=/^\d+(px)?$/i;if(c.test(a))return parseInt(a,W);var d=b.style.left,e=b.runtimeStyle.left;return b.runtimeStyle.left=b.currentStyle.left,b.style.left=a||0,a=b.style.pixelLeft,b.style.left=d,b.runtimeStyle.left=e,a}var d=0;return b=b||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(d=document.defaultView.getComputedStyle(b,null),d=null!==d?d[a]:0):d=c(b.currentStyle[a]),parseInt(d,W)}function I(a){a>ya/2&&(ya=2*a,h("Event throttle increased to "+ya+"ms"))}function J(a,b){for(var c=b.length,d=0,f=0,g=e(a),i=Ia(),j=0;c>j;j++)d=b[j].getBoundingClientRect()[a]+H("margin"+g,b[j]),d>f&&(f=d);return i=Ia()-i,h("Parsed "+c+" HTML elements"),h("Element position calculated in "+i+"ms"),I(i),f}function K(a){return[a.bodyOffset(),a.bodyScroll(),a.documentElementOffset(),a.documentElementScroll()]}function L(a,b){function c(){return i("No tagged elements ("+b+") found on page"),document.querySelectorAll("body *")}var d=document.querySelectorAll("["+b+"]");return 0===d.length&&c(),J(a,d)}function M(){return document.querySelectorAll("body *")}function N(a,c,d,e){function f(){ea=m,za=n,S(ea,za,a)}function g(){function a(a,b){var c=Math.abs(a-b)<=va;return!c}return m=b!==d?d:Ja[ga](),n=b!==e?e:Ka[Ba](),a(ea,m)||aa&&a(za,n)}function i(){return!(a in{init:1,interval:1,size:1})}function j(){return ga in qa||aa&&Ba in qa}function k(){h("No change in size detected")}function l(){i()&&j()?R(c):a in{interval:1}||k()}var m,n;g()||"init"===a?(P(),f()):l()}function O(a,b,c,d){function e(){a in{reset:1,resetPage:1,init:1}||h("Trigger event: "+b)}function f(){return wa&&a in ba}f()?h("Trigger event cancelled: "+a):(e(),La(a,b,c,d))}function P(){wa||(wa=!0,h("Trigger event lock on")),clearTimeout(xa),xa=setTimeout(function(){wa=!1,h("Trigger event lock off"),h("--")},ca)}function Q(a){ea=Ja[ga](),za=Ka[Ba](),S(ea,za,a)}function R(a){var b=ga;ga=fa,h("Reset trigger event: "+a),P(),Q("reset"),ga=b}function S(a,c,d,e,f){function g(){b===f?f=ua:h("Message targetOrigin: "+f)}function i(){var g=a+":"+c,i=pa+":"+g+":"+d+(b!==e?":"+e:"");h("Sending message to host page ("+i+")"),ta.postMessage(na+i,f)}!0===sa&&(g(),i())}function T(b){function d(){return na===(""+b.data).substr(0,oa)}function e(){return b.data.split("]")[1].split(":")[0]}function f(){return b.data.substr(b.data.indexOf(":")+1)}function g(){return"iFrameResize"in a}function k(){return b.data.split(":")[2]in{"true":1,"false":1}}function l(){var a=e();a in n?n[a]():g()||k()||i("Unexpected message ("+b.data+")")}function m(){!1===da?l():k()?n.init():h('Ignored message of type "'+e()+'". Received before initialization.')}var n={init:function(){function d(){ia=b.data,ta=b.source,j(),da=!1,setTimeout(function(){ha=!1},ca)}document.body?d():(h("Waiting for page ready"),c(a,"readystatechange",n.initFromParent))},reset:function(){ha?h("Page reset ignored by init"):(h("Page size reset by host page"),Q("resetPage"))},resize:function(){O("resizeParent","Parent window requested size check")},moveToAnchor:function(){ja.findTarget(f())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var a=f();h("PageInfoFromParent called from parent: "+a),Fa(JSON.parse(a)),h(" --")},message:function(){var a=f();h("MessageCallback called from parent: "+a),Da(JSON.parse(a)),h(" --")}};d()&&m()}function U(){"loading"!==document.readyState&&a.parent.postMessage("[iFrameResizerChild]Ready","*")}var V=!0,W=10,X="",Y=0,Z="",$=null,_="",aa=!1,ba={resize:1,click:1},ca=128,da=!0,ea=1,fa="bodyOffset",ga=fa,ha=!0,ia="",ja={},ka=32,la=null,ma=!1,na="[iFrameSizer]",oa=na.length,pa="",qa={max:1,min:1,bodyScroll:1,documentElementScroll:1},ra="child",sa=!0,ta=a.parent,ua="*",va=0,wa=!1,xa=null,ya=16,za=1,Aa="scroll",Ba=Aa,Ca=a,Da=function(){i("MessageCallback function not defined")},Ea=function(){},Fa=function(){},Ga={height:function(){return i("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return i("Custom width calculation function not defined"),document.body.scrollWidth}},Ha={},Ia=Date.now||function(){return(new Date).getTime()},Ja={bodyOffset:function(){return document.body.offsetHeight+H("marginTop")+H("marginBottom")},offset:function(){return Ja.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Ga.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,K(Ja))},min:function(){return Math.min.apply(null,K(Ja))},grow:function(){return Ja.max()},lowestElement:function(){return Math.max(Ja.bodyOffset(),J("bottom",M()))},taggedElement:function(){return L("bottom","data-iframe-height")}},Ka={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Ga.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Ka.bodyScroll(),Ka.documentElementScroll())},max:function(){return Math.max.apply(null,K(Ka))},min:function(){return Math.min.apply(null,K(Ka))},rightMostElement:function(){return J("right",M())},taggedElement:function(){return L("right","data-iframe-width")}},La=f(N);c(a,"message",T),U()}(window||{});

    'use strict';var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&'function'==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?'symbol':typeof b};(function(b,d){console.log('Connect SDK Version: 1.4.2');var g='finicityConnect';'function'==typeof define&&define.amd?define([g],d):'object'===('undefined'==typeof exports?'undefined':_typeof(exports))?module.exports=d():b[g]=d(),'u'!=('undefined'==typeof Promise?'undefined':_typeof(Promise))[0]||function(k,m){function q(z,A){return('undefined'==typeof A?'undefined':_typeof(A))[0]==z}function v(z,A){return A=function B(C,D,E,F,G,H){function I(J){return function(K){G&&(G=0,B(q,J,K))}}if(F=B.q,C!=q)return v(function(J,K){F.push({p:this,r:J,j:K,1:C,0:D})});if(E&&q(k,E)|q(m,E))try{G=E.then}catch(J){D=0,E=J}if(q(k,G))try{G.call(E,I(1),D=I(0))}catch(J){D(J)}else for(A=function e(J,K){return q(k,J=D?J:K)?v(function(L,M){w(this,L,M,E,J)}):z},H=0;H<F.length;)G=F[H++],q(k,C=G[D])?w(G.p,G.r,G.j,E,C):(D?G.r:G.j)(E)},A.q=[],z.call(z={then:function then(B,C){return A(B,C)},'catch':function _catch(B){return A(0,B)}},function(B){A(q,1,B)},function(B){A(q,0,B)}),z}function w(z,A,B,C,D){setTimeout(function(){try{C=D(C),D=C&&q(m,C)|q(k,C)&&C.then,q(k,D)?C==z?B(TypeError()):D.call(C,A,B):A(C)}catch(E){B(E)}})}function x(z){return v(function(A){A(z)})}window.Promise=v,v.resolve=x,v.reject=function(z){return v(function(A,B){B(z)})},v.all=function(z){return v(function(A,B,C,D){D=[],C=z.length||A(D),z.map(function(E,F){x(E).then(function(G){D[F]=G,--C||A(D)},B)})})}}('f','o'),function(k){var q=function m(){try{return!!Symbol.iterator}catch(A){return!1}}(),v=function(A){var B={next:function next(){var C=A.shift();return{done:void 0===C,value:C}}};return q&&(B[Symbol.iterator]=function(){return B}),B},w=function(A){return encodeURIComponent(A).replace(/%20/g,'+')},x=function(A){return decodeURIComponent(A).replace(/\+/g,' ')};'URLSearchParams'in k&&'a=1'===new URLSearchParams('?a=1').toString()||function a(){var A=function(C){if(Object.defineProperty(this,'_entries',{value:{}}),'string'==typeof C){if(''!==C){C=C.replace(/^\?/,'');for(var E,D=C.split('&'),F=0;F<D.length;F++)E=D[F].split('='),this.append(x(E[0]),1<E.length?x(E[1]):'')}}else if(C instanceof A){var G=this;C.forEach(function(H,I){G.append(H,I)})}},B=A.prototype;B.append=function(C,D){C in this._entries?this._entries[C].push(D.toString()):this._entries[C]=[D.toString()]},B.delete=function(C){delete this._entries[C]},B.get=function(C){return C in this._entries?this._entries[C][0]:null},B.getAll=function(C){return C in this._entries?this._entries[C].slice(0):[]},B.has=function(C){return C in this._entries},B.set=function(C,D){this._entries[C]=[D.toString()]},B.forEach=function(C,D){var E;for(var F in this._entries)if(this._entries.hasOwnProperty(F)){E=this._entries[F];for(var G=0;G<E.length;G++)C.call(D,E[G],F,this)}},B.keys=function(){var C=[];return this.forEach(function(D,E){C.push(E)}),v(C)},B.values=function(){var C=[];return this.forEach(function(D){C.push(D)}),v(C)},B.entries=function(){var C=[];return this.forEach(function(D,E){C.push([E,D])}),v(C)},q&&(B[Symbol.iterator]=B.entries),B.toString=function(){var C=[];return this.forEach(function(D,E){C.push(w(E)+'='+w(D))}),C.join('&')},k.URLSearchParams=A}()}('undefined'==typeof global?'undefined'==typeof window?'undefined'==typeof self?this:self:window:global),function(k){if(function m(){try{var w=new URL('b','http://a');return w.pathname='c%20d','http://a/c%20d'===w.href&&w.searchParams}catch(x){return!1}}()||function n(){var w=k.URL,x=function n(B,C){'string'!=typeof B&&(B+='');var D=document.implementation.createHTMLDocument('');if(window.doc=D,C){var E=D.createElement('base');E.href=C,D.head.appendChild(E)}var F=D.createElement('a');if(F.href=B,D.body.appendChild(F),F.href=F.href,':'===F.protocol||!/:/.test(F.href))throw new TypeError('Invalid URL');Object.defineProperty(this,'_anchorElement',{value:F})},z=x.prototype,A=function(B){Object.defineProperty(z,B,{get:function get(){return this._anchorElement[B]},set:function set(C){this._anchorElement[B]=C},enumerable:!0})};['hash','host','hostname','port','protocol','search'].forEach(function(B){A(B)}),Object.defineProperties(z,{toString:{get:function get(){var B=this;return function(){return B.href}}},href:{get:function get(){return this._anchorElement.href.replace(/\?$/,'')},set:function set(B){this._anchorElement.href=B},enumerable:!0},pathname:{get:function get(){return this._anchorElement.pathname.replace(/(^\/?)/,'/')},set:function set(B){this._anchorElement.pathname=B},enumerable:!0},origin:{get:function get(){var B={'http:':80,'https:':443,'ftp:':21}[this._anchorElement.protocol],C=this._anchorElement.port!=B&&''!==this._anchorElement.port;return this._anchorElement.protocol+'//'+this._anchorElement.hostname+(C?':'+this._anchorElement.port:'')},enumerable:!0},password:{get:function get(){return''},set:function set(){},enumerable:!0},username:{get:function get(){return''},set:function set(){},enumerable:!0},searchParams:{get:function get(){var B=new URLSearchParams(this.search),C=this;return['append','delete','set'].forEach(function(D){var E=B[D];B[D]=function(){E.apply(B,arguments),C.search=B.toString()}}),B},enumerable:!0}}),x.createObjectURL=function(){return w.createObjectURL.apply(w,arguments)},x.revokeObjectURL=function(){return w.revokeObjectURL.apply(w,arguments)},k.URL=x}(),void 0!==k.location&&!('origin'in k.location)){var v=function(){return k.location.protocol+'//'+k.location.hostname+(k.location.port?':'+k.location.port:'')};try{Object.defineProperty(k.location,'origin',{get:v,enumerable:!0})}catch(w){setInterval(function(){k.location.origin=v()},100)}}}('undefined'==typeof global?'undefined'==typeof window?'undefined'==typeof self?this:self:window:global)})(window,function(){function b(L){var M=setInterval(g,1e3,{type:B,resize:L});G=function onMessageFn(N){var O=N.data.query,P=N.data.type;if(N.origin===H)if(P===v)clearInterval(M);else if(P===x)d(N.data.url);else if(P===z)F.success(O),K.destroyIFrame();else if(P===w){var Q=new Error('Finicity Connect iFrame was cancelled by user');Q.code=K.ERROR_CODES.CANCEL,F.cancel(Q),K.destroyIFrame()}else if(P===A){var R=new Error(message);F.error(R),K.destroyIFrame()}else P===D?F.route(N.data):P===E&&F.resize(N.data)},window.addEventListener('message',G)}function d(L){var M=window.top.outerHeight/2+window.top.screenY-q/2,N=window.top.outerWidth/2+window.top.screenX-m/2,O=window.open(L,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+m+',height='+q+',top='+M+',left='+N);O.focus();var P=setInterval(function(){O.closed&&(clearInterval(P),g({type:C,closed:!0}))},1e3)}function g(L){I.contentWindow.postMessage(L,H)}var k='finicityConnectIframe',m=600,q=600,v='ack',w='cancel',x='url',z='done',A='error',B='ping',C='window',D='route',E='resize',F,G,H,I,J;document.addEventListener('DOMContentLoaded',function(){var L=document.createElement('style');L.type='text/css',L.innerHTML='#'+k+'{\n      position: initial;\n      left: 0;\n      top: 0;\n      width: 100%;\n      height:700px;\n      z-index: 10;\n }',document.getElementsByTagName('head')[0].appendChild(L)});var K={ERROR_CODES:{CANCEL:'CANCEL'},destroyIFrame:function destroyIFrame(){I&&I.parentNode&&I.parentNode.removeChild(I),J&&J.parentNode&&J.parentNode.removeChild(J),I=void 0,J=void 0,window.removeEventListener('message',G)},connectIFrame:function connectIFrame(L){var M=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},N=!!M.resize;if(F=M,I&&I.parentNode)throw new Error('You must destroy the iframe before you can open a new one. Call finicityConnect.destroyIFrame()');return new Promise(function(O,P){M.success=M.success||function(T){O(T)},M.error=M.error||function(T){P(T)},M.loaded=M.loaded||function(){},M.cancel=M.cancel||function(T){P(T)},M.route=M.route||function(){},M.resize=M.resize||function(){};var Q=document.querySelectorAll('meta[name="viewport"]');0===Q.length&&(J=document.createElement('meta'),J.setAttribute('name','viewport'),J.setAttribute('content','initial-scale=1'),document.head.appendChild(J)),I=document.createElement('iframe'),I.src=L,I.setAttribute('id',k),I.setAttribute('frameborder','0'),I.setAttribute('scrolling','no'),M.overlay&&I.setAttribute('style','background: '+M.overlay+';');var R=document.querySelector(M.selector)||document.body;R.appendChild(I),H=new URL(L).origin;var S=!1;I.onload=function(){S||(b(N),M.loaded(),S=!0)}})}};return K});
    //# sourceMappingURL=finicity-browser.js.map
  </script>
</body>

</html>
