From 9377424374fc44f487b18bbec7aebe91a2772c1d Mon Sep 17 00:00:00 2001 From: shama Date: Thu, 4 Jan 2024 21:12:29 +0000 Subject: [PATCH] deploy: 89cdb11bffb3ece92507c57b3afa16b18aec1182 --- dist/build.js | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/build.js b/dist/build.js index 3936ae1..b8f6576 100644 --- a/dist/build.js +++ b/dist/build.js @@ -1,2 +1,2 @@ /*! For license information please see build.js.LICENSE.txt */ -(()=>{var e={559:function(e,t,n){var r;!function(o){"use strict";function a(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,a="URLSearchParams"in o,i="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),c="FormData"in o,u="ArrayBuffer"in o;if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:c&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,t,r,o=g(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},b.call(C.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,a){return new n((function(n,i){var c=new C(e,a);if(c.signal&&c.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new r;function d(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new S(o,r))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){i(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":u&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof v?c.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(a.headers).forEach((function(e){l.setRequestHeader(e,h(a.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",d),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",d)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=v,o.Request=C,o.Response=S),t.Headers=v,t.Request=C,t.Response=S,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";var e=Object.freeze({});function t(e){return null==e}function r(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function i(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function c(e){return"[object Object]"===s.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var g=Object.prototype.hasOwnProperty;function y(e,t){return g.call(e,t)}function m(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=m((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),w=m((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,A=m((function(e){return e.replace(C,"-$1").toLowerCase()})),S=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function O(e,t){for(var n in t)e[n]=t[n];return e}function j(e){for(var t={},n=0;n0,H=G&&G.indexOf("edge/")>0,W=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===z),V=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),J={}.watch,Z=!1;if(N)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,Q)}catch(e){}var ee=function(){return void 0===q&&(q=!N&&!K&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),q},te=N&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,oe="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);re="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=R,ie=0,se=function(){this.id=ie++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){v(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(a&&!y(o,"default"))i=!1;else if(""===i||i===A(e)){var c=Me(String,o.type);(c<0||s0&&(ct((s=ut(s,(n||"")+"_"+i))[0])&&ct(u)&&(l[c]=pe(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?ct(u)?l[c]=pe(u.text+s):""!==s&&l.push(pe(s)):ct(s)&&ct(u)?l[c]=pe(u.text+s.text):(o(e._isVList)&&r(s.tag)&&t(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+i+"__"),l.push(s)));return l}function lt(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(i&&r&&r!==e&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=pt(n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=vt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),M(o,"$stable",i),M(o,"$key",s),M(o,"$hasNormal",a),o}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:st(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function vt(e,t){return function(){return e[t]}}function gt(e,t){var n,o,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,a=e.length;odocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function dn(){var e,t;for(cn=un(),an=!0,tn.sort((function(e,t){return e.id-t.id})),sn=0;snsn&&tn[n].id>e.id;)n--;tn.splice(n+1,0,e)}else tn.push(e);on||(on=!0,Ze(dn))}}(this)},hn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||i(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){qe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:R,set:R};function vn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}var gn={lazy:!0};function yn(e,t,n){var r=!ee();"function"==typeof n?(pn.get=r?mn(t):_n(n),pn.set=R):(pn.get=n.get?r&&!1!==n.cache?mn(t):_n(n.get):R,pn.set=n.set||R),Object.defineProperty(e,t,pn)}function mn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),se.target&&t.depend(),t.value}}function _n(e){return function(){return e.call(this,this)}}function bn(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var wn=0;function Cn(e){var t=e.options;if(e.super){var n=Cn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);r&&O(e.extendOptions,r),(t=e.options=Ue(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function An(e){this._init(e)}function Sn(e){return e&&(e.Ctor.options.name||e.tag)}function Tn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,!("[object RegExp]"!==s.call(n))&&e.test(t));var n}function On(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var a in n){var i=n[a];if(i){var s=Sn(i.componentOptions);s&&!t(s)&&jn(n,a,r,o)}}}function jn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=wn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ue(Cn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,o=r&&r.context;t.$slots=dt(n._renderChildren,o),t.$scopedSlots=e,t._c=function(e,n,r,o){return Mt(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Mt(t,e,n,r,o,!0)};var a=r&&r.data;Ae(t,"$attrs",a&&a.attrs||e,null,!0),Ae(t,"$listeners",n._parentListeners||e,null,!0)}(n),en(n,"beforeCreate"),function(e){var t=lt(e.$options.inject,e);t&&(be(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),be(!0))}(n),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];!e.$parent||be(!1);var a=function(a){o.push(a);var i=Ie(a,t,n,e);Ae(r,a,i),a in e||vn(e,"_props",a)};for(var i in t)a(i);be(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?R:S(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return qe(e,t,"data()"),{}}finally{le()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),o=e.$options.props,a=(e.$options.methods,r.length);a--;){var i=r[a];o&&y(o,i)||(n=void 0,36===(n=(i+"").charCodeAt(0))||95===n)||vn(e,"_data",i)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ee();for(var o in t){var a=t[o],i="function"==typeof a?a:a.get;r||(n[o]=new hn(e,i||R,R,gn)),o in e||yn(e,o,a)}}(e,t.computed),t.watch&&t.watch!==J&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o1?T(n):n;for(var r=T(arguments,1),o='event handler for "'+e+'"',a=0,i=n.length;aparseInt(this.max)&&jn(i,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:O,mergeOptions:Ue,defineReactive:Ae},e.set=Se,e.delete=Te,e.nextTick=Ze,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),I.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,O(e.options.components,Pn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ue(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var a=e.name||n.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=t++,i.options=Ue(n.options,e),i.super=n,i.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(i),i.options.computed&&function(e){var t=e.options.computed;for(var n in t)yn(e.prototype,n,t[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,I.forEach((function(e){i[e]=n[e]})),a&&(i.options.components[a]=i),i.superOptions=n.options,i.extendOptions=e,i.sealedOptions=O({},i.options),o[r]=i,i}}(e),function(e){I.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(An),Object.defineProperty(An.prototype,"$isServer",{get:ee}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:Lt}),An.version="2.6.11";var En=h("style,class"),Ln=h("input,textarea,option,select,progress"),xn=h("contenteditable,draggable,spellcheck"),Un=h("events,caret,typing,plaintext-only"),Bn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",kn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},$n=function(e){return kn(e)?e.slice(6,e.length):""},Mn=function(e){return null==e||!1===e};function qn(e,t){return{staticClass:Dn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Dn(e,t){return e?t?e+" "+t:e:t||""}function Fn(e){return Array.isArray(e)?function(e){for(var t,n="",o=0,a=e.length;o-1?lr(e,t,n):Bn(t)?Mn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xn(t)?e.setAttribute(t,function(e,t){return Mn(t)||"false"===t?"false":"contenteditable"===e&&Un(t)?t:"true"}(t,n)):kn(t)?Mn(n)?e.removeAttributeNS(In,$n(t)):e.setAttributeNS(In,t,n):lr(e,t,n)}function lr(e,t,n){if(Mn(n))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var dr={create:cr,update:cr};function fr(e,n){var o=n.elm,a=n.data,i=e.data;if(!(t(a.staticClass)&&t(a.class)&&(t(i)||t(i.staticClass)&&t(i.class)))){var s=function(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(t=qn(o.data,t));for(;r(n=n.parent);)n&&n.data&&(t=qn(t,n.data));return a=t.staticClass,i=t.class,r(a)||r(i)?Dn(a,Fn(i)):"";var a,i}(n),c=o._transitionClasses;r(c)&&(s=Dn(s,Fn(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var hr,pr={create:fr,update:fr},vr="__r",gr="__c";function yr(e,t,n){var r=hr;return function o(){var a=t.apply(null,arguments);null!==a&&br(e,o,n,r)}}var mr=ze&&!(V&&Number(V[1])<=53);function _r(e,t,n,r){if(mr){var o=cn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}hr.addEventListener(e,t,Z?{capture:n,passive:r}:n)}function br(e,t,n,r){(r||hr).removeEventListener(e,t._wrapper||t,n)}function wr(e,n){if(!t(e.data.on)||!t(n.data.on)){var o=n.data.on||{},a=e.data.on||{};hr=n.elm,function(e){if(r(e[vr])){var t=Y?"change":"input";e[t]=[].concat(e[vr],e[t]||[]),delete e[vr]}r(e[gr])&&(e.change=[].concat(e[gr],e.change||[]),delete e[gr])}(o),ot(o,a,_r,br,yr,n.context),hr=void 0}}var Cr,Ar={create:wr,update:wr};function Sr(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var o,a,i=n.elm,s=e.data.domProps||{},c=n.data.domProps||{};for(o in r(c.__ob__)&&(c=n.data.domProps=O({},c)),s)o in c||(i[o]="");for(o in c){if(a=c[o],"textContent"===o||"innerHTML"===o){if(n.children&&(n.children.length=0),a===s[o])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===o&&"PROGRESS"!==i.tagName){i._value=a;var u=t(a)?"":String(a);Tr(i,u)&&(i.value=u)}else if("innerHTML"===o&&zn(i.tagName)&&t(i.innerHTML)){(Cr=Cr||document.createElement("div")).innerHTML=""+a+"";for(var l=Cr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(a!==s[o])try{i[o]=a}catch(e){}}}}function Tr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,o=e._vModifiers;if(r(o)){if(o.number)return f(n)!==f(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Or={create:Sr,update:Sr},jr=m((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Rr(e){var t=Pr(e.style);return e.staticStyle?O(e.staticStyle,t):t}function Pr(e){return Array.isArray(e)?j(e):"string"==typeof e?jr(e):e}var Er,Lr=/^--/,xr=/\s*!important$/,Ur=function(e,t,n){if(Lr.test(t))e.style.setProperty(t,n);else if(xr.test(n))e.style.setProperty(A(t),n.replace(xr,""),"important");else{var r=Ir(t);if(Array.isArray(n))for(var o=0,a=n.length;o-1?t.split(Mr).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Dr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Mr).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Fr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&O(t,Nr(e.name||"v")),O(t,e),t}return"string"==typeof e?Nr(e):void 0}}var Nr=m((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kr=N&&!X,zr="transition",Gr="animation",Yr="transition",Xr="transitionend",Hr="animation",Wr="animationend";Kr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Yr="WebkitTransition",Xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Hr="WebkitAnimation",Wr="webkitAnimationEnd"));var Vr=N?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Jr(e){Vr((function(){Vr(e)}))}function Zr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),qr(e,t))}function Qr(e,t){e._transitionClasses&&v(e._transitionClasses,t),Dr(e,t)}function eo(e,t,n){var r=no(e,t),o=r.type,a=r.timeout,i=r.propCount;if(!o)return n();var s=o===zr?Xr:Wr,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=i&&u()};setTimeout((function(){c0&&(n=zr,l=i,d=a.length):t===Gr?u>0&&(n=Gr,l=u,d=c.length):d=(n=(l=Math.max(i,u))>0?i>u?zr:Gr:null)?n===zr?a.length:c.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===zr&&to.test(r[Yr+"Property"])}}function ro(e,t){for(;e.length1}function uo(e,t){!0!==t.data.show&&ao(t)}var lo=function(e){var n,i,s={},c=e.modules,u=e.nodeOps;for(n=0;np?_(e,t(o[y+1])?null:o[y+1].elm,o,h,y,a):h>y&&w(n,f,p)}(f,v,y,a,l):r(y)?(r(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,a)):r(v)?w(v,0,v.length-1):r(e.text)&&u.setTextContent(f,""):e.text!==n.text&&u.setTextContent(f,n.text),r(p)&&r(h=p.hook)&&r(h=h.postpatch)&&h(e,n)}}}function T(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var a=0;a-1,i.selected!==a&&(i.selected=a);else if(L(go(i),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function vo(e,t){return t.every((function(t){return!L(t,e)}))}function go(e){return"_value"in e?e._value:e.value}function yo(e){e.target.composing=!0}function mo(e){e.target.composing&&(e.target.composing=!1,_o(e.target,"input"))}function _o(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function bo(e){return!e.componentInstance||e.data&&e.data.transition?e:bo(e.componentInstance._vnode)}var wo={bind:function(e,t,n){var r=t.value,o=(n=bo(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,ao(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=bo(n)).data&&n.data.transition?(n.data.show=!0,r?ao(n,(function(){e.style.display=e.__vOriginalDisplay})):io(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Co={model:fo,show:wo},Ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function So(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?So(zt(t.children)):e}function To(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var a in o)t[b(a)]=o[a];return t}function Oo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var jo=function(e){return e.tag||Kt(e)},Ro=function(e){return"show"===e.name},Po={name:"transition",props:Ao,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(jo)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var i=So(o);if(!i)return o;if(this._leaving)return Oo(e,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=To(this),u=this._vnode,l=So(u);if(i.data.directives&&i.data.directives.some(Ro)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!Kt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,at(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Oo(e,o);if("in-out"===r){if(Kt(i))return u;var f,h=function(){f()};at(c,"afterEnter",h),at(c,"enterCancelled",h),at(d,"delayLeave",(function(e){f=e}))}}return o}}},Eo=O({tag:String,moveClass:String},Ao);function Lo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function xo(e){e.data.newPos=e.elm.getBoundingClientRect()}function Uo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+o+"px)",a.transitionDuration="0s"}}delete Eo.mode;var Bo={Transition:Po,TransitionGroup:{props:Eo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Vt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],a=this.children=[],i=To(this),s=0;s-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},O(An.options.directives,Co),O(An.options.components,Bo),An.prototype.__patch__=N?lo:R,An.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=he),en(e,"beforeMount"),r=function(){e._update(e._render(),n)},new hn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&en(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,en(e,"mounted")),e}(this,e=e&&N?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},N&&setTimeout((function(){$.devtools&&te&&te.emit("init",An)}),0);const Io=An;var ko=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("Nav"),e._v(" "),n("div",{staticClass:"container"},[e.loading?n("h1",{staticClass:"display-4"},[e._v("Loading...")]):e._e(),e._v(" "),e.error?n("div",[n("h1",{staticClass:"display-4"},[e._v("Oops!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v(e._s(e.error))]),e._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:e.resetToken}},[e._v("Try Again >")])]):n("div",[e.ynab.token?e.budgetId?n("div",[n("Transactions",{attrs:{transactions:e.transactions}}),e._v(" "),n("button",{staticClass:"btn btn-info",on:{click:function(t){e.budgetId=null}}},[e._v("< Select Another Budget")])],1):n("Budgets",{attrs:{budgets:e.budgets,selectBudget:e.selectBudget}}):n("form",[n("h1",{staticClass:"display-4"},[e._v("Congrats!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v("You have successfully initialized a new YNAB API Application!")]),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),n("p",[e._v(" ")]),e._v(" "),n("div",{staticClass:"form-group"},[n("h2",[e._v("Hello!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v("If you would like to use this App, please authorize with YNAB!")]),e._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:e.authorizeWithYNAB}},[e._v("Authorize This App With YNAB >")])])])],1),e._v(" "),n("Footer")],1)],1)};ko._withStripped=!0;var $o,Mo=function(e,t){this.apiKey="Bearer ".concat(e),this.basePath=t},qo=($o=function(e,t){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Do=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},Fo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getAccountById:function(t,n,r){var o=this,a=ra(e).getAccountById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getAccounts:function(t,n,r){var o=this,a=ra(e).getAccounts(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.createAccount=function(e,t,n){return oa(this.configuration).createAccount(e,t,n)()},t.prototype.getAccountById=function(e,t,n){return oa(this.configuration).getAccountById(e,t,n)()},t.prototype.getAccounts=function(e,t,n){return oa(this.configuration).getAccounts(e,t,n)()},t}(ta),ia=function(e){return{getBudgetById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");var o="/budgets/{budget_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getBudgetSettingsById:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");var r="/budgets/{budget_id}/settings".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"GET"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},getBudgets:function(t,n){void 0===n&&(n={});var r=new URL("/budgets","https://example.com"),o=Object.assign({method:"GET"},n),a={},i={};if(a["User-Agent"]=Ko,a.Accept="application/json",e&&e.apiKey){var s=e.apiKey;a.Authorization=s}void 0!==t&&(i.include_accounts=t);var c=new URLSearchParams(r.search);for(var u in i)c.set(u,i[u]);for(var u in n.query)c.set(u,n.query[u]);return r.search=new URLSearchParams(c).toString(),o.headers=Object.assign({},a,n.headers),{url:r.pathname+r.search+r.hash,options:o}}}},sa=function(e){return{getBudgetById:function(t,n,r){var o=this,a=ia(e).getBudgetById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgetSettingsById:function(t,n){var r=this,o=ia(e).getBudgetSettingsById(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgets:function(t,n){var r=this,o=ia(e).getBudgets(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getBudgetById=function(e,t,n){return sa(this.configuration).getBudgetById(e,t,n)()},t.prototype.getBudgetSettingsById=function(e,t){return sa(this.configuration).getBudgetSettingsById(e,t)()},t.prototype.getBudgets=function(e,t){return sa(this.configuration).getBudgets(e,t)()},t}(ta),ua=function(e){return{getCategories:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");var o="/budgets/{budget_id}/categories".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getCategoryById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null==n)throw new na("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");var o="/budgets/{budget_id}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("category_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getMonthCategoryById:function(t,n,r,o){if(void 0===o&&(o={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getMonthCategoryById.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null==r)throw new na("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");var a="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))).replace("{".concat("category_id","}"),encodeURIComponent(String(r))),i=new URL(a,"https://example.com"),s=Object.assign({method:"GET"},o),c={},u={};if(c["User-Agent"]=Ko,c.Accept="application/json",e&&e.apiKey){var l=e.apiKey;c.Authorization=l}var d=new URLSearchParams(i.search);for(var f in u)d.set(f,u[f]);for(var f in o.query)d.set(f,o.query[f]);return i.search=new URLSearchParams(d).toString(),s.headers=Object.assign({},c,o.headers),{url:i.pathname+i.search+i.hash,options:s}},updateMonthCategory:function(t,n,r,o,a){if(void 0===a&&(a={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null==r)throw new na("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null==o)throw new na("data","Required parameter data was null or undefined when calling updateMonthCategory.");var i="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))).replace("{".concat("category_id","}"),encodeURIComponent(String(r))),s=new URL(i,"https://example.com"),c=Object.assign({method:"PATCH"},a),u={},l={};if(u["User-Agent"]=Ko,u.Accept="application/json",e&&e.apiKey){var d=e.apiKey;u.Authorization=d}u["Content-Type"]="application/json";var f=new URLSearchParams(s.search);for(var h in l)f.set(h,l[h]);for(var h in a.query)f.set(h,a.query[h]);return s.search=new URLSearchParams(f).toString(),c.headers=Object.assign({},u,a.headers),c.body=JSON.stringify(o||{}),{url:s.pathname+s.search+s.hash,options:c}}}},la=function(e){return{getCategories:function(t,n,r){var o=this,a=ua(e).getCategories(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getCategoryById:function(t,n,r){var o=this,a=ua(e).getCategoryById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getMonthCategoryById:function(t,n,r,o){var a=this,i=ua(e).getMonthCategoryById(t,n,r,o);return function(t){return void 0===t&&(t=fetch),t(e.basePath+i.url,i.options).then((function(e){return Do(a,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateMonthCategory:function(t,n,r,o,a){var i=this,s=ua(e).updateMonthCategory(t,n,r,o,a);return function(t){return void 0===t&&(t=fetch),t(e.basePath+s.url,s.options).then((function(e){return Do(i,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getCategories=function(e,t,n){return la(this.configuration).getCategories(e,t,n)()},t.prototype.getCategoryById=function(e,t,n){return la(this.configuration).getCategoryById(e,t,n)()},t.prototype.getMonthCategoryById=function(e,t,n,r){return la(this.configuration).getMonthCategoryById(e,t,n,r)()},t.prototype.updateMonthCategory=function(e,t,n,r,o){return la(this.configuration).updateMonthCategory(e,t,n,r,o)()},t}(ta),fa=function(e){return{bulkCreateTransactions:function(t,n,r){var o=this,a=function(e){return{bulkCreateTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null==n)throw new na("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");var o="/budgets/{budget_id}/transactions/bulk".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"POST"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}}}}(e).bulkCreateTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ha=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}qo(t,e),t.prototype.bulkCreateTransactions=function(e,t,n){return fa(this.configuration).bulkCreateTransactions(e,t,n)()}}(ta),function(e){return{getBudgetMonth:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling getBudgetMonth.");var o="/budgets/{budget_id}/months/{month}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getBudgetMonths:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");var o="/budgets/{budget_id}/months".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}}),pa=function(e){return{getBudgetMonth:function(t,n,r){var o=this,a=ha(e).getBudgetMonth(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgetMonths:function(t,n,r){var o=this,a=ha(e).getBudgetMonths(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getBudgetMonth=function(e,t,n){return pa(this.configuration).getBudgetMonth(e,t,n)()},t.prototype.getBudgetMonths=function(e,t,n){return pa(this.configuration).getBudgetMonths(e,t,n)()},t}(ta),ga=function(e){return{getPayeeLocationById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null==n)throw new na("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");var o="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_location_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getPayeeLocations:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");var r="/budgets/{budget_id}/payee_locations".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"GET"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},getPayeeLocationsByPayee:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");var o="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},ya=function(e){return{getPayeeLocationById:function(t,n,r){var o=this,a=ga(e).getPayeeLocationById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayeeLocations:function(t,n){var r=this,o=ga(e).getPayeeLocations(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayeeLocationsByPayee:function(t,n,r){var o=this,a=ga(e).getPayeeLocationsByPayee(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getPayeeLocationById=function(e,t,n){return ya(this.configuration).getPayeeLocationById(e,t,n)()},t.prototype.getPayeeLocations=function(e,t){return ya(this.configuration).getPayeeLocations(e,t)()},t.prototype.getPayeeLocationsByPayee=function(e,t,n){return ya(this.configuration).getPayeeLocationsByPayee(e,t,n)()},t}(ta),_a=function(e){return{getPayeeById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");var o="/budgets/{budget_id}/payees/{payee_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getPayees:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");var o="/budgets/{budget_id}/payees".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},ba=function(e){return{getPayeeById:function(t,n,r){var o=this,a=_a(e).getPayeeById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayees:function(t,n,r){var o=this,a=_a(e).getPayees(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getPayeeById=function(e,t,n){return ba(this.configuration).getPayeeById(e,t,n)()},t.prototype.getPayees=function(e,t,n){return ba(this.configuration).getPayees(e,t,n)()},t}(ta),Ca=function(e){return{getScheduledTransactionById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null==n)throw new na("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");var o="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("scheduled_transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getScheduledTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");var o="/budgets/{budget_id}/scheduled_transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},Aa=function(e){return{getScheduledTransactionById:function(t,n,r){var o=this,a=Ca(e).getScheduledTransactionById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getScheduledTransactions:function(t,n,r){var o=this,a=Ca(e).getScheduledTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getScheduledTransactionById=function(e,t,n){return Aa(this.configuration).getScheduledTransactionById(e,t,n)()},t.prototype.getScheduledTransactions=function(e,t,n){return Aa(this.configuration).getScheduledTransactions(e,t,n)()},t}(ta),Ta=function(e){return{createTransaction:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null==n)throw new na("data","Required parameter data was null or undefined when calling createTransaction.");var o="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"POST"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}},deleteTransaction:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling deleteTransaction.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling deleteTransaction.");var o="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"DELETE"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getTransactionById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");var o="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getTransactions:function(t,n,r,o,a){if(void 0===a&&(a={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");var i="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),s=new URL(i,"https://example.com"),c=Object.assign({method:"GET"},a),u={},l={};if(u["User-Agent"]=Ko,u.Accept="application/json",e&&e.apiKey){var d=e.apiKey;u.Authorization=d}void 0!==n&&(l.since_date=zo(n)),void 0!==r&&(l.type=r),void 0!==o&&(l.last_knowledge_of_server=o);var f=new URLSearchParams(s.search);for(var h in l)f.set(h,l[h]);for(var h in a.query)f.set(h,a.query[h]);return s.search=new URLSearchParams(f).toString(),c.headers=Object.assign({},u,a.headers),{url:s.pathname+s.search+s.hash,options:c}},getTransactionsByAccount:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null==n)throw new na("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");var s="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("account_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},getTransactionsByCategory:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null==n)throw new na("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");var s="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("category_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},getTransactionsByPayee:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");var s="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},importTransactions:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling importTransactions.");var r="/budgets/{budget_id}/transactions/import".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"POST"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},updateTransaction:function(t,n,r,o){if(void 0===o&&(o={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null==r)throw new na("data","Required parameter data was null or undefined when calling updateTransaction.");var a="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),i=new URL(a,"https://example.com"),s=Object.assign({method:"PUT"},o),c={},u={};if(c["User-Agent"]=Ko,c.Accept="application/json",e&&e.apiKey){var l=e.apiKey;c.Authorization=l}c["Content-Type"]="application/json";var d=new URLSearchParams(i.search);for(var f in u)d.set(f,u[f]);for(var f in o.query)d.set(f,o.query[f]);return i.search=new URLSearchParams(d).toString(),s.headers=Object.assign({},c,o.headers),s.body=JSON.stringify(r||{}),{url:i.pathname+i.search+i.hash,options:s}},updateTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateTransactions.");if(null==n)throw new na("data","Required parameter data was null or undefined when calling updateTransactions.");var o="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"PATCH"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}}}},Oa=function(e){return{createTransaction:function(t,n,r){var o=this,a=Ta(e).createTransaction(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},deleteTransaction:function(t,n,r){var o=this,a=Ta(e).deleteTransaction(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionById:function(t,n,r){var o=this,a=Ta(e).getTransactionById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactions:function(t,n,r,o,a){var i=this,s=Ta(e).getTransactions(t,n,r,o,a);return function(t){return void 0===t&&(t=fetch),t(e.basePath+s.url,s.options).then((function(e){return Do(i,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByAccount:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByAccount(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByCategory:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByCategory(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByPayee:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByPayee(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},importTransactions:function(t,n){var r=this,o=Ta(e).importTransactions(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateTransaction:function(t,n,r,o){var a=this,i=Ta(e).updateTransaction(t,n,r,o);return function(t){return void 0===t&&(t=fetch),t(e.basePath+i.url,i.options).then((function(e){return Do(a,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateTransactions:function(t,n,r){var o=this,a=Ta(e).updateTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.createTransaction=function(e,t,n){return Oa(this.configuration).createTransaction(e,t,n)()},t.prototype.deleteTransaction=function(e,t,n){return Oa(this.configuration).deleteTransaction(e,t,n)()},t.prototype.getTransactionById=function(e,t,n){return Oa(this.configuration).getTransactionById(e,t,n)()},t.prototype.getTransactions=function(e,t,n,r,o){return Oa(this.configuration).getTransactions(e,t,n,r,o)()},t.prototype.getTransactionsByAccount=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByAccount(e,t,n,r,o,a)()},t.prototype.getTransactionsByCategory=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByCategory(e,t,n,r,o,a)()},t.prototype.getTransactionsByPayee=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByPayee(e,t,n,r,o,a)()},t.prototype.importTransactions=function(e,t){return Oa(this.configuration).importTransactions(e,t)()},t.prototype.updateTransaction=function(e,t,n,r){return Oa(this.configuration).updateTransaction(e,t,n,r)()},t.prototype.updateTransactions=function(e,t,n){return Oa(this.configuration).updateTransactions(e,t,n)()},t}(ta),Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getUser=function(e){return(t=this.configuration,{getUser:function(e){var n=this,r=function(e){return{getUser:function(t){void 0===t&&(t={});var n=new URL("/user","https://example.com"),r=Object.assign({method:"GET"},t),o={},a={};if(o["User-Agent"]=Ko,o.Accept="application/json",e&&e.apiKey){var i=e.apiKey;o.Authorization=i}var s=new URLSearchParams(n.search);for(var c in a)s.set(c,a[c]);for(var c in t.query)s.set(c,t.query[c]);return n.search=new URLSearchParams(s).toString(),r.headers=Object.assign({},o,t.headers),{url:n.pathname+n.search+n.hash,options:r}}}}(t).getUser(e);return function(e){return void 0===e&&(e=fetch),e(t.basePath+r.url,r.options).then((function(e){return Do(n,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}).getUser(e)();var t},t}(ta),Pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pa(t,e),t.prototype.getTransactionsByType=function(e,t,n,r){return Oa(this.configuration).getTransactions(e,void 0,t,n,r)()},t.prototype.createTransactions=function(e,t,n){return Oa(this.configuration).createTransaction(e,t,n)()},t.prototype.bulkCreateTransactions=function(e,t,n){return fa(this.configuration).bulkCreateTransactions(e,t,n)()},t}(ja);const La={getCurrentMonthInISOFormat:function(){return"".concat(this.getCurrentDateInISOFormat().substr(0,7),"-01")},getCurrentDateInISOFormat:function(){var e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:function(e){return new Date(new Date(e))},convertMilliUnitsToCurrencyAmount:function(e,t){void 0===t&&(t=2);var n=Math.pow(10,3-Math.min(3,t));n=1/n;var r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}};var xa=function(){function e(e,t){void 0===t&&(t="https://api.youneedabudget.com/v1"),this._configuration=new Mo(e,t)}return Object.defineProperty(e.prototype,"user",{get:function(){return this._user||(this._user=new Ra(this._configuration)),this._user},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"budgets",{get:function(){return this._budgets||(this._budgets=new ca(this._configuration)),this._budgets},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accounts",{get:function(){return this._accounts||(this._accounts=new aa(this._configuration)),this._accounts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"categories",{get:function(){return this._categories||(this._categories=new da(this._configuration)),this._categories},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"months",{get:function(){return this._months||(this._months=new va(this._configuration)),this._months},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payees",{get:function(){return this._payees||(this._payees=new wa(this._configuration)),this._payees},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payeeLocations",{get:function(){return this._payeeLocations||(this._payeeLocations=new ma(this._configuration)),this._payeeLocations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transactions",{get:function(){return this._transactions||(this._transactions=new Ea(this._configuration)),this._transactions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheduledTransactions",{get:function(){return this._scheduledTransactions||(this._scheduledTransactions=new Sa(this._configuration)),this._scheduledTransactions},enumerable:!1,configurable:!0}),e}();const Ua=JSON.parse('{"I":"a56948bc5fe6e80c1a241151611a53350518c119ea413de4375694ebebbd68e0","B":"https://ynab.github.io/ynab-api-starter-kit/"}');var Ba=function(){var e=this;e.$createElement;return e._self._c,e._m(0)};function Ia(e,t,n,r,o,a,i,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}Ba._withStripped=!0;var ka=Ia({},Ba,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar navbar-dark bg-primary d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 border-bottom box-shadow"},[n("div",{staticClass:"container"},[n("h5",{staticClass:"my-0 mr-md-auto font-weight-normal navbar-brand"},[e._v("YNAB API Starter Kit")])])])}],!1,null,null,null);ka.options.__file="src/components/Nav.vue";const $a=ka.exports;var Ma=function(){var e=this;e.$createElement;return e._self._c,e._m(0)};Ma._withStripped=!0;var qa=Ia({},Ma,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"pt-4 my-md-5 pt-md-5 border-top"},[n("div",[n("h2",[e._v("Privacy Policy")]),e._v(" "),n("p",[e._v("This website does not store any information from you or your YNAB account. All data retrieved from the YNAB API is stored only in your browser and is never transmitted to any other location or third-party.")])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md"},[n("small",{staticClass:"text-muted"},[e._v("MADE BY")]),e._v(" "),n("h5",[n("a",{attrs:{href:"#"}},[e._v("You!")])])])])])}],!1,null,null,null);qa.options.__file="src/components/Footer.vue";const Da=qa.exports;var Fa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"budgets container"},[n("h5",[e._v("Select A Budget")]),e._v(" "),e._l(e.budgets,(function(t){return n("div",{staticClass:"row"},[n("a",{staticClass:"col",attrs:{href:"#"},on:{click:function(n){return e.selectBudget(t.id,n)}}},[e._v("\n "+e._s(t.name)+"\n ")])])}))],2)};Fa._withStripped=!0;var Na=Ia({props:["budgets","selectBudget"]},Fa,[],!1,null,null,null);Na.options.__file="src/components/Budgets.vue";const Ka=Na.exports;var za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("h5",[e._v("Transactions")]),e._v(" "),n("table",{staticClass:"table"},[e._m(0),e._v(" "),n("tbody",e._l(e.transactions,(function(t){return n("tr",{key:t.id},[n("td",[e._v(e._s(t.account_name))]),e._v(" "),n("td",[e._v(e._s(t.date))]),e._v(" "),n("td",[e._v(e._s(t.payee_name))]),e._v(" "),n("td",[e._v(e._s(t.category_name))]),e._v(" "),n("td",[e._v(e._s(t.memo))]),e._v(" "),n("td",[e._v(e._s(e.convertMilliUnitsToCurrencyAmount(t.amount).toFixed(2)))])])})),0)])])};za._withStripped=!0;var Ga=Ia({props:["transactions"],methods:{convertMilliUnitsToCurrencyAmount:La.convertMilliUnitsToCurrencyAmount}},za,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("Account")]),e._v(" "),n("th",[e._v("Date")]),e._v(" "),n("th",[e._v("Payee")]),e._v(" "),n("th",[e._v("Category")]),e._v(" "),n("th",[e._v("Memo")]),e._v(" "),n("th",[e._v("Amount")])])])}],!1,null,null,null);Ga.options.__file="src/components/Transactions.vue";var Ya=Ia({data:()=>({ynab:{clientId:Ua.I,redirectUri:Ua.B,token:null,api:null},loading:!1,error:null,budgetId:null,budgets:[],transactions:[]}),created(){this.ynab.token=this.findYNABToken(),this.ynab.token&&(this.api=new xa(this.ynab.token),this.budgetId?this.selectBudget(this.budgetId):this.getBudgets())},methods:{getBudgets(){this.loading=!0,this.error=null,this.api.budgets.getBudgets().then((e=>{this.budgets=e.data.budgets})).catch((e=>{this.error=e.error.detail})).finally((()=>{this.loading=!1}))},selectBudget(e){this.loading=!0,this.error=null,this.budgetId=e,this.transactions=[],this.api.transactions.getTransactions(e).then((e=>{this.transactions=e.data.transactions})).catch((e=>{this.error=e.error.detail})).finally((()=>{this.loading=!1}))},authorizeWithYNAB(e){e.preventDefault();const t=`https://app.ynab.com/oauth/authorize?client_id=${this.ynab.clientId}&redirect_uri=${this.ynab.redirectUri}&response_type=token`;location.replace(t)},findYNABToken(){let e=null;const t=window.location.hash.substring(1).replace(/&/g,'","').replace(/=/g,'":"');return t&&""!==t?(e=JSON.parse('{"'+t+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})).access_token,sessionStorage.setItem("ynab_access_token",e),window.location.hash=""):e=sessionStorage.getItem("ynab_access_token"),e},resetToken(){sessionStorage.removeItem("ynab_access_token"),this.ynab.token=null,this.error=null}},components:{Nav:$a,Footer:Da,Budgets:Ka,Transactions:Ga.exports}},ko,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("The next step is the OAuth configuration, you can\n "),n("a",{attrs:{href:"https://github.com/jlumbroso/ynab-api-starter-kit#step-2-obtain-an-oauth-client-id-so-the-app-can-access-the-ynab-api"}},[e._v("read\n detailed instructions in the README.md")]),e._v(". Essentially:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li",[e._v("Make sure to be logged into your YNAB account, go to your "),n("a",{attrs:{href:"https://app.ynab.com/settings/developer",target:"_blank",rel:"noopener noreferrer"}},[e._v("YNAB Developer Settings")]),e._v(" and create a new OAuth Application.")]),e._v(" "),n("li",[e._v('Enter the URL of this project as a Redirect URI (in addition to the existing three options), then "Save Application."')]),e._v(" "),n("li",[e._v("Copy your Client ID and Redirect URI into the "),n("em",[e._v("src/config.json")]),e._v(" file of your project.")]),e._v(" "),n("li",[e._v("Then build your amazing app!")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("If you have any questions please reach out to us at "),n("strong",[e._v("api@ynab.com")]),e._v(".")])}],!1,null,null,null);Ya.options.__file="src/App.vue";const Xa=Ya.exports;new Io({el:"#app",render:e=>e(Xa)})})()})(); \ No newline at end of file +(()=>{var e={559:function(e,t,n){var r;!function(o){"use strict";function a(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,a="URLSearchParams"in o,i="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),c="FormData"in o,u="ArrayBuffer"in o;if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:c&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,t,r,o=g(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},b.call(C.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,a){return new n((function(n,i){var c=new C(e,a);if(c.signal&&c.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new r;function d(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new S(o,r))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){i(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":u&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof v?c.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(a.headers).forEach((function(e){l.setRequestHeader(e,h(a.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",d),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",d)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=v,o.Request=C,o.Response=S),t.Headers=v,t.Request=C,t.Response=S,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";var e=Object.freeze({});function t(e){return null==e}function r(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function i(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function c(e){return"[object Object]"===s.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var g=Object.prototype.hasOwnProperty;function y(e,t){return g.call(e,t)}function m(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=m((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),w=m((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,A=m((function(e){return e.replace(C,"-$1").toLowerCase()})),S=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function O(e,t){for(var n in t)e[n]=t[n];return e}function j(e){for(var t={},n=0;n0,H=G&&G.indexOf("edge/")>0,W=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===z),V=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),J={}.watch,Z=!1;if(N)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,Q)}catch(e){}var ee=function(){return void 0===q&&(q=!N&&!K&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),q},te=N&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,oe="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);re="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=R,ie=0,se=function(){this.id=ie++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){v(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(a&&!y(o,"default"))i=!1;else if(""===i||i===A(e)){var c=Me(String,o.type);(c<0||s0&&(ct((s=ut(s,(n||"")+"_"+i))[0])&&ct(u)&&(l[c]=pe(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?ct(u)?l[c]=pe(u.text+s):""!==s&&l.push(pe(s)):ct(s)&&ct(u)?l[c]=pe(u.text+s.text):(o(e._isVList)&&r(s.tag)&&t(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+i+"__"),l.push(s)));return l}function lt(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(i&&r&&r!==e&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=pt(n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=vt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),M(o,"$stable",i),M(o,"$key",s),M(o,"$hasNormal",a),o}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:st(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function vt(e,t){return function(){return e[t]}}function gt(e,t){var n,o,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,a=e.length;odocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function dn(){var e,t;for(cn=un(),an=!0,tn.sort((function(e,t){return e.id-t.id})),sn=0;snsn&&tn[n].id>e.id;)n--;tn.splice(n+1,0,e)}else tn.push(e);on||(on=!0,Ze(dn))}}(this)},hn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||i(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){qe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:R,set:R};function vn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}var gn={lazy:!0};function yn(e,t,n){var r=!ee();"function"==typeof n?(pn.get=r?mn(t):_n(n),pn.set=R):(pn.get=n.get?r&&!1!==n.cache?mn(t):_n(n.get):R,pn.set=n.set||R),Object.defineProperty(e,t,pn)}function mn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),se.target&&t.depend(),t.value}}function _n(e){return function(){return e.call(this,this)}}function bn(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var wn=0;function Cn(e){var t=e.options;if(e.super){var n=Cn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);r&&O(e.extendOptions,r),(t=e.options=Ue(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function An(e){this._init(e)}function Sn(e){return e&&(e.Ctor.options.name||e.tag)}function Tn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,!("[object RegExp]"!==s.call(n))&&e.test(t));var n}function On(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var a in n){var i=n[a];if(i){var s=Sn(i.componentOptions);s&&!t(s)&&jn(n,a,r,o)}}}function jn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=wn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ue(Cn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,o=r&&r.context;t.$slots=dt(n._renderChildren,o),t.$scopedSlots=e,t._c=function(e,n,r,o){return Mt(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Mt(t,e,n,r,o,!0)};var a=r&&r.data;Ae(t,"$attrs",a&&a.attrs||e,null,!0),Ae(t,"$listeners",n._parentListeners||e,null,!0)}(n),en(n,"beforeCreate"),function(e){var t=lt(e.$options.inject,e);t&&(be(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),be(!0))}(n),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];!e.$parent||be(!1);var a=function(a){o.push(a);var i=Ie(a,t,n,e);Ae(r,a,i),a in e||vn(e,"_props",a)};for(var i in t)a(i);be(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?R:S(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return qe(e,t,"data()"),{}}finally{le()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),o=e.$options.props,a=(e.$options.methods,r.length);a--;){var i=r[a];o&&y(o,i)||(n=void 0,36===(n=(i+"").charCodeAt(0))||95===n)||vn(e,"_data",i)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ee();for(var o in t){var a=t[o],i="function"==typeof a?a:a.get;r||(n[o]=new hn(e,i||R,R,gn)),o in e||yn(e,o,a)}}(e,t.computed),t.watch&&t.watch!==J&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o1?T(n):n;for(var r=T(arguments,1),o='event handler for "'+e+'"',a=0,i=n.length;aparseInt(this.max)&&jn(i,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:O,mergeOptions:Ue,defineReactive:Ae},e.set=Se,e.delete=Te,e.nextTick=Ze,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),I.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,O(e.options.components,Pn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ue(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var a=e.name||n.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=t++,i.options=Ue(n.options,e),i.super=n,i.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(i),i.options.computed&&function(e){var t=e.options.computed;for(var n in t)yn(e.prototype,n,t[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,I.forEach((function(e){i[e]=n[e]})),a&&(i.options.components[a]=i),i.superOptions=n.options,i.extendOptions=e,i.sealedOptions=O({},i.options),o[r]=i,i}}(e),function(e){I.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(An),Object.defineProperty(An.prototype,"$isServer",{get:ee}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:Lt}),An.version="2.6.11";var En=h("style,class"),Ln=h("input,textarea,option,select,progress"),xn=h("contenteditable,draggable,spellcheck"),Un=h("events,caret,typing,plaintext-only"),Bn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",kn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},$n=function(e){return kn(e)?e.slice(6,e.length):""},Mn=function(e){return null==e||!1===e};function qn(e,t){return{staticClass:Dn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Dn(e,t){return e?t?e+" "+t:e:t||""}function Fn(e){return Array.isArray(e)?function(e){for(var t,n="",o=0,a=e.length;o-1?lr(e,t,n):Bn(t)?Mn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xn(t)?e.setAttribute(t,function(e,t){return Mn(t)||"false"===t?"false":"contenteditable"===e&&Un(t)?t:"true"}(t,n)):kn(t)?Mn(n)?e.removeAttributeNS(In,$n(t)):e.setAttributeNS(In,t,n):lr(e,t,n)}function lr(e,t,n){if(Mn(n))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var dr={create:cr,update:cr};function fr(e,n){var o=n.elm,a=n.data,i=e.data;if(!(t(a.staticClass)&&t(a.class)&&(t(i)||t(i.staticClass)&&t(i.class)))){var s=function(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(t=qn(o.data,t));for(;r(n=n.parent);)n&&n.data&&(t=qn(t,n.data));return a=t.staticClass,i=t.class,r(a)||r(i)?Dn(a,Fn(i)):"";var a,i}(n),c=o._transitionClasses;r(c)&&(s=Dn(s,Fn(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var hr,pr={create:fr,update:fr},vr="__r",gr="__c";function yr(e,t,n){var r=hr;return function o(){var a=t.apply(null,arguments);null!==a&&br(e,o,n,r)}}var mr=ze&&!(V&&Number(V[1])<=53);function _r(e,t,n,r){if(mr){var o=cn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}hr.addEventListener(e,t,Z?{capture:n,passive:r}:n)}function br(e,t,n,r){(r||hr).removeEventListener(e,t._wrapper||t,n)}function wr(e,n){if(!t(e.data.on)||!t(n.data.on)){var o=n.data.on||{},a=e.data.on||{};hr=n.elm,function(e){if(r(e[vr])){var t=Y?"change":"input";e[t]=[].concat(e[vr],e[t]||[]),delete e[vr]}r(e[gr])&&(e.change=[].concat(e[gr],e.change||[]),delete e[gr])}(o),ot(o,a,_r,br,yr,n.context),hr=void 0}}var Cr,Ar={create:wr,update:wr};function Sr(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var o,a,i=n.elm,s=e.data.domProps||{},c=n.data.domProps||{};for(o in r(c.__ob__)&&(c=n.data.domProps=O({},c)),s)o in c||(i[o]="");for(o in c){if(a=c[o],"textContent"===o||"innerHTML"===o){if(n.children&&(n.children.length=0),a===s[o])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===o&&"PROGRESS"!==i.tagName){i._value=a;var u=t(a)?"":String(a);Tr(i,u)&&(i.value=u)}else if("innerHTML"===o&&zn(i.tagName)&&t(i.innerHTML)){(Cr=Cr||document.createElement("div")).innerHTML=""+a+"";for(var l=Cr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(a!==s[o])try{i[o]=a}catch(e){}}}}function Tr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,o=e._vModifiers;if(r(o)){if(o.number)return f(n)!==f(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Or={create:Sr,update:Sr},jr=m((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Rr(e){var t=Pr(e.style);return e.staticStyle?O(e.staticStyle,t):t}function Pr(e){return Array.isArray(e)?j(e):"string"==typeof e?jr(e):e}var Er,Lr=/^--/,xr=/\s*!important$/,Ur=function(e,t,n){if(Lr.test(t))e.style.setProperty(t,n);else if(xr.test(n))e.style.setProperty(A(t),n.replace(xr,""),"important");else{var r=Ir(t);if(Array.isArray(n))for(var o=0,a=n.length;o-1?t.split(Mr).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Dr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Mr).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Fr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&O(t,Nr(e.name||"v")),O(t,e),t}return"string"==typeof e?Nr(e):void 0}}var Nr=m((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kr=N&&!X,zr="transition",Gr="animation",Yr="transition",Xr="transitionend",Hr="animation",Wr="animationend";Kr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Yr="WebkitTransition",Xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Hr="WebkitAnimation",Wr="webkitAnimationEnd"));var Vr=N?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Jr(e){Vr((function(){Vr(e)}))}function Zr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),qr(e,t))}function Qr(e,t){e._transitionClasses&&v(e._transitionClasses,t),Dr(e,t)}function eo(e,t,n){var r=no(e,t),o=r.type,a=r.timeout,i=r.propCount;if(!o)return n();var s=o===zr?Xr:Wr,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=i&&u()};setTimeout((function(){c0&&(n=zr,l=i,d=a.length):t===Gr?u>0&&(n=Gr,l=u,d=c.length):d=(n=(l=Math.max(i,u))>0?i>u?zr:Gr:null)?n===zr?a.length:c.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===zr&&to.test(r[Yr+"Property"])}}function ro(e,t){for(;e.length1}function uo(e,t){!0!==t.data.show&&ao(t)}var lo=function(e){var n,i,s={},c=e.modules,u=e.nodeOps;for(n=0;np?_(e,t(o[y+1])?null:o[y+1].elm,o,h,y,a):h>y&&w(n,f,p)}(f,v,y,a,l):r(y)?(r(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,a)):r(v)?w(v,0,v.length-1):r(e.text)&&u.setTextContent(f,""):e.text!==n.text&&u.setTextContent(f,n.text),r(p)&&r(h=p.hook)&&r(h=h.postpatch)&&h(e,n)}}}function T(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var a=0;a-1,i.selected!==a&&(i.selected=a);else if(L(go(i),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function vo(e,t){return t.every((function(t){return!L(t,e)}))}function go(e){return"_value"in e?e._value:e.value}function yo(e){e.target.composing=!0}function mo(e){e.target.composing&&(e.target.composing=!1,_o(e.target,"input"))}function _o(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function bo(e){return!e.componentInstance||e.data&&e.data.transition?e:bo(e.componentInstance._vnode)}var wo={bind:function(e,t,n){var r=t.value,o=(n=bo(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,ao(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=bo(n)).data&&n.data.transition?(n.data.show=!0,r?ao(n,(function(){e.style.display=e.__vOriginalDisplay})):io(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Co={model:fo,show:wo},Ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function So(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?So(zt(t.children)):e}function To(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var a in o)t[b(a)]=o[a];return t}function Oo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var jo=function(e){return e.tag||Kt(e)},Ro=function(e){return"show"===e.name},Po={name:"transition",props:Ao,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(jo)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var i=So(o);if(!i)return o;if(this._leaving)return Oo(e,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=To(this),u=this._vnode,l=So(u);if(i.data.directives&&i.data.directives.some(Ro)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!Kt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,at(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Oo(e,o);if("in-out"===r){if(Kt(i))return u;var f,h=function(){f()};at(c,"afterEnter",h),at(c,"enterCancelled",h),at(d,"delayLeave",(function(e){f=e}))}}return o}}},Eo=O({tag:String,moveClass:String},Ao);function Lo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function xo(e){e.data.newPos=e.elm.getBoundingClientRect()}function Uo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+o+"px)",a.transitionDuration="0s"}}delete Eo.mode;var Bo={Transition:Po,TransitionGroup:{props:Eo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Vt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],a=this.children=[],i=To(this),s=0;s-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},O(An.options.directives,Co),O(An.options.components,Bo),An.prototype.__patch__=N?lo:R,An.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=he),en(e,"beforeMount"),r=function(){e._update(e._render(),n)},new hn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&en(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,en(e,"mounted")),e}(this,e=e&&N?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},N&&setTimeout((function(){$.devtools&&te&&te.emit("init",An)}),0);const Io=An;var ko=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("Nav"),e._v(" "),n("div",{staticClass:"container"},[e.loading?n("h1",{staticClass:"display-4"},[e._v("Loading...")]):e._e(),e._v(" "),e.error?n("div",[n("h1",{staticClass:"display-4"},[e._v("Oops!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v(e._s(e.error))]),e._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:e.resetToken}},[e._v("Try Again >")])]):n("div",[e.ynab.token?e.budgetId?n("div",[n("Transactions",{attrs:{transactions:e.transactions}}),e._v(" "),n("button",{staticClass:"btn btn-info",on:{click:function(t){e.budgetId=null}}},[e._v("< Select Another Budget")])],1):n("Budgets",{attrs:{budgets:e.budgets,selectBudget:e.selectBudget}}):n("form",[n("h1",{staticClass:"display-4"},[e._v("Congrats!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v("You have successfully initialized a new YNAB API Application!")]),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),n("p",[e._v(" ")]),e._v(" "),n("div",{staticClass:"form-group"},[n("h2",[e._v("Hello!")]),e._v(" "),n("p",{staticClass:"lead"},[e._v("If you would like to use this App, please authorize with YNAB!")]),e._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:e.authorizeWithYNAB}},[e._v("Authorize This App With YNAB >")])])])],1),e._v(" "),n("Footer")],1)],1)};ko._withStripped=!0;var $o,Mo=function(e,t){this.apiKey="Bearer ".concat(e),this.basePath=t},qo=($o=function(e,t){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Do=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},Fo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getAccountById:function(t,n,r){var o=this,a=ra(e).getAccountById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getAccounts:function(t,n,r){var o=this,a=ra(e).getAccounts(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.createAccount=function(e,t,n){return oa(this.configuration).createAccount(e,t,n)()},t.prototype.getAccountById=function(e,t,n){return oa(this.configuration).getAccountById(e,t,n)()},t.prototype.getAccounts=function(e,t,n){return oa(this.configuration).getAccounts(e,t,n)()},t}(ta),ia=function(e){return{getBudgetById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");var o="/budgets/{budget_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getBudgetSettingsById:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");var r="/budgets/{budget_id}/settings".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"GET"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},getBudgets:function(t,n){void 0===n&&(n={});var r=new URL("/budgets","https://example.com"),o=Object.assign({method:"GET"},n),a={},i={};if(a["User-Agent"]=Ko,a.Accept="application/json",e&&e.apiKey){var s=e.apiKey;a.Authorization=s}void 0!==t&&(i.include_accounts=t);var c=new URLSearchParams(r.search);for(var u in i)c.set(u,i[u]);for(var u in n.query)c.set(u,n.query[u]);return r.search=new URLSearchParams(c).toString(),o.headers=Object.assign({},a,n.headers),{url:r.pathname+r.search+r.hash,options:o}}}},sa=function(e){return{getBudgetById:function(t,n,r){var o=this,a=ia(e).getBudgetById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgetSettingsById:function(t,n){var r=this,o=ia(e).getBudgetSettingsById(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgets:function(t,n){var r=this,o=ia(e).getBudgets(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getBudgetById=function(e,t,n){return sa(this.configuration).getBudgetById(e,t,n)()},t.prototype.getBudgetSettingsById=function(e,t){return sa(this.configuration).getBudgetSettingsById(e,t)()},t.prototype.getBudgets=function(e,t){return sa(this.configuration).getBudgets(e,t)()},t}(ta),ua=function(e){return{getCategories:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");var o="/budgets/{budget_id}/categories".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getCategoryById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null==n)throw new na("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");var o="/budgets/{budget_id}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("category_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getMonthCategoryById:function(t,n,r,o){if(void 0===o&&(o={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getMonthCategoryById.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null==r)throw new na("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");var a="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))).replace("{".concat("category_id","}"),encodeURIComponent(String(r))),i=new URL(a,"https://example.com"),s=Object.assign({method:"GET"},o),c={},u={};if(c["User-Agent"]=Ko,c.Accept="application/json",e&&e.apiKey){var l=e.apiKey;c.Authorization=l}var d=new URLSearchParams(i.search);for(var f in u)d.set(f,u[f]);for(var f in o.query)d.set(f,o.query[f]);return i.search=new URLSearchParams(d).toString(),s.headers=Object.assign({},c,o.headers),{url:i.pathname+i.search+i.hash,options:s}},updateMonthCategory:function(t,n,r,o,a){if(void 0===a&&(a={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null==r)throw new na("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null==o)throw new na("data","Required parameter data was null or undefined when calling updateMonthCategory.");var i="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))).replace("{".concat("category_id","}"),encodeURIComponent(String(r))),s=new URL(i,"https://example.com"),c=Object.assign({method:"PATCH"},a),u={},l={};if(u["User-Agent"]=Ko,u.Accept="application/json",e&&e.apiKey){var d=e.apiKey;u.Authorization=d}u["Content-Type"]="application/json";var f=new URLSearchParams(s.search);for(var h in l)f.set(h,l[h]);for(var h in a.query)f.set(h,a.query[h]);return s.search=new URLSearchParams(f).toString(),c.headers=Object.assign({},u,a.headers),c.body=JSON.stringify(o||{}),{url:s.pathname+s.search+s.hash,options:c}}}},la=function(e){return{getCategories:function(t,n,r){var o=this,a=ua(e).getCategories(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getCategoryById:function(t,n,r){var o=this,a=ua(e).getCategoryById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getMonthCategoryById:function(t,n,r,o){var a=this,i=ua(e).getMonthCategoryById(t,n,r,o);return function(t){return void 0===t&&(t=fetch),t(e.basePath+i.url,i.options).then((function(e){return Do(a,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateMonthCategory:function(t,n,r,o,a){var i=this,s=ua(e).updateMonthCategory(t,n,r,o,a);return function(t){return void 0===t&&(t=fetch),t(e.basePath+s.url,s.options).then((function(e){return Do(i,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getCategories=function(e,t,n){return la(this.configuration).getCategories(e,t,n)()},t.prototype.getCategoryById=function(e,t,n){return la(this.configuration).getCategoryById(e,t,n)()},t.prototype.getMonthCategoryById=function(e,t,n,r){return la(this.configuration).getMonthCategoryById(e,t,n,r)()},t.prototype.updateMonthCategory=function(e,t,n,r,o){return la(this.configuration).updateMonthCategory(e,t,n,r,o)()},t}(ta),fa=function(e){return{bulkCreateTransactions:function(t,n,r){var o=this,a=function(e){return{bulkCreateTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null==n)throw new na("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");var o="/budgets/{budget_id}/transactions/bulk".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"POST"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}}}}(e).bulkCreateTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ha=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}qo(t,e),t.prototype.bulkCreateTransactions=function(e,t,n){return fa(this.configuration).bulkCreateTransactions(e,t,n)()}}(ta),function(e){return{getBudgetMonth:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null==n)throw new na("month","Required parameter month was null or undefined when calling getBudgetMonth.");var o="/budgets/{budget_id}/months/{month}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("month","}"),encodeURIComponent(zo(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getBudgetMonths:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");var o="/budgets/{budget_id}/months".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}}),pa=function(e){return{getBudgetMonth:function(t,n,r){var o=this,a=ha(e).getBudgetMonth(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getBudgetMonths:function(t,n,r){var o=this,a=ha(e).getBudgetMonths(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getBudgetMonth=function(e,t,n){return pa(this.configuration).getBudgetMonth(e,t,n)()},t.prototype.getBudgetMonths=function(e,t,n){return pa(this.configuration).getBudgetMonths(e,t,n)()},t}(ta),ga=function(e){return{getPayeeLocationById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null==n)throw new na("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");var o="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_location_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getPayeeLocations:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");var r="/budgets/{budget_id}/payee_locations".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"GET"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},getPayeeLocationsByPayee:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");var o="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},ya=function(e){return{getPayeeLocationById:function(t,n,r){var o=this,a=ga(e).getPayeeLocationById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayeeLocations:function(t,n){var r=this,o=ga(e).getPayeeLocations(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayeeLocationsByPayee:function(t,n,r){var o=this,a=ga(e).getPayeeLocationsByPayee(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getPayeeLocationById=function(e,t,n){return ya(this.configuration).getPayeeLocationById(e,t,n)()},t.prototype.getPayeeLocations=function(e,t){return ya(this.configuration).getPayeeLocations(e,t)()},t.prototype.getPayeeLocationsByPayee=function(e,t,n){return ya(this.configuration).getPayeeLocationsByPayee(e,t,n)()},t}(ta),_a=function(e){return{getPayeeById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");var o="/budgets/{budget_id}/payees/{payee_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getPayees:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");var o="/budgets/{budget_id}/payees".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},ba=function(e){return{getPayeeById:function(t,n,r){var o=this,a=_a(e).getPayeeById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getPayees:function(t,n,r){var o=this,a=_a(e).getPayees(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getPayeeById=function(e,t,n){return ba(this.configuration).getPayeeById(e,t,n)()},t.prototype.getPayees=function(e,t,n){return ba(this.configuration).getPayees(e,t,n)()},t}(ta),Ca=function(e){return{getScheduledTransactionById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null==n)throw new na("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");var o="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("scheduled_transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getScheduledTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");var o="/budgets/{budget_id}/scheduled_transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}void 0!==n&&(c.last_knowledge_of_server=n);var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}}}},Aa=function(e){return{getScheduledTransactionById:function(t,n,r){var o=this,a=Ca(e).getScheduledTransactionById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getScheduledTransactions:function(t,n,r){var o=this,a=Ca(e).getScheduledTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getScheduledTransactionById=function(e,t,n){return Aa(this.configuration).getScheduledTransactionById(e,t,n)()},t.prototype.getScheduledTransactions=function(e,t,n){return Aa(this.configuration).getScheduledTransactions(e,t,n)()},t}(ta),Ta=function(e){return{createTransaction:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null==n)throw new na("data","Required parameter data was null or undefined when calling createTransaction.");var o="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"POST"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}},deleteTransaction:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling deleteTransaction.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling deleteTransaction.");var o="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"DELETE"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getTransactionById:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");var o="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),a=new URL(o,"https://example.com"),i=Object.assign({method:"GET"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),{url:a.pathname+a.search+a.hash,options:i}},getTransactions:function(t,n,r,o,a){if(void 0===a&&(a={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");var i="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),s=new URL(i,"https://example.com"),c=Object.assign({method:"GET"},a),u={},l={};if(u["User-Agent"]=Ko,u.Accept="application/json",e&&e.apiKey){var d=e.apiKey;u.Authorization=d}void 0!==n&&(l.since_date=zo(n)),void 0!==r&&(l.type=r),void 0!==o&&(l.last_knowledge_of_server=o);var f=new URLSearchParams(s.search);for(var h in l)f.set(h,l[h]);for(var h in a.query)f.set(h,a.query[h]);return s.search=new URLSearchParams(f).toString(),c.headers=Object.assign({},u,a.headers),{url:s.pathname+s.search+s.hash,options:c}},getTransactionsByAccount:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null==n)throw new na("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");var s="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("account_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},getTransactionsByCategory:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null==n)throw new na("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");var s="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("category_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},getTransactionsByPayee:function(t,n,r,o,a,i){if(void 0===i&&(i={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null==n)throw new na("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");var s="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("payee_id","}"),encodeURIComponent(String(n))),c=new URL(s,"https://example.com"),u=Object.assign({method:"GET"},i),l={},d={};if(l["User-Agent"]=Ko,l.Accept="application/json",e&&e.apiKey){var f=e.apiKey;l.Authorization=f}void 0!==r&&(d.since_date=zo(r)),void 0!==o&&(d.type=o),void 0!==a&&(d.last_knowledge_of_server=a);var h=new URLSearchParams(c.search);for(var p in d)h.set(p,d[p]);for(var p in i.query)h.set(p,i.query[p]);return c.search=new URLSearchParams(h).toString(),u.headers=Object.assign({},l,i.headers),{url:c.pathname+c.search+c.hash,options:u}},importTransactions:function(t,n){if(void 0===n&&(n={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling importTransactions.");var r="/budgets/{budget_id}/transactions/import".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),o=new URL(r,"https://example.com"),a=Object.assign({method:"POST"},n),i={},s={};if(i["User-Agent"]=Ko,i.Accept="application/json",e&&e.apiKey){var c=e.apiKey;i.Authorization=c}var u=new URLSearchParams(o.search);for(var l in s)u.set(l,s[l]);for(var l in n.query)u.set(l,n.query[l]);return o.search=new URLSearchParams(u).toString(),a.headers=Object.assign({},i,n.headers),{url:o.pathname+o.search+o.hash,options:a}},updateTransaction:function(t,n,r,o){if(void 0===o&&(o={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null==n)throw new na("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null==r)throw new na("data","Required parameter data was null or undefined when calling updateTransaction.");var a="/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))).replace("{".concat("transaction_id","}"),encodeURIComponent(String(n))),i=new URL(a,"https://example.com"),s=Object.assign({method:"PUT"},o),c={},u={};if(c["User-Agent"]=Ko,c.Accept="application/json",e&&e.apiKey){var l=e.apiKey;c.Authorization=l}c["Content-Type"]="application/json";var d=new URLSearchParams(i.search);for(var f in u)d.set(f,u[f]);for(var f in o.query)d.set(f,o.query[f]);return i.search=new URLSearchParams(d).toString(),s.headers=Object.assign({},c,o.headers),s.body=JSON.stringify(r||{}),{url:i.pathname+i.search+i.hash,options:s}},updateTransactions:function(t,n,r){if(void 0===r&&(r={}),null==t)throw new na("budget_id","Required parameter budget_id was null or undefined when calling updateTransactions.");if(null==n)throw new na("data","Required parameter data was null or undefined when calling updateTransactions.");var o="/budgets/{budget_id}/transactions".replace("{".concat("budget_id","}"),encodeURIComponent(String(t))),a=new URL(o,"https://example.com"),i=Object.assign({method:"PATCH"},r),s={},c={};if(s["User-Agent"]=Ko,s.Accept="application/json",e&&e.apiKey){var u=e.apiKey;s.Authorization=u}s["Content-Type"]="application/json";var l=new URLSearchParams(a.search);for(var d in c)l.set(d,c[d]);for(var d in r.query)l.set(d,r.query[d]);return a.search=new URLSearchParams(l).toString(),i.headers=Object.assign({},s,r.headers),i.body=JSON.stringify(n||{}),{url:a.pathname+a.search+a.hash,options:i}}}},Oa=function(e){return{createTransaction:function(t,n,r){var o=this,a=Ta(e).createTransaction(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},deleteTransaction:function(t,n,r){var o=this,a=Ta(e).deleteTransaction(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionById:function(t,n,r){var o=this,a=Ta(e).getTransactionById(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactions:function(t,n,r,o,a){var i=this,s=Ta(e).getTransactions(t,n,r,o,a);return function(t){return void 0===t&&(t=fetch),t(e.basePath+s.url,s.options).then((function(e){return Do(i,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByAccount:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByAccount(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByCategory:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByCategory(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},getTransactionsByPayee:function(t,n,r,o,a,i){var s=this,c=Ta(e).getTransactionsByPayee(t,n,r,o,a,i);return function(t){return void 0===t&&(t=fetch),t(e.basePath+c.url,c.options).then((function(e){return Do(s,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},importTransactions:function(t,n){var r=this,o=Ta(e).importTransactions(t,n);return function(t){return void 0===t&&(t=fetch),t(e.basePath+o.url,o.options).then((function(e){return Do(r,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateTransaction:function(t,n,r,o){var a=this,i=Ta(e).updateTransaction(t,n,r,o);return function(t){return void 0===t&&(t=fetch),t(e.basePath+i.url,i.options).then((function(e){return Do(a,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}},updateTransactions:function(t,n,r){var o=this,a=Ta(e).updateTransactions(t,n,r);return function(t){return void 0===t&&(t=fetch),t(e.basePath+a.url,a.options).then((function(e){return Do(o,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}},ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.createTransaction=function(e,t,n){return Oa(this.configuration).createTransaction(e,t,n)()},t.prototype.deleteTransaction=function(e,t,n){return Oa(this.configuration).deleteTransaction(e,t,n)()},t.prototype.getTransactionById=function(e,t,n){return Oa(this.configuration).getTransactionById(e,t,n)()},t.prototype.getTransactions=function(e,t,n,r,o){return Oa(this.configuration).getTransactions(e,t,n,r,o)()},t.prototype.getTransactionsByAccount=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByAccount(e,t,n,r,o,a)()},t.prototype.getTransactionsByCategory=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByCategory(e,t,n,r,o,a)()},t.prototype.getTransactionsByPayee=function(e,t,n,r,o,a){return Oa(this.configuration).getTransactionsByPayee(e,t,n,r,o,a)()},t.prototype.importTransactions=function(e,t){return Oa(this.configuration).importTransactions(e,t)()},t.prototype.updateTransaction=function(e,t,n,r){return Oa(this.configuration).updateTransaction(e,t,n,r)()},t.prototype.updateTransactions=function(e,t,n){return Oa(this.configuration).updateTransactions(e,t,n)()},t}(ta),Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getUser=function(e){return(t=this.configuration,{getUser:function(e){var n=this,r=function(e){return{getUser:function(t){void 0===t&&(t={});var n=new URL("/user","https://example.com"),r=Object.assign({method:"GET"},t),o={},a={};if(o["User-Agent"]=Ko,o.Accept="application/json",e&&e.apiKey){var i=e.apiKey;o.Authorization=i}var s=new URLSearchParams(n.search);for(var c in a)s.set(c,a[c]);for(var c in t.query)s.set(c,t.query[c]);return n.search=new URLSearchParams(s).toString(),r.headers=Object.assign({},o,t.headers),{url:n.pathname+n.search+n.hash,options:r}}}}(t).getUser(e);return function(e){return void 0===e&&(e=fetch),e(t.basePath+r.url,r.options).then((function(e){return Do(n,void 0,void 0,(function(){var t;return Fo(this,(function(n){switch(n.label){case 0:return e.status>=200&&e.status<300?[4,e.json()]:[3,2];case 1:return(t=n.sent()).rateLimit=e.headers.get("X-Rate-Limit"),[2,t];case 2:return[2,e.json().then((function(e){return Promise.reject(e)}))]}}))}))}))}}}).getUser(e)();var t},t}(ta),Pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pa(t,e),t.prototype.getTransactionsByType=function(e,t,n,r){return Oa(this.configuration).getTransactions(e,void 0,t,n,r)()},t.prototype.createTransactions=function(e,t,n){return Oa(this.configuration).createTransaction(e,t,n)()},t.prototype.bulkCreateTransactions=function(e,t,n){return fa(this.configuration).bulkCreateTransactions(e,t,n)()},t}(ja);const La={getCurrentMonthInISOFormat:function(){return"".concat(this.getCurrentDateInISOFormat().substr(0,7),"-01")},getCurrentDateInISOFormat:function(){var e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:function(e){return new Date(new Date(e))},convertMilliUnitsToCurrencyAmount:function(e,t){void 0===t&&(t=2);var n=Math.pow(10,3-Math.min(3,t));n=1/n;var r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}};var xa=function(){function e(e,t){void 0===t&&(t="https://api.youneedabudget.com/v1"),this._configuration=new Mo(e,t)}return Object.defineProperty(e.prototype,"user",{get:function(){return this._user||(this._user=new Ra(this._configuration)),this._user},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"budgets",{get:function(){return this._budgets||(this._budgets=new ca(this._configuration)),this._budgets},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accounts",{get:function(){return this._accounts||(this._accounts=new aa(this._configuration)),this._accounts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"categories",{get:function(){return this._categories||(this._categories=new da(this._configuration)),this._categories},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"months",{get:function(){return this._months||(this._months=new va(this._configuration)),this._months},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payees",{get:function(){return this._payees||(this._payees=new wa(this._configuration)),this._payees},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payeeLocations",{get:function(){return this._payeeLocations||(this._payeeLocations=new ma(this._configuration)),this._payeeLocations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transactions",{get:function(){return this._transactions||(this._transactions=new Ea(this._configuration)),this._transactions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheduledTransactions",{get:function(){return this._scheduledTransactions||(this._scheduledTransactions=new Sa(this._configuration)),this._scheduledTransactions},enumerable:!1,configurable:!0}),e}();const Ua=JSON.parse('{"I":"a56948bc5fe6e80c1a241151611a53350518c119ea413de4375694ebebbd68e0","B":"https://ynab.github.io/ynab-api-starter-kit/"}');var Ba=function(){var e=this;e.$createElement;return e._self._c,e._m(0)};function Ia(e,t,n,r,o,a,i,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}Ba._withStripped=!0;var ka=Ia({},Ba,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar navbar-dark bg-primary d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 border-bottom box-shadow"},[n("div",{staticClass:"container"},[n("h5",{staticClass:"my-0 mr-md-auto font-weight-normal navbar-brand"},[e._v("YNAB API Starter Kit")])])])}],!1,null,null,null);ka.options.__file="src/components/Nav.vue";const $a=ka.exports;var Ma=function(){var e=this;e.$createElement;return e._self._c,e._m(0)};Ma._withStripped=!0;var qa=Ia({},Ma,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"pt-4 my-md-5 pt-md-5 border-top"},[n("div",[n("h2",[e._v("Privacy Policy")]),e._v(" "),n("p",[e._v("This website does not store any information from you or your YNAB account. All data retrieved from the YNAB API is stored only in your browser and is never transmitted to any other location or third-party.")])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md"},[n("small",{staticClass:"text-muted"},[e._v("MADE BY")]),e._v(" "),n("h5",[n("a",{attrs:{href:"#"}},[e._v("You!")])])])])])}],!1,null,null,null);qa.options.__file="src/components/Footer.vue";const Da=qa.exports;var Fa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"budgets container"},[n("h5",[e._v("Select A Budget")]),e._v(" "),e._l(e.budgets,(function(t){return n("div",{staticClass:"row"},[n("a",{staticClass:"col",attrs:{href:"#"},on:{click:function(n){return e.selectBudget(t.id,n)}}},[e._v("\n "+e._s(t.name)+"\n ")])])}))],2)};Fa._withStripped=!0;var Na=Ia({props:["budgets","selectBudget"]},Fa,[],!1,null,null,null);Na.options.__file="src/components/Budgets.vue";const Ka=Na.exports;var za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("h5",[e._v("Transactions")]),e._v(" "),n("table",{staticClass:"table"},[e._m(0),e._v(" "),n("tbody",e._l(e.transactions,(function(t){return n("tr",{key:t.id},[n("td",[e._v(e._s(t.account_name))]),e._v(" "),n("td",[e._v(e._s(t.date))]),e._v(" "),n("td",[e._v(e._s(t.payee_name))]),e._v(" "),n("td",[e._v(e._s(t.category_name))]),e._v(" "),n("td",[e._v(e._s(t.memo))]),e._v(" "),n("td",[e._v(e._s(e.convertMilliUnitsToCurrencyAmount(t.amount).toFixed(2)))])])})),0)])])};za._withStripped=!0;var Ga=Ia({props:["transactions"],methods:{convertMilliUnitsToCurrencyAmount:La.convertMilliUnitsToCurrencyAmount}},za,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("Account")]),e._v(" "),n("th",[e._v("Date")]),e._v(" "),n("th",[e._v("Payee")]),e._v(" "),n("th",[e._v("Category")]),e._v(" "),n("th",[e._v("Memo")]),e._v(" "),n("th",[e._v("Amount")])])])}],!1,null,null,null);Ga.options.__file="src/components/Transactions.vue";var Ya=Ia({data:()=>({ynab:{clientId:Ua.I,redirectUri:Ua.B,token:null,api:null},loading:!1,error:null,budgetId:null,budgets:[],transactions:[]}),created(){this.ynab.token=this.findYNABToken(),this.ynab.token&&(this.api=new xa(this.ynab.token),this.budgetId?this.selectBudget(this.budgetId):this.getBudgets())},methods:{getBudgets(){this.loading=!0,this.error=null,this.api.budgets.getBudgets().then((e=>{this.budgets=e.data.budgets})).catch((e=>{this.error=e.error.detail})).finally((()=>{this.loading=!1}))},selectBudget(e){this.loading=!0,this.error=null,this.budgetId=e,this.transactions=[],this.api.transactions.getTransactions(e).then((e=>{this.transactions=e.data.transactions})).catch((e=>{this.error=e.error.detail})).finally((()=>{this.loading=!1}))},authorizeWithYNAB(e){e.preventDefault();const t=`https://app.ynab.com/oauth/authorize?client_id=${this.ynab.clientId}&redirect_uri=${this.ynab.redirectUri}&response_type=token`;location.replace(t)},findYNABToken(){let e=null;const t=window.location.hash.substring(1).replace(/&/g,'","').replace(/=/g,'":"');return t&&""!==t?(e=JSON.parse('{"'+t+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})).access_token,sessionStorage.setItem("ynab_access_token",e),window.location.hash=""):e=sessionStorage.getItem("ynab_access_token"),e},resetToken(){sessionStorage.removeItem("ynab_access_token"),this.ynab.token=null,this.error=null}},components:{Nav:$a,Footer:Da,Budgets:Ka,Transactions:Ga.exports}},ko,[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("The next step is the OAuth configuration, you can\n "),n("a",{attrs:{href:"https://github.com/ynab/ynab-api-starter-kit#step-2-obtain-an-oauth-client-id-so-the-app-can-access-the-ynab-api"}},[e._v("read\n detailed instructions in the README.md")]),e._v(". Essentially:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li",[e._v("Make sure to be logged into your YNAB account, go to your "),n("a",{attrs:{href:"https://app.ynab.com/settings/developer",target:"_blank",rel:"noopener noreferrer"}},[e._v("YNAB Developer Settings")]),e._v(" and create a new OAuth Application.")]),e._v(" "),n("li",[e._v('Enter the URL of this project as a Redirect URI (in addition to the existing three options), then "Save Application."')]),e._v(" "),n("li",[e._v("Copy your Client ID and Redirect URI into the "),n("em",[e._v("src/config.json")]),e._v(" file of your project.")]),e._v(" "),n("li",[e._v("Then build your amazing app!")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("If you have any questions please reach out to us at "),n("strong",[e._v("api@ynab.com")]),e._v(".")])}],!1,null,null,null);Ya.options.__file="src/App.vue";const Xa=Ya.exports;new Io({el:"#app",render:e=>e(Xa)})})()})(); \ No newline at end of file diff --git a/index.html b/index.html index bc00989..2303682 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ Fork me on GitHub