vue-qrcode-reader
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -1,1 +0,1 @@ | ||
module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=65)}([function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(36)("wks"),o=n(23),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(2),o=n(0),i=n(11),u=n(8),a=function(t,e,n){var c,s,f,l=t&a.F,p=t&a.G,h=t&a.S,d=t&a.P,v=t&a.B,y=t&a.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,_=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(c in n)(s=!l&&_&&void 0!==_[c])&&c in m||(f=s?_[c]:n[c],m[c]=p&&"function"!=typeof _[c]?n[c]:v&&s?i(f,r):y&&_[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?i(Function.call,f):f,d&&((m.virtual||(m.virtual={}))[c]=f,t&a.R&&g&&!g[c]&&u(g,c,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(4),o=n(48),i=n(39),u=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(17);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(49),o=n(29);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(57),o=n(31);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(119)(!0);n(52)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(5).f,o=n(7),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(29);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){n(124);for(var r=n(2),o=n(8),i=n(13),u=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var s=a[c],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(25),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){function r(i,u){try{var a=e[i](u),c=a.value}catch(t){return void n(t)}if(!a.done)return o.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}return r("next")})}}},function(t,e,n){t.exports=n(138)},function(t,e,n){var r=n(14),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(19);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(4),o=n(112),i=n(31),u=n(35)("IE_PROTO"),a=function(){},c=function(){var t,e=n(30)("iframe"),r=i.length;for(e.style.display="none",n(47).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36)("keys"),o=n(23);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(37),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(2),o=n(0),i=n(20),u=n(41),a=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(28),o=n(1)("iterator"),i=n(13);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";function r(t){p.width=t.naturalWidth,p.height=t.naturalHeight;var e=[0,0,p.width,p.height];return h.drawImage.apply(h,[t].concat(e)),h.getImageData.apply(h,e)}function o(t){p.width=t.videoWidth,p.height=t.videoHeight;var e=[0,0,p.width,p.height];return h.drawImage.apply(h,[t].concat(e)),h.getImageData.apply(h,e)}e.c=o,n.d(e,"b",function(){return d}),n.d(e,"a",function(){return v});var i=n(27),u=n.n(i),a=n(25),c=n.n(a),s=n(26),f=n.n(s),l=n(67),p=document.createElement("canvas"),h=p.getContext("2d"),d=function(){var t=f()(u.a.mark(function t(e){var n,o;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.startsWith("http")||!1!==e.includes(location.host)){t.next=2;break}throw new l.a;case 2:return n=document.createElement("img"),o=new c.a(function(t,e){n.onload=t}),n.src=e,t.next=7,o;case 7:return t.abrupt("return",r(n));case 8:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=f()(u.a.mark(function t(e){var n,r,o;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!/image.*/.test(e.type)){t.next=10;break}return n=new FileReader,r=new c.a(function(t,e){n.onload=function(e){return t(e.target.result)}}),n.readAsDataURL(e),t.next=6,r;case 6:return o=t.sent,t.abrupt("return",d(o));case 10:throw new l.b;case 11:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},function(t,e,n){t.exports={default:n(92),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(79),i=r(o),u=n(78),a=r(u),c="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){t.exports=!n(6)&&!n(12)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(13),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(20),o=n(3),i=n(60),u=n(8),a=n(7),c=n(13),s=n(107),f=n(21),l=n(56),p=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){s(n,e,v);var _,x,w,b=function(t){if(!h&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j="values"==y,S=!1,E=t.prototype,P=E[p]||E["@@iterator"]||y&&E[y],L=P||b(y),k=y?j?b("entries"):L:void 0,M="Array"==e?E.entries||P:P;if(M&&(w=l(M.call(new t)))!==Object.prototype&&w.next&&(f(w,O,!0),r||a(w,p)||u(w,p,d)),j&&P&&"values"!==P.name&&(S=!0,L=function(){return P.call(this)}),r&&!g||!h&&!S&&E[p]||u(E,p,L),c[e]=L,c[O]=d,y)if(_={values:j?L:b("values"),keys:m?L:b("keys"),entries:k},g)for(x in _)x in E||i(E,x,_[x]);else o(o.P+o.F*(h||S),e,_);return _}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(16),o=n(17),i=n(10),u=n(39),a=n(7),c=n(48),s=Object.getOwnPropertyDescriptor;e.f=n(6)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(57),o=n(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(7),o=n(22),i=n(35)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(7),o=n(10),i=n(101)(!1),u=n(35)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(4),o=n(9),i=n(32);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(8)},function(t,e,n){var r=n(4),o=n(19),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(11),a=n(105),c=n(47),s=n(30),f=n(2),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete m[t]},"process"==n(14)(l)?r=function(t){l.nextTick(u(g,t,1))}:v&&v.now?r=function(t){v.now(u(g,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e){},function(t,e,n){n(137);var r=n(140)(n(69),n(141),null,null);t.exports=r.exports},function(t,e,n){"use strict";function r(t){t.component("qrcode-reader",i.a)}Object.defineProperty(e,"__esModule",{value:!0}),e.install=r;var o=n(64),i=n.n(o);n.d(e,"QrcodeReader",function(){return i.a});var u={install:r};e.default=u;var a=null;"undefined"!=typeof window?a=window.Vue:"undefined"!=typeof global&&(a=global.Vue),a&&a.use(u)},function(t,e,n){"use strict";var r=n(27),o=n.n(r),i=n(25),u=n.n(i),a=n(26),c=n.n(a),s=n(45),f=n.n(s),l=n(80),p=n.n(l),h=n(43),d=function(){function t(e,n){f()(this,t),this.videoEl=e,this.stream=n}return p()(t,[{key:"stop",value:function(){this.stream.getTracks().forEach(function(t){return t.stop()})}},{key:"captureFrame",value:function(){return n.i(h.c)(this.videoEl)}},{key:"resolutionWidth",get:function(){return this.videoEl.videoWidth}},{key:"resolutionHeight",get:function(){return this.videoEl.videoHeight}},{key:"displayWidth",get:function(){return this.videoEl.offsetWidth}},{key:"displayHeight",get:function(){return this.videoEl.offsetHeight}}]),t}();e.a=function(){var t=c()(o.a.mark(function t(e,n){var r,i;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){t.next=2;break}throw new Error("WebRTC API not supported in this browser");case 2:return t.next=4,navigator.mediaDevices.getUserMedia(e);case 4:return r=t.sent,i=new u.a(function(t,e){n.addEventListener("loadeddata",t,{once:!0}),n.addEventListener("error",e,{once:!0})}),void 0!==n.srcObject?n.srcObject=r:void 0!==n.mozSrcObject?n.mozSrcObject=r:window.URL.createObjectURL?n.src=window.URL.createObjectURL(r):window.webkitURL?n.src=window.webkitURL.createObjectURL(r):n.src=r,n.playsInline=!0,n.play(),t.next=11,i;case 11:return t.abrupt("return",new d(n,r));case 12:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return p});var r=n(76),o=n.n(r),i=n(45),u=n.n(i),a=n(84),c=n.n(a),s=n(83),f=n.n(s),l=function(t){function e(){u()(this,e);var t=c()(this,(e.__proto__||o()(e)).call(this,"can't process cross-origin image"));return t.name="DropImageFetchError",t}return f()(e,t),e}(Error),p=function(t){function e(){u()(this,e);var t=c()(this,(e.__proto__||o()(e)).call(this,"drag-and-dropped file is not of type image and can't be decoded"));return t.name="DropImageDecodeError",t}return f()(e,t),e}(Error)},function(t,e,n){"use strict";function r(t){var e=t.data,n=t.width,r=t.height,o=a()(e,n,r),i=void 0,u=void 0;return null===o?(i=null,u=null):(i=o.data,u=o.location),{content:i,location:u,imageData:t}}function o(t,e){var n=e.locateHandler,o=e.detectHandler,i=e.shouldContinue,u=e.minDelay,a=null,c=null,s=performance.now();!function e(){if(i()){window.requestAnimationFrame(e);var f=performance.now();if(f-s>=u){s=f;var l=t.captureFrame(),p=r(l),h=p.content,d=p.location;h!==a&&null!==h&&o({content:h,location:d,imageData:l}),d!==c&&n(d),a=h||a,c=d}}}()}e.b=r,e.a=o;var i=n(144),u=(n.n(i),n(142)),a=n.n(u)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(81),o=n.n(r),i=n(85),u=n.n(i),a=n(75),c=n.n(a),s=n(86),f=n.n(s),l=n(27),p=n.n(l),h=n(26),d=n.n(h),v=n(82),y=n.n(v),m=n(68),g=n(66),_=n(43),x=n(143),w=n.n(x);e.default={props:{paused:{type:Boolean,default:!1},videoConstraints:{type:[Object,Boolean],default:function(){return{}}},track:{type:[Function,Boolean],default:!0}},data:function(){return{camera:null,destroyed:!1,readyAfterPause:!0}},computed:{shouldScan:function(){return!1===this.paused&&null!==this.camera&&!1===this.destroyed&&this.readyAfterPause},scanInterval:function(){return!1===this.track?500:40},constraints:function(){var t=void 0;return t=w()(this.videoConstraints)?this.videoConstraints:y()({facingMode:{ideal:"environment"},width:{min:360,ideal:640,max:1920},height:{min:240,ideal:480,max:1080}},this.videoConstraints),{audio:!1,video:t}},trackRepaintFunction:function(){return!0===this.track?function(t,e){if(null!==t){var n=t.topLeftCorner,r=t.topRightCorner,o=t.bottomLeftCorner,i=t.bottomRightCorner;e.strokeStyle="red",e.beginPath(),e.moveTo(n.x,n.y),e.lineTo(o.x,o.y),e.lineTo(i.x,i.y),e.lineTo(r.x,r.y),e.lineTo(n.x,n.y),e.closePath(),e.stroke()}}:!1===this.track?null:this.track}},watch:{shouldScan:function(t){t&&this.startScanning()},paused:function(t){var e=this,n=this.$refs.video;t?(n.pause(),this.readyAfterPause=!1):(n.play(),n.addEventListener("timeupdate",function(){e.readyAfterPause=!0},{once:!0}))},constraints:{deep:!0,handler:function(){this.$emit("init",this.init())}}},mounted:function(){this.$emit("init",this.init())},beforeDestroy:function(){null!==this.camera&&this.camera.stop(),this.destroyed=!0},methods:{init:function(){var t=this;return d()(p.a.mark(function e(){return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t.camera&&t.camera.stop(),!1!==t.videoConstraints){e.next=5;break}t.camera=null,e.next=8;break;case 5:return e.next=7,n.i(g.a)(t.constraints,t.$refs.video);case 7:t.camera=e.sent;case 8:case"end":return e.stop()}},e,t)}))()},startScanning:function(){var t=this;m.a(this.camera,{locateHandler:this.onLocate,detectHandler:function(e){return t.onDetect("stream",e)},shouldContinue:function(){return t.shouldScan},minDelay:this.scanInterval})},onLocate:function(t){null!==this.trackRepaintFunction&&this.repaintTrack(t)},onDetect:function(t,e){var n=this;return d()(p.a.mark(function r(){var o,i;return p.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n.$emit("detect",d()(p.a.mark(function r(){var o;return p.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e;case 2:return o=n.sent,n.abrupt("return",y()({source:t},o));case 4:case"end":return n.stop()}},r,n)}))()),r.prev=1,r.next=4,e;case 4:o=r.sent,i=o.content,null!==i&&n.$emit("decode",i),r.next=11;break;case 9:r.prev=9,r.t0=r.catch(1);case 11:case"end":return r.stop()}},r,n,[[1,9]])}))()},onDrop:function(t){var e=t.dataTransfer;[].concat(f()(e.files)).forEach(this.onDropFile);var n=e.getData("text");""!==n&&this.onDropUrl(n)},onDropFile:function(t){var e=this;return d()(p.a.mark(function r(){return p.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e.onDetect("file",d()(p.a.mark(function r(){var o,i;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.i(_.a)(t);case 2:return o=e.sent,i=m.b(o),e.abrupt("return",i);case 5:case"end":return e.stop()}},r,e)}))());case 1:case"end":return r.stop()}},r,e)}))()},onDropUrl:function(t){var e=this;return d()(p.a.mark(function r(){return p.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e.onDetect("url",d()(p.a.mark(function r(){var o,i;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.i(_.b)(t);case 2:return o=e.sent,i=m.b(o),e.abrupt("return",i);case 5:case"end":return e.stop()}},r,e)}))());case 1:case"end":return r.stop()}},r,e)}))()},normalizeLocation:function(t){if(null===t)return null;var e=this.camera.displayWidth/this.camera.resolutionWidth,n=this.camera.displayHeight/this.camera.resolutionHeight,r=function(t){var r=t.x,o=t.y;return{x:Math.floor(r*e),y:Math.floor(o*n)}},i=function(t,e){return y()({},t,e)};return c()(t).map(function(t){var e=u()(t,2),n=e[0],i=e[1];return o()({},n,r(i))}).reduce(i,{})},repaintTrack:function(t){var e=this;t=this.normalizeLocation(t);var n=this.$refs.trackingLayer,r=n.getContext("2d");n.width=this.camera.displayWidth,n.height=this.camera.displayHeight,window.requestAnimationFrame(function(){return e.trackRepaintFunction(t,r)})}}}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){t.exports={default:n(89),__esModule:!0}},function(t,e,n){t.exports={default:n(90),__esModule:!0}},function(t,e,n){t.exports={default:n(91),__esModule:!0}},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){t.exports={default:n(94),__esModule:!0}},function(t,e,n){t.exports={default:n(95),__esModule:!0}},function(t,e,n){t.exports={default:n(97),__esModule:!0}},function(t,e,n){t.exports={default:n(98),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(44),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(44),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(73),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(77),i=r(o),u=n(74),a=r(u),c=n(46),s=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(46),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(72),i=r(o),u=n(71),a=r(u);e.default=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=(0,a.default)(t);!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,i.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(70),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){n(18),n(123),t.exports=n(0).Array.from},function(t,e,n){n(24),n(18),t.exports=n(121)},function(t,e,n){n(24),n(18),t.exports=n(122)},function(t,e,n){n(125),t.exports=n(0).Object.assign},function(t,e,n){n(126);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(127);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(132),t.exports=n(0).Object.entries},function(t,e,n){n(128),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){n(129),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){n(63),n(18),n(24),n(130),n(133),n(134),t.exports=n(0).Promise},function(t,e,n){n(131),n(63),n(135),n(136),t.exports=n(0).Symbol},function(t,e,n){n(18),n(24),t.exports=n(41).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(10),o=n(38),i=n(120);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(5),o=n(17);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(15),o=n(34),i=n(16);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,n){var r=n(11),o=n(51),i=n(50),u=n(4),a=n(38),c=n(42),s={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,y,m=p?function(){return t}:c(t),g=r(n,l,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=a(t.length);h>_;_++)if((y=e?g(u(d=t[_])[0],d[1]):g(t[_]))===s||y===f)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=o(v,g,d.value,e))===s||y===f)return y};e.BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(14);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(33),o=n(17),i=n(21),u={};n(8)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(23)("meta"),o=n(9),i=n(7),u=n(5).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(2),o=n(62).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==n(14)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){u.nextTick(s)};else if(i){var f=!0,l=document.createTextNode("");new i(s).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(a&&a.resolve){var p=a.resolve();n=function(){p.then(s)}}else n=function(){o.call(r,s)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(15),o=n(34),i=n(16),u=n(22),a=n(49),c=Object.assign;t.exports=!c||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=u(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,h=a(arguments[s++]),d=f?r(h).concat(f(h)):r(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(n[p]=h[p]);return n}:c},function(t,e,n){var r=n(5),o=n(4),i=n(15);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(10),o=n(55).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(0),i=n(12);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(15),o=n(10),i=n(16).f;t.exports=function(t){return function(e){for(var n,u=o(e),a=r(u),c=a.length,s=0,f=[];c>s;)i.call(u,n=a[s++])&&f.push(t?[n,u[n]]:u[n]);return f}}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(9),o=n(4),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(11)(Function.call,n(54).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(5),u=n(6),a=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(37),o=n(29);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(37),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(4),o=n(42);t.exports=n(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(28),o=n(1)("iterator"),i=n(13);t.exports=n(0).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(r(e))}},function(t,e,n){"use strict";var r=n(11),o=n(3),i=n(22),u=n(51),a=n(50),c=n(38),s=n(102),f=n(42);o(o.S+o.F*!n(53)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,m=0,g=f(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||h==Array&&a(g))for(e=c(p.length),n=new h(e);e>m;m++)s(n,m,y?v(p[m],m):p[m]);else for(l=g.call(p),n=new h;!(o=l.next()).done;m++)s(n,m,y?u(l,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(99),o=n(108),i=n(13),u=n(10);t.exports=n(52)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(3);r(r.S+r.F,"Object",{assign:n(111)})},function(t,e,n){var r=n(3);r(r.S,"Object",{create:n(33)})},function(t,e,n){var r=n(3);r(r.S+r.F*!n(6),"Object",{defineProperty:n(5).f})},function(t,e,n){var r=n(22),o=n(56);n(114)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(3);r(r.S,"Object",{setPrototypeOf:n(117).set})},function(t,e,n){"use strict";var r,o,i,u,a=n(20),c=n(2),s=n(11),f=n(28),l=n(3),p=n(9),h=n(19),d=n(100),v=n(104),y=n(61),m=n(62).set,g=n(110)(),_=n(32),x=n(58),w=n(59),b=c.TypeError,O=c.process,j=c.Promise,S="process"==f(O),E=function(){},P=o=_.f,L=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(E,E)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),k=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,u=o?e.ok:e.fail,a=e.resolve,c=e.reject,s=e.domain;try{u?(o||(2==t._h&&A(t),t._h=1),!0===u?n=r:(s&&s.enter(),n=u(r),s&&s.exit()),n===e.promise?c(b("Promise-chain cycle")):(i=k(n))?i.call(n,a,c):a(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){m.call(c,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=x(function(){S?O.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=S||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!F(e.promise))return!1;return!0},A=function(t){m.call(c,function(){var e;S?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=k(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(D,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};L||(j=function(t){d(this,j,"Promise","_h"),h(t),r.call(this);try{t(s(D,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(116)(j.prototype,{then:function(t,e){var n=P(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(D,t,1),this.reject=s(R,t,1)},_.f=P=function(t){return t===j||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:j}),n(21)(j,"Promise"),n(118)("Promise"),u=n(0).Promise,l(l.S+l.F*!L,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===u?j:this,t)}}),l(l.S+l.F*!(L&&n(53)(function(t){j.all(t).catch(E)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,u=1;v(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(6),u=n(3),a=n(60),c=n(109).KEY,s=n(12),f=n(36),l=n(21),p=n(23),h=n(1),d=n(41),v=n(40),y=n(103),m=n(106),g=n(4),_=n(10),x=n(39),w=n(17),b=n(33),O=n(113),j=n(54),S=n(5),E=n(15),P=j.f,L=S.f,k=O.f,M=r.Symbol,T=r.JSON,F=T&&T.stringify,A=h("_hidden"),R=h("toPrimitive"),D={}.propertyIsEnumerable,C=f("symbol-registry"),I=f("symbols"),N=f("op-symbols"),W=Object.prototype,G="function"==typeof M,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,q=i&&s(function(){return 7!=b(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(W,e);r&&delete W[e],L(t,e,n),r&&t!==W&&L(W,e,r)}:L,B=function(t){var e=I[t]=b(M.prototype);return e._k=t,e},V=G&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},$=function(t,e,n){return t===W&&$(N,e,n),g(t),e=x(e,!0),g(n),o(I,e)?(n.enumerable?(o(t,A)&&t[A][e]&&(t[A][e]=!1),n=b(n,{enumerable:w(0,!1)})):(o(t,A)||L(t,A,w(1,{})),t[A][e]=!0),q(t,e,n)):L(t,e,n)},z=function(t,e){g(t);for(var n,r=y(e=_(e)),o=0,i=r.length;i>o;)$(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?b(t):z(b(t),e)},J=function(t){var e=D.call(this,t=x(t,!0));return!(this===W&&o(I,t)&&!o(N,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,A)&&this[A][t])||e)},Y=function(t,e){if(t=_(t),e=x(e,!0),t!==W||!o(I,e)||o(N,e)){var n=P(t,e);return!n||!o(I,e)||o(t,A)&&t[A][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=k(_(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==A||e==c||r.push(e);return r},X=function(t){for(var e,n=t===W,r=k(n?N:_(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(W,e)||i.push(I[e]);return i};G||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(N,n),o(this,A)&&o(this[A],t)&&(this[A][t]=!1),q(this,t,w(1,n))};return i&&U&&q(W,t,{configurable:!0,set:e}),B(t)},a(M.prototype,"toString",function(){return this._k}),j.f=Y,S.f=$,n(55).f=O.f=Q,n(16).f=J,n(34).f=X,i&&!n(20)&&a(W,"propertyIsEnumerable",J,!0),d.f=function(t){return B(h(t))}),u(u.G+u.W+u.F*!G,{Symbol:M});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=E(h.store),nt=0;et.length>nt;)v(et[nt++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=M(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in C)if(C[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!G,"Object",{create:K,defineProperty:$,defineProperties:z,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),T&&u(u.S+u.F*(!G||s(function(){var t=M();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,F.apply(T,r)}}}),M.prototype[R]||n(8)(M.prototype,R,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(3),o=n(115)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(3),o=n(0),i=n(2),u=n(61),a=n(59);r(r.P+r.R,"Promise",{finally:function(t){var e=u(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(3),o=n(32),i=n(58);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(40)("asyncIterator")},function(t,e,n){n(40)("observable")},function(t,e){},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(139),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,u=Object.create(i.prototype),a=new h(r||[]);return u._invoke=s(t,n,a),u}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function u(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(n,o,i,u){var a=r(t[n],t,o);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},u)}u(a.arg)}function n(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(t,e,n){var o=S;return function(i,u){if(o===P)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw u;return v()}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=f(a,n);if(c){if(c===k)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===S)throw o=L,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=P;var s=r(t,e,n);if("normal"===s.type){if(o=n.done?L:E,s.arg===k)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=L,n.method="throw",n.arg=s.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return k;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,k;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,k):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,k)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:y,done:!0}}var y,m=Object.prototype,g=m.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},x=_.iterator||"@@iterator",w=_.asyncIterator||"@@asyncIterator",b=_.toStringTag||"@@toStringTag",O="object"==typeof t,j=e.regeneratorRuntime;if(j)return void(O&&(t.exports=j));j=e.regeneratorRuntime=O?t.exports:{},j.wrap=n;var S="suspendedStart",E="suspendedYield",P="executing",L="completed",k={},M={};M[x]=function(){return this};var T=Object.getPrototypeOf,F=T&&T(T(d([])));F&&F!==m&&g.call(F,x)&&(M=F);var A=u.prototype=o.prototype=Object.create(M);i.prototype=A.constructor=u,u.constructor=i,u[b]=i.displayName="GeneratorFunction",j.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},j.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(A),t},j.awrap=function(t){return{__await:t}},a(c.prototype),c.prototype[w]=function(){return this},j.AsyncIterator=c,j.async=function(t,e,r,o){var i=new c(n(t,e,r,o));return j.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},a(A),A[b]="Generator",A[x]=function(){return this},A.toString=function(){return"[object Generator]"},j.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},j.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var u=g.call(o,"catchLoc"),a=g.call(o,"finallyLoc");if(u&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,k):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),k},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),k}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),k}}}(function(){return this}()||Function("return this")())},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(o=t,i=t.default);var a="function"==typeof i?i.options:i;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),n&&(a._scopeId=n),r){var c=a.computed||(a.computed={});Object.keys(r).forEach(function(t){var e=r[t];c[t]=function(){return e}})}return{esModule:o,exports:i,options:a}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qrcode-reader"},[n("div",{staticClass:"qrcode-reader__inner-wrapper"},[n("div",{staticClass:"qrcode-reader__overlay",on:{drop:function(e){e.preventDefault(),e.stopPropagation(),t.onDrop(e)},dragover:function(t){t.preventDefault(),t.stopPropagation()},dragenter:function(t){t.preventDefault(),t.stopPropagation()},dragleave:function(t){t.preventDefault(),t.stopPropagation()}}},[t._t("default")],2),t._v(" "),n("canvas",{ref:"trackingLayer",staticClass:"qrcode-reader__tracking-layer"}),t._v(" "),n("video",{ref:"video",staticClass:"qrcode-reader__camera"})])])},staticRenderFns:[]}},function(t,e){t.exports=require("jsqr")},function(t,e){t.exports=require("lodash/isBoolean")},function(t,e){t.exports=require("webrtc-adapter")}]); | ||
module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=65)}([function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(33)("wks"),o=n(22),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(1),o=n(0),i=n(10),a=n(8),u=function(t,e,n){var c,s,f,l=t&u.F,p=t&u.G,h=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,x=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(c in n)(s=!l&&x&&void 0!==x[c])&&c in m||(f=s?x[c]:n[c],m[c]=p&&"function"!=typeof x[c]?n[c]:v&&s?i(f,r):y&&x[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?i(Function.call,f):f,d&&((m.virtual||(m.virtual={}))[c]=f,t&u.R&&g&&!g[c]&&a(g,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(4),o=n(46),i=n(36),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(15);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(16);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(47),o=n(26);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(55),o=n(28);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(5).f,o=n(7),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(26);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";function r(t,e,n){return new i.a(function(r,o){t.addEventListener(e,r,{once:!0}),void 0!==n&&t.addEventListener(n,o,{once:!0})})}e.a=r;var o=n(41),i=n.n(o)},function(t,e,n){"use strict";e.__esModule=!0;var r=n(41),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){function r(i,a){try{var u=e[i](a),c=u.value}catch(t){return void n(t)}if(!u.done)return o.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}return r("next")})}}},function(t,e,n){t.exports=n(127)},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(16);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(4),o=n(105),i=n(28),a=n(32)("IE_PROTO"),u=function(){},c=function(){var t,e=n(27)("iframe"),r=i.length;for(e.style.display="none",n(45).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(33)("keys"),o=n(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(1),o=n(0),i=n(17),a=n(38),u=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){"use strict";var r=n(111)(!0);n(50)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";function r(t){l.width=t.naturalWidth,l.height=t.naturalHeight;var e=[0,0,l.width,l.height];return p.drawImage.apply(p,[t].concat(e)),p.getImageData.apply(p,e)}function o(t){l.width=t.videoWidth,l.height=t.videoHeight;var e=[0,0,l.width,l.height];return p.drawImage.apply(p,[t].concat(e)),p.getImageData.apply(p,e)}e.c=o,n.d(e,"b",function(){return h}),n.d(e,"a",function(){return d});var i=n(25),a=n.n(i),u=n(24),c=n.n(u),s=n(67),f=n(23),l=document.createElement("canvas"),p=l.getContext("2d"),h=function(){var t=c()(a.a.mark(function t(e){var o,i;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.startsWith("http")||!1!==e.includes(location.host)){t.next=2;break}throw new s.a;case 2:return o=document.createElement("img"),i=n.i(f.a)(o,"load"),o.src=e,t.next=7,i;case 7:return t.abrupt("return",r(o));case 8:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),d=function(){var t=c()(a.a.mark(function t(e){var r,o,i;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!/image.*/.test(e.type)){t.next=10;break}return r=new FileReader,o=n.i(f.a)(r,"load"),r.readAsDataURL(e),t.next=6,o;case 6:return i=t.sent.target.result,t.abrupt("return",h(i));case 10:throw new s.b;case 11:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},function(t,e,n){t.exports={default:n(89),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(77),i=r(o),a=n(76),u=r(a),c="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){var r=n(13),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){t.exports=!n(6)&&!n(11)(function(){return 7!=Object.defineProperty(n(27)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(13);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(14),o=n(2)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(17),o=n(3),i=n(58),a=n(8),u=n(7),c=n(14),s=n(100),f=n(20),l=n(54),p=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){s(n,e,v);var x,w,_,b=function(t){if(!h&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j="values"==y,S=!1,P=t.prototype,E=P[p]||P["@@iterator"]||y&&P[y],k=E||b(y),L=y?j?b("entries"):k:void 0,M="Array"==e?P.entries||E:E;if(M&&(_=l(M.call(new t)))!==Object.prototype&&_.next&&(f(_,O,!0),r||u(_,p)||a(_,p,d)),j&&E&&"values"!==E.name&&(S=!0,k=function(){return E.call(this)}),r&&!g||!h&&!S&&P[p]||a(P,p,k),c[e]=k,c[O]=d,y)if(x={values:j?k:b("values"),keys:m?k:b("keys"),entries:L},g)for(w in x)w in P||i(P,w,x[w]);else o(o.P+o.F*(h||S),e,x);return x}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){var r=n(19),o=n(15),i=n(12),a=n(36),u=n(7),c=n(46),s=Object.getOwnPropertyDescriptor;e.f=n(6)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(55),o=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(7),o=n(21),i=n(32)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(7),o=n(12),i=n(94)(!1),a=n(32)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(4),o=n(9),i=n(29);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(8)},function(t,e,n){var r=n(4),o=n(16),i=n(2)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(10),u=n(98),c=n(45),s=n(27),f=n(1),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete m[t]},"process"==n(13)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(44),o=n(2)("iterator"),i=n(14);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){},function(t,e,n){n(114);for(var r=n(1),o=n(8),i=n(14),a=n(2)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],f=r[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},function(t,e,n){n(126);var r=n(129)(n(69),n(130),null,null);t.exports=r.exports},function(t,e,n){"use strict";function r(t){t.component("qrcode-reader",i.a)}Object.defineProperty(e,"__esModule",{value:!0}),e.install=r;var o=n(64),i=n.n(o);n.d(e,"QrcodeReader",function(){return i.a});var a={install:r};e.default=a;var u=null;"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(a)},function(t,e,n){"use strict";var r=n(25),o=n.n(r),i=n(24),a=n.n(i),u=n(42),c=n.n(u),s=n(78),f=n.n(s),l=n(40),p=n(23),h=function(){function t(e,n){c()(this,t),this.videoEl=e,this.stream=n}return f()(t,[{key:"stop",value:function(){this.stream.getTracks().forEach(function(t){return t.stop()})}},{key:"captureFrame",value:function(){return n.i(l.c)(this.videoEl)}},{key:"resolutionWidth",get:function(){return this.videoEl.videoWidth}},{key:"resolutionHeight",get:function(){return this.videoEl.videoHeight}},{key:"displayWidth",get:function(){return this.videoEl.offsetWidth}},{key:"displayHeight",get:function(){return this.videoEl.offsetHeight}}]),t}();e.a=function(){var t=a()(o.a.mark(function t(e,r){var i,a;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){t.next=2;break}throw new Error("WebRTC API not supported in this browser");case 2:return t.next=4,navigator.mediaDevices.getUserMedia(e);case 4:return i=t.sent,a=n.i(p.a)(r,"loadeddata","error"),void 0!==r.srcObject?r.srcObject=i:void 0!==r.mozSrcObject?r.mozSrcObject=i:window.URL.createObjectURL?r.src=window.URL.createObjectURL(i):window.webkitURL?r.src=window.webkitURL.createObjectURL(i):r.src=i,r.playsInline=!0,r.play(),t.next=11,a;case 11:return t.abrupt("return",new h(r,i));case 12:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return p});var r=n(74),o=n.n(r),i=n(42),a=n.n(i),u=n(81),c=n.n(u),s=n(80),f=n.n(s),l=function(t){function e(){a()(this,e);var t=c()(this,(e.__proto__||o()(e)).call(this,"can't process cross-origin image"));return t.name="DropImageFetchError",t}return f()(e,t),e}(Error),p=function(t){function e(){a()(this,e);var t=c()(this,(e.__proto__||o()(e)).call(this,"drag-and-dropped file is not of type image and can't be decoded"));return t.name="DropImageDecodeError",t}return f()(e,t),e}(Error)},function(t,e,n){"use strict";function r(t){var e=t.data,n=t.width,r=t.height,o=u()(e,n,r),i=void 0,a=void 0;return null===o?(i=null,a=null):(i=o.data,a=o.location),{content:i,location:a,imageData:t}}function o(t,e){var n=e.locateHandler,o=e.detectHandler,i=e.shouldContinue,a=e.minDelay,u=null,c=null,s=performance.now();!function e(f){if(i()&&(window.requestAnimationFrame(e),f-s>=a)){s=f;var l=t.captureFrame(),p=r(l),h=p.content,d=p.location;h!==u&&null!==h&&o({content:h,location:d,imageData:l}),d!==c&&n(d),u=h||u,c=d}}()}e.b=r,e.a=o;var i=n(133),a=(n.n(i),n(131)),u=n.n(a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(82),o=n.n(r),i=n(25),a=n.n(i),u=n(24),c=n.n(u),s=n(79),f=n.n(s),l=n(68),p=n(66),h=n(40),d=n(23),v=n(132),y=n.n(v);e.default={props:{paused:{type:Boolean,default:!1},videoConstraints:{type:[Object,Boolean],default:void 0},camera:{type:[Object,Boolean],default:void 0},track:{type:[Function,Boolean],default:!0}},data:function(){return{cameraInstance:null,destroyed:!1,readyAfterPause:!0}},computed:{shouldScan:function(){return!1===this.paused&&null!==this.cameraInstance&&!1===this.destroyed&&this.readyAfterPause},scanInterval:function(){return!1===this.track?500:40},constraints:function(){var t={};return void 0!==this.camera?t=this.camera:void 0!==this.videoConstraints&&(console.warn("The `video-constraints` prop is deprecated. Use `camera` instead."),t=this.videoConstraints),y()(t)?{audio:!1,video:t}:{audio:!1,video:f()({facingMode:{ideal:"environment"},width:{min:360,ideal:640,max:1920},height:{min:240,ideal:480,max:1080}},t)}},trackRepaintFunction:function(){return!0===this.track?function(t,e){var n=t.topLeftCorner,r=t.topRightCorner,o=t.bottomLeftCorner,i=t.bottomRightCorner;e.strokeStyle="red",e.beginPath(),e.moveTo(n.x,n.y),e.lineTo(o.x,o.y),e.lineTo(i.x,i.y),e.lineTo(r.x,r.y),e.lineTo(n.x,n.y),e.closePath(),e.stroke()}:!1===this.track?null:this.track}},watch:{shouldScan:function(t){t&&this.startScanning()},paused:function(t){var e=this;return c()(a.a.mark(function r(){var o;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.$refs.video,!t){r.next=6;break}o.pause(),e.readyAfterPause=!1,r.next=11;break;case 6:return e.repaintTrack(null),o.play(),r.next=10,n.i(d.a)(o,"timeupdate");case 10:e.readyAfterPause=!0;case 11:case"end":return r.stop()}},r,e)}))()},constraints:{deep:!0,handler:function(){this.$emit("init",this.init())}}},mounted:function(){this.$emit("init",this.init())},beforeDestroy:function(){null!==this.cameraInstance&&this.cameraInstance.stop(),this.destroyed=!0},methods:{init:function(){var t=this;return c()(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t.cameraInstance&&t.cameraInstance.stop(),!1!==t.videoConstraints){e.next=5;break}t.cameraInstance=null,e.next=8;break;case 5:return e.next=7,n.i(p.a)(t.constraints,t.$refs.video);case 7:t.cameraInstance=e.sent;case 8:case"end":return e.stop()}},e,t)}))()},startScanning:function(){var t=this;l.a(this.cameraInstance,{locateHandler:this.onLocate,detectHandler:function(e){return t.onDetect("stream",e)},shouldContinue:function(){return t.shouldScan},minDelay:this.scanInterval})},onLocate:function(t){null!==this.trackRepaintFunction&&this.repaintTrack(t)},onDetect:function(t,e){var n=this;return c()(a.a.mark(function r(){var o,i;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n.$emit("detect",c()(a.a.mark(function r(){var o;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e;case 2:return o=n.sent,n.abrupt("return",f()({source:t},o));case 4:case"end":return n.stop()}},r,n)}))()),r.prev=1,r.next=4,e;case 4:o=r.sent,i=o.content,null!==i&&n.$emit("decode",i),r.next=11;break;case 9:r.prev=9,r.t0=r.catch(1);case 11:case"end":return r.stop()}},r,n,[[1,9]])}))()},onDrop:function(t){var e=t.dataTransfer;[].concat(o()(e.files)).forEach(this.onDropFile);var n=e.getData("text");""!==n&&this.onDropUrl(n)},onDropFile:function(t){var e=this;return c()(a.a.mark(function r(){return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e.onDetect("file",c()(a.a.mark(function r(){var o,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.i(h.a)(t);case 2:return o=e.sent,i=l.b(o),e.abrupt("return",i);case 5:case"end":return e.stop()}},r,e)}))());case 1:case"end":return r.stop()}},r,e)}))()},onDropUrl:function(t){var e=this;return c()(a.a.mark(function r(){return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e.onDetect("url",c()(a.a.mark(function r(){var o,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.i(h.b)(t);case 2:return o=e.sent,i=l.b(o),e.abrupt("return",i);case 5:case"end":return e.stop()}},r,e)}))());case 1:case"end":return r.stop()}},r,e)}))()},normalizeLocation:function(t,e,n){var r={};for(var o in n)r[o]={x:Math.floor(n[o].x*t),y:Math.floor(n[o].y*e)};return r},repaintTrack:function(t){var e=this,n=this.$refs.trackingLayer,r=n.getContext("2d"),o=this.cameraInstance;window.requestAnimationFrame(function(){if(null===t)r.clearRect(0,0,n.width,n.height);else{var i=o.displayWidth,a=o.displayHeight;n.width=i,n.height=a;var u=i/o.resolutionWidth,c=a/o.resolutionHeight;t=e.normalizeLocation(u,c,t),e.trackRepaintFunction(t,r)}})}}}},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){t.exports={default:n(84),__esModule:!0}},function(t,e,n){t.exports={default:n(85),__esModule:!0}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){t.exports={default:n(90),__esModule:!0}},function(t,e,n){t.exports={default:n(91),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(73),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(71),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(75),i=r(o),a=n(72),u=r(a),c=n(43),s=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(43),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(70),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){n(39),n(113),t.exports=n(0).Array.from},function(t,e,n){n(115),t.exports=n(0).Object.assign},function(t,e,n){n(116);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(117);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(118),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){n(119),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){n(62),n(39),n(63),n(120),n(122),n(123),t.exports=n(0).Promise},function(t,e,n){n(121),n(62),n(124),n(125),t.exports=n(0).Symbol},function(t,e,n){n(39),n(63),t.exports=n(38).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(12),o=n(35),i=n(112);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(5),o=n(15);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(18),o=n(31),i=n(19);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(10),o=n(49),i=n(48),a=n(4),u=n(35),c=n(61),s={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,y,m=p?function(){return t}:c(t),g=r(n,l,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=u(t.length);h>x;x++)if((y=e?g(a(d=t[x])[0],d[1]):g(t[x]))===s||y===f)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=o(v,g,d.value,e))===s||y===f)return y};e.BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(13);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(30),o=n(15),i=n(20),a={};n(8)(a,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(22)("meta"),o=n(9),i=n(7),a=n(5).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(1),o=n(60).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(13)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(i){var f=!0,l=document.createTextNode("");new i(s).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(s)}}else n=function(){o.call(r,s)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(18),o=n(31),i=n(19),a=n(21),u=n(47),c=Object.assign;t.exports=!c||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,h=u(arguments[s++]),d=f?r(h).concat(f(h)):r(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(n[p]=h[p]);return n}:c},function(t,e,n){var r=n(5),o=n(4),i=n(18);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(12),o=n(53).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(0),i=n(11);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){var r=n(9),o=n(4),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(10)(Function.call,n(52).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(5),a=n(6),u=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(34),o=n(26);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";var r=n(10),o=n(3),i=n(21),a=n(49),u=n(48),c=n(35),s=n(95),f=n(61);o(o.S+o.F*!n(51)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,m=0,g=f(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||h==Array&&u(g))for(e=c(p.length),n=new h(e);e>m;m++)s(n,m,y?v(p[m],m):p[m]);else for(l=g.call(p),n=new h;!(o=l.next()).done;m++)s(n,m,y?a(l,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(92),o=n(101),i=n(14),a=n(12);t.exports=n(50)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(3);r(r.S+r.F,"Object",{assign:n(104)})},function(t,e,n){var r=n(3);r(r.S,"Object",{create:n(30)})},function(t,e,n){var r=n(3);r(r.S+r.F*!n(6),"Object",{defineProperty:n(5).f})},function(t,e,n){var r=n(21),o=n(54);n(107)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(3);r(r.S,"Object",{setPrototypeOf:n(109).set})},function(t,e,n){"use strict";var r,o,i,a,u=n(17),c=n(1),s=n(10),f=n(44),l=n(3),p=n(9),h=n(16),d=n(93),v=n(97),y=n(59),m=n(60).set,g=n(103)(),x=n(29),w=n(56),_=n(57),b=c.TypeError,O=c.process,j=c.Promise,S="process"==f(O),P=function(){},E=o=x.f,k=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(P,P)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e}catch(t){}}(),L=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a=o?e.ok:e.fail,u=e.resolve,c=e.reject,s=e.domain;try{a?(o||(2==t._h&&R(t),t._h=1),!0===a?n=r:(s&&s.enter(),n=a(r),s&&s.exit()),n===e.promise?c(b("Promise-chain cycle")):(i=L(n))?i.call(n,u,c):u(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){m.call(c,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=w(function(){S?O.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=S||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!F(e.promise))return!1;return!0},R=function(t){m.call(c,function(){var e;S?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=L(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(D,r,1),s(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};k||(j=function(t){d(this,j,"Promise","_h"),h(t),r.call(this);try{t(s(D,this,1),s(A,this,1))}catch(t){A.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(108)(j.prototype,{then:function(t,e){var n=E(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(D,t,1),this.reject=s(A,t,1)},x.f=E=function(t){return t===j||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!k,{Promise:j}),n(20)(j,"Promise"),n(110)("Promise"),a=n(0).Promise,l(l.S+l.F*!k,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!k),"Promise",{resolve:function(t){return _(u&&this===a?j:this,t)}}),l(l.S+l.F*!(k&&n(51)(function(t){j.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=w(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(6),a=n(3),u=n(58),c=n(102).KEY,s=n(11),f=n(33),l=n(20),p=n(22),h=n(2),d=n(38),v=n(37),y=n(96),m=n(99),g=n(4),x=n(12),w=n(36),_=n(15),b=n(30),O=n(106),j=n(52),S=n(5),P=n(18),E=j.f,k=S.f,L=O.f,M=r.Symbol,T=r.JSON,F=T&&T.stringify,R=h("_hidden"),A=h("toPrimitive"),D={}.propertyIsEnumerable,I=f("symbol-registry"),C=f("symbols"),N=f("op-symbols"),G=Object.prototype,W="function"==typeof M,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,q=i&&s(function(){return 7!=b(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(G,e);r&&delete G[e],k(t,e,n),r&&t!==G&&k(G,e,r)}:k,B=function(t){var e=C[t]=b(M.prototype);return e._k=t,e},V=W&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},$=function(t,e,n){return t===G&&$(N,e,n),g(t),e=w(e,!0),g(n),o(C,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=b(n,{enumerable:_(0,!1)})):(o(t,R)||k(t,R,_(1,{})),t[R][e]=!0),q(t,e,n)):k(t,e,n)},z=function(t,e){g(t);for(var n,r=y(e=x(e)),o=0,i=r.length;i>o;)$(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?b(t):z(b(t),e)},J=function(t){var e=D.call(this,t=w(t,!0));return!(this===G&&o(C,t)&&!o(N,t))&&(!(e||!o(this,t)||!o(C,t)||o(this,R)&&this[R][t])||e)},Y=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!o(C,e)||o(N,e)){var n=E(t,e);return!n||!o(C,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=L(x(t)),r=[],i=0;n.length>i;)o(C,e=n[i++])||e==R||e==c||r.push(e);return r},X=function(t){for(var e,n=t===G,r=L(n?N:x(t)),i=[],a=0;r.length>a;)!o(C,e=r[a++])||n&&!o(G,e)||i.push(C[e]);return i};W||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(N,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),q(this,t,_(1,n))};return i&&U&&q(G,t,{configurable:!0,set:e}),B(t)},u(M.prototype,"toString",function(){return this._k}),j.f=Y,S.f=$,n(53).f=O.f=Q,n(19).f=J,n(31).f=X,i&&!n(17)&&u(G,"propertyIsEnumerable",J,!0),d.f=function(t){return B(h(t))}),a(a.G+a.W+a.F*!W,{Symbol:M});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=P(h.store),nt=0;et.length>nt;)v(et[nt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!W,"Object",{create:K,defineProperty:$,defineProperties:z,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),T&&a(a.S+a.F*(!W||s(function(){var t=M();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,F.apply(T,r)}}}),M.prototype[A]||n(8)(M.prototype,A,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(3),o=n(0),i=n(1),a=n(59),u=n(57);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(3),o=n(29),i=n(56);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(37)("asyncIterator")},function(t,e,n){n(37)("observable")},function(t,e){},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(128),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new h(r||[]);return a._invoke=s(t,n,u),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(n,o,i,a){var u=r(t[n],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}function n(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(t,e,n){var o=S;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===k){if("throw"===i)throw a;return v()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=f(u,n);if(c){if(c===L)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===S)throw o=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var s=r(t,e,n);if("normal"===s.type){if(o=n.done?k:P,s.arg===L)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=k,n.method="throw",n.arg=s.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return L;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return L}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,L;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,L):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,L)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:y,done:!0}}var y,m=Object.prototype,g=m.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},w=x.iterator||"@@iterator",_=x.asyncIterator||"@@asyncIterator",b=x.toStringTag||"@@toStringTag",O="object"==typeof t,j=e.regeneratorRuntime;if(j)return void(O&&(t.exports=j));j=e.regeneratorRuntime=O?t.exports:{},j.wrap=n;var S="suspendedStart",P="suspendedYield",E="executing",k="completed",L={},M={};M[w]=function(){return this};var T=Object.getPrototypeOf,F=T&&T(T(d([])));F&&F!==m&&g.call(F,w)&&(M=F);var R=a.prototype=o.prototype=Object.create(M);i.prototype=R.constructor=a,a.constructor=i,a[b]=i.displayName="GeneratorFunction",j.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},j.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(R),t},j.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[_]=function(){return this},j.AsyncIterator=c,j.async=function(t,e,r,o){var i=new c(n(t,e,r,o));return j.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(R),R[b]="Generator",R[w]=function(){return this},R.toString=function(){return"[object Generator]"},j.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},j.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,L):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),L},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),L}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),L}}}(function(){return this}()||Function("return this")())},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var c=u.computed||(u.computed={});Object.keys(r).forEach(function(t){var e=r[t];c[t]=function(){return e}})}return{esModule:o,exports:i,options:u}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qrcode-reader"},[n("div",{staticClass:"qrcode-reader__inner-wrapper"},[n("div",{staticClass:"qrcode-reader__overlay",on:{drop:function(e){e.preventDefault(),e.stopPropagation(),t.onDrop(e)},dragover:function(t){t.preventDefault(),t.stopPropagation()},dragenter:function(t){t.preventDefault(),t.stopPropagation()},dragleave:function(t){t.preventDefault(),t.stopPropagation()}}},[t._t("default")],2),t._v(" "),n("canvas",{ref:"trackingLayer",staticClass:"qrcode-reader__tracking-layer"}),t._v(" "),n("video",{ref:"video",staticClass:"qrcode-reader__camera-layer"})])])},staticRenderFns:[]}},function(t,e){t.exports=require("jsqr")},function(t,e){t.exports=require("lodash/isBoolean")},function(t,e){t.exports=require("webrtc-adapter")}]); |
{ | ||
"name": "vue-qrcode-reader", | ||
"description": "A Vue.js component, accessing the device camera and allowing users to read QR-Codes, within the browser", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niklas Gruhn", |
@@ -253,38 +253,14 @@ # vue-qrcode-reader | ||
## Distribution import | ||
## Browser | ||
Register component globally: | ||
You need to include a script and CSS file. You can pull both from [unpkg.com](https://unpkg.com). Make sure to replace `[VERSION]` with the version you need (for example `1.0.1`): | ||
```javascript | ||
import 'vue-qrcode-reader/dist/vue-qrcode-reader.css' | ||
import VueQrcodeReader from 'vue-qrcode-reader/dist/vue-qrcode-reader.common' | ||
Vue.use(VueQrcodeReader) | ||
``` | ||
Register locally in other components scope: | ||
```javascript | ||
import 'vue-qrcode-reader/dist/vue-qrcode-reader.css' | ||
import { QrcodeReader } from 'vue-qrcode-reader/dist/vue-qrcode-reader.common' | ||
Vue.component('my-component', { | ||
components: { QrcodeReader }, | ||
// ... | ||
) | ||
``` | ||
**⚠️ You may have to setup your bundler to embed the css file in your page.** | ||
## Browser | ||
```html | ||
<link rel="stylesheet" href="vue-qrcode-reader/dist/vue-qrcode-reader.css"/> | ||
<link rel="stylesheet" href="https://unpkg.com/vue-qrcode-reader@[VERSION]/dist/vue-qrcode-reader.css"/> | ||
<script src="vue.js"></script> | ||
<script src="vue-qrcode-reader/dist/vue-qrcode-reader.browser.js"></script> | ||
<script src="https://unpkg.com/vue-qrcode-reader@[VERSION]/dist/vue-qrcode-reader.browser.js"></script> | ||
``` | ||
The plugin should be auto-installed. If not, you can install it manually with the instructions below. | ||
The plugin should be auto-installed. If not, you can install it manually. | ||
@@ -309,28 +285,2 @@ Register component globally: | ||
## Source import | ||
Register component globally: | ||
```javascript | ||
import Vue from 'vue' | ||
import VueQrcodeReader from 'vue-qrcode-reader/src' | ||
Vue.use(VueQrcodeReader) | ||
``` | ||
Register locally in other components scope: | ||
```javascript | ||
import Vue from 'vue' | ||
import { QrcodeReader } from 'vue-qrcode-reader/src' | ||
Vue.component('my-component', { | ||
components: { QrcodeReader }, | ||
// ... | ||
) | ||
``` | ||
**⚠️ You need to configure your bundler to compile `.vue` files.** More info [in the official documentation](https://vuejs.org/v2/guide/single-file-components.html). | ||
--- | ||
@@ -337,0 +287,0 @@ |
import { imageDataFromVideo } from './image-data.js' | ||
import { hasFired } from './promisify.js' | ||
@@ -44,8 +45,4 @@ class Camera { | ||
const stream = await navigator.mediaDevices.getUserMedia(constraints) | ||
const streamLoaded = hasFired(videoEl, 'loadeddata', 'error') | ||
const streamLoadedPromise = new Promise((resolve, reject) => { | ||
videoEl.addEventListener('loadeddata', resolve, { once: true }) | ||
videoEl.addEventListener('error', reject, { once: true }) | ||
}) | ||
if (videoEl.srcObject !== undefined) { | ||
@@ -66,5 +63,5 @@ videoEl.srcObject = stream | ||
await streamLoadedPromise | ||
await streamLoaded | ||
return new Camera(videoEl, stream) | ||
} |
import { DropImageFetchError, DropImageDecodeError } from './errors.js' | ||
import { hasFired } from './promisify.js' | ||
@@ -34,10 +35,7 @@ const canvas = document.createElement('canvas') | ||
const image = document.createElement('img') | ||
const imageLoaded = hasFired(image, 'load') | ||
const imageLoadedPromise = new Promise((resolve, reject) => { | ||
image.onload = resolve | ||
}) | ||
image.src = url | ||
await imageLoadedPromise | ||
await imageLoaded | ||
@@ -50,10 +48,7 @@ return imageDataFromImage(image) | ||
const reader = new FileReader() | ||
const readerLoaded = hasFired(reader, 'load') | ||
const readerLoadedPromise = new Promise((resolve, reject) => { | ||
reader.onload = event => resolve(event.target.result) | ||
}) | ||
reader.readAsDataURL(file) | ||
const dataURL = await readerLoadedPromise | ||
const dataURL = (await readerLoaded).target.result | ||
@@ -60,0 +55,0 @@ return imageDataFromUrl(dataURL) |
@@ -37,8 +37,6 @@ import 'webrtc-adapter' | ||
const processFrame = () => { | ||
const processFrame = timeNow => { | ||
if (shouldContinue()) { | ||
window.requestAnimationFrame(processFrame) | ||
const timeNow = performance.now() | ||
if (timeNow - lastScanned >= minDelay) { | ||
@@ -45,0 +43,0 @@ lastScanned = timeNow |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41
934
4
683671
289