(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{100:function(t,e,n){"use strict";n(6),n(41),n(10),n(37),n(42),n(25),n(15),n(16),n(4),n(45),n(46);var r=n(0);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,f=!0,h=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return f=t.done,t},e:function(t){h=!0,o=t},f:function(){try{f||null==n.return||n.return()}finally{if(h)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){l.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},156:function(t,e,n){var content=n(210);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(22).default)("24b8d04c",content,!0,{sourceMap:!1})},157:function(t,e,n){var content=n(214);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(22).default)("3191d5ad",content,!0,{sourceMap:!1})},177:function(t,e,n){"use strict";n(4),n(56);var r=n(7),o=n(0),c=n(3),f=window.__NUXT__;function h(){if(!this._hydrated)return this.$fetch()}function l(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=+this.$vnode.elm.dataset.fetchKey;var data=f.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.default.set(this.$data,e,data[e])}}function d(){var t=this;return this._fetchPromise||(this._fetchPromise=v.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function v(){return m.apply(this,arguments)}function m(){return(m=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",l),Object(c.a)(this,"beforeMount",h))}}},184:function(t,e,n){t.exports=n(185)},185:function(t,e,n){"use strict";n.r(e),function(t){n(41),n(10),n(42),n(15),n(16),n(37);var e=n(13),r=(n(56),n(110),n(7)),o=(n(45),n(46),n(6),n(4),n(12),n(25),n(147),n(194),n(198),n(200),n(0)),c=n(171),f=n(76),h=n(3),l=n(44),d=n(177),v=n(100);function m(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=v(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&k(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function $(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),d(d({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function _(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=h.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return O(t,e,"instances")}function S(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function C(t,e){return Promise.all(S(t,function(){var t=Object(c.a)(regeneratorRuntime.mark((function t(n,r,o,c){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=4;break}return t.next=3,n();case 3:n=t.sent;case 4:return o.components[c]=n=_(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function R(t){return T.apply(this,arguments)}function T(){return(T=Object(c.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,C(e);case 4:return t.abrupt("return",d(d({},e),{},{meta:O(e).map((function(t,n){return d(d({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(t,e){return P.apply(this,arguments)}function P(){return(P=Object(c.a)(regeneratorRuntime.mark((function t(e,n){var c,f,h,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{}},n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=K(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([R(n.route),R(n.from)]);case 3:c=t.sent,f=Object(r.a)(c,2),h=f[0],l=f[1],n.route&&(e.context.route=h),n.from&&(e.context.from=l),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():U(t[0],e).then((function(){return A(t.slice(1),e)}))}function U(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function N(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&(path.endsWith("/")?path:path+"/").startsWith(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function I(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i1&&void 0!==arguments[1]?arguments[1]:w,n=arguments.length>2?arguments[2]:void 0;return k.call(this,t,e,n)},c.default.use(y.a);var $={mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=Object(x.g)(t);(o.some((function(t){return t.options.scrollToTop}))||o.length<2&&o.every((function(t){return!1!==t.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return(t.path===e.path&&t.hash!==e.hash||t===e)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/login",component:function(){return Object(x.m)(Promise.all([n.e(0),n.e(4)]).then(n.bind(null,359)))},name:"login"},{path:"/",component:function(){return Object(x.m)(Promise.all([n.e(0),n.e(7),n.e(3)]).then(n.bind(null,360)))},name:"index"}],fallback:!1};function _(){return new y.a($)}var O={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,f=n.$nuxt.nuxt.transitions,h=n.$nuxt.nuxt.defaultTransition,l=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&l++,n=n.$parent;data.nuxtChildDepth=l;var d=f[l]||h,v={};j.forEach((function(t){void 0!==d[t]&&(v[t]=d[t])}));var m={};S.forEach((function(t){"function"==typeof d[t]&&(m[t]=d[t].bind(c))}));var y=m.beforeEnter;if(m.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===d.css){var x=m.leave;(!x||x.length<2)&&(m.leave=function(t,e){x&&x.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:v,on:m},[w])}},j=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],S=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],C={layout:"empty",props:{error:{type:Object,default:null}},data:function(){return{pageNotFound:"404 Not Found",otherError:"An error occurred"}},head:function(){return{title:404===this.error.statusCode?this.pageNotFound:this.otherError}}},R=(n(209),n(64)),T=n(94),E=n.n(T),P=n(283),A=Object(R.a)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",{attrs:{dark:""}},[404===t.error.statusCode?n("h1",[t._v("\n "+t._s(t.pageNotFound)+"\n ")]):n("h1",[t._v("\n "+t._s(t.otherError)+"\n ")]),t._v(" "),n("NuxtLink",{attrs:{to:"/"}},[t._v("\n Home page\n ")])],1)}),[],!1,null,"de4b70e6",null),U=A.exports;E()(A,{VApp:P.a});n(15),n(16),n(38);var N=n(9),I={name:"Nuxt",components:{NuxtChild:O,NuxtError:U},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(x.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(N.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(U,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},L=(n(41),n(42),n(37),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),D=(n(213),Object(R.a)(L,void 0,void 0,!1,null,null,null).exports),M=(n(215),{methods:{logout:function(){this.$auth.logout()}}}),F=n(287),B=n(275),V=n(284),H=n(288),K=n(289),z=n(285),J=n(178),W=n(286),X=n(174),Q=Object(R.a)(M,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-app",[r("v-app-bar",{staticStyle:{"z-index":"100"},attrs:{color:"white",app:""}},[r("v-toolbar-title",{staticClass:"mr-3"},[r("v-img",{attrs:{src:n(217)}})],1),t._v(" "),r("v-toolbar-title",[t._v("\n OCRデモ\n ")]),t._v(" "),r("v-spacer"),t._v(" "),t.$auth.loggedIn?r("v-toolbar-title",{on:{click:t.logout}},[r("v-btn",{attrs:{text:""}},[t._v("ログアウト")])],1):t._e()],1),t._v(" "),r("v-content",[r("v-container",[r("nuxt")],1)],1),t._v(" "),r("v-footer",{staticStyle:{position:"relative"},attrs:{app:""}},[r("v-col",{staticClass:"font-weight-thin text-right pa-0",attrs:{cols:"12"}},[t._v("\n © "+t._s((new Date).getFullYear())+" Automagi Inc.\n ")])],1)],1)}),[],!1,null,null,null),Y=Q.exports;function Z(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(x.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(x.q)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=Z(Object(x.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(x.q)(e.$options.asyncData,t.context).then((function(t){for(var n in t)c.default.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(x.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(U.options||U).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&tt["_"+t]||(t="default"),this.layoutName=t,this.layout=tt["_"+t],this.layout},loadLayout:function(t){return t&&tt["_"+t]||(t="default"),Promise.resolve(tt["_"+t])}},components:{NuxtLoading:D}};c.default.use(f.a);var nt={};(nt=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),function(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}(t,e)}(n(255),"store/index.js")).modules=nt.modules||{};var ot=nt instanceof Function?nt:function(){return new f.a.Store(Object.assign({strict:!1},nt))};var it=n(78),at={theme:{dark:!1}};c.default.use(it.a,{});var st=function(t){var e="function"==typeof at?at(t):at;e.icons=e.icons||{},e.icons.iconfont="md";var n=new it.a(e);t.app.vuetify=n,t.$vuetify=n.framework},ut=n(81),ct=n.n(ut),ft=n(175),ht=n.n(ft);function lt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=lt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return bt(ht()(t,this.defaults))}},gt=function(){var t=yt[mt];vt["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},mt=0,yt=["request","delete","get","head","options","post","put","patch"];mt0&&void 0!==arguments[0]?arguments[0]:"",t=path.split("?")[0];return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}function Ut(t){return"string"==typeof t?t:JSON.stringify(t)}function Nt(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){}return t}function It(t,e){if(!e||!t)return t;if(e in t)return t[e];for(var n=Array.isArray(e)?e:(e+"").split("."),r=t;n.length&&r;)r=r[n.shift()];return r}var Lt=function(){function t(e,n){Object(Ot.a)(this,t),this.ctx=e,this.options=n,this._initState()}return Object(jt.a)(t,[{key:"setUniversal",value:function(t,e){return Ct(e)?this.removeUniversal(t):(this.setState(t,e),this.setCookie(t,e),this.setLocalStorage(t,e),e)}},{key:"getUniversal",value:function(t){var e=this.getState(t);return Ct(e)&&(e=this.getCookie(t)),Ct(e)&&(e=this.getLocalStorage(t)),e}},{key:"syncUniversal",value:function(t,e){var n=this.getUniversal(t);return Ct(n)&&Rt(e)&&(n=e),Rt(n)&&this.setUniversal(t,n),n}},{key:"removeUniversal",value:function(t){this.removeState(t),this.removeLocalStorage(t),this.removeCookie(t)}},{key:"_initState",value:function(){var t=this;if(c.default.set(this,"_state",{}),this._useVuex=this.options.vuex&&this.ctx.store,this._useVuex){var e={namespaced:!0,state:function(){return t.options.initialState},mutations:{SET:function(t,e){c.default.set(t,e.key,e.value)}}};this.ctx.store.registerModule(this.options.vuex.namespace,e,{preserveState:Boolean(this.ctx.store.state[this.options.vuex.namespace])}),this.state=this.ctx.store.state[this.options.vuex.namespace]}else c.default.set(this,"state",{})}},{key:"setState",value:function(t,e){return"_"===t[0]?c.default.set(this._state,t,e):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:t,value:e}):c.default.set(this.state,t,e),e}},{key:"getState",value:function(t){return"_"!==t[0]?this.state[t]:this._state[t]}},{key:"watchState",value:function(t,e){var n=this;if(this._useVuex)return this.ctx.store.watch((function(e){return It(e[n.options.vuex.namespace],t)}),e)}},{key:"removeState",value:function(t){this.setState(t,void 0)}},{key:"setLocalStorage",value:function(t,e){if(Ct(e))return this.removeLocalStorage(t);if("undefined"!=typeof localStorage&&this.options.localStorage){var n=this.options.localStorage.prefix+t;try{localStorage.setItem(n,Ut(e))}catch(t){if(!this.options.ignoreExceptions)throw t}return e}}},{key:"getLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;return Nt(localStorage.getItem(e))}}},{key:"removeLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;localStorage.removeItem(e)}}},{key:"getCookies",value:function(){var t=document.cookie;return Object(St.parse)(t||"")||{}}},{key:"setCookie",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.options.cookie){var r=this.options.cookie.prefix+t,o=Object.assign({},this.options.cookie.options,n),c=Ut(e);Ct(e)&&(o.maxAge=-1),"number"==typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires));var f=Object(St.serialize)(r,c,o);return document.cookie=f,e}}},{key:"getCookie",value:function(t){if(this.options.cookie){var e=this.options.cookie.prefix+t,n=this.getCookies();return Nt(n[e]?decodeURIComponent(n[e]):void 0)}}},{key:"removeCookie",value:function(t,e){this.setCookie(t,void 0,e)}}]),t}();function Dt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};this.error=t;var n,r=Dt(this._errorListeners);try{for(r.s();!(n=r.n()).done;){var o=n.value;o(t,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"redirect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.redirect){var n=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path,r=this.options.redirect[t];if(r){if(this.options.rewriteRedirects&&("login"===t&&Et(n)&&!Tt(r,n)&&this.$storage.setUniversal("redirect",n),"home"===t)){var o=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),Et(o)&&(r=o)}r=this.callOnRedirect(r,n)||r,Tt(r,n)||(e?window.location.replace(r):this.ctx.redirect(r,this.ctx.query))}}}},{key:"onRedirect",value:function(t){this._redirectListeners.push(t)}},{key:"callOnRedirect",value:function(t,e){var n,r=Dt(this._redirectListeners);try{for(r.s();!(n=r.n()).done;){t=(0,n.value)(t,e)||t}}catch(t){r.e(t)}finally{r.f()}return t}},{key:"hasScope",value:function(t){var e=this.$state.user&&It(this.$state.user,this.options.scopeKey);return!!e&&(Array.isArray(e)?e.includes(t):Boolean(It(e,t)))}},{key:"state",get:function(){return this._state_warn_shown||(this._state_warn_shown=!0,console.warn("[AUTH] $auth.state is deprecated. Please use $auth.$state or top level props like $auth.loggedIn")),this.$state}},{key:"strategy",get:function(){return this.strategies[this.$state.strategy]}},{key:"user",get:function(){return this.$state.user}},{key:"loggedIn",get:function(){return this.$state.loggedIn}},{key:"busy",get:function(){return this.$storage.getState("busy")}}]),t}();n(76).a.auth=function(t){if(!Pt(t.route,"auth",!1)){if(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).map((function(r){return e&&e.push(n),t.components[r]}))})))}(t.route,[]).length){var e=t.$auth.options.redirect,n=e.login,r=e.callback,o=Pt(t.route,"auth","guest"),c=function(e){return At(t.route.path)===At(e)};t.$auth.$state.loggedIn?(!n||c(n)||o)&&t.$auth.redirect("home"):o||r&&c(r)||t.$auth.redirect("login")}}};var Ft=function(){function t(e,n){Object(Ot.a)(this,t),this.$auth=e,this.name=n._name,this.options=Object.assign({},Bt,n)}var e,n,o,c,f;return Object(jt.a)(t,[{key:"_setToken",value:function(t){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,t)}},{key:"_clearToken",value:function(){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,!1)}},{key:"mounted",value:function(){if(this.options.tokenRequired){var t=this.$auth.syncToken(this.name);this._setToken(t)}return this.$auth.fetchUserOnce()}},{key:"login",value:(f=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.endpoints.login){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.$auth.reset();case 4:return t.next=6,this.$auth.request(e,this.options.endpoints.login,!0);case 6:if(n=t.sent,r=n.response,o=n.result,this.options.tokenRequired&&(c=this.options.tokenType?this.options.tokenType+" "+o:o,this.$auth.setToken(this.name,c),this._setToken(c)),!this.options.autoFetchUser){t.next=13;break}return t.next=13,this.fetchUser();case 13:return t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"setUserToken",value:(c=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.options.tokenType?this.options.tokenType+" "+e:e,this.$auth.setToken(this.name,n),this._setToken(n),t.abrupt("return",this.fetchUser());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"fetchUser",value:(o=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.tokenRequired||this.$auth.getToken(this.name)){t.next=2;break}return t.abrupt("return");case 2:if(this.options.endpoints.user){t.next=5;break}return this.$auth.setUser({}),t.abrupt("return");case 5:return t.next=7,this.$auth.requestWith(this.name,e,this.options.endpoints.user);case 7:n=t.sent,this.$auth.setUser(n);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"logout",value:(n=Object(r.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.endpoints.logout){t.next=3;break}return t.next=3,this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch((function(){}));case 3:return t.abrupt("return",this.$auth.reset());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"reset",value:(e=Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.options.tokenRequired&&this._clearToken(),this.$auth.setUser(!1),this.$auth.setToken(this.name,!1),this.$auth.setRefreshToken(this.name,!1),t.abrupt("return",Promise.resolve());case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),Bt={tokenRequired:!0,tokenType:"Bearer",globalToken:!0,tokenName:"Authorization",autoFetchUser:!0},Vt=function(t,e){var n=new Mt(t,{resetOnError:!1,scopeKey:"scope",rewriteRedirects:!0,fullPathRedirect:!1,watchLoggedIn:!0,redirect:{login:"/login",logout:"/login",home:"/",callback:!1},vuex:{namespace:"auth"},cookie:{prefix:"auth.",options:{path:"/"}},localStorage:{prefix:"auth."},token:{prefix:"_token."},refresh_token:{prefix:"_refresh_token."},defaultStrategy:"local"});return n.registerStrategy("local",new Ft(n,{endpoints:{login:{url:"auth/login",method:"post",propertyName:"token"},logout:!1,user:{url:"auth/user",method:"get",propertyName:!1}},_name:"local"})),e("auth",n),t.$auth=n,n.init().catch((function(t){console.error("[ERROR] [AUTH]",t)}))};function Ht(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Kt(t){for(var i=1;i has been deprecated and will be removed in Nuxt 3, please use instead")),m.a.render(t,e)}})),c.default.component(O.name,O),c.default.component("NChild",O),c.default.component(I.name,I),Object.defineProperty(c.default.prototype,"$nuxt",{get:function(){return this.$root.$options.$nuxt},configurable:!0}),c.default.use(h.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var zt={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};f.a.Store.prototype.registerModule;function Jt(t){return Wt.apply(this,arguments)}function Wt(){return(Wt=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,f,h,l,path,d,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));f[t="$"+t]=e,f.context[t]||(f.context[t]=e),o[t]=f[t];var n="__nuxt_"+t+"_installed__";c.default[n]||(c.default[n]=!0,c.default.use((function(){Object.prototype.hasOwnProperty.call(c.default.prototype,t)||Object.defineProperty(c.default.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=4,_();case 4:return r=t.sent,(o=ot(e)).$router=r,f=Kt({head:{title:"AMY OCR DEMO",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:"OCR demo system front side"}],link:[{rel:"icon",type:"image/x-icon",href:"images/favicon.ico"},{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"},{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Material+Icons"}],style:[],script:[]},store:o,router:r,nuxt:{defaultTransition:zt,transitions:[zt],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},zt,{name:t}):Object.assign({},zt,t):zt})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,f.context._errored=Boolean(t),t=t?Object(x.p)(t):null;var n=f.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},et),o.app=f,h=e?e.next:function(t){return f.router.push(t)},e?l=r.resolve(e.url).route:(path=Object(x.f)(r.options.base,r.options.mode),l=r.resolve(path).route),t.next=13,Object(x.t)(f,{store:o,route:l,next:h,error:f.nuxt.error.bind(f),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 13:return d("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),f.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.previewData=Object.assign({},t),d("preview",t)},t.next=19,st(f.context);case 19:return t.next=22,wt(f.context,d);case 22:t.next=25;break;case 25:return t.next=28,Vt(f.context,d);case 28:f.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=32;break;case 32:return t.abrupt("return",{store:o,app:f,router:r});case 33:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},76:function(t,e,n){"use strict";e.a={}}},[[184,5,2,6]]]);