, use
.', list[i]);\n }\n }\n\n addAttr(el, name, JSON.stringify(value), list[i]); // #6887 firefox doesn't update muted state if set via attribute\n // even immediately after element creation\n\n if (!el.component && name === 'muted' && platformMustUseProp(el.tag, el.attrsMap.type, name)) {\n addProp(el, name, 'true', list[i]);\n }\n }\n }\n}\n\nfunction checkInFor(el) {\n var parent = el;\n\n while (parent) {\n if (parent.for !== undefined) {\n return true;\n }\n\n parent = parent.parent;\n }\n\n return false;\n}\n\nfunction parseModifiers(name) {\n var match = name.match(modifierRE);\n\n if (match) {\n var ret = {};\n match.forEach(function (m) {\n ret[m.slice(1)] = true;\n });\n return ret;\n }\n}\n\nfunction makeAttrsMap(attrs) {\n var map = {};\n\n for (var i = 0, l = attrs.length; i < l; i++) {\n if (process.env.NODE_ENV !== 'production' && map[attrs[i].name] && !isIE && !isEdge) {\n warn$2('duplicate attribute: ' + attrs[i].name, attrs[i]);\n }\n\n map[attrs[i].name] = attrs[i].value;\n }\n\n return map;\n} // for script (e.g. type=\"x/template\") or style, do not decode content\n\n\nfunction isTextTag(el) {\n return el.tag === 'script' || el.tag === 'style';\n}\n\nfunction isForbiddenTag(el) {\n return el.tag === 'style' || el.tag === 'script' && (!el.attrsMap.type || el.attrsMap.type === 'text/javascript');\n}\n\nvar ieNSBug = /^xmlns:NS\\d+/;\nvar ieNSPrefix = /^NS\\d+:/;\n/* istanbul ignore next */\n\nfunction guardIESVGBug(attrs) {\n var res = [];\n\n for (var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n if (!ieNSBug.test(attr.name)) {\n attr.name = attr.name.replace(ieNSPrefix, '');\n res.push(attr);\n }\n }\n\n return res;\n}\n\nfunction checkForAliasModel(el, value) {\n var _el = el;\n\n while (_el) {\n if (_el.for && _el.alias === value) {\n warn$2(\"<\" + el.tag + \" v-model=\\\"\" + value + \"\\\">: \" + \"You are binding v-model directly to a v-for iteration alias. \" + \"This will not be able to modify the v-for source array because \" + \"writing to the alias is like modifying a function local variable. \" + \"Consider using an array of objects and use v-model on an object property instead.\", el.rawAttrsMap['v-model']);\n }\n\n _el = _el.parent;\n }\n}\n/* */\n\n\nfunction preTransformNode(el, options) {\n if (el.tag === 'input') {\n var map = el.attrsMap;\n\n if (!map['v-model']) {\n return;\n }\n\n var typeBinding;\n\n if (map[':type'] || map['v-bind:type']) {\n typeBinding = getBindingAttr(el, 'type');\n }\n\n if (!map.type && !typeBinding && map['v-bind']) {\n typeBinding = \"(\" + map['v-bind'] + \").type\";\n }\n\n if (typeBinding) {\n var ifCondition = getAndRemoveAttr(el, 'v-if', true);\n var ifConditionExtra = ifCondition ? \"&&(\" + ifCondition + \")\" : \"\";\n var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;\n var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true); // 1. checkbox\n\n var branch0 = cloneASTElement(el); // process for on the main node\n\n processFor(branch0);\n addRawAttr(branch0, 'type', 'checkbox');\n processElement(branch0, options);\n branch0.processed = true; // prevent it from double-processed\n\n branch0.if = \"(\" + typeBinding + \")==='checkbox'\" + ifConditionExtra;\n addIfCondition(branch0, {\n exp: branch0.if,\n block: branch0\n }); // 2. add radio else-if condition\n\n var branch1 = cloneASTElement(el);\n getAndRemoveAttr(branch1, 'v-for', true);\n addRawAttr(branch1, 'type', 'radio');\n processElement(branch1, options);\n addIfCondition(branch0, {\n exp: \"(\" + typeBinding + \")==='radio'\" + ifConditionExtra,\n block: branch1\n }); // 3. other\n\n var branch2 = cloneASTElement(el);\n getAndRemoveAttr(branch2, 'v-for', true);\n addRawAttr(branch2, ':type', typeBinding);\n processElement(branch2, options);\n addIfCondition(branch0, {\n exp: ifCondition,\n block: branch2\n });\n\n if (hasElse) {\n branch0.else = true;\n } else if (elseIfCondition) {\n branch0.elseif = elseIfCondition;\n }\n\n return branch0;\n }\n }\n}\n\nfunction cloneASTElement(el) {\n return createASTElement(el.tag, el.attrsList.slice(), el.parent);\n}\n\nvar model$1 = {\n preTransformNode: preTransformNode\n};\nvar modules$1 = [klass$1, style$1, model$1];\n/* */\n\nfunction text(el, dir) {\n if (dir.value) {\n addProp(el, 'textContent', \"_s(\" + dir.value + \")\", dir);\n }\n}\n/* */\n\n\nfunction html(el, dir) {\n if (dir.value) {\n addProp(el, 'innerHTML', \"_s(\" + dir.value + \")\", dir);\n }\n}\n\nvar directives$1 = {\n model: model,\n text: text,\n html: html\n};\n/* */\n\nvar baseOptions = {\n expectHTML: true,\n modules: modules$1,\n directives: directives$1,\n isPreTag: isPreTag,\n isUnaryTag: isUnaryTag,\n mustUseProp: mustUseProp,\n canBeLeftOpenTag: canBeLeftOpenTag,\n isReservedTag: isReservedTag,\n getTagNamespace: getTagNamespace,\n staticKeys: genStaticKeys(modules$1)\n};\n/* */\n\nvar isStaticKey;\nvar isPlatformReservedTag;\nvar genStaticKeysCached = cached(genStaticKeys$1);\n/**\n * Goal of the optimizer: walk the generated template AST tree\n * and detect sub-trees that are purely static, i.e. parts of\n * the DOM that never needs to change.\n *\n * Once we detect these sub-trees, we can:\n *\n * 1. Hoist them into constants, so that we no longer need to\n * create fresh nodes for them on each re-render;\n * 2. Completely skip them in the patching process.\n */\n\nfunction optimize(root, options) {\n if (!root) {\n return;\n }\n\n isStaticKey = genStaticKeysCached(options.staticKeys || '');\n isPlatformReservedTag = options.isReservedTag || no; // first pass: mark all non-static nodes.\n\n markStatic$1(root); // second pass: mark static roots.\n\n markStaticRoots(root, false);\n}\n\nfunction genStaticKeys$1(keys) {\n return makeMap('type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' + (keys ? ',' + keys : ''));\n}\n\nfunction markStatic$1(node) {\n node.static = isStatic(node);\n\n if (node.type === 1) {\n // do not make component slot content static. this avoids\n // 1. components not able to mutate slot nodes\n // 2. static slot content fails for hot-reloading\n if (!isPlatformReservedTag(node.tag) && node.tag !== 'slot' && node.attrsMap['inline-template'] == null) {\n return;\n }\n\n for (var i = 0, l = node.children.length; i < l; i++) {\n var child = node.children[i];\n markStatic$1(child);\n\n if (!child.static) {\n node.static = false;\n }\n }\n\n if (node.ifConditions) {\n for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {\n var block = node.ifConditions[i$1].block;\n markStatic$1(block);\n\n if (!block.static) {\n node.static = false;\n }\n }\n }\n }\n}\n\nfunction markStaticRoots(node, isInFor) {\n if (node.type === 1) {\n if (node.static || node.once) {\n node.staticInFor = isInFor;\n } // For a node to qualify as a static root, it should have children that\n // are not just static text. Otherwise the cost of hoisting out will\n // outweigh the benefits and it's better off to just always render it fresh.\n\n\n if (node.static && node.children.length && !(node.children.length === 1 && node.children[0].type === 3)) {\n node.staticRoot = true;\n return;\n } else {\n node.staticRoot = false;\n }\n\n if (node.children) {\n for (var i = 0, l = node.children.length; i < l; i++) {\n markStaticRoots(node.children[i], isInFor || !!node.for);\n }\n }\n\n if (node.ifConditions) {\n for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {\n markStaticRoots(node.ifConditions[i$1].block, isInFor);\n }\n }\n }\n}\n\nfunction isStatic(node) {\n if (node.type === 2) {\n // expression\n return false;\n }\n\n if (node.type === 3) {\n // text\n return true;\n }\n\n return !!(node.pre || !node.hasBindings && // no dynamic bindings\n !node.if && !node.for && // not v-if or v-for or v-else\n !isBuiltInTag(node.tag) && // not a built-in\n isPlatformReservedTag(node.tag) && // not a component\n !isDirectChildOfTemplateFor(node) && Object.keys(node).every(isStaticKey));\n}\n\nfunction isDirectChildOfTemplateFor(node) {\n while (node.parent) {\n node = node.parent;\n\n if (node.tag !== 'template') {\n return false;\n }\n\n if (node.for) {\n return true;\n }\n }\n\n return false;\n}\n/* */\n\n\nvar fnExpRE = /^([\\w$_]+|\\([^)]*?\\))\\s*=>|^function(?:\\s+[\\w$]+)?\\s*\\(/;\nvar fnInvokeRE = /\\([^)]*?\\);*$/;\nvar simplePathRE = /^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*|\\['[^']*?']|\\[\"[^\"]*?\"]|\\[\\d+]|\\[[A-Za-z_$][\\w$]*])*$/; // KeyboardEvent.keyCode aliases\n\nvar keyCodes = {\n esc: 27,\n tab: 9,\n enter: 13,\n space: 32,\n up: 38,\n left: 37,\n right: 39,\n down: 40,\n 'delete': [8, 46]\n}; // KeyboardEvent.key aliases\n\nvar keyNames = {\n // #7880: IE11 and Edge use `Esc` for Escape key name.\n esc: ['Esc', 'Escape'],\n tab: 'Tab',\n enter: 'Enter',\n // #9112: IE11 uses `Spacebar` for Space key name.\n space: [' ', 'Spacebar'],\n // #7806: IE11 uses key names without `Arrow` prefix for arrow keys.\n up: ['Up', 'ArrowUp'],\n left: ['Left', 'ArrowLeft'],\n right: ['Right', 'ArrowRight'],\n down: ['Down', 'ArrowDown'],\n // #9112: IE11 uses `Del` for Delete key name.\n 'delete': ['Backspace', 'Delete', 'Del']\n}; // #4868: modifiers that prevent the execution of the listener\n// need to explicitly return null so that we can determine whether to remove\n// the listener for .once\n\nvar genGuard = function genGuard(condition) {\n return \"if(\" + condition + \")return null;\";\n};\n\nvar modifierCode = {\n stop: '$event.stopPropagation();',\n prevent: '$event.preventDefault();',\n self: genGuard(\"$event.target !== $event.currentTarget\"),\n ctrl: genGuard(\"!$event.ctrlKey\"),\n shift: genGuard(\"!$event.shiftKey\"),\n alt: genGuard(\"!$event.altKey\"),\n meta: genGuard(\"!$event.metaKey\"),\n left: genGuard(\"'button' in $event && $event.button !== 0\"),\n middle: genGuard(\"'button' in $event && $event.button !== 1\"),\n right: genGuard(\"'button' in $event && $event.button !== 2\")\n};\n\nfunction genHandlers(events, isNative) {\n var prefix = isNative ? 'nativeOn:' : 'on:';\n var staticHandlers = \"\";\n var dynamicHandlers = \"\";\n\n for (var name in events) {\n var handlerCode = genHandler(events[name]);\n\n if (events[name] && events[name].dynamic) {\n dynamicHandlers += name + \",\" + handlerCode + \",\";\n } else {\n staticHandlers += \"\\\"\" + name + \"\\\":\" + handlerCode + \",\";\n }\n }\n\n staticHandlers = \"{\" + staticHandlers.slice(0, -1) + \"}\";\n\n if (dynamicHandlers) {\n return prefix + \"_d(\" + staticHandlers + \",[\" + dynamicHandlers.slice(0, -1) + \"])\";\n } else {\n return prefix + staticHandlers;\n }\n}\n\nfunction genHandler(handler) {\n if (!handler) {\n return 'function(){}';\n }\n\n if (Array.isArray(handler)) {\n return \"[\" + handler.map(function (handler) {\n return genHandler(handler);\n }).join(',') + \"]\";\n }\n\n var isMethodPath = simplePathRE.test(handler.value);\n var isFunctionExpression = fnExpRE.test(handler.value);\n var isFunctionInvocation = simplePathRE.test(handler.value.replace(fnInvokeRE, ''));\n\n if (!handler.modifiers) {\n if (isMethodPath || isFunctionExpression) {\n return handler.value;\n }\n\n return \"function($event){\" + (isFunctionInvocation ? \"return \" + handler.value : handler.value) + \"}\"; // inline statement\n } else {\n var code = '';\n var genModifierCode = '';\n var keys = [];\n\n for (var key in handler.modifiers) {\n if (modifierCode[key]) {\n genModifierCode += modifierCode[key]; // left/right\n\n if (keyCodes[key]) {\n keys.push(key);\n }\n } else if (key === 'exact') {\n var modifiers = handler.modifiers;\n genModifierCode += genGuard(['ctrl', 'shift', 'alt', 'meta'].filter(function (keyModifier) {\n return !modifiers[keyModifier];\n }).map(function (keyModifier) {\n return \"$event.\" + keyModifier + \"Key\";\n }).join('||'));\n } else {\n keys.push(key);\n }\n }\n\n if (keys.length) {\n code += genKeyFilter(keys);\n } // Make sure modifiers like prevent and stop get executed after key filtering\n\n\n if (genModifierCode) {\n code += genModifierCode;\n }\n\n var handlerCode = isMethodPath ? \"return \" + handler.value + \".apply(null, arguments)\" : isFunctionExpression ? \"return (\" + handler.value + \").apply(null, arguments)\" : isFunctionInvocation ? \"return \" + handler.value : handler.value;\n return \"function($event){\" + code + handlerCode + \"}\";\n }\n}\n\nfunction genKeyFilter(keys) {\n return (// make sure the key filters only apply to KeyboardEvents\n // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake\n // key events that do not have keyCode property...\n \"if(!$event.type.indexOf('key')&&\" + keys.map(genFilterCode).join('&&') + \")return null;\"\n );\n}\n\nfunction genFilterCode(key) {\n var keyVal = parseInt(key, 10);\n\n if (keyVal) {\n return \"$event.keyCode!==\" + keyVal;\n }\n\n var keyCode = keyCodes[key];\n var keyName = keyNames[key];\n return \"_k($event.keyCode,\" + JSON.stringify(key) + \",\" + JSON.stringify(keyCode) + \",\" + \"$event.key,\" + \"\" + JSON.stringify(keyName) + \")\";\n}\n/* */\n\n\nfunction on(el, dir) {\n if (process.env.NODE_ENV !== 'production' && dir.modifiers) {\n warn(\"v-on without argument does not support modifiers.\");\n }\n\n el.wrapListeners = function (code) {\n return \"_g(\" + code + \",\" + dir.value + \")\";\n };\n}\n/* */\n\n\nfunction bind$1(el, dir) {\n el.wrapData = function (code) {\n return \"_b(\" + code + \",'\" + el.tag + \"',\" + dir.value + \",\" + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + \")\";\n };\n}\n/* */\n\n\nvar baseDirectives = {\n on: on,\n bind: bind$1,\n cloak: noop\n};\n/* */\n\nvar CodegenState = function CodegenState(options) {\n this.options = options;\n this.warn = options.warn || baseWarn;\n this.transforms = pluckModuleFunction(options.modules, 'transformCode');\n this.dataGenFns = pluckModuleFunction(options.modules, 'genData');\n this.directives = extend(extend({}, baseDirectives), options.directives);\n var isReservedTag = options.isReservedTag || no;\n\n this.maybeComponent = function (el) {\n return !!el.component || !isReservedTag(el.tag);\n };\n\n this.onceId = 0;\n this.staticRenderFns = [];\n this.pre = false;\n};\n\nfunction generate(ast, options) {\n var state = new CodegenState(options); // fix #11483, Root level \n\n","import { render, staticRenderFns } from \"./tips.vue?vue&type=template&id=08d88655&scoped=true&\"\nimport script from \"./tips.vue?vue&type=script&lang=js&\"\nexport * from \"./tips.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tips.vue?vue&type=style&index=0&id=08d88655&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"08d88655\",\n null\n \n)\n\nexport default component.exports","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _slicedToArray = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nexports.default = function (options) {\n var mappedProps = options.mappedProps,\n name = options.name,\n ctr = options.ctr,\n ctrArgs = options.ctrArgs,\n events = options.events,\n beforeCreate = options.beforeCreate,\n afterCreate = options.afterCreate,\n props = options.props,\n rest = _objectWithoutProperties(options, ['mappedProps', 'name', 'ctr', 'ctrArgs', 'events', 'beforeCreate', 'afterCreate', 'props']);\n\n var promiseName = '$' + name + 'Promise';\n var instanceName = '$' + name + 'Object';\n assert(!(rest.props instanceof Array), '`props` should be an object, not Array');\n return _extends({}, typeof GENERATE_DOC !== 'undefined' ? {\n $vgmOptions: options\n } : {}, {\n mixins: [_mapElementMixin2.default],\n props: _extends({}, props, mappedPropsToVueProps(mappedProps)),\n render: function render() {\n return '';\n },\n provide: function provide() {\n var _this = this;\n\n var promise = this.$mapPromise.then(function (map) {\n // Infowindow needs this to be immediately available\n _this.$map = map; // Initialize the maps with the given options\n\n var options = _extends({}, _this.options, {\n map: map\n }, (0, _bindProps.getPropsValues)(_this, mappedProps));\n\n delete options.options; // delete the extra options\n\n if (beforeCreate) {\n var result = beforeCreate.bind(_this)(options);\n\n if (result instanceof Promise) {\n return result.then(function () {\n return {\n options: options\n };\n });\n }\n }\n\n return {\n options: options\n };\n }).then(function (_ref) {\n var _Function$prototype$b;\n\n var options = _ref.options;\n var ConstructorObject = ctr(); // https://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible\n\n _this[instanceName] = ctrArgs ? new ((_Function$prototype$b = Function.prototype.bind).call.apply(_Function$prototype$b, [ConstructorObject, null].concat(_toConsumableArray(ctrArgs(options, (0, _bindProps.getPropsValues)(_this, props || {}))))))() : new ConstructorObject(options);\n (0, _bindProps.bindProps)(_this, _this[instanceName], mappedProps);\n (0, _bindEvents2.default)(_this, _this[instanceName], events);\n\n if (afterCreate) {\n afterCreate.bind(_this)(_this[instanceName]);\n }\n\n return _this[instanceName];\n });\n this[promiseName] = promise;\n return _defineProperty({}, promiseName, promise);\n },\n destroyed: function destroyed() {\n // Note: not all Google Maps components support maps\n if (this[instanceName] && this[instanceName].setMap) {\n this[instanceName].setMap(null);\n }\n }\n }, rest);\n};\n\nexports.mappedPropsToVueProps = mappedPropsToVueProps;\n\nvar _bindEvents = require('../utils/bindEvents.js');\n\nvar _bindEvents2 = _interopRequireDefault(_bindEvents);\n\nvar _bindProps = require('../utils/bindProps.js');\n\nvar _mapElementMixin = require('./mapElementMixin');\n\nvar _mapElementMixin2 = _interopRequireDefault(_mapElementMixin);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n/**\r\n *\r\n * @param {Object} options\r\n * @param {Object} options.mappedProps - Definitions of props\r\n * @param {Object} options.mappedProps.PROP.type - Value type\r\n * @param {Boolean} options.mappedProps.PROP.twoWay\r\n * - Whether the prop has a corresponding PROP_changed\r\n * event\r\n * @param {Boolean} options.mappedProps.PROP.noBind\r\n * - If true, do not apply the default bindProps / bindEvents.\r\n * However it will still be added to the list of component props\r\n * @param {Object} options.props - Regular Vue-style props.\r\n * Note: must be in the Object form because it will be\r\n * merged with the `mappedProps`\r\n *\r\n * @param {Object} options.events - Google Maps API events\r\n * that are not bound to a corresponding prop\r\n * @param {String} options.name - e.g. `polyline`\r\n * @param {=> String} options.ctr - constructor, e.g.\r\n * `google.maps.Polyline`. However, since this is not\r\n * generally available during library load, this becomes\r\n * a function instead, e.g. () => google.maps.Polyline\r\n * which will be called only after the API has been loaded\r\n * @param {(MappedProps, OtherVueProps) => Array} options.ctrArgs -\r\n * If the constructor in `ctr` needs to be called with\r\n * arguments other than a single `options` object, e.g. for\r\n * GroundOverlay, we call `new GroundOverlay(url, bounds, options)`\r\n * then pass in a function that returns the argument list as an array\r\n *\r\n * Otherwise, the constructor will be called with an `options` object,\r\n * with property and values merged from:\r\n *\r\n * 1. the `options` property, if any\r\n * 2. a `map` property with the Google Maps\r\n * 3. all the properties passed to the component in `mappedProps`\r\n * @param {Object => Any} options.beforeCreate -\r\n * Hook to modify the options passed to the initializer\r\n * @param {(options.ctr, Object) => Any} options.afterCreate -\r\n * Hook called when\r\n *\r\n */\n\n\nfunction assert(v, message) {\n if (!v) throw new Error(message);\n}\n/**\r\n * Strips out the extraneous properties we have in our\r\n * props definitions\r\n * @param {Object} props\r\n */\n\n\nfunction mappedPropsToVueProps(mappedProps) {\n return Object.entries(mappedProps).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n key = _ref4[0],\n prop = _ref4[1];\n\n var value = {};\n if ('type' in prop) value.type = prop.type;\n if ('default' in prop) value.default = prop.default;\n if ('required' in prop) value.required = prop.required;\n return [key, value];\n }).reduce(function (acc, _ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n key = _ref6[0],\n val = _ref6[1];\n\n acc[key] = val;\n return acc;\n }, {});\n}","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : isCallable(it);\n};\n","var EventListener =\n/** @class */\nfunction () {\n function EventListener(eventTarget, eventName) {\n this.eventTarget = eventTarget;\n this.eventName = eventName;\n this.unorderedBindings = new Set();\n }\n\n EventListener.prototype.connect = function () {\n this.eventTarget.addEventListener(this.eventName, this, false);\n };\n\n EventListener.prototype.disconnect = function () {\n this.eventTarget.removeEventListener(this.eventName, this, false);\n }; // Binding observer delegate\n\n /** @hidden */\n\n\n EventListener.prototype.bindingConnected = function (binding) {\n this.unorderedBindings.add(binding);\n };\n /** @hidden */\n\n\n EventListener.prototype.bindingDisconnected = function (binding) {\n this.unorderedBindings.delete(binding);\n };\n\n EventListener.prototype.handleEvent = function (event) {\n var extendedEvent = extendEvent(event);\n\n for (var _i = 0, _a = this.bindings; _i < _a.length; _i++) {\n var binding = _a[_i];\n\n if (extendedEvent.immediatePropagationStopped) {\n break;\n } else {\n binding.handleEvent(extendedEvent);\n }\n }\n };\n\n Object.defineProperty(EventListener.prototype, \"bindings\", {\n get: function get() {\n return Array.from(this.unorderedBindings).sort(function (left, right) {\n var leftIndex = left.index,\n rightIndex = right.index;\n return leftIndex < rightIndex ? -1 : leftIndex > rightIndex ? 1 : 0;\n });\n },\n enumerable: true,\n configurable: true\n });\n return EventListener;\n}();\n\nexport { EventListener };\n\nfunction extendEvent(event) {\n if (\"immediatePropagationStopped\" in event) {\n return event;\n } else {\n var stopImmediatePropagation_1 = event.stopImmediatePropagation;\n return Object.assign(event, {\n immediatePropagationStopped: false,\n stopImmediatePropagation: function stopImmediatePropagation() {\n this.immediatePropagationStopped = true;\n stopImmediatePropagation_1.call(this);\n }\n });\n }\n}","import { EventListener } from \"./event_listener\";\n\nvar Dispatcher =\n/** @class */\nfunction () {\n function Dispatcher(application) {\n this.application = application;\n this.eventListenerMaps = new Map();\n this.started = false;\n }\n\n Dispatcher.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.connect();\n });\n }\n };\n\n Dispatcher.prototype.stop = function () {\n if (this.started) {\n this.started = false;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.disconnect();\n });\n }\n };\n\n Object.defineProperty(Dispatcher.prototype, \"eventListeners\", {\n get: function get() {\n return Array.from(this.eventListenerMaps.values()).reduce(function (listeners, map) {\n return listeners.concat(Array.from(map.values()));\n }, []);\n },\n enumerable: true,\n configurable: true\n }); // Binding observer delegate\n\n /** @hidden */\n\n Dispatcher.prototype.bindingConnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingConnected(binding);\n };\n /** @hidden */\n\n\n Dispatcher.prototype.bindingDisconnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingDisconnected(binding);\n }; // Error handling\n\n\n Dispatcher.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n\n this.application.handleError(error, \"Error \" + message, detail);\n };\n\n Dispatcher.prototype.fetchEventListenerForBinding = function (binding) {\n var eventTarget = binding.eventTarget,\n eventName = binding.eventName;\n return this.fetchEventListener(eventTarget, eventName);\n };\n\n Dispatcher.prototype.fetchEventListener = function (eventTarget, eventName) {\n var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);\n var eventListener = eventListenerMap.get(eventName);\n\n if (!eventListener) {\n eventListener = this.createEventListener(eventTarget, eventName);\n eventListenerMap.set(eventName, eventListener);\n }\n\n return eventListener;\n };\n\n Dispatcher.prototype.createEventListener = function (eventTarget, eventName) {\n var eventListener = new EventListener(eventTarget, eventName);\n\n if (this.started) {\n eventListener.connect();\n }\n\n return eventListener;\n };\n\n Dispatcher.prototype.fetchEventListenerMapForEventTarget = function (eventTarget) {\n var eventListenerMap = this.eventListenerMaps.get(eventTarget);\n\n if (!eventListenerMap) {\n eventListenerMap = new Map();\n this.eventListenerMaps.set(eventTarget, eventListenerMap);\n }\n\n return eventListenerMap;\n };\n\n return Dispatcher;\n}();\n\nexport { Dispatcher };","// capture nos.: 12 23 4 43 1 5 56 7 76\nvar descriptorPattern = /^((.+?)(@(window|document))?->)?(.+?)(#(.+))?$/;\nexport function parseDescriptorString(descriptorString) {\n var source = descriptorString.trim();\n var matches = source.match(descriptorPattern) || [];\n return {\n eventTarget: parseEventTarget(matches[4]),\n eventName: matches[2],\n identifier: matches[5],\n methodName: matches[7]\n };\n}\n\nfunction parseEventTarget(eventTargetName) {\n if (eventTargetName == \"window\") {\n return window;\n } else if (eventTargetName == \"document\") {\n return document;\n }\n}\n\nexport function stringifyEventTarget(eventTarget) {\n if (eventTarget == window) {\n return \"window\";\n } else if (eventTarget == document) {\n return \"document\";\n }\n}","import { parseDescriptorString, stringifyEventTarget } from \"./action_descriptor\";\n\nvar Action =\n/** @class */\nfunction () {\n function Action(element, index, descriptor) {\n this.element = element;\n this.index = index;\n this.eventTarget = descriptor.eventTarget || element;\n this.eventName = descriptor.eventName || getDefaultEventNameForElement(element) || error(\"missing event name\");\n this.identifier = descriptor.identifier || error(\"missing identifier\");\n this.methodName = descriptor.methodName || error(\"missing method name\");\n }\n\n Action.forToken = function (token) {\n return new this(token.element, token.index, parseDescriptorString(token.content));\n };\n\n Action.prototype.toString = function () {\n var eventNameSuffix = this.eventTargetName ? \"@\" + this.eventTargetName : \"\";\n return \"\" + this.eventName + eventNameSuffix + \"->\" + this.identifier + \"#\" + this.methodName;\n };\n\n Object.defineProperty(Action.prototype, \"eventTargetName\", {\n get: function get() {\n return stringifyEventTarget(this.eventTarget);\n },\n enumerable: true,\n configurable: true\n });\n return Action;\n}();\n\nexport { Action };\nvar defaultEventNames = {\n \"a\": function a(e) {\n return \"click\";\n },\n \"button\": function button(e) {\n return \"click\";\n },\n \"form\": function form(e) {\n return \"submit\";\n },\n \"input\": function input(e) {\n return e.getAttribute(\"type\") == \"submit\" ? \"click\" : \"change\";\n },\n \"select\": function select(e) {\n return \"change\";\n },\n \"textarea\": function textarea(e) {\n return \"change\";\n }\n};\nexport function getDefaultEventNameForElement(element) {\n var tagName = element.tagName.toLowerCase();\n\n if (tagName in defaultEventNames) {\n return defaultEventNames[tagName](element);\n }\n}\n\nfunction error(message) {\n throw new Error(message);\n}","var Binding =\n/** @class */\nfunction () {\n function Binding(context, action) {\n this.context = context;\n this.action = action;\n }\n\n Object.defineProperty(Binding.prototype, \"index\", {\n get: function get() {\n return this.action.index;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"eventTarget\", {\n get: function get() {\n return this.action.eventTarget;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"identifier\", {\n get: function get() {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n\n Binding.prototype.handleEvent = function (event) {\n if (this.willBeInvokedByEvent(event)) {\n this.invokeWithEvent(event);\n }\n };\n\n Object.defineProperty(Binding.prototype, \"eventName\", {\n get: function get() {\n return this.action.eventName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"method\", {\n get: function get() {\n var method = this.controller[this.methodName];\n\n if (typeof method == \"function\") {\n return method;\n }\n\n throw new Error(\"Action \\\"\" + this.action + \"\\\" references undefined method \\\"\" + this.methodName + \"\\\"\");\n },\n enumerable: true,\n configurable: true\n });\n\n Binding.prototype.invokeWithEvent = function (event) {\n try {\n this.method.call(this.controller, event);\n } catch (error) {\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element,\n index = _a.index;\n\n var detail = {\n identifier: identifier,\n controller: controller,\n element: element,\n index: index,\n event: event\n };\n this.context.handleError(error, \"invoking action \\\"\" + this.action + \"\\\"\", detail);\n }\n };\n\n Binding.prototype.willBeInvokedByEvent = function (event) {\n var eventTarget = event.target;\n\n if (this.element === eventTarget) {\n return true;\n } else if (eventTarget instanceof Element && this.element.contains(eventTarget)) {\n return this.scope.containsElement(eventTarget);\n } else {\n return true;\n }\n };\n\n Object.defineProperty(Binding.prototype, \"controller\", {\n get: function get() {\n return this.context.controller;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"methodName\", {\n get: function get() {\n return this.action.methodName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"scope\", {\n get: function get() {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n return Binding;\n}();\n\nexport { Binding };","var ElementObserver =\n/** @class */\nfunction () {\n function ElementObserver(element, delegate) {\n var _this = this;\n\n this.element = element;\n this.started = false;\n this.delegate = delegate;\n this.elements = new Set();\n this.mutationObserver = new MutationObserver(function (mutations) {\n return _this.processMutations(mutations);\n });\n }\n\n ElementObserver.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.mutationObserver.observe(this.element, {\n attributes: true,\n childList: true,\n subtree: true\n });\n this.refresh();\n }\n };\n\n ElementObserver.prototype.stop = function () {\n if (this.started) {\n this.mutationObserver.takeRecords();\n this.mutationObserver.disconnect();\n this.started = false;\n }\n };\n\n ElementObserver.prototype.refresh = function () {\n if (this.started) {\n var matches = new Set(this.matchElementsInTree());\n\n for (var _i = 0, _a = Array.from(this.elements); _i < _a.length; _i++) {\n var element = _a[_i];\n\n if (!matches.has(element)) {\n this.removeElement(element);\n }\n }\n\n for (var _b = 0, _c = Array.from(matches); _b < _c.length; _b++) {\n var element = _c[_b];\n this.addElement(element);\n }\n }\n }; // Mutation record processing\n\n\n ElementObserver.prototype.processMutations = function (mutations) {\n if (this.started) {\n for (var _i = 0, mutations_1 = mutations; _i < mutations_1.length; _i++) {\n var mutation = mutations_1[_i];\n this.processMutation(mutation);\n }\n }\n };\n\n ElementObserver.prototype.processMutation = function (mutation) {\n if (mutation.type == \"attributes\") {\n this.processAttributeChange(mutation.target, mutation.attributeName);\n } else if (mutation.type == \"childList\") {\n this.processRemovedNodes(mutation.removedNodes);\n this.processAddedNodes(mutation.addedNodes);\n }\n };\n\n ElementObserver.prototype.processAttributeChange = function (node, attributeName) {\n var element = node;\n\n if (this.elements.has(element)) {\n if (this.delegate.elementAttributeChanged && this.matchElement(element)) {\n this.delegate.elementAttributeChanged(element, attributeName);\n } else {\n this.removeElement(element);\n }\n } else if (this.matchElement(element)) {\n this.addElement(element);\n }\n };\n\n ElementObserver.prototype.processRemovedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n\n if (element) {\n this.processTree(element, this.removeElement);\n }\n }\n };\n\n ElementObserver.prototype.processAddedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n\n if (element && this.elementIsActive(element)) {\n this.processTree(element, this.addElement);\n }\n }\n }; // Element matching\n\n\n ElementObserver.prototype.matchElement = function (element) {\n return this.delegate.matchElement(element);\n };\n\n ElementObserver.prototype.matchElementsInTree = function (tree) {\n if (tree === void 0) {\n tree = this.element;\n }\n\n return this.delegate.matchElementsInTree(tree);\n };\n\n ElementObserver.prototype.processTree = function (tree, processor) {\n for (var _i = 0, _a = this.matchElementsInTree(tree); _i < _a.length; _i++) {\n var element = _a[_i];\n processor.call(this, element);\n }\n };\n\n ElementObserver.prototype.elementFromNode = function (node) {\n if (node.nodeType == Node.ELEMENT_NODE) {\n return node;\n }\n };\n\n ElementObserver.prototype.elementIsActive = function (element) {\n if (element.isConnected != this.element.isConnected) {\n return false;\n } else {\n return this.element.contains(element);\n }\n }; // Element tracking\n\n\n ElementObserver.prototype.addElement = function (element) {\n if (!this.elements.has(element)) {\n if (this.elementIsActive(element)) {\n this.elements.add(element);\n\n if (this.delegate.elementMatched) {\n this.delegate.elementMatched(element);\n }\n }\n }\n };\n\n ElementObserver.prototype.removeElement = function (element) {\n if (this.elements.has(element)) {\n this.elements.delete(element);\n\n if (this.delegate.elementUnmatched) {\n this.delegate.elementUnmatched(element);\n }\n }\n };\n\n return ElementObserver;\n}();\n\nexport { ElementObserver };","import { ElementObserver } from \"./element_observer\";\n\nvar AttributeObserver =\n/** @class */\nfunction () {\n function AttributeObserver(element, attributeName, delegate) {\n this.attributeName = attributeName;\n this.delegate = delegate;\n this.elementObserver = new ElementObserver(element, this);\n }\n\n Object.defineProperty(AttributeObserver.prototype, \"element\", {\n get: function get() {\n return this.elementObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AttributeObserver.prototype, \"selector\", {\n get: function get() {\n return \"[\" + this.attributeName + \"]\";\n },\n enumerable: true,\n configurable: true\n });\n\n AttributeObserver.prototype.start = function () {\n this.elementObserver.start();\n };\n\n AttributeObserver.prototype.stop = function () {\n this.elementObserver.stop();\n };\n\n AttributeObserver.prototype.refresh = function () {\n this.elementObserver.refresh();\n };\n\n Object.defineProperty(AttributeObserver.prototype, \"started\", {\n get: function get() {\n return this.elementObserver.started;\n },\n enumerable: true,\n configurable: true\n }); // Element observer delegate\n\n AttributeObserver.prototype.matchElement = function (element) {\n return element.hasAttribute(this.attributeName);\n };\n\n AttributeObserver.prototype.matchElementsInTree = function (tree) {\n var match = this.matchElement(tree) ? [tree] : [];\n var matches = Array.from(tree.querySelectorAll(this.selector));\n return match.concat(matches);\n };\n\n AttributeObserver.prototype.elementMatched = function (element) {\n if (this.delegate.elementMatchedAttribute) {\n this.delegate.elementMatchedAttribute(element, this.attributeName);\n }\n };\n\n AttributeObserver.prototype.elementUnmatched = function (element) {\n if (this.delegate.elementUnmatchedAttribute) {\n this.delegate.elementUnmatchedAttribute(element, this.attributeName);\n }\n };\n\n AttributeObserver.prototype.elementAttributeChanged = function (element, attributeName) {\n if (this.delegate.elementAttributeValueChanged && this.attributeName == attributeName) {\n this.delegate.elementAttributeValueChanged(element, attributeName);\n }\n };\n\n return AttributeObserver;\n}();\n\nexport { AttributeObserver };","export function add(map, key, value) {\n fetch(map, key).add(value);\n}\nexport function del(map, key, value) {\n fetch(map, key).delete(value);\n prune(map, key);\n}\nexport function fetch(map, key) {\n var values = map.get(key);\n\n if (!values) {\n values = new Set();\n map.set(key, values);\n }\n\n return values;\n}\nexport function prune(map, key) {\n var values = map.get(key);\n\n if (values != null && values.size == 0) {\n map.delete(key);\n }\n}","import { add, del } from \"./set_operations\";\n\nvar Multimap =\n/** @class */\nfunction () {\n function Multimap() {\n this.valuesByKey = new Map();\n }\n\n Object.defineProperty(Multimap.prototype, \"values\", {\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (values, set) {\n return values.concat(Array.from(set));\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Multimap.prototype, \"size\", {\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (size, set) {\n return size + set.size;\n }, 0);\n },\n enumerable: true,\n configurable: true\n });\n\n Multimap.prototype.add = function (key, value) {\n add(this.valuesByKey, key, value);\n };\n\n Multimap.prototype.delete = function (key, value) {\n del(this.valuesByKey, key, value);\n };\n\n Multimap.prototype.has = function (key, value) {\n var values = this.valuesByKey.get(key);\n return values != null && values.has(value);\n };\n\n Multimap.prototype.hasKey = function (key) {\n return this.valuesByKey.has(key);\n };\n\n Multimap.prototype.hasValue = function (value) {\n var sets = Array.from(this.valuesByKey.values());\n return sets.some(function (set) {\n return set.has(value);\n });\n };\n\n Multimap.prototype.getValuesForKey = function (key) {\n var values = this.valuesByKey.get(key);\n return values ? Array.from(values) : [];\n };\n\n Multimap.prototype.getKeysForValue = function (value) {\n return Array.from(this.valuesByKey).filter(function (_a) {\n var key = _a[0],\n values = _a[1];\n return values.has(value);\n }).map(function (_a) {\n var key = _a[0],\n values = _a[1];\n return key;\n });\n };\n\n return Multimap;\n}();\n\nexport { Multimap };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return function (d, b) {\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nimport { Multimap } from \"./multimap\";\nimport { add, del } from \"./set_operations\";\n\nvar IndexedMultimap =\n/** @class */\nfunction (_super) {\n __extends(IndexedMultimap, _super);\n\n function IndexedMultimap() {\n var _this = _super.call(this) || this;\n\n _this.keysByValue = new Map();\n return _this;\n }\n\n Object.defineProperty(IndexedMultimap.prototype, \"values\", {\n get: function get() {\n return Array.from(this.keysByValue.keys());\n },\n enumerable: true,\n configurable: true\n });\n\n IndexedMultimap.prototype.add = function (key, value) {\n _super.prototype.add.call(this, key, value);\n\n add(this.keysByValue, value, key);\n };\n\n IndexedMultimap.prototype.delete = function (key, value) {\n _super.prototype.delete.call(this, key, value);\n\n del(this.keysByValue, value, key);\n };\n\n IndexedMultimap.prototype.hasValue = function (value) {\n return this.keysByValue.has(value);\n };\n\n IndexedMultimap.prototype.getKeysForValue = function (value) {\n var set = this.keysByValue.get(value);\n return set ? Array.from(set) : [];\n };\n\n return IndexedMultimap;\n}(Multimap);\n\nexport { IndexedMultimap };","import { AttributeObserver } from \"./attribute_observer\";\nimport { Multimap } from \"@stimulus/multimap\";\n\nvar TokenListObserver =\n/** @class */\nfunction () {\n function TokenListObserver(element, attributeName, delegate) {\n this.attributeObserver = new AttributeObserver(element, attributeName, this);\n this.delegate = delegate;\n this.tokensByElement = new Multimap();\n }\n\n Object.defineProperty(TokenListObserver.prototype, \"started\", {\n get: function get() {\n return this.attributeObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n\n TokenListObserver.prototype.start = function () {\n this.attributeObserver.start();\n };\n\n TokenListObserver.prototype.stop = function () {\n this.attributeObserver.stop();\n };\n\n TokenListObserver.prototype.refresh = function () {\n this.attributeObserver.refresh();\n };\n\n Object.defineProperty(TokenListObserver.prototype, \"element\", {\n get: function get() {\n return this.attributeObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TokenListObserver.prototype, \"attributeName\", {\n get: function get() {\n return this.attributeObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n }); // Attribute observer delegate\n\n TokenListObserver.prototype.elementMatchedAttribute = function (element) {\n this.tokensMatched(this.readTokensForElement(element));\n };\n\n TokenListObserver.prototype.elementAttributeValueChanged = function (element) {\n var _a = this.refreshTokensForElement(element),\n unmatchedTokens = _a[0],\n matchedTokens = _a[1];\n\n this.tokensUnmatched(unmatchedTokens);\n this.tokensMatched(matchedTokens);\n };\n\n TokenListObserver.prototype.elementUnmatchedAttribute = function (element) {\n this.tokensUnmatched(this.tokensByElement.getValuesForKey(element));\n };\n\n TokenListObserver.prototype.tokensMatched = function (tokens) {\n var _this = this;\n\n tokens.forEach(function (token) {\n return _this.tokenMatched(token);\n });\n };\n\n TokenListObserver.prototype.tokensUnmatched = function (tokens) {\n var _this = this;\n\n tokens.forEach(function (token) {\n return _this.tokenUnmatched(token);\n });\n };\n\n TokenListObserver.prototype.tokenMatched = function (token) {\n this.delegate.tokenMatched(token);\n this.tokensByElement.add(token.element, token);\n };\n\n TokenListObserver.prototype.tokenUnmatched = function (token) {\n this.delegate.tokenUnmatched(token);\n this.tokensByElement.delete(token.element, token);\n };\n\n TokenListObserver.prototype.refreshTokensForElement = function (element) {\n var previousTokens = this.tokensByElement.getValuesForKey(element);\n var currentTokens = this.readTokensForElement(element);\n var firstDifferingIndex = zip(previousTokens, currentTokens).findIndex(function (_a) {\n var previousToken = _a[0],\n currentToken = _a[1];\n return !tokensAreEqual(previousToken, currentToken);\n });\n\n if (firstDifferingIndex == -1) {\n return [[], []];\n } else {\n return [previousTokens.slice(firstDifferingIndex), currentTokens.slice(firstDifferingIndex)];\n }\n };\n\n TokenListObserver.prototype.readTokensForElement = function (element) {\n var attributeName = this.attributeName;\n var tokenString = element.getAttribute(attributeName) || \"\";\n return parseTokenString(tokenString, element, attributeName);\n };\n\n return TokenListObserver;\n}();\n\nexport { TokenListObserver };\n\nfunction parseTokenString(tokenString, element, attributeName) {\n return tokenString.trim().split(/\\s+/).filter(function (content) {\n return content.length;\n }).map(function (content, index) {\n return {\n element: element,\n attributeName: attributeName,\n content: content,\n index: index\n };\n });\n}\n\nfunction zip(left, right) {\n var length = Math.max(left.length, right.length);\n return Array.from({\n length: length\n }, function (_, index) {\n return [left[index], right[index]];\n });\n}\n\nfunction tokensAreEqual(left, right) {\n return left && right && left.index == right.index && left.content == right.content;\n}","import { TokenListObserver } from \"./token_list_observer\";\n\nvar ValueListObserver =\n/** @class */\nfunction () {\n function ValueListObserver(element, attributeName, delegate) {\n this.tokenListObserver = new TokenListObserver(element, attributeName, this);\n this.delegate = delegate;\n this.parseResultsByToken = new WeakMap();\n this.valuesByTokenByElement = new WeakMap();\n }\n\n Object.defineProperty(ValueListObserver.prototype, \"started\", {\n get: function get() {\n return this.tokenListObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n\n ValueListObserver.prototype.start = function () {\n this.tokenListObserver.start();\n };\n\n ValueListObserver.prototype.stop = function () {\n this.tokenListObserver.stop();\n };\n\n ValueListObserver.prototype.refresh = function () {\n this.tokenListObserver.refresh();\n };\n\n Object.defineProperty(ValueListObserver.prototype, \"element\", {\n get: function get() {\n return this.tokenListObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ValueListObserver.prototype, \"attributeName\", {\n get: function get() {\n return this.tokenListObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n });\n\n ValueListObserver.prototype.tokenMatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).set(token, value);\n this.delegate.elementMatchedValue(element, value);\n }\n };\n\n ValueListObserver.prototype.tokenUnmatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).delete(token);\n this.delegate.elementUnmatchedValue(element, value);\n }\n };\n\n ValueListObserver.prototype.fetchParseResultForToken = function (token) {\n var parseResult = this.parseResultsByToken.get(token);\n\n if (!parseResult) {\n parseResult = this.parseToken(token);\n this.parseResultsByToken.set(token, parseResult);\n }\n\n return parseResult;\n };\n\n ValueListObserver.prototype.fetchValuesByTokenForElement = function (element) {\n var valuesByToken = this.valuesByTokenByElement.get(element);\n\n if (!valuesByToken) {\n valuesByToken = new Map();\n this.valuesByTokenByElement.set(element, valuesByToken);\n }\n\n return valuesByToken;\n };\n\n ValueListObserver.prototype.parseToken = function (token) {\n try {\n var value = this.delegate.parseValueForToken(token);\n return {\n value: value\n };\n } catch (error) {\n return {\n error: error\n };\n }\n };\n\n return ValueListObserver;\n}();\n\nexport { ValueListObserver };","import { Action } from \"./action\";\nimport { Binding } from \"./binding\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\n\nvar BindingObserver =\n/** @class */\nfunction () {\n function BindingObserver(context, delegate) {\n this.context = context;\n this.delegate = delegate;\n this.bindingsByAction = new Map();\n }\n\n BindingObserver.prototype.start = function () {\n if (!this.valueListObserver) {\n this.valueListObserver = new ValueListObserver(this.element, this.actionAttribute, this);\n this.valueListObserver.start();\n }\n };\n\n BindingObserver.prototype.stop = function () {\n if (this.valueListObserver) {\n this.valueListObserver.stop();\n delete this.valueListObserver;\n this.disconnectAllActions();\n }\n };\n\n Object.defineProperty(BindingObserver.prototype, \"element\", {\n get: function get() {\n return this.context.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"identifier\", {\n get: function get() {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"actionAttribute\", {\n get: function get() {\n return this.schema.actionAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"schema\", {\n get: function get() {\n return this.context.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"bindings\", {\n get: function get() {\n return Array.from(this.bindingsByAction.values());\n },\n enumerable: true,\n configurable: true\n });\n\n BindingObserver.prototype.connectAction = function (action) {\n var binding = new Binding(this.context, action);\n this.bindingsByAction.set(action, binding);\n this.delegate.bindingConnected(binding);\n };\n\n BindingObserver.prototype.disconnectAction = function (action) {\n var binding = this.bindingsByAction.get(action);\n\n if (binding) {\n this.bindingsByAction.delete(action);\n this.delegate.bindingDisconnected(binding);\n }\n };\n\n BindingObserver.prototype.disconnectAllActions = function () {\n var _this = this;\n\n this.bindings.forEach(function (binding) {\n return _this.delegate.bindingDisconnected(binding);\n });\n this.bindingsByAction.clear();\n }; // Value observer delegate\n\n\n BindingObserver.prototype.parseValueForToken = function (token) {\n var action = Action.forToken(token);\n\n if (action.identifier == this.identifier) {\n return action;\n }\n };\n\n BindingObserver.prototype.elementMatchedValue = function (element, action) {\n this.connectAction(action);\n };\n\n BindingObserver.prototype.elementUnmatchedValue = function (element, action) {\n this.disconnectAction(action);\n };\n\n return BindingObserver;\n}();\n\nexport { BindingObserver };","import { BindingObserver } from \"./binding_observer\";\n\nvar Context =\n/** @class */\nfunction () {\n function Context(module, scope) {\n this.module = module;\n this.scope = scope;\n this.controller = new module.controllerConstructor(this);\n this.bindingObserver = new BindingObserver(this, this.dispatcher);\n\n try {\n this.controller.initialize();\n } catch (error) {\n this.handleError(error, \"initializing controller\");\n }\n }\n\n Context.prototype.connect = function () {\n this.bindingObserver.start();\n\n try {\n this.controller.connect();\n } catch (error) {\n this.handleError(error, \"connecting controller\");\n }\n };\n\n Context.prototype.disconnect = function () {\n try {\n this.controller.disconnect();\n } catch (error) {\n this.handleError(error, \"disconnecting controller\");\n }\n\n this.bindingObserver.stop();\n };\n\n Object.defineProperty(Context.prototype, \"application\", {\n get: function get() {\n return this.module.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"identifier\", {\n get: function get() {\n return this.module.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"schema\", {\n get: function get() {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"dispatcher\", {\n get: function get() {\n return this.application.dispatcher;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"parentElement\", {\n get: function get() {\n return this.element.parentElement;\n },\n enumerable: true,\n configurable: true\n }); // Error handling\n\n Context.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element;\n\n detail = Object.assign({\n identifier: identifier,\n controller: controller,\n element: element\n }, detail);\n this.application.handleError(error, \"Error \" + message, detail);\n };\n\n return Context;\n}();\n\nexport { Context };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return function (d, b) {\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/** @hidden */\n\n\nexport function blessDefinition(definition) {\n return {\n identifier: definition.identifier,\n controllerConstructor: blessControllerConstructor(definition.controllerConstructor)\n };\n}\n\nfunction blessControllerConstructor(controllerConstructor) {\n var constructor = extend(controllerConstructor);\n constructor.bless();\n return constructor;\n}\n\nvar extend = function () {\n function extendWithReflect(constructor) {\n function Controller() {\n var _newTarget = this && this instanceof Controller ? this.constructor : void 0;\n\n return Reflect.construct(constructor, arguments, _newTarget);\n }\n\n Controller.prototype = Object.create(constructor.prototype, {\n constructor: {\n value: Controller\n }\n });\n Reflect.setPrototypeOf(Controller, constructor);\n return Controller;\n }\n\n function testReflectExtension() {\n var a = function a() {\n this.a.call(this);\n };\n\n var b = extendWithReflect(a);\n\n b.prototype.a = function () {};\n\n return new b();\n }\n\n try {\n testReflectExtension();\n return extendWithReflect;\n } catch (error) {\n return function (constructor) {\n return (\n /** @class */\n function (_super) {\n __extends(Controller, _super);\n\n function Controller() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return Controller;\n }(constructor)\n );\n };\n }\n}();","import { Context } from \"./context\";\nimport { blessDefinition } from \"./definition\";\n\nvar Module =\n/** @class */\nfunction () {\n function Module(application, definition) {\n this.application = application;\n this.definition = blessDefinition(definition);\n this.contextsByScope = new WeakMap();\n this.connectedContexts = new Set();\n }\n\n Object.defineProperty(Module.prototype, \"identifier\", {\n get: function get() {\n return this.definition.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"controllerConstructor\", {\n get: function get() {\n return this.definition.controllerConstructor;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"contexts\", {\n get: function get() {\n return Array.from(this.connectedContexts);\n },\n enumerable: true,\n configurable: true\n });\n\n Module.prototype.connectContextForScope = function (scope) {\n var context = this.fetchContextForScope(scope);\n this.connectedContexts.add(context);\n context.connect();\n };\n\n Module.prototype.disconnectContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n\n if (context) {\n this.connectedContexts.delete(context);\n context.disconnect();\n }\n };\n\n Module.prototype.fetchContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n\n if (!context) {\n context = new Context(this, scope);\n this.contextsByScope.set(scope, context);\n }\n\n return context;\n };\n\n return Module;\n}();\n\nexport { Module };","var DataMap =\n/** @class */\nfunction () {\n function DataMap(scope) {\n this.scope = scope;\n }\n\n Object.defineProperty(DataMap.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DataMap.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n\n DataMap.prototype.get = function (key) {\n key = this.getFormattedKey(key);\n return this.element.getAttribute(key);\n };\n\n DataMap.prototype.set = function (key, value) {\n key = this.getFormattedKey(key);\n this.element.setAttribute(key, value);\n return this.get(key);\n };\n\n DataMap.prototype.has = function (key) {\n key = this.getFormattedKey(key);\n return this.element.hasAttribute(key);\n };\n\n DataMap.prototype.delete = function (key) {\n if (this.has(key)) {\n key = this.getFormattedKey(key);\n this.element.removeAttribute(key);\n return true;\n } else {\n return false;\n }\n };\n\n DataMap.prototype.getFormattedKey = function (key) {\n return \"data-\" + this.identifier + \"-\" + dasherize(key);\n };\n\n return DataMap;\n}();\n\nexport { DataMap };\n\nfunction dasherize(value) {\n return value.replace(/([A-Z])/g, function (_, char) {\n return \"-\" + char.toLowerCase();\n });\n}","/** @hidden */\nexport function attributeValueContainsToken(attributeName, token) {\n return \"[\" + attributeName + \"~=\\\"\" + token + \"\\\"]\";\n}","import { attributeValueContainsToken } from \"./selectors\";\n\nvar TargetSet =\n/** @class */\nfunction () {\n function TargetSet(scope) {\n this.scope = scope;\n }\n\n Object.defineProperty(TargetSet.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"schema\", {\n get: function get() {\n return this.scope.schema;\n },\n enumerable: true,\n configurable: true\n });\n\n TargetSet.prototype.has = function (targetName) {\n return this.find(targetName) != null;\n };\n\n TargetSet.prototype.find = function () {\n var targetNames = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findElement(selector);\n };\n\n TargetSet.prototype.findAll = function () {\n var targetNames = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findAllElements(selector);\n };\n\n TargetSet.prototype.getSelectorForTargetNames = function (targetNames) {\n var _this = this;\n\n return targetNames.map(function (targetName) {\n return _this.getSelectorForTargetName(targetName);\n }).join(\", \");\n };\n\n TargetSet.prototype.getSelectorForTargetName = function (targetName) {\n var targetDescriptor = this.identifier + \".\" + targetName;\n return attributeValueContainsToken(this.schema.targetAttribute, targetDescriptor);\n };\n\n return TargetSet;\n}();\n\nexport { TargetSet };","import { DataMap } from \"./data_map\";\nimport { TargetSet } from \"./target_set\";\nimport { attributeValueContainsToken } from \"./selectors\";\n\nvar Scope =\n/** @class */\nfunction () {\n function Scope(schema, identifier, element) {\n this.schema = schema;\n this.identifier = identifier;\n this.element = element;\n this.targets = new TargetSet(this);\n this.data = new DataMap(this);\n }\n\n Scope.prototype.findElement = function (selector) {\n return this.findAllElements(selector)[0];\n };\n\n Scope.prototype.findAllElements = function (selector) {\n var head = this.element.matches(selector) ? [this.element] : [];\n var tail = this.filterElements(Array.from(this.element.querySelectorAll(selector)));\n return head.concat(tail);\n };\n\n Scope.prototype.filterElements = function (elements) {\n var _this = this;\n\n return elements.filter(function (element) {\n return _this.containsElement(element);\n });\n };\n\n Scope.prototype.containsElement = function (element) {\n return element.closest(this.controllerSelector) === this.element;\n };\n\n Object.defineProperty(Scope.prototype, \"controllerSelector\", {\n get: function get() {\n return attributeValueContainsToken(this.schema.controllerAttribute, this.identifier);\n },\n enumerable: true,\n configurable: true\n });\n return Scope;\n}();\n\nexport { Scope };","import { Scope } from \"./scope\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\n\nvar ScopeObserver =\n/** @class */\nfunction () {\n function ScopeObserver(element, schema, delegate) {\n this.element = element;\n this.schema = schema;\n this.delegate = delegate;\n this.valueListObserver = new ValueListObserver(this.element, this.controllerAttribute, this);\n this.scopesByIdentifierByElement = new WeakMap();\n this.scopeReferenceCounts = new WeakMap();\n }\n\n ScopeObserver.prototype.start = function () {\n this.valueListObserver.start();\n };\n\n ScopeObserver.prototype.stop = function () {\n this.valueListObserver.stop();\n };\n\n Object.defineProperty(ScopeObserver.prototype, \"controllerAttribute\", {\n get: function get() {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n }); // Value observer delegate\n\n /** @hidden */\n\n ScopeObserver.prototype.parseValueForToken = function (token) {\n var element = token.element,\n identifier = token.content;\n var scopesByIdentifier = this.fetchScopesByIdentifierForElement(element);\n var scope = scopesByIdentifier.get(identifier);\n\n if (!scope) {\n scope = new Scope(this.schema, identifier, element);\n scopesByIdentifier.set(identifier, scope);\n }\n\n return scope;\n };\n /** @hidden */\n\n\n ScopeObserver.prototype.elementMatchedValue = function (element, value) {\n var referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1;\n this.scopeReferenceCounts.set(value, referenceCount);\n\n if (referenceCount == 1) {\n this.delegate.scopeConnected(value);\n }\n };\n /** @hidden */\n\n\n ScopeObserver.prototype.elementUnmatchedValue = function (element, value) {\n var referenceCount = this.scopeReferenceCounts.get(value);\n\n if (referenceCount) {\n this.scopeReferenceCounts.set(value, referenceCount - 1);\n\n if (referenceCount == 1) {\n this.delegate.scopeDisconnected(value);\n }\n }\n };\n\n ScopeObserver.prototype.fetchScopesByIdentifierForElement = function (element) {\n var scopesByIdentifier = this.scopesByIdentifierByElement.get(element);\n\n if (!scopesByIdentifier) {\n scopesByIdentifier = new Map();\n this.scopesByIdentifierByElement.set(element, scopesByIdentifier);\n }\n\n return scopesByIdentifier;\n };\n\n return ScopeObserver;\n}();\n\nexport { ScopeObserver };","import { Module } from \"./module\";\nimport { Multimap } from \"@stimulus/multimap\";\nimport { ScopeObserver } from \"./scope_observer\";\n\nvar Router =\n/** @class */\nfunction () {\n function Router(application) {\n this.application = application;\n this.scopeObserver = new ScopeObserver(this.element, this.schema, this);\n this.scopesByIdentifier = new Multimap();\n this.modulesByIdentifier = new Map();\n }\n\n Object.defineProperty(Router.prototype, \"element\", {\n get: function get() {\n return this.application.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"schema\", {\n get: function get() {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"controllerAttribute\", {\n get: function get() {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"modules\", {\n get: function get() {\n return Array.from(this.modulesByIdentifier.values());\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"contexts\", {\n get: function get() {\n return this.modules.reduce(function (contexts, module) {\n return contexts.concat(module.contexts);\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n\n Router.prototype.start = function () {\n this.scopeObserver.start();\n };\n\n Router.prototype.stop = function () {\n this.scopeObserver.stop();\n };\n\n Router.prototype.loadDefinition = function (definition) {\n this.unloadIdentifier(definition.identifier);\n var module = new Module(this.application, definition);\n this.connectModule(module);\n };\n\n Router.prototype.unloadIdentifier = function (identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n this.disconnectModule(module);\n }\n };\n\n Router.prototype.getContextForElementAndIdentifier = function (element, identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n return module.contexts.find(function (context) {\n return context.element == element;\n });\n }\n }; // Error handler delegate\n\n /** @hidden */\n\n\n Router.prototype.handleError = function (error, message, detail) {\n this.application.handleError(error, message, detail);\n }; // Scope observer delegate\n\n /** @hidden */\n\n\n Router.prototype.scopeConnected = function (scope) {\n this.scopesByIdentifier.add(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.connectContextForScope(scope);\n }\n };\n /** @hidden */\n\n\n Router.prototype.scopeDisconnected = function (scope) {\n this.scopesByIdentifier.delete(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.disconnectContextForScope(scope);\n }\n }; // Modules\n\n\n Router.prototype.connectModule = function (module) {\n this.modulesByIdentifier.set(module.identifier, module);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.connectContextForScope(scope);\n });\n };\n\n Router.prototype.disconnectModule = function (module) {\n this.modulesByIdentifier.delete(module.identifier);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.disconnectContextForScope(scope);\n });\n };\n\n return Router;\n}();\n\nexport { Router };","export var defaultSchema = {\n controllerAttribute: \"data-controller\",\n actionAttribute: \"data-action\",\n targetAttribute: \"data-target\"\n};","var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [0, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nimport { Dispatcher } from \"./dispatcher\";\nimport { Router } from \"./router\";\nimport { defaultSchema } from \"./schema\";\n\nvar Application =\n/** @class */\nfunction () {\n function Application(element, schema) {\n if (element === void 0) {\n element = document.documentElement;\n }\n\n if (schema === void 0) {\n schema = defaultSchema;\n }\n\n this.element = element;\n this.schema = schema;\n this.dispatcher = new Dispatcher(this);\n this.router = new Router(this);\n }\n\n Application.start = function (element, schema) {\n var application = new Application(element, schema);\n application.start();\n return application;\n };\n\n Application.prototype.start = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , domReady()];\n\n case 1:\n _a.sent();\n\n this.router.start();\n this.dispatcher.start();\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n Application.prototype.stop = function () {\n this.router.stop();\n this.dispatcher.stop();\n };\n\n Application.prototype.register = function (identifier, controllerConstructor) {\n this.load({\n identifier: identifier,\n controllerConstructor: controllerConstructor\n });\n };\n\n Application.prototype.load = function (head) {\n var _this = this;\n\n var rest = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n\n var definitions = Array.isArray(head) ? head : [head].concat(rest);\n definitions.forEach(function (definition) {\n return _this.router.loadDefinition(definition);\n });\n };\n\n Application.prototype.unload = function (head) {\n var _this = this;\n\n var rest = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n\n var identifiers = Array.isArray(head) ? head : [head].concat(rest);\n identifiers.forEach(function (identifier) {\n return _this.router.unloadIdentifier(identifier);\n });\n };\n\n Object.defineProperty(Application.prototype, \"controllers\", {\n // Controllers\n get: function get() {\n return this.router.contexts.map(function (context) {\n return context.controller;\n });\n },\n enumerable: true,\n configurable: true\n });\n\n Application.prototype.getControllerForElementAndIdentifier = function (element, identifier) {\n var context = this.router.getContextForElementAndIdentifier(element, identifier);\n return context ? context.controller : null;\n }; // Error handling\n\n\n Application.prototype.handleError = function (error, message, detail) {\n console.error(\"%s\\n\\n%o\\n\\n%o\", message, error, detail);\n };\n\n return Application;\n}();\n\nexport { Application };\n\nfunction domReady() {\n return new Promise(function (resolve) {\n if (document.readyState == \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n } else {\n resolve();\n }\n });\n}","/** @hidden */\nexport function defineTargetProperties(constructor) {\n var prototype = constructor.prototype;\n var targetNames = getTargetNamesForConstructor(constructor);\n targetNames.forEach(function (name) {\n var _a;\n\n return defineLinkedProperties(prototype, (_a = {}, _a[name + \"Target\"] = {\n get: function get() {\n var target = this.targets.find(name);\n\n if (target) {\n return target;\n } else {\n throw new Error(\"Missing target element \\\"\" + this.identifier + \".\" + name + \"\\\"\");\n }\n }\n }, _a[name + \"Targets\"] = {\n get: function get() {\n return this.targets.findAll(name);\n }\n }, _a[\"has\" + capitalize(name) + \"Target\"] = {\n get: function get() {\n return this.targets.has(name);\n }\n }, _a));\n });\n}\n\nfunction getTargetNamesForConstructor(constructor) {\n var ancestors = getAncestorsForConstructor(constructor);\n return Array.from(ancestors.reduce(function (targetNames, constructor) {\n getOwnTargetNamesForConstructor(constructor).forEach(function (name) {\n return targetNames.add(name);\n });\n return targetNames;\n }, new Set()));\n}\n\nfunction getAncestorsForConstructor(constructor) {\n var ancestors = [];\n\n while (constructor) {\n ancestors.push(constructor);\n constructor = Object.getPrototypeOf(constructor);\n }\n\n return ancestors;\n}\n\nfunction getOwnTargetNamesForConstructor(constructor) {\n var definition = constructor[\"targets\"];\n return Array.isArray(definition) ? definition : [];\n}\n\nfunction defineLinkedProperties(object, properties) {\n Object.keys(properties).forEach(function (name) {\n if (!(name in object)) {\n var descriptor = properties[name];\n Object.defineProperty(object, name, descriptor);\n }\n });\n}\n\nfunction capitalize(name) {\n return name.charAt(0).toUpperCase() + name.slice(1);\n}","import { defineTargetProperties } from \"./target_properties\";\n\nvar Controller =\n/** @class */\nfunction () {\n function Controller(context) {\n this.context = context;\n }\n\n Controller.bless = function () {\n defineTargetProperties(this);\n };\n\n Object.defineProperty(Controller.prototype, \"application\", {\n get: function get() {\n return this.context.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"scope\", {\n get: function get() {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"targets\", {\n get: function get() {\n return this.scope.targets;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"data\", {\n get: function get() {\n return this.scope.data;\n },\n enumerable: true,\n configurable: true\n });\n\n Controller.prototype.initialize = function () {// Override in your subclass to set up initial controller state\n };\n\n Controller.prototype.connect = function () {// Override in your subclass to respond when the controller is connected to the DOM\n };\n\n Controller.prototype.disconnect = function () {// Override in your subclass to respond when the controller is disconnected from the DOM\n };\n\n Controller.targets = [];\n return Controller;\n}();\n\nexport { Controller };","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function () {\n // Check if typed arrays are supported\n if (typeof ArrayBuffer != 'function') {\n return;\n } // Shortcuts\n\n\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray; // Reference original init\n\n var superInit = WordArray.init; // Augment WordArray.init to handle typed arrays\n\n var subInit = WordArray.init = function (typedArray) {\n // Convert buffers to uint8\n if (typedArray instanceof ArrayBuffer) {\n typedArray = new Uint8Array(typedArray);\n } // Convert other array views to uint8\n\n\n if (typedArray instanceof Int8Array || typeof Uint8ClampedArray !== \"undefined\" && typedArray instanceof Uint8ClampedArray || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array) {\n typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);\n } // Handle Uint8Array\n\n\n if (typedArray instanceof Uint8Array) {\n // Shortcut\n var typedArrayByteLength = typedArray.byteLength; // Extract bytes\n\n var words = [];\n\n for (var i = 0; i < typedArrayByteLength; i++) {\n words[i >>> 2] |= typedArray[i] << 24 - i % 4 * 8;\n } // Initialize this word array\n\n\n superInit.call(this, words, typedArrayByteLength);\n } else {\n // Else call normal init\n superInit.apply(this, arguments);\n }\n };\n\n subInit.prototype = WordArray;\n })();\n\n return CryptoJS.lib.WordArray;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory, undef) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"), require(\"./sha1\"), require(\"./hmac\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\", \"./sha1\", \"./hmac\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var C_algo = C.algo;\n var MD5 = C_algo.MD5;\n /**\n * This key derivation function is meant to conform with EVP_BytesToKey.\n * www.openssl.org/docs/crypto/EVP_BytesToKey.html\n */\n\n var EvpKDF = C_algo.EvpKDF = Base.extend({\n /**\n * Configuration options.\n *\n * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n * @property {Hasher} hasher The hash algorithm to use. Default: MD5\n * @property {number} iterations The number of iterations to perform. Default: 1\n */\n cfg: Base.extend({\n keySize: 128 / 32,\n hasher: MD5,\n iterations: 1\n }),\n\n /**\n * Initializes a newly created key derivation function.\n *\n * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n *\n * @example\n *\n * var kdf = CryptoJS.algo.EvpKDF.create();\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\n */\n init: function init(cfg) {\n this.cfg = this.cfg.extend(cfg);\n },\n\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n *\n * @return {WordArray} The derived key.\n *\n * @example\n *\n * var key = kdf.compute(password, salt);\n */\n compute: function compute(password, salt) {\n var block; // Shortcut\n\n var cfg = this.cfg; // Init hasher\n\n var hasher = cfg.hasher.create(); // Initial values\n\n var derivedKey = WordArray.create(); // Shortcuts\n\n var derivedKeyWords = derivedKey.words;\n var keySize = cfg.keySize;\n var iterations = cfg.iterations; // Generate key\n\n while (derivedKeyWords.length < keySize) {\n if (block) {\n hasher.update(block);\n }\n\n block = hasher.update(password).finalize(salt);\n hasher.reset(); // Iterations\n\n for (var i = 1; i < iterations; i++) {\n block = hasher.finalize(block);\n hasher.reset();\n }\n\n derivedKey.concat(block);\n }\n\n derivedKey.sigBytes = keySize * 4;\n return derivedKey;\n }\n });\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n * @param {Object} cfg (Optional) The configuration options to use for this computation.\n *\n * @return {WordArray} The derived key.\n *\n * @static\n *\n * @example\n *\n * var key = CryptoJS.EvpKDF(password, salt);\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\n */\n\n C.EvpKDF = function (password, salt, cfg) {\n return EvpKDF.create(cfg).compute(password, salt);\n };\n })();\n\n return CryptoJS.EvpKDF;\n});","'use strict';\n\nif (typeof process === 'undefined' || !process.version || process.version.indexOf('v0.') === 0 || process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = {\n nextTick: nextTick\n };\n} else {\n module.exports = process;\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n\n var len = arguments.length;\n var args, i;\n\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n\n default:\n args = new Array(len - 1);\n i = 0;\n\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}","var scope = typeof global !== \"undefined\" && global || typeof self !== \"undefined\" && self || window;\nvar apply = Function.prototype.apply; // DOM APIs, for completeness\n\nexports.setTimeout = function () {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\n\nexports.setInterval = function () {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\n\nexports.clearTimeout = exports.clearInterval = function (timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\n\nTimeout.prototype.unref = Timeout.prototype.ref = function () {};\n\nTimeout.prototype.close = function () {\n this._clearFn.call(scope, this._id);\n}; // Does not start the time, just sets up the members needed.\n\n\nexports.enroll = function (item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function (item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function (item) {\n clearTimeout(item._idleTimeoutId);\n var msecs = item._idleTimeout;\n\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout) item._onTimeout();\n }, msecs);\n }\n}; // setimmediate attaches itself to the global object\n\n\nrequire(\"setimmediate\"); // On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\n\n\nexports.setImmediate = typeof self !== \"undefined\" && self.setImmediate || typeof global !== \"undefined\" && global.setImmediate || this && this.setImmediate;\nexports.clearImmediate = typeof self !== \"undefined\" && self.clearImmediate || typeof global !== \"undefined\" && global.clearImmediate || this && this.clearImmediate;","// based on the aes implimentation in triple sec\n// https://github.com/keybase/triplesec\n// which is in turn based on the one from crypto-js\n// https://code.google.com/p/crypto-js/\nvar Buffer = require('safe-buffer').Buffer;\n\nfunction asUInt32Array(buf) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf);\n var len = buf.length / 4 | 0;\n var out = new Array(len);\n\n for (var i = 0; i < len; i++) {\n out[i] = buf.readUInt32BE(i * 4);\n }\n\n return out;\n}\n\nfunction scrubVec(v) {\n for (var i = 0; i < v.length; v++) {\n v[i] = 0;\n }\n}\n\nfunction cryptBlock(M, keySchedule, SUB_MIX, SBOX, nRounds) {\n var SUB_MIX0 = SUB_MIX[0];\n var SUB_MIX1 = SUB_MIX[1];\n var SUB_MIX2 = SUB_MIX[2];\n var SUB_MIX3 = SUB_MIX[3];\n var s0 = M[0] ^ keySchedule[0];\n var s1 = M[1] ^ keySchedule[1];\n var s2 = M[2] ^ keySchedule[2];\n var s3 = M[3] ^ keySchedule[3];\n var t0, t1, t2, t3;\n var ksRow = 4;\n\n for (var round = 1; round < nRounds; round++) {\n t0 = SUB_MIX0[s0 >>> 24] ^ SUB_MIX1[s1 >>> 16 & 0xff] ^ SUB_MIX2[s2 >>> 8 & 0xff] ^ SUB_MIX3[s3 & 0xff] ^ keySchedule[ksRow++];\n t1 = SUB_MIX0[s1 >>> 24] ^ SUB_MIX1[s2 >>> 16 & 0xff] ^ SUB_MIX2[s3 >>> 8 & 0xff] ^ SUB_MIX3[s0 & 0xff] ^ keySchedule[ksRow++];\n t2 = SUB_MIX0[s2 >>> 24] ^ SUB_MIX1[s3 >>> 16 & 0xff] ^ SUB_MIX2[s0 >>> 8 & 0xff] ^ SUB_MIX3[s1 & 0xff] ^ keySchedule[ksRow++];\n t3 = SUB_MIX0[s3 >>> 24] ^ SUB_MIX1[s0 >>> 16 & 0xff] ^ SUB_MIX2[s1 >>> 8 & 0xff] ^ SUB_MIX3[s2 & 0xff] ^ keySchedule[ksRow++];\n s0 = t0;\n s1 = t1;\n s2 = t2;\n s3 = t3;\n }\n\n t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\n t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\n t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\n t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];\n t0 = t0 >>> 0;\n t1 = t1 >>> 0;\n t2 = t2 >>> 0;\n t3 = t3 >>> 0;\n return [t0, t1, t2, t3];\n} // AES constants\n\n\nvar RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\n\nvar G = function () {\n // Compute double table\n var d = new Array(256);\n\n for (var j = 0; j < 256; j++) {\n if (j < 128) {\n d[j] = j << 1;\n } else {\n d[j] = j << 1 ^ 0x11b;\n }\n }\n\n var SBOX = [];\n var INV_SBOX = [];\n var SUB_MIX = [[], [], [], []];\n var INV_SUB_MIX = [[], [], [], []]; // Walk GF(2^8)\n\n var x = 0;\n var xi = 0;\n\n for (var i = 0; i < 256; ++i) {\n // Compute sbox\n var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;\n sx = sx >>> 8 ^ sx & 0xff ^ 0x63;\n SBOX[x] = sx;\n INV_SBOX[sx] = x; // Compute multiplication\n\n var x2 = d[x];\n var x4 = d[x2];\n var x8 = d[x4]; // Compute sub bytes, mix columns tables\n\n var t = d[sx] * 0x101 ^ sx * 0x1010100;\n SUB_MIX[0][x] = t << 24 | t >>> 8;\n SUB_MIX[1][x] = t << 16 | t >>> 16;\n SUB_MIX[2][x] = t << 8 | t >>> 24;\n SUB_MIX[3][x] = t; // Compute inv sub bytes, inv mix columns tables\n\n t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;\n INV_SUB_MIX[0][sx] = t << 24 | t >>> 8;\n INV_SUB_MIX[1][sx] = t << 16 | t >>> 16;\n INV_SUB_MIX[2][sx] = t << 8 | t >>> 24;\n INV_SUB_MIX[3][sx] = t;\n\n if (x === 0) {\n x = xi = 1;\n } else {\n x = x2 ^ d[d[d[x8 ^ x2]]];\n xi ^= d[d[xi]];\n }\n }\n\n return {\n SBOX: SBOX,\n INV_SBOX: INV_SBOX,\n SUB_MIX: SUB_MIX,\n INV_SUB_MIX: INV_SUB_MIX\n };\n}();\n\nfunction AES(key) {\n this._key = asUInt32Array(key);\n\n this._reset();\n}\n\nAES.blockSize = 4 * 4;\nAES.keySize = 256 / 8;\nAES.prototype.blockSize = AES.blockSize;\nAES.prototype.keySize = AES.keySize;\n\nAES.prototype._reset = function () {\n var keyWords = this._key;\n var keySize = keyWords.length;\n var nRounds = keySize + 6;\n var ksRows = (nRounds + 1) * 4;\n var keySchedule = [];\n\n for (var k = 0; k < keySize; k++) {\n keySchedule[k] = keyWords[k];\n }\n\n for (k = keySize; k < ksRows; k++) {\n var t = keySchedule[k - 1];\n\n if (k % keySize === 0) {\n t = t << 8 | t >>> 24;\n t = G.SBOX[t >>> 24] << 24 | G.SBOX[t >>> 16 & 0xff] << 16 | G.SBOX[t >>> 8 & 0xff] << 8 | G.SBOX[t & 0xff];\n t ^= RCON[k / keySize | 0] << 24;\n } else if (keySize > 6 && k % keySize === 4) {\n t = G.SBOX[t >>> 24] << 24 | G.SBOX[t >>> 16 & 0xff] << 16 | G.SBOX[t >>> 8 & 0xff] << 8 | G.SBOX[t & 0xff];\n }\n\n keySchedule[k] = keySchedule[k - keySize] ^ t;\n }\n\n var invKeySchedule = [];\n\n for (var ik = 0; ik < ksRows; ik++) {\n var ksR = ksRows - ik;\n var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)];\n\n if (ik < 4 || ksR <= 4) {\n invKeySchedule[ik] = tt;\n } else {\n invKeySchedule[ik] = G.INV_SUB_MIX[0][G.SBOX[tt >>> 24]] ^ G.INV_SUB_MIX[1][G.SBOX[tt >>> 16 & 0xff]] ^ G.INV_SUB_MIX[2][G.SBOX[tt >>> 8 & 0xff]] ^ G.INV_SUB_MIX[3][G.SBOX[tt & 0xff]];\n }\n }\n\n this._nRounds = nRounds;\n this._keySchedule = keySchedule;\n this._invKeySchedule = invKeySchedule;\n};\n\nAES.prototype.encryptBlockRaw = function (M) {\n M = asUInt32Array(M);\n return cryptBlock(M, this._keySchedule, G.SUB_MIX, G.SBOX, this._nRounds);\n};\n\nAES.prototype.encryptBlock = function (M) {\n var out = this.encryptBlockRaw(M);\n var buf = Buffer.allocUnsafe(16);\n buf.writeUInt32BE(out[0], 0);\n buf.writeUInt32BE(out[1], 4);\n buf.writeUInt32BE(out[2], 8);\n buf.writeUInt32BE(out[3], 12);\n return buf;\n};\n\nAES.prototype.decryptBlock = function (M) {\n M = asUInt32Array(M); // swap\n\n var m1 = M[1];\n M[1] = M[3];\n M[3] = m1;\n var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);\n var buf = Buffer.allocUnsafe(16);\n buf.writeUInt32BE(out[0], 0);\n buf.writeUInt32BE(out[3], 4);\n buf.writeUInt32BE(out[2], 8);\n buf.writeUInt32BE(out[1], 12);\n return buf;\n};\n\nAES.prototype.scrub = function () {\n scrubVec(this._keySchedule);\n scrubVec(this._invKeySchedule);\n scrubVec(this._key);\n};\n\nmodule.exports.AES = AES;","var Buffer = require('safe-buffer').Buffer;\n\nvar MD5 = require('md5.js');\n/* eslint-disable camelcase */\n\n\nfunction EVP_BytesToKey(password, salt, keyBits, ivLen) {\n if (!Buffer.isBuffer(password)) password = Buffer.from(password, 'binary');\n\n if (salt) {\n if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, 'binary');\n if (salt.length !== 8) throw new RangeError('salt should be Buffer with 8 byte length');\n }\n\n var keyLen = keyBits / 8;\n var key = Buffer.alloc(keyLen);\n var iv = Buffer.alloc(ivLen || 0);\n var tmp = Buffer.alloc(0);\n\n while (keyLen > 0 || ivLen > 0) {\n var hash = new MD5();\n hash.update(tmp);\n hash.update(password);\n if (salt) hash.update(salt);\n tmp = hash.digest();\n var used = 0;\n\n if (keyLen > 0) {\n var keyStart = key.length - keyLen;\n used = Math.min(keyLen, tmp.length);\n tmp.copy(key, keyStart, 0, used);\n keyLen -= used;\n }\n\n if (used < tmp.length && ivLen > 0) {\n var ivStart = iv.length - ivLen;\n var length = Math.min(ivLen, tmp.length - used);\n tmp.copy(iv, ivStart, used, used + length);\n ivLen -= length;\n }\n }\n\n tmp.fill(0);\n return {\n key: key,\n iv: iv\n };\n}\n\nmodule.exports = EVP_BytesToKey;","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\n\nvar getNAF = utils.getNAF;\nvar getJSF = utils.getJSF;\nvar assert = utils.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16); // Use Montgomery, when there is no fast reduction for the prime\n\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p); // Useful for many curves\n\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red); // Curve configuration, optional\n\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed); // Temporary arrays\n\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n this._bitLength = this.n ? this.n.bitLength() : 0; // Generalized Greg Maxwell's trick\n\n var adjustCount = this.n && this.p.div(this.n);\n\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\n\nmodule.exports = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert(p.precomputed);\n\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << doubles.step + 1) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3; // Translate into more windowed form\n\n var repr = [];\n var j;\n var nafW;\n\n for (j = 0; j < naf.length; j += doubles.step) {\n nafW = 0;\n\n for (var l = j + doubles.step - 1; l >= j; l--) {\n nafW = (nafW << 1) + naf[l];\n }\n\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n\n for (var i = I; i > 0; i--) {\n for (j = 0; j < repr.length; j++) {\n nafW = repr[j];\n if (nafW === i) b = b.mixedAdd(doubles.points[j]);else if (nafW === -i) b = b.mixedAdd(doubles.points[j].neg());\n }\n\n a = a.add(b);\n }\n\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4; // Precompute window\n\n var nafPoints = p._getNAFPoints(w);\n\n w = nafPoints.wnd;\n var wnd = nafPoints.points; // Get NAF form\n\n var naf = getNAF(k, w, this._bitLength); // Add `this`*(N+1) for every w-NAF index\n\n var acc = this.jpoint(null, null, null);\n\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var l = 0; i >= 0 && naf[i] === 0; i--) {\n l++;\n }\n\n if (i >= 0) l++;\n acc = acc.dblp(l);\n if (i < 0) break;\n var z = naf[i];\n assert(z !== 0);\n\n if (p.type === 'affine') {\n // J +- P\n if (z > 0) acc = acc.mixedAdd(wnd[z - 1 >> 1]);else acc = acc.mixedAdd(wnd[-z - 1 >> 1].neg());\n } else {\n // J +- J\n if (z > 0) acc = acc.add(wnd[z - 1 >> 1]);else acc = acc.add(wnd[-z - 1 >> 1].neg());\n }\n }\n\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len, jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3; // Fill all arrays\n\n var max = 0;\n var i;\n var j;\n var p;\n\n for (i = 0; i < len; i++) {\n p = points[i];\n\n var nafPoints = p._getNAFPoints(defW);\n\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n } // Comb small window NAFs\n\n\n for (i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [points[a],\n /* 1 */\n null,\n /* 3 */\n null,\n /* 5 */\n points[b]\n /* 7 */\n ]; // Try to avoid Projective points, if possible\n\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [-3,\n /* -1 -1 */\n -1,\n /* -1 0 */\n -5,\n /* -1 1 */\n -7,\n /* 0 -1 */\n 0,\n /* 0 0 */\n 7,\n /* 0 1 */\n 5,\n /* 1 -1 */\n 1,\n /* 1 0 */\n 3\n /* 1 1 */\n ];\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n\n for (j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n\n for (i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n\n for (j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0) zero = false;\n }\n\n if (!zero) break;\n k++;\n i--;\n }\n\n if (i >= 0) k++;\n acc = acc.dblp(k);\n if (i < 0) break;\n\n for (j = 0; j < len; j++) {\n var z = tmp[j];\n p;\n if (z === 0) continue;else if (z > 0) p = wnd[j][z - 1 >> 1];else if (z < 0) p = wnd[j][-z - 1 >> 1].neg();\n if (p.type === 'affine') acc = acc.mixedAdd(p);else acc = acc.add(p);\n }\n } // Zeroify references\n\n\n for (i = 0; i < len; i++) {\n wnd[i] = null;\n }\n\n if (jacobianResult) return acc;else return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\n\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq() {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils.toArray(bytes, enc);\n var len = this.p.byteLength(); // uncompressed, hybrid-odd, hybrid-even\n\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) && bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06) assert(bytes[bytes.length - 1] % 2 === 0);else if (bytes[0] === 0x07) assert(bytes[bytes.length - 1] % 2 === 1);\n var res = this.point(bytes.slice(1, 1 + len), bytes.slice(1 + len, 1 + 2 * len));\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) && bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n if (compact) return [this.getY().isEven() ? 0x02 : 0x03].concat(x);\n return [0x04].concat(x, this.getY().toArray('be', len));\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed) return this;\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed) return false;\n var doubles = this.precomputed.doubles;\n if (!doubles) return false;\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles) return this.precomputed.doubles;\n var doubles = [this];\n var acc = this;\n\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++) {\n acc = acc.dbl();\n }\n\n doubles.push(acc);\n }\n\n return {\n step: step,\n points: doubles\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf) return this.precomputed.naf;\n var res = [this];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n\n for (var i = 1; i < max; i++) {\n res[i] = res[i - 1].add(dbl);\n }\n\n return {\n wnd: wnd,\n points: res\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n\n for (var i = 0; i < k; i++) {\n r = r.dbl();\n }\n\n return r;\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar asn1 = require('./asn1');\n\nvar aesid = require('./aesid.json');\n\nvar fixProc = require('./fixProc');\n\nvar ciphers = require('browserify-aes');\n\nvar compat = require('pbkdf2');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nmodule.exports = parseKeys;\n\nfunction parseKeys(buffer) {\n var password;\n\n if (_typeof(buffer) === 'object' && !Buffer.isBuffer(buffer)) {\n password = buffer.passphrase;\n buffer = buffer.key;\n }\n\n if (typeof buffer === 'string') {\n buffer = Buffer.from(buffer);\n }\n\n var stripped = fixProc(buffer, password);\n var type = stripped.tag;\n var data = stripped.data;\n var subtype, ndata;\n\n switch (type) {\n case 'CERTIFICATE':\n ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo;\n // falls through\n\n case 'PUBLIC KEY':\n if (!ndata) {\n ndata = asn1.PublicKey.decode(data, 'der');\n }\n\n subtype = ndata.algorithm.algorithm.join('.');\n\n switch (subtype) {\n case '1.2.840.113549.1.1.1':\n return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der');\n\n case '1.2.840.10045.2.1':\n ndata.subjectPrivateKey = ndata.subjectPublicKey;\n return {\n type: 'ec',\n data: ndata\n };\n\n case '1.2.840.10040.4.1':\n ndata.algorithm.params.pub_key = asn1.DSAparam.decode(ndata.subjectPublicKey.data, 'der');\n return {\n type: 'dsa',\n data: ndata.algorithm.params\n };\n\n default:\n throw new Error('unknown key id ' + subtype);\n }\n\n // throw new Error('unknown key type ' + type)\n\n case 'ENCRYPTED PRIVATE KEY':\n data = asn1.EncryptedPrivateKey.decode(data, 'der');\n data = decrypt(data, password);\n // falls through\n\n case 'PRIVATE KEY':\n ndata = asn1.PrivateKey.decode(data, 'der');\n subtype = ndata.algorithm.algorithm.join('.');\n\n switch (subtype) {\n case '1.2.840.113549.1.1.1':\n return asn1.RSAPrivateKey.decode(ndata.subjectPrivateKey, 'der');\n\n case '1.2.840.10045.2.1':\n return {\n curve: ndata.algorithm.curve,\n privateKey: asn1.ECPrivateKey.decode(ndata.subjectPrivateKey, 'der').privateKey\n };\n\n case '1.2.840.10040.4.1':\n ndata.algorithm.params.priv_key = asn1.DSAparam.decode(ndata.subjectPrivateKey, 'der');\n return {\n type: 'dsa',\n params: ndata.algorithm.params\n };\n\n default:\n throw new Error('unknown key id ' + subtype);\n }\n\n // throw new Error('unknown key type ' + type)\n\n case 'RSA PUBLIC KEY':\n return asn1.RSAPublicKey.decode(data, 'der');\n\n case 'RSA PRIVATE KEY':\n return asn1.RSAPrivateKey.decode(data, 'der');\n\n case 'DSA PRIVATE KEY':\n return {\n type: 'dsa',\n params: asn1.DSAPrivateKey.decode(data, 'der')\n };\n\n case 'EC PRIVATE KEY':\n data = asn1.ECPrivateKey.decode(data, 'der');\n return {\n curve: data.parameters.value,\n privateKey: data.privateKey\n };\n\n default:\n throw new Error('unknown key type ' + type);\n }\n}\n\nparseKeys.signature = asn1.signature;\n\nfunction decrypt(data, password) {\n var salt = data.algorithm.decrypt.kde.kdeparams.salt;\n var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10);\n var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')];\n var iv = data.algorithm.decrypt.cipher.iv;\n var cipherText = data.subjectPrivateKey;\n var keylen = parseInt(algo.split('-')[1], 10) / 8;\n var key = compat.pbkdf2Sync(password, salt, iters, keylen, 'sha1');\n var cipher = ciphers.createDecipheriv(algo, key, iv);\n var out = [];\n out.push(cipher.update(cipherText));\n out.push(cipher.final());\n return Buffer.concat(out);\n}","var toObject = require('../internals/to-object');\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty.call(toObject(it), key);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","\n
\n \n
\n
{{errorMessage}}
\n
\n
\n
\n \n Verifying data\n
\n
\n
\n
\n\n\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * vue-resource v1.5.3\n * https://github.com/pagekit/vue-resource\n * Released under the MIT License.\n */\n\n/**\n * Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)\n */\nvar RESOLVED = 0;\nvar REJECTED = 1;\nvar PENDING = 2;\n\nfunction Promise$1(executor) {\n this.state = PENDING;\n this.value = undefined;\n this.deferred = [];\n var promise = this;\n\n try {\n executor(function (x) {\n promise.resolve(x);\n }, function (r) {\n promise.reject(r);\n });\n } catch (e) {\n promise.reject(e);\n }\n}\n\nPromise$1.reject = function (r) {\n return new Promise$1(function (resolve, reject) {\n reject(r);\n });\n};\n\nPromise$1.resolve = function (x) {\n return new Promise$1(function (resolve, reject) {\n resolve(x);\n });\n};\n\nPromise$1.all = function all(iterable) {\n return new Promise$1(function (resolve, reject) {\n var count = 0,\n result = [];\n\n if (iterable.length === 0) {\n resolve(result);\n }\n\n function resolver(i) {\n return function (x) {\n result[i] = x;\n count += 1;\n\n if (count === iterable.length) {\n resolve(result);\n }\n };\n }\n\n for (var i = 0; i < iterable.length; i += 1) {\n Promise$1.resolve(iterable[i]).then(resolver(i), reject);\n }\n });\n};\n\nPromise$1.race = function race(iterable) {\n return new Promise$1(function (resolve, reject) {\n for (var i = 0; i < iterable.length; i += 1) {\n Promise$1.resolve(iterable[i]).then(resolve, reject);\n }\n });\n};\n\nvar p = Promise$1.prototype;\n\np.resolve = function resolve(x) {\n var promise = this;\n\n if (promise.state === PENDING) {\n if (x === promise) {\n throw new TypeError('Promise settled with itself.');\n }\n\n var called = false;\n\n try {\n var then = x && x['then'];\n\n if (x !== null && _typeof(x) === 'object' && typeof then === 'function') {\n then.call(x, function (x) {\n if (!called) {\n promise.resolve(x);\n }\n\n called = true;\n }, function (r) {\n if (!called) {\n promise.reject(r);\n }\n\n called = true;\n });\n return;\n }\n } catch (e) {\n if (!called) {\n promise.reject(e);\n }\n\n return;\n }\n\n promise.state = RESOLVED;\n promise.value = x;\n promise.notify();\n }\n};\n\np.reject = function reject(reason) {\n var promise = this;\n\n if (promise.state === PENDING) {\n if (reason === promise) {\n throw new TypeError('Promise settled with itself.');\n }\n\n promise.state = REJECTED;\n promise.value = reason;\n promise.notify();\n }\n};\n\np.notify = function notify() {\n var promise = this;\n nextTick(function () {\n if (promise.state !== PENDING) {\n while (promise.deferred.length) {\n var deferred = promise.deferred.shift(),\n onResolved = deferred[0],\n onRejected = deferred[1],\n resolve = deferred[2],\n reject = deferred[3];\n\n try {\n if (promise.state === RESOLVED) {\n if (typeof onResolved === 'function') {\n resolve(onResolved.call(undefined, promise.value));\n } else {\n resolve(promise.value);\n }\n } else if (promise.state === REJECTED) {\n if (typeof onRejected === 'function') {\n resolve(onRejected.call(undefined, promise.value));\n } else {\n reject(promise.value);\n }\n }\n } catch (e) {\n reject(e);\n }\n }\n }\n });\n};\n\np.then = function then(onResolved, onRejected) {\n var promise = this;\n return new Promise$1(function (resolve, reject) {\n promise.deferred.push([onResolved, onRejected, resolve, reject]);\n promise.notify();\n });\n};\n\np[\"catch\"] = function (onRejected) {\n return this.then(undefined, onRejected);\n};\n/**\n * Promise adapter.\n */\n\n\nif (typeof Promise === 'undefined') {\n window.Promise = Promise$1;\n}\n\nfunction PromiseObj(executor, context) {\n if (executor instanceof Promise) {\n this.promise = executor;\n } else {\n this.promise = new Promise(executor.bind(context));\n }\n\n this.context = context;\n}\n\nPromiseObj.all = function (iterable, context) {\n return new PromiseObj(Promise.all(iterable), context);\n};\n\nPromiseObj.resolve = function (value, context) {\n return new PromiseObj(Promise.resolve(value), context);\n};\n\nPromiseObj.reject = function (reason, context) {\n return new PromiseObj(Promise.reject(reason), context);\n};\n\nPromiseObj.race = function (iterable, context) {\n return new PromiseObj(Promise.race(iterable), context);\n};\n\nvar p$1 = PromiseObj.prototype;\n\np$1.bind = function (context) {\n this.context = context;\n return this;\n};\n\np$1.then = function (fulfilled, rejected) {\n if (fulfilled && fulfilled.bind && this.context) {\n fulfilled = fulfilled.bind(this.context);\n }\n\n if (rejected && rejected.bind && this.context) {\n rejected = rejected.bind(this.context);\n }\n\n return new PromiseObj(this.promise.then(fulfilled, rejected), this.context);\n};\n\np$1[\"catch\"] = function (rejected) {\n if (rejected && rejected.bind && this.context) {\n rejected = rejected.bind(this.context);\n }\n\n return new PromiseObj(this.promise[\"catch\"](rejected), this.context);\n};\n\np$1[\"finally\"] = function (callback) {\n return this.then(function (value) {\n callback.call(this);\n return value;\n }, function (reason) {\n callback.call(this);\n return Promise.reject(reason);\n });\n};\n/**\n * Utility functions.\n */\n\n\nvar _ref = {},\n hasOwnProperty = _ref.hasOwnProperty,\n slice = [].slice,\n debug = false,\n ntick;\nvar inBrowser = typeof window !== 'undefined';\n\nfunction Util(_ref2) {\n var config = _ref2.config,\n nextTick = _ref2.nextTick;\n ntick = nextTick;\n debug = config.debug || !config.silent;\n}\n\nfunction warn(msg) {\n if (typeof console !== 'undefined' && debug) {\n console.warn('[VueResource warn]: ' + msg);\n }\n}\n\nfunction error(msg) {\n if (typeof console !== 'undefined') {\n console.error(msg);\n }\n}\n\nfunction nextTick(cb, ctx) {\n return ntick(cb, ctx);\n}\n\nfunction trim(str) {\n return str ? str.replace(/^\\s*|\\s*$/g, '') : '';\n}\n\nfunction trimEnd(str, chars) {\n if (str && chars === undefined) {\n return str.replace(/\\s+$/, '');\n }\n\n if (!str || !chars) {\n return str;\n }\n\n return str.replace(new RegExp(\"[\" + chars + \"]+$\"), '');\n}\n\nfunction toLower(str) {\n return str ? str.toLowerCase() : '';\n}\n\nfunction toUpper(str) {\n return str ? str.toUpperCase() : '';\n}\n\nvar isArray = Array.isArray;\n\nfunction isString(val) {\n return typeof val === 'string';\n}\n\nfunction isFunction(val) {\n return typeof val === 'function';\n}\n\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\n\nfunction isPlainObject(obj) {\n return isObject(obj) && Object.getPrototypeOf(obj) == Object.prototype;\n}\n\nfunction isBlob(obj) {\n return typeof Blob !== 'undefined' && obj instanceof Blob;\n}\n\nfunction isFormData(obj) {\n return typeof FormData !== 'undefined' && obj instanceof FormData;\n}\n\nfunction when(value, fulfilled, rejected) {\n var promise = PromiseObj.resolve(value);\n\n if (arguments.length < 2) {\n return promise;\n }\n\n return promise.then(fulfilled, rejected);\n}\n\nfunction options(fn, obj, opts) {\n opts = opts || {};\n\n if (isFunction(opts)) {\n opts = opts.call(obj);\n }\n\n return merge(fn.bind({\n $vm: obj,\n $options: opts\n }), fn, {\n $options: opts\n });\n}\n\nfunction each(obj, iterator) {\n var i, key;\n\n if (isArray(obj)) {\n for (i = 0; i < obj.length; i++) {\n iterator.call(obj[i], obj[i], i);\n }\n } else if (isObject(obj)) {\n for (key in obj) {\n if (hasOwnProperty.call(obj, key)) {\n iterator.call(obj[key], obj[key], key);\n }\n }\n }\n\n return obj;\n}\n\nvar assign = Object.assign || _assign;\n\nfunction merge(target) {\n var args = slice.call(arguments, 1);\n args.forEach(function (source) {\n _merge(target, source, true);\n });\n return target;\n}\n\nfunction defaults(target) {\n var args = slice.call(arguments, 1);\n args.forEach(function (source) {\n for (var key in source) {\n if (target[key] === undefined) {\n target[key] = source[key];\n }\n }\n });\n return target;\n}\n\nfunction _assign(target) {\n var args = slice.call(arguments, 1);\n args.forEach(function (source) {\n _merge(target, source);\n });\n return target;\n}\n\nfunction _merge(target, source, deep) {\n for (var key in source) {\n if (deep && (isPlainObject(source[key]) || isArray(source[key]))) {\n if (isPlainObject(source[key]) && !isPlainObject(target[key])) {\n target[key] = {};\n }\n\n if (isArray(source[key]) && !isArray(target[key])) {\n target[key] = [];\n }\n\n _merge(target[key], source[key], deep);\n } else if (source[key] !== undefined) {\n target[key] = source[key];\n }\n }\n}\n/**\n * Root Prefix Transform.\n */\n\n\nfunction root(options$$1, next) {\n var url = next(options$$1);\n\n if (isString(options$$1.root) && !/^(https?:)?\\//.test(url)) {\n url = trimEnd(options$$1.root, '/') + '/' + url;\n }\n\n return url;\n}\n/**\n * Query Parameter Transform.\n */\n\n\nfunction query(options$$1, next) {\n var urlParams = Object.keys(Url.options.params),\n query = {},\n url = next(options$$1);\n each(options$$1.params, function (value, key) {\n if (urlParams.indexOf(key) === -1) {\n query[key] = value;\n }\n });\n query = Url.params(query);\n\n if (query) {\n url += (url.indexOf('?') == -1 ? '?' : '&') + query;\n }\n\n return url;\n}\n/**\n * URL Template v2.0.6 (https://github.com/bramstein/url-template)\n */\n\n\nfunction expand(url, params, variables) {\n var tmpl = parse(url),\n expanded = tmpl.expand(params);\n\n if (variables) {\n variables.push.apply(variables, tmpl.vars);\n }\n\n return expanded;\n}\n\nfunction parse(template) {\n var operators = ['+', '#', '.', '/', ';', '?', '&'],\n variables = [];\n return {\n vars: variables,\n expand: function expand(context) {\n return template.replace(/\\{([^{}]+)\\}|([^{}]+)/g, function (_, expression, literal) {\n if (expression) {\n var operator = null,\n values = [];\n\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push.apply(values, getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n variables.push(tmp[1]);\n });\n\n if (operator && operator !== '+') {\n var separator = ',';\n\n if (operator === '?') {\n separator = '&';\n } else if (operator !== '#') {\n separator = operator;\n }\n\n return (values.length !== 0 ? operator : '') + values.join(separator);\n } else {\n return values.join(',');\n }\n } else {\n return encodeReserved(literal);\n }\n });\n }\n };\n}\n\nfunction getValues(context, operator, key, modifier) {\n var value = context[key],\n result = [];\n\n if (isDefined(value) && value !== '') {\n if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {\n value = value.toString();\n\n if (modifier && modifier !== '*') {\n value = value.substring(0, parseInt(modifier, 10));\n }\n\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : null));\n } else {\n if (modifier === '*') {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : null));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n } else {\n var tmp = [];\n\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeURIComponent(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n\n if (isKeyOperator(operator)) {\n result.push(encodeURIComponent(key) + '=' + tmp.join(','));\n } else if (tmp.length !== 0) {\n result.push(tmp.join(','));\n }\n }\n }\n } else {\n if (operator === ';') {\n result.push(encodeURIComponent(key));\n } else if (value === '' && (operator === '&' || operator === '?')) {\n result.push(encodeURIComponent(key) + '=');\n } else if (value === '') {\n result.push('');\n }\n }\n\n return result;\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n\nfunction isKeyOperator(operator) {\n return operator === ';' || operator === '&' || operator === '?';\n}\n\nfunction encodeValue(operator, value, key) {\n value = operator === '+' || operator === '#' ? encodeReserved(value) : encodeURIComponent(value);\n\n if (key) {\n return encodeURIComponent(key) + '=' + value;\n } else {\n return value;\n }\n}\n\nfunction encodeReserved(str) {\n return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part);\n }\n\n return part;\n }).join('');\n}\n/**\n * URL Template (RFC 6570) Transform.\n */\n\n\nfunction template(options) {\n var variables = [],\n url = expand(options.url, options.params, variables);\n variables.forEach(function (key) {\n delete options.params[key];\n });\n return url;\n}\n/**\n * Service for URL templating.\n */\n\n\nfunction Url(url, params) {\n var self = this || {},\n options$$1 = url,\n transform;\n\n if (isString(url)) {\n options$$1 = {\n url: url,\n params: params\n };\n }\n\n options$$1 = merge({}, Url.options, self.$options, options$$1);\n Url.transforms.forEach(function (handler) {\n if (isString(handler)) {\n handler = Url.transform[handler];\n }\n\n if (isFunction(handler)) {\n transform = factory(handler, transform, self.$vm);\n }\n });\n return transform(options$$1);\n}\n/**\n * Url options.\n */\n\n\nUrl.options = {\n url: '',\n root: null,\n params: {}\n};\n/**\n * Url transforms.\n */\n\nUrl.transform = {\n template: template,\n query: query,\n root: root\n};\nUrl.transforms = ['template', 'query', 'root'];\n/**\n * Encodes a Url parameter string.\n *\n * @param {Object} obj\n */\n\nUrl.params = function (obj) {\n var params = [],\n escape = encodeURIComponent;\n\n params.add = function (key, value) {\n if (isFunction(value)) {\n value = value();\n }\n\n if (value === null) {\n value = '';\n }\n\n this.push(escape(key) + '=' + escape(value));\n };\n\n serialize(params, obj);\n return params.join('&').replace(/%20/g, '+');\n};\n/**\n * Parse a URL and return its components.\n *\n * @param {String} url\n */\n\n\nUrl.parse = function (url) {\n var el = document.createElement('a');\n\n if (document.documentMode) {\n el.href = url;\n url = el.href;\n }\n\n el.href = url;\n return {\n href: el.href,\n protocol: el.protocol ? el.protocol.replace(/:$/, '') : '',\n port: el.port,\n host: el.host,\n hostname: el.hostname,\n pathname: el.pathname.charAt(0) === '/' ? el.pathname : '/' + el.pathname,\n search: el.search ? el.search.replace(/^\\?/, '') : '',\n hash: el.hash ? el.hash.replace(/^#/, '') : ''\n };\n};\n\nfunction factory(handler, next, vm) {\n return function (options$$1) {\n return handler.call(vm, options$$1, next);\n };\n}\n\nfunction serialize(params, obj, scope) {\n var array = isArray(obj),\n plain = isPlainObject(obj),\n hash;\n each(obj, function (value, key) {\n hash = isObject(value) || isArray(value);\n\n if (scope) {\n key = scope + '[' + (plain || hash ? key : '') + ']';\n }\n\n if (!scope && array) {\n params.add(value.name, value.value);\n } else if (hash) {\n serialize(params, value, key);\n } else {\n params.add(key, value);\n }\n });\n}\n/**\n * XDomain client (Internet Explorer).\n */\n\n\nfunction xdrClient(request) {\n return new PromiseObj(function (resolve) {\n var xdr = new XDomainRequest(),\n handler = function handler(_ref) {\n var type = _ref.type;\n var status = 0;\n\n if (type === 'load') {\n status = 200;\n } else if (type === 'error') {\n status = 500;\n }\n\n resolve(request.respondWith(xdr.responseText, {\n status: status\n }));\n };\n\n request.abort = function () {\n return xdr.abort();\n };\n\n xdr.open(request.method, request.getUrl());\n\n if (request.timeout) {\n xdr.timeout = request.timeout;\n }\n\n xdr.onload = handler;\n xdr.onabort = handler;\n xdr.onerror = handler;\n xdr.ontimeout = handler;\n\n xdr.onprogress = function () {};\n\n xdr.send(request.getBody());\n });\n}\n/**\n * CORS Interceptor.\n */\n\n\nvar SUPPORTS_CORS = inBrowser && 'withCredentials' in new XMLHttpRequest();\n\nfunction cors(request) {\n if (inBrowser) {\n var orgUrl = Url.parse(location.href);\n var reqUrl = Url.parse(request.getUrl());\n\n if (reqUrl.protocol !== orgUrl.protocol || reqUrl.host !== orgUrl.host) {\n request.crossOrigin = true;\n request.emulateHTTP = false;\n\n if (!SUPPORTS_CORS) {\n request.client = xdrClient;\n }\n }\n }\n}\n/**\n * Form data Interceptor.\n */\n\n\nfunction form(request) {\n if (isFormData(request.body)) {\n request.headers[\"delete\"]('Content-Type');\n } else if (isObject(request.body) && request.emulateJSON) {\n request.body = Url.params(request.body);\n request.headers.set('Content-Type', 'application/x-www-form-urlencoded');\n }\n}\n/**\n * JSON Interceptor.\n */\n\n\nfunction json(request) {\n var type = request.headers.get('Content-Type') || '';\n\n if (isObject(request.body) && type.indexOf('application/json') === 0) {\n request.body = JSON.stringify(request.body);\n }\n\n return function (response) {\n return response.bodyText ? when(response.text(), function (text) {\n var type = response.headers.get('Content-Type') || '';\n\n if (type.indexOf('application/json') === 0 || isJson(text)) {\n try {\n response.body = JSON.parse(text);\n } catch (e) {\n response.body = null;\n }\n } else {\n response.body = text;\n }\n\n return response;\n }) : response;\n };\n}\n\nfunction isJson(str) {\n var start = str.match(/^\\s*(\\[|\\{)/);\n var end = {\n '[': /]\\s*$/,\n '{': /}\\s*$/\n };\n return start && end[start[1]].test(str);\n}\n/**\n * JSONP client (Browser).\n */\n\n\nfunction jsonpClient(request) {\n return new PromiseObj(function (resolve) {\n var name = request.jsonp || 'callback',\n callback = request.jsonpCallback || '_jsonp' + Math.random().toString(36).substr(2),\n body = null,\n handler,\n script;\n\n handler = function handler(_ref) {\n var type = _ref.type;\n var status = 0;\n\n if (type === 'load' && body !== null) {\n status = 200;\n } else if (type === 'error') {\n status = 500;\n }\n\n if (status && window[callback]) {\n delete window[callback];\n document.body.removeChild(script);\n }\n\n resolve(request.respondWith(body, {\n status: status\n }));\n };\n\n window[callback] = function (result) {\n body = JSON.stringify(result);\n };\n\n request.abort = function () {\n handler({\n type: 'abort'\n });\n };\n\n request.params[name] = callback;\n\n if (request.timeout) {\n setTimeout(request.abort, request.timeout);\n }\n\n script = document.createElement('script');\n script.src = request.getUrl();\n script.type = 'text/javascript';\n script.async = true;\n script.onload = handler;\n script.onerror = handler;\n document.body.appendChild(script);\n });\n}\n/**\n * JSONP Interceptor.\n */\n\n\nfunction jsonp(request) {\n if (request.method == 'JSONP') {\n request.client = jsonpClient;\n }\n}\n/**\n * Before Interceptor.\n */\n\n\nfunction before(request) {\n if (isFunction(request.before)) {\n request.before.call(this, request);\n }\n}\n/**\n * HTTP method override Interceptor.\n */\n\n\nfunction method(request) {\n if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) {\n request.headers.set('X-HTTP-Method-Override', request.method);\n request.method = 'POST';\n }\n}\n/**\n * Header Interceptor.\n */\n\n\nfunction header(request) {\n var headers = assign({}, Http.headers.common, !request.crossOrigin ? Http.headers.custom : {}, Http.headers[toLower(request.method)]);\n each(headers, function (value, name) {\n if (!request.headers.has(name)) {\n request.headers.set(name, value);\n }\n });\n}\n/**\n * XMLHttp client (Browser).\n */\n\n\nfunction xhrClient(request) {\n return new PromiseObj(function (resolve) {\n var xhr = new XMLHttpRequest(),\n handler = function handler(event) {\n var response = request.respondWith('response' in xhr ? xhr.response : xhr.responseText, {\n status: xhr.status === 1223 ? 204 : xhr.status,\n // IE9 status bug\n statusText: xhr.status === 1223 ? 'No Content' : trim(xhr.statusText)\n });\n each(trim(xhr.getAllResponseHeaders()).split('\\n'), function (row) {\n response.headers.append(row.slice(0, row.indexOf(':')), row.slice(row.indexOf(':') + 1));\n });\n resolve(response);\n };\n\n request.abort = function () {\n return xhr.abort();\n };\n\n xhr.open(request.method, request.getUrl(), true);\n\n if (request.timeout) {\n xhr.timeout = request.timeout;\n }\n\n if (request.responseType && 'responseType' in xhr) {\n xhr.responseType = request.responseType;\n }\n\n if (request.withCredentials || request.credentials) {\n xhr.withCredentials = true;\n }\n\n if (!request.crossOrigin) {\n request.headers.set('X-Requested-With', 'XMLHttpRequest');\n } // deprecated use downloadProgress\n\n\n if (isFunction(request.progress) && request.method === 'GET') {\n xhr.addEventListener('progress', request.progress);\n }\n\n if (isFunction(request.downloadProgress)) {\n xhr.addEventListener('progress', request.downloadProgress);\n } // deprecated use uploadProgress\n\n\n if (isFunction(request.progress) && /^(POST|PUT)$/i.test(request.method)) {\n xhr.upload.addEventListener('progress', request.progress);\n }\n\n if (isFunction(request.uploadProgress) && xhr.upload) {\n xhr.upload.addEventListener('progress', request.uploadProgress);\n }\n\n request.headers.forEach(function (value, name) {\n xhr.setRequestHeader(name, value);\n });\n xhr.onload = handler;\n xhr.onabort = handler;\n xhr.onerror = handler;\n xhr.ontimeout = handler;\n xhr.send(request.getBody());\n });\n}\n/**\n * Http client (Node).\n */\n\n\nfunction nodeClient(request) {\n var client = require('got');\n\n return new PromiseObj(function (resolve) {\n var url = request.getUrl();\n var body = request.getBody();\n var method = request.method;\n var headers = {},\n handler;\n request.headers.forEach(function (value, name) {\n headers[name] = value;\n });\n client(url, {\n body: body,\n method: method,\n headers: headers\n }).then(handler = function handler(resp) {\n var response = request.respondWith(resp.body, {\n status: resp.statusCode,\n statusText: trim(resp.statusMessage)\n });\n each(resp.headers, function (value, name) {\n response.headers.set(name, value);\n });\n resolve(response);\n }, function (error$$1) {\n return handler(error$$1.response);\n });\n });\n}\n/**\n * Base client.\n */\n\n\nfunction Client(context) {\n var reqHandlers = [sendRequest],\n resHandlers = [];\n\n if (!isObject(context)) {\n context = null;\n }\n\n function Client(request) {\n while (reqHandlers.length) {\n var handler = reqHandlers.pop();\n\n if (isFunction(handler)) {\n var _ret = function () {\n var response = void 0,\n next = void 0;\n response = handler.call(context, request, function (val) {\n return next = val;\n }) || next;\n\n if (isObject(response)) {\n return {\n v: new PromiseObj(function (resolve, reject) {\n resHandlers.forEach(function (handler) {\n response = when(response, function (response) {\n return handler.call(context, response) || response;\n }, reject);\n });\n when(response, resolve, reject);\n }, context)\n };\n }\n\n if (isFunction(response)) {\n resHandlers.unshift(response);\n }\n }();\n\n if (_typeof(_ret) === \"object\") return _ret.v;\n } else {\n warn(\"Invalid interceptor of type \" + _typeof(handler) + \", must be a function\");\n }\n }\n }\n\n Client.use = function (handler) {\n reqHandlers.push(handler);\n };\n\n return Client;\n}\n\nfunction sendRequest(request) {\n var client = request.client || (inBrowser ? xhrClient : nodeClient);\n return client(request);\n}\n/**\n * HTTP Headers.\n */\n\n\nvar Headers = /*#__PURE__*/function () {\n function Headers(headers) {\n var _this = this;\n\n this.map = {};\n each(headers, function (value, name) {\n return _this.append(name, value);\n });\n }\n\n var _proto = Headers.prototype;\n\n _proto.has = function has(name) {\n return getName(this.map, name) !== null;\n };\n\n _proto.get = function get(name) {\n var list = this.map[getName(this.map, name)];\n return list ? list.join() : null;\n };\n\n _proto.getAll = function getAll(name) {\n return this.map[getName(this.map, name)] || [];\n };\n\n _proto.set = function set(name, value) {\n this.map[normalizeName(getName(this.map, name) || name)] = [trim(value)];\n };\n\n _proto.append = function append(name, value) {\n var list = this.map[getName(this.map, name)];\n\n if (list) {\n list.push(trim(value));\n } else {\n this.set(name, value);\n }\n };\n\n _proto[\"delete\"] = function _delete(name) {\n delete this.map[getName(this.map, name)];\n };\n\n _proto.deleteAll = function deleteAll() {\n this.map = {};\n };\n\n _proto.forEach = function forEach(callback, thisArg) {\n var _this2 = this;\n\n each(this.map, function (list, name) {\n each(list, function (value) {\n return callback.call(thisArg, value, name, _this2);\n });\n });\n };\n\n return Headers;\n}();\n\nfunction getName(map, name) {\n return Object.keys(map).reduce(function (prev, curr) {\n return toLower(name) === toLower(curr) ? curr : prev;\n }, null);\n}\n\nfunction normalizeName(name) {\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name');\n }\n\n return trim(name);\n}\n/**\n * HTTP Response.\n */\n\n\nvar Response = /*#__PURE__*/function () {\n function Response(body, _ref) {\n var url = _ref.url,\n headers = _ref.headers,\n status = _ref.status,\n statusText = _ref.statusText;\n this.url = url;\n this.ok = status >= 200 && status < 300;\n this.status = status || 0;\n this.statusText = statusText || '';\n this.headers = new Headers(headers);\n this.body = body;\n\n if (isString(body)) {\n this.bodyText = body;\n } else if (isBlob(body)) {\n this.bodyBlob = body;\n\n if (isBlobText(body)) {\n this.bodyText = blobText(body);\n }\n }\n }\n\n var _proto = Response.prototype;\n\n _proto.blob = function blob() {\n return when(this.bodyBlob);\n };\n\n _proto.text = function text() {\n return when(this.bodyText);\n };\n\n _proto.json = function json() {\n return when(this.text(), function (text) {\n return JSON.parse(text);\n });\n };\n\n return Response;\n}();\n\nObject.defineProperty(Response.prototype, 'data', {\n get: function get() {\n return this.body;\n },\n set: function set(body) {\n this.body = body;\n }\n});\n\nfunction blobText(body) {\n return new PromiseObj(function (resolve) {\n var reader = new FileReader();\n reader.readAsText(body);\n\n reader.onload = function () {\n resolve(reader.result);\n };\n });\n}\n\nfunction isBlobText(body) {\n return body.type.indexOf('text') === 0 || body.type.indexOf('json') !== -1;\n}\n/**\n * HTTP Request.\n */\n\n\nvar Request = /*#__PURE__*/function () {\n function Request(options$$1) {\n this.body = null;\n this.params = {};\n assign(this, options$$1, {\n method: toUpper(options$$1.method || 'GET')\n });\n\n if (!(this.headers instanceof Headers)) {\n this.headers = new Headers(this.headers);\n }\n }\n\n var _proto = Request.prototype;\n\n _proto.getUrl = function getUrl() {\n return Url(this);\n };\n\n _proto.getBody = function getBody() {\n return this.body;\n };\n\n _proto.respondWith = function respondWith(body, options$$1) {\n return new Response(body, assign(options$$1 || {}, {\n url: this.getUrl()\n }));\n };\n\n return Request;\n}();\n/**\n * Service for sending network requests.\n */\n\n\nvar COMMON_HEADERS = {\n 'Accept': 'application/json, text/plain, */*'\n};\nvar JSON_CONTENT_TYPE = {\n 'Content-Type': 'application/json;charset=utf-8'\n};\n\nfunction Http(options$$1) {\n var self = this || {},\n client = Client(self.$vm);\n defaults(options$$1 || {}, self.$options, Http.options);\n Http.interceptors.forEach(function (handler) {\n if (isString(handler)) {\n handler = Http.interceptor[handler];\n }\n\n if (isFunction(handler)) {\n client.use(handler);\n }\n });\n return client(new Request(options$$1)).then(function (response) {\n return response.ok ? response : PromiseObj.reject(response);\n }, function (response) {\n if (response instanceof Error) {\n error(response);\n }\n\n return PromiseObj.reject(response);\n });\n}\n\nHttp.options = {};\nHttp.headers = {\n put: JSON_CONTENT_TYPE,\n post: JSON_CONTENT_TYPE,\n patch: JSON_CONTENT_TYPE,\n \"delete\": JSON_CONTENT_TYPE,\n common: COMMON_HEADERS,\n custom: {}\n};\nHttp.interceptor = {\n before: before,\n method: method,\n jsonp: jsonp,\n json: json,\n form: form,\n header: header,\n cors: cors\n};\nHttp.interceptors = ['before', 'method', 'jsonp', 'json', 'form', 'header', 'cors'];\n['get', 'delete', 'head', 'jsonp'].forEach(function (method$$1) {\n Http[method$$1] = function (url, options$$1) {\n return this(assign(options$$1 || {}, {\n url: url,\n method: method$$1\n }));\n };\n});\n['post', 'put', 'patch'].forEach(function (method$$1) {\n Http[method$$1] = function (url, body, options$$1) {\n return this(assign(options$$1 || {}, {\n url: url,\n method: method$$1,\n body: body\n }));\n };\n});\n/**\n * Service for interacting with RESTful services.\n */\n\nfunction Resource(url, params, actions, options$$1) {\n var self = this || {},\n resource = {};\n actions = assign({}, Resource.actions, actions);\n each(actions, function (action, name) {\n action = merge({\n url: url,\n params: assign({}, params)\n }, options$$1, action);\n\n resource[name] = function () {\n return (self.$http || Http)(opts(action, arguments));\n };\n });\n return resource;\n}\n\nfunction opts(action, args) {\n var options$$1 = assign({}, action),\n params = {},\n body;\n\n switch (args.length) {\n case 2:\n params = args[0];\n body = args[1];\n break;\n\n case 1:\n if (/^(POST|PUT|PATCH)$/i.test(options$$1.method)) {\n body = args[0];\n } else {\n params = args[0];\n }\n\n break;\n\n case 0:\n break;\n\n default:\n throw 'Expected up to 2 arguments [params, body], got ' + args.length + ' arguments';\n }\n\n options$$1.body = body;\n options$$1.params = assign({}, options$$1.params, params);\n return options$$1;\n}\n\nResource.actions = {\n get: {\n method: 'GET'\n },\n save: {\n method: 'POST'\n },\n query: {\n method: 'GET'\n },\n update: {\n method: 'PUT'\n },\n remove: {\n method: 'DELETE'\n },\n \"delete\": {\n method: 'DELETE'\n }\n};\n/**\n * Install plugin.\n */\n\nfunction plugin(Vue) {\n if (plugin.installed) {\n return;\n }\n\n Util(Vue);\n Vue.url = Url;\n Vue.http = Http;\n Vue.resource = Resource;\n Vue.Promise = PromiseObj;\n Object.defineProperties(Vue.prototype, {\n $url: {\n get: function get() {\n return options(Vue.url, this, this.$options.url);\n }\n },\n $http: {\n get: function get() {\n return options(Vue.http, this, this.$options.http);\n }\n },\n $resource: {\n get: function get() {\n return Vue.resource.bind(this);\n }\n },\n $promise: {\n get: function get() {\n var _this = this;\n\n return function (executor) {\n return new Vue.Promise(executor, _this);\n };\n }\n }\n });\n}\n\nif (typeof window !== 'undefined' && window.Vue && !window.Vue.resource) {\n window.Vue.use(plugin);\n}\n\nexport default plugin;\nexport { Url, Http, Resource };","function _typeof2(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\n(function webpackUniversalModuleDefinition(root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof2(exports)) === 'object' && (typeof module === \"undefined\" ? \"undefined\" : _typeof2(module)) === 'object') module.exports = factory();else if (typeof define === 'function' && define.amd) define([], factory);else {\n var a = factory();\n\n for (var i in a) {\n ((typeof exports === \"undefined\" ? \"undefined\" : _typeof2(exports)) === 'object' ? exports : root)[i] = a[i];\n }\n }\n})(typeof self !== 'undefined' ? self : this, function () {\n return (\n /******/\n function (modules) {\n // webpackBootstrap\n\n /******/\n // The module cache\n\n /******/\n var installedModules = {};\n /******/\n\n /******/\n // The require function\n\n /******/\n\n function __webpack_require__(moduleId) {\n /******/\n\n /******/\n // Check if module is in cache\n\n /******/\n if (installedModules[moduleId]) {\n /******/\n return installedModules[moduleId].exports;\n /******/\n }\n /******/\n // Create a new module (and put it into the cache)\n\n /******/\n\n\n var module = installedModules[moduleId] = {\n /******/\n i: moduleId,\n\n /******/\n l: false,\n\n /******/\n exports: {}\n /******/\n\n };\n /******/\n\n /******/\n // Execute the module function\n\n /******/\n\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n\n /******/\n // Flag the module as loaded\n\n /******/\n\n module.l = true;\n /******/\n\n /******/\n // Return the exports of the module\n\n /******/\n\n return module.exports;\n /******/\n }\n /******/\n\n /******/\n\n /******/\n // expose the modules object (__webpack_modules__)\n\n /******/\n\n\n __webpack_require__.m = modules;\n /******/\n\n /******/\n // expose the module cache\n\n /******/\n\n __webpack_require__.c = installedModules;\n /******/\n\n /******/\n // define getter function for harmony exports\n\n /******/\n\n __webpack_require__.d = function (exports, name, getter) {\n /******/\n if (!__webpack_require__.o(exports, name)) {\n /******/\n Object.defineProperty(exports, name, {\n enumerable: true,\n get: getter\n });\n /******/\n }\n /******/\n\n };\n /******/\n\n /******/\n // define __esModule on exports\n\n /******/\n\n\n __webpack_require__.r = function (exports) {\n /******/\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/\n Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n\n /******/\n // create a fake namespace object\n\n /******/\n // mode & 1: value is a module id, require it\n\n /******/\n // mode & 2: merge all properties of value into the ns\n\n /******/\n // mode & 4: return value when already ns object\n\n /******/\n // mode & 8|1: behave like require\n\n /******/\n\n\n __webpack_require__.t = function (value, mode) {\n /******/\n if (mode & 1) value = __webpack_require__(value);\n /******/\n\n if (mode & 8) return value;\n /******/\n\n if (mode & 4 && _typeof2(value) === 'object' && value && value.__esModule) return value;\n /******/\n\n var ns = Object.create(null);\n /******/\n\n __webpack_require__.r(ns);\n /******/\n\n\n Object.defineProperty(ns, 'default', {\n enumerable: true,\n value: value\n });\n /******/\n\n if (mode & 2 && typeof value != 'string') for (var key in value) {\n __webpack_require__.d(ns, key, function (key) {\n return value[key];\n }.bind(null, key));\n }\n /******/\n\n return ns;\n /******/\n };\n /******/\n\n /******/\n // getDefaultExport function for compatibility with non-harmony modules\n\n /******/\n\n\n __webpack_require__.n = function (module) {\n /******/\n var getter = module && module.__esModule ?\n /******/\n function getDefault() {\n return module['default'];\n } :\n /******/\n function getModuleExports() {\n return module;\n };\n /******/\n\n __webpack_require__.d(getter, 'a', getter);\n /******/\n\n\n return getter;\n /******/\n };\n /******/\n\n /******/\n // Object.prototype.hasOwnProperty.call\n\n /******/\n\n\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n\n /******/\n // __webpack_public_path__\n\n /******/\n\n\n __webpack_require__.p = \"\";\n /******/\n\n /******/\n\n /******/\n // Load entry module and return exports\n\n /******/\n\n return __webpack_require__(__webpack_require__.s = 0);\n /******/\n }\n /************************************************************************/\n\n /******/\n ([\n /* 0 */\n\n /***/\n function (module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n\n __webpack_require__.r(__webpack_exports__);\n\n var string_namespaceObject = {};\n\n __webpack_require__.r(string_namespaceObject);\n\n __webpack_require__.d(string_namespaceObject, \"capitalize\", function () {\n return string_capitalize;\n });\n\n __webpack_require__.d(string_namespaceObject, \"uppercase\", function () {\n return string_uppercase;\n });\n\n __webpack_require__.d(string_namespaceObject, \"lowercase\", function () {\n return string_lowercase;\n });\n\n __webpack_require__.d(string_namespaceObject, \"placeholder\", function () {\n return string_placeholder;\n });\n\n __webpack_require__.d(string_namespaceObject, \"truncate\", function () {\n return string_truncate;\n });\n\n var other_namespaceObject = {};\n\n __webpack_require__.r(other_namespaceObject);\n\n __webpack_require__.d(other_namespaceObject, \"currency\", function () {\n return other_currency;\n });\n\n __webpack_require__.d(other_namespaceObject, \"bytes\", function () {\n return other_bytes;\n });\n\n __webpack_require__.d(other_namespaceObject, \"pluralize\", function () {\n return other_pluralize;\n });\n\n __webpack_require__.d(other_namespaceObject, \"ordinal\", function () {\n return other_ordinal;\n });\n\n __webpack_require__.d(other_namespaceObject, \"number\", function () {\n return other_number;\n }); // CONCATENATED MODULE: ./src/util/index.js\n\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n }\n\n function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n }\n\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n }\n\n function _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n }\n\n var ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n var slice = ArrayProto.slice,\n util_toString = ObjProto.toString;\n var util = {};\n\n util.isArray = function (obj) {\n return Array.isArray(obj);\n };\n\n var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n\n util.isArrayLike = function (obj) {\n if (_typeof(obj) !== 'object' || !obj) {\n return false;\n }\n\n var length = obj.length;\n return typeof length === 'number' && length % 1 === 0 && length >= 0 && length <= MAX_ARRAY_INDEX;\n };\n\n util.isObject = function (obj) {\n var type = _typeof(obj);\n\n return type === 'function' || type === 'object' && !!obj;\n };\n\n util.each = function (obj, callback) {\n var i, len;\n\n if (util.isArray(obj)) {\n for (i = 0, len = obj.length; i < len; i++) {\n if (callback(obj[i], i, obj) === false) {\n break;\n }\n }\n } else {\n for (i in obj) {\n if (callback(obj[i], i, obj) === false) {\n break;\n }\n }\n }\n\n return obj;\n };\n\n util.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function (name) {\n util['is' + name] = function (obj) {\n return util_toString.call(obj) === '[object ' + name + ']';\n };\n });\n\n util.toArray = function (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n\n while (i--) {\n ret[i] = list[i + start];\n }\n\n return ret;\n };\n\n util.toNumber = function (value) {\n if (typeof value !== 'string') {\n return value;\n } else {\n var parsed = Number(value);\n return isNaN(parsed) ? value : parsed;\n }\n };\n\n util.convertRangeToArray = function (range) {\n return _toConsumableArray(Array(range + 1).keys()).slice(1);\n };\n\n util.convertArray = function (value) {\n if (util.isArray(value)) {\n return value;\n } else if (util.isPlainObject(value)) {\n // convert plain object to array.\n var keys = Object.keys(value);\n var i = keys.length;\n var res = new Array(i);\n var key;\n\n while (i--) {\n key = keys[i];\n res[i] = {\n $key: key,\n $value: value[key]\n };\n }\n\n return res;\n } else {\n return value || [];\n }\n };\n\n function multiIndex(obj, is) {\n // obj,['1','2','3'] -> ((obj['1'])['2'])['3']\n return is.length ? multiIndex(obj[is[0]], is.slice(1)) : obj;\n }\n\n util.getPath = function (obj, is) {\n // obj,'1.2.3' -> multiIndex(obj,['1','2','3'])\n return multiIndex(obj, is.split('.'));\n };\n /**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n *\n * @param {*} obj\n * @return {Boolean}\n */\n\n\n var util_toString = Object.prototype.toString;\n var OBJECT_STRING = '[object Object]';\n\n util.isPlainObject = function (obj) {\n return util_toString.call(obj) === OBJECT_STRING;\n };\n\n util.exist = function (value) {\n return value !== null && typeof value !== 'undefined';\n };\n /* harmony default export */\n\n\n var src_util = util; // CONCATENATED MODULE: ./src/string/capitalize.js\n\n /**\n * Converts a string into Capitalize\n * \n * 'abc' => 'Abc'\n * \n * @param {Object} options\n */\n\n function capitalize(value, options) {\n var globalOptions = this && this.capitalize ? this.capitalize : {};\n options = options || globalOptions;\n var onlyFirstLetter = options.onlyFirstLetter != null ? options.onlyFirstLetter : false;\n if (!value && value !== 0) return '';\n\n if (onlyFirstLetter === true) {\n return value.toString().charAt(0).toUpperCase() + value.toString().slice(1);\n } else {\n value = value.toString().toLowerCase().split(' ');\n return value.map(function (item) {\n return item.charAt(0).toUpperCase() + item.slice(1);\n }).join(' ');\n }\n }\n /* harmony default export */\n\n\n var string_capitalize = capitalize; // CONCATENATED MODULE: ./src/string/uppercase.js\n\n /**\n * Converts a string to UPPERCASE\n * \n * 'abc' => 'ABC'\n */\n\n function uppercase(value) {\n return value || value === 0 ? value.toString().toUpperCase() : '';\n }\n /* harmony default export */\n\n\n var string_uppercase = uppercase; // CONCATENATED MODULE: ./src/string/lowercase.js\n\n /**\n * Converts a string to lowercase\n * \n * 'AbC' => 'abc'\n */\n\n function lowercase(value) {\n return value || value === 0 ? value.toString().toLowerCase() : '';\n }\n /* harmony default export */\n\n\n var string_lowercase = lowercase; // CONCATENATED MODULE: ./src/string/placeholder.js\n\n /**\n * If the value is missing outputs the placeholder text\n * \n * '' => {placeholder}\n * 'foo' => 'foo'\n */\n\n function placeholder(input, property) {\n return input === undefined || input === '' || input === null ? property : input;\n }\n /* harmony default export */\n\n\n var string_placeholder = placeholder; // CONCATENATED MODULE: ./src/string/truncate.js\n\n /**\n * Truncate at the given || default length\n *\n * 'lorem ipsum dolor' => 'lorem ipsum dol...'\n */\n\n function truncate(value, length) {\n length = length || 15;\n if (!value || typeof value !== 'string') return '';\n if (value.length <= length) return value;\n return value.substring(0, length) + '...';\n }\n /* harmony default export */\n\n\n var string_truncate = truncate; // CONCATENATED MODULE: ./src/string/index.js\n // CONCATENATED MODULE: ./src/array/limitBy.js\n\n /**\n * Limit filter for arrays\n *\n * @param {Number|Array} arr (If Number, decimal expected)\n * @param {Number} n\n * @param {Number} offset (Decimal expected)\n */\n\n function limitBy(arr, n, offset) {\n arr = src_util.isArray(arr) ? arr : src_util.convertRangeToArray(arr);\n offset = offset ? parseInt(offset, 10) : 0;\n n = src_util.toNumber(n);\n return typeof n === 'number' ? arr.slice(offset, offset + n) : arr;\n }\n /* harmony default export */\n\n\n var array_limitBy = limitBy; // CONCATENATED MODULE: ./src/array/filterBy.js\n\n /**\n * Filter filter for arrays\n *\n * @param {Array} arr\n * @param {String} prop\n * @param {String|Number} search\n */\n\n function filterBy(arr, search) {\n var arr = src_util.convertArray(arr);\n\n if (search == null) {\n return arr;\n }\n\n if (typeof search === 'function') {\n return arr.filter(search);\n } // cast to lowercase string\n\n\n search = ('' + search).toLowerCase();\n var n = 2; // extract and flatten keys\n\n var keys = Array.prototype.concat.apply([], src_util.toArray(arguments, n));\n var res = [];\n var item, key, val, j;\n\n for (var i = 0, l = arr.length; i < l; i++) {\n item = arr[i];\n val = item && item.$value || item;\n j = keys.length;\n\n if (j) {\n while (j--) {\n key = keys[j];\n\n if (key === '$key' && contains(item.$key, search) || contains(src_util.getPath(val, key), search)) {\n res.push(item);\n break;\n }\n }\n } else if (contains(item, search)) {\n res.push(item);\n }\n }\n\n return res;\n }\n\n function contains(val, search) {\n var i;\n\n if (src_util.isPlainObject(val)) {\n var keys = Object.keys(val);\n i = keys.length;\n\n while (i--) {\n if (contains(val[keys[i]], search)) {\n return true;\n }\n }\n } else if (src_util.isArray(val)) {\n i = val.length;\n\n while (i--) {\n if (contains(val[i], search)) {\n return true;\n }\n }\n } else if (val != null) {\n return val.toString().toLowerCase().indexOf(search) > -1;\n }\n }\n /* harmony default export */\n\n\n var array_filterBy = filterBy; // CONCATENATED MODULE: ./src/array/orderBy.js\n\n /**\n * Filter filter for arrays\n *\n * @param {String|Array
|Function} ...sortKeys\n * @param {Number} [order]\n */\n\n function orderBy(arr) {\n var _comparator = null;\n var sortKeys;\n arr = src_util.convertArray(arr); // determine order (last argument)\n\n var args = src_util.toArray(arguments, 1);\n var order = args[args.length - 1];\n\n if (typeof order === 'number') {\n order = order < 0 ? -1 : 1;\n args = args.length > 1 ? args.slice(0, -1) : args;\n } else {\n order = 1;\n } // determine sortKeys & comparator\n\n\n var firstArg = args[0];\n\n if (!firstArg) {\n return arr;\n } else if (typeof firstArg === 'function') {\n // custom comparator\n _comparator = function comparator(a, b) {\n return firstArg(a, b) * order;\n };\n } else {\n // string keys. flatten first\n sortKeys = Array.prototype.concat.apply([], args);\n\n _comparator = function comparator(a, b, i) {\n i = i || 0;\n return i >= sortKeys.length - 1 ? baseCompare(a, b, i) : baseCompare(a, b, i) || _comparator(a, b, i + 1);\n };\n }\n\n function baseCompare(a, b, sortKeyIndex) {\n var sortKey = sortKeys[sortKeyIndex];\n\n if (sortKey) {\n if (sortKey !== '$key') {\n if (src_util.isObject(a) && '$value' in a) a = a.$value;\n if (src_util.isObject(b) && '$value' in b) b = b.$value;\n }\n\n a = src_util.isObject(a) ? src_util.getPath(a, sortKey) : a;\n b = src_util.isObject(b) ? src_util.getPath(b, sortKey) : b;\n a = typeof a === 'string' ? a.toLowerCase() : a;\n b = typeof b === 'string' ? b.toLowerCase() : b;\n }\n\n return a === b ? 0 : a > b ? order : -order;\n } // sort on a copy to avoid mutating original array\n\n\n return arr.slice().sort(_comparator);\n }\n /* harmony default export */\n\n\n var array_orderBy = orderBy; // CONCATENATED MODULE: ./src/array/find.js\n\n /**\n * Get first matching element from a filtered array\n *\n * @param {Array} arr\n * @param {String|Number} search\n * @returns {mixed}\n */\n\n function find(arr, search) {\n var array = array_filterBy.apply(this, arguments);\n array.splice(1);\n return array;\n }\n /* harmony default export */\n\n\n var array_find = find; // CONCATENATED MODULE: ./src/array/index.js\n // CONCATENATED MODULE: ./src/other/currency.js\n\n /**\n * \n * 12345 => $12,345.00\n *\n * @param {String} symbol\n * @param {Number} decimals Decimal places\n * @param {Object} options\n */\n\n function currency(value, symbol, decimals, options) {\n var globalOptions = this && this.currency ? this.currency : {};\n symbol = src_util.exist(symbol) ? symbol : globalOptions.symbol;\n decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;\n options = options || globalOptions;\n var thousandsSeparator, symbolOnLeft, spaceBetweenAmountAndSymbol, showPlusSign;\n var digitsRE = /(\\d{3})(?=\\d)/g;\n value = parseFloat(value);\n if (!isFinite(value) || !value && value !== 0) return '';\n symbol = typeof symbol !== 'undefined' ? symbol : '$';\n decimals = typeof decimals !== 'undefined' ? decimals : 2;\n thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';\n symbolOnLeft = options.symbolOnLeft != null ? options.symbolOnLeft : true;\n spaceBetweenAmountAndSymbol = options.spaceBetweenAmountAndSymbol != null ? options.spaceBetweenAmountAndSymbol : false;\n showPlusSign = options.showPlusSign != null ? options.showPlusSign : false;\n var number = Math.abs(value);\n var stringified = toFixed(number, decimals);\n stringified = options.decimalSeparator ? stringified.replace('.', options.decimalSeparator) : stringified;\n\n var _int = decimals ? stringified.slice(0, -1 - decimals) : stringified;\n\n var i = _int.length % 3;\n var head = i > 0 ? _int.slice(0, i) + (_int.length > 3 ? thousandsSeparator : '') : '';\n\n var _float = decimals ? stringified.slice(-1 - decimals) : '';\n\n symbol = spaceBetweenAmountAndSymbol ? symbolOnLeft ? symbol + ' ' : ' ' + symbol : symbol;\n symbol = symbolOnLeft ? symbol + head + _int.slice(i).replace(digitsRE, '$1' + thousandsSeparator) + _float : head + _int.slice(i).replace(digitsRE, '$1' + thousandsSeparator) + _float + symbol;\n var sign = value < 0 ? '-' : '';\n var plusSign = value > 0 && showPlusSign ? '+' : '';\n return plusSign + sign + symbol;\n }\n\n function toFixed(num, precision) {\n return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);\n }\n /* harmony default export */\n\n\n var other_currency = currency; // CONCATENATED MODULE: ./src/other/bytes.js\n\n /**\n * 8 => '8 byte'\n * 1024 => '1.00 kb'\n * 2000000 => '1.90 MB'\n * 2000000000 => '1.86 GB'\n * 2000000000000 => '1.82 TB'\n *\n * @param {Number} value\n * @param {Number} decimals Decimal places (default: 2)\n */\n\n function bytes(value, decimals) {\n var globalOptions = this && this.bytes ? this.bytes : {};\n decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;\n decimals = typeof decimals !== 'undefined' ? decimals : 2;\n value = value === null || isNaN(value) ? 0 : value;\n\n if (value >= Math.pow(1024, 4)) {\n // TB\n return \"\".concat((value / Math.pow(1024, 4)).toFixed(decimals), \" TB\");\n } else if (value >= Math.pow(1024, 3)) {\n // GB\n return \"\".concat((value / Math.pow(1024, 3)).toFixed(decimals), \" GB\");\n } else if (value >= Math.pow(1024, 2)) {\n // MB\n return \"\".concat((value / Math.pow(1024, 2)).toFixed(decimals), \" MB\");\n } else if (value >= 1024) {\n // kb\n return \"\".concat((value / 1024).toFixed(decimals), \" kb\");\n } // byte\n\n\n return \"\".concat(value, \" byte\");\n }\n /* harmony default export */\n\n\n var other_bytes = bytes; // CONCATENATED MODULE: ./src/other/pluralize.js\n\n /**\n * 'item' => 'items'\n *\n * @param {String|Array} word\n * @param {Object} options\n *\n */\n\n function pluralize(value, word, options) {\n var globalOptions = this && this.pluralize ? this.pluralize : {};\n options = options || globalOptions;\n var output = '';\n var includeNumber = options.includeNumber != null ? options.includeNumber : false;\n if (includeNumber === true) output += value + ' ';\n if (!value && value !== 0 || !word) return output;\n\n if (Array.isArray(word)) {\n output += word[value - 1] || word[word.length - 1];\n } else {\n output += word + (value === 1 ? '' : 's');\n }\n\n return output;\n }\n /* harmony default export */\n\n\n var other_pluralize = pluralize; // CONCATENATED MODULE: ./src/other/ordinal.js\n\n /**\n * 42 => 'nd'\n *\n * @params {Object} options\n * \n */\n\n function ordinal(value, options) {\n var globalOptions = this && this.ordinal ? this.ordinal : {};\n options = options || globalOptions;\n var output = '';\n var includeNumber = options.includeNumber != null ? options.includeNumber : false;\n if (includeNumber === true) output += value;\n var j = value % 10,\n k = value % 100;\n if (j == 1 && k != 11) output += 'st';else if (j == 2 && k != 12) output += 'nd';else if (j == 3 && k != 13) output += 'rd';else output += 'th';\n return output;\n }\n /* harmony default export */\n\n\n var other_ordinal = ordinal; // CONCATENATED MODULE: ./src/other/number.js\n\n /**\n * 123456 => '123,456'\n *\n * @params {Object} options\n * \n */\n\n function number_number(value, format, options) {\n var globalOptions = this && this.number ? this.number : {};\n format = src_util.exist(format) ? format : globalOptions.format;\n options = options || globalOptions;\n var config = parseFormat(format);\n var number = parseNumber(value);\n var thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';\n var decimalSeparator = options.decimalSeparator != null ? options.decimalSeparator : '.';\n config.sign = config.sign || number.sign;\n\n if (config.unit) {\n var numberWithUnit = addUnit(number.float, config);\n return config.sign + numberWithUnit;\n }\n\n var int = config.decimals === 0 ? number_toFixed(number.float, 0) : number.int;\n\n switch (config.base) {\n case '':\n int = '';\n break;\n\n case '0,0':\n int = addSeparator(int, thousandsSeparator);\n break;\n }\n\n var fraction = getFraction(number.float, config.decimals, decimalSeparator);\n return config.sign + int + fraction;\n }\n\n Math.sign = function (x) {\n x = +x;\n\n if (x === 0 || isNaN(x)) {\n return x;\n }\n\n return x > 0 ? 1 : -1;\n };\n\n function parseNumber(num) {\n return {\n float: Math.abs(parseFloat(num)),\n int: Math.abs(parseInt(num)),\n sign: Math.sign(num) < 0 ? '-' : ''\n };\n }\n\n function parseFormat() {\n var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '0';\n var regex = /([\\+\\-])?([0-9\\,]+)?([\\.0-9]+)?([a\\s]+)?/;\n var matches = string ? string.match(regex) : ['', '', '', '', ''];\n var float = matches[3];\n var decimals = float ? float.match(/0/g).length : 0;\n return {\n sign: matches[1] || '',\n base: matches[2] || '',\n decimals: decimals,\n unit: matches[4] || ''\n };\n }\n\n function addUnit(num, config) {\n var rx = /\\.0+$|(\\.[0-9]*[1-9])0+$/;\n var si = [{\n value: 1,\n symbol: \"\"\n }, {\n value: 1E3,\n symbol: \"K\"\n }, {\n value: 1E6,\n symbol: \"M\"\n }];\n var i;\n\n for (i = si.length - 1; i > 0; i--) {\n if (num >= si[i].value) {\n break;\n }\n }\n\n num = (num / si[i].value).toFixed(config.decimals).replace(rx, \"$1\");\n return num + config.unit.replace('a', si[i].symbol);\n }\n\n function addSeparator(num, separator) {\n var regex = /(\\d+)(\\d{3})/;\n var string = num.toString();\n var x = string.split('.');\n var x1 = x[0];\n var x2 = x.length > 1 ? '.' + x[1] : '';\n\n while (regex.test(x1)) {\n x1 = x1.replace(regex, '$1' + separator + '$2');\n }\n\n return x1 + x2;\n }\n\n function getFraction(num, decimals, separator) {\n var fraction = number_toFixed(num, decimals).toString().split('.')[1];\n return fraction ? separator + fraction : '';\n }\n\n function number_toFixed(num, precision) {\n return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);\n }\n /* harmony default export */\n\n\n var other_number = number_number; // CONCATENATED MODULE: ./src/other/index.js\n // CONCATENATED MODULE: ./src/index.js\n\n var Vue2Filters = {\n install: function install(Vue, options) {\n src_util.each(string_namespaceObject, function (value, key) {\n Vue.filter(key, value.bind(options));\n });\n src_util.each(other_namespaceObject, function (value, key) {\n Vue.filter(key, value.bind(options));\n });\n },\n mixin: {\n methods: {\n limitBy: array_limitBy,\n filterBy: array_filterBy,\n orderBy: array_orderBy,\n find: array_find\n }\n }\n };\n /* harmony default export */\n\n var src = __webpack_exports__[\"default\"] = Vue2Filters;\n\n if (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(Vue2Filters);\n window.Vue2Filters = Vue2Filters;\n }\n /***/\n\n }\n /******/\n ])\n );\n});","'use strict';\n\nvar inherits = require('inherits');\n\nvar HashBase = require('hash-base');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar ARRAY16 = new Array(16);\n\nfunction MD5() {\n HashBase.call(this, 64); // state\n\n this._a = 0x67452301;\n this._b = 0xefcdab89;\n this._c = 0x98badcfe;\n this._d = 0x10325476;\n}\n\ninherits(MD5, HashBase);\n\nMD5.prototype._update = function () {\n var M = ARRAY16;\n\n for (var i = 0; i < 16; ++i) {\n M[i] = this._block.readInt32LE(i * 4);\n }\n\n var a = this._a;\n var b = this._b;\n var c = this._c;\n var d = this._d;\n a = fnF(a, b, c, d, M[0], 0xd76aa478, 7);\n d = fnF(d, a, b, c, M[1], 0xe8c7b756, 12);\n c = fnF(c, d, a, b, M[2], 0x242070db, 17);\n b = fnF(b, c, d, a, M[3], 0xc1bdceee, 22);\n a = fnF(a, b, c, d, M[4], 0xf57c0faf, 7);\n d = fnF(d, a, b, c, M[5], 0x4787c62a, 12);\n c = fnF(c, d, a, b, M[6], 0xa8304613, 17);\n b = fnF(b, c, d, a, M[7], 0xfd469501, 22);\n a = fnF(a, b, c, d, M[8], 0x698098d8, 7);\n d = fnF(d, a, b, c, M[9], 0x8b44f7af, 12);\n c = fnF(c, d, a, b, M[10], 0xffff5bb1, 17);\n b = fnF(b, c, d, a, M[11], 0x895cd7be, 22);\n a = fnF(a, b, c, d, M[12], 0x6b901122, 7);\n d = fnF(d, a, b, c, M[13], 0xfd987193, 12);\n c = fnF(c, d, a, b, M[14], 0xa679438e, 17);\n b = fnF(b, c, d, a, M[15], 0x49b40821, 22);\n a = fnG(a, b, c, d, M[1], 0xf61e2562, 5);\n d = fnG(d, a, b, c, M[6], 0xc040b340, 9);\n c = fnG(c, d, a, b, M[11], 0x265e5a51, 14);\n b = fnG(b, c, d, a, M[0], 0xe9b6c7aa, 20);\n a = fnG(a, b, c, d, M[5], 0xd62f105d, 5);\n d = fnG(d, a, b, c, M[10], 0x02441453, 9);\n c = fnG(c, d, a, b, M[15], 0xd8a1e681, 14);\n b = fnG(b, c, d, a, M[4], 0xe7d3fbc8, 20);\n a = fnG(a, b, c, d, M[9], 0x21e1cde6, 5);\n d = fnG(d, a, b, c, M[14], 0xc33707d6, 9);\n c = fnG(c, d, a, b, M[3], 0xf4d50d87, 14);\n b = fnG(b, c, d, a, M[8], 0x455a14ed, 20);\n a = fnG(a, b, c, d, M[13], 0xa9e3e905, 5);\n d = fnG(d, a, b, c, M[2], 0xfcefa3f8, 9);\n c = fnG(c, d, a, b, M[7], 0x676f02d9, 14);\n b = fnG(b, c, d, a, M[12], 0x8d2a4c8a, 20);\n a = fnH(a, b, c, d, M[5], 0xfffa3942, 4);\n d = fnH(d, a, b, c, M[8], 0x8771f681, 11);\n c = fnH(c, d, a, b, M[11], 0x6d9d6122, 16);\n b = fnH(b, c, d, a, M[14], 0xfde5380c, 23);\n a = fnH(a, b, c, d, M[1], 0xa4beea44, 4);\n d = fnH(d, a, b, c, M[4], 0x4bdecfa9, 11);\n c = fnH(c, d, a, b, M[7], 0xf6bb4b60, 16);\n b = fnH(b, c, d, a, M[10], 0xbebfbc70, 23);\n a = fnH(a, b, c, d, M[13], 0x289b7ec6, 4);\n d = fnH(d, a, b, c, M[0], 0xeaa127fa, 11);\n c = fnH(c, d, a, b, M[3], 0xd4ef3085, 16);\n b = fnH(b, c, d, a, M[6], 0x04881d05, 23);\n a = fnH(a, b, c, d, M[9], 0xd9d4d039, 4);\n d = fnH(d, a, b, c, M[12], 0xe6db99e5, 11);\n c = fnH(c, d, a, b, M[15], 0x1fa27cf8, 16);\n b = fnH(b, c, d, a, M[2], 0xc4ac5665, 23);\n a = fnI(a, b, c, d, M[0], 0xf4292244, 6);\n d = fnI(d, a, b, c, M[7], 0x432aff97, 10);\n c = fnI(c, d, a, b, M[14], 0xab9423a7, 15);\n b = fnI(b, c, d, a, M[5], 0xfc93a039, 21);\n a = fnI(a, b, c, d, M[12], 0x655b59c3, 6);\n d = fnI(d, a, b, c, M[3], 0x8f0ccc92, 10);\n c = fnI(c, d, a, b, M[10], 0xffeff47d, 15);\n b = fnI(b, c, d, a, M[1], 0x85845dd1, 21);\n a = fnI(a, b, c, d, M[8], 0x6fa87e4f, 6);\n d = fnI(d, a, b, c, M[15], 0xfe2ce6e0, 10);\n c = fnI(c, d, a, b, M[6], 0xa3014314, 15);\n b = fnI(b, c, d, a, M[13], 0x4e0811a1, 21);\n a = fnI(a, b, c, d, M[4], 0xf7537e82, 6);\n d = fnI(d, a, b, c, M[11], 0xbd3af235, 10);\n c = fnI(c, d, a, b, M[2], 0x2ad7d2bb, 15);\n b = fnI(b, c, d, a, M[9], 0xeb86d391, 21);\n this._a = this._a + a | 0;\n this._b = this._b + b | 0;\n this._c = this._c + c | 0;\n this._d = this._d + d | 0;\n};\n\nMD5.prototype._digest = function () {\n // create padding and handle blocks\n this._block[this._blockOffset++] = 0x80;\n\n if (this._blockOffset > 56) {\n this._block.fill(0, this._blockOffset, 64);\n\n this._update();\n\n this._blockOffset = 0;\n }\n\n this._block.fill(0, this._blockOffset, 56);\n\n this._block.writeUInt32LE(this._length[0], 56);\n\n this._block.writeUInt32LE(this._length[1], 60);\n\n this._update(); // produce result\n\n\n var buffer = Buffer.allocUnsafe(16);\n buffer.writeInt32LE(this._a, 0);\n buffer.writeInt32LE(this._b, 4);\n buffer.writeInt32LE(this._c, 8);\n buffer.writeInt32LE(this._d, 12);\n return buffer;\n};\n\nfunction rotl(x, n) {\n return x << n | x >>> 32 - n;\n}\n\nfunction fnF(a, b, c, d, m, k, s) {\n return rotl(a + (b & c | ~b & d) + m + k | 0, s) + b | 0;\n}\n\nfunction fnG(a, b, c, d, m, k, s) {\n return rotl(a + (b & d | c & ~d) + m + k | 0, s) + b | 0;\n}\n\nfunction fnH(a, b, c, d, m, k, s) {\n return rotl(a + (b ^ c ^ d) + m + k | 0, s) + b | 0;\n}\n\nfunction fnI(a, b, c, d, m, k, s) {\n return rotl(a + (c ^ (b | ~d)) + m + k | 0, s) + b | 0;\n}\n\nmodule.exports = MD5;","/**\n * Module exports.\n */\nmodule.exports = deprecate;\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate(fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n\n warned = true;\n }\n\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\n\nfunction config(name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;","'use strict';\n\nvar Buffer = require('buffer').Buffer;\n\nvar inherits = require('inherits');\n\nvar HashBase = require('hash-base');\n\nvar ARRAY16 = new Array(16);\nvar zl = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13];\nvar zr = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11];\nvar sl = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6];\nvar sr = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11];\nvar hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e];\nvar hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000];\n\nfunction RIPEMD160() {\n HashBase.call(this, 64); // state\n\n this._a = 0x67452301;\n this._b = 0xefcdab89;\n this._c = 0x98badcfe;\n this._d = 0x10325476;\n this._e = 0xc3d2e1f0;\n}\n\ninherits(RIPEMD160, HashBase);\n\nRIPEMD160.prototype._update = function () {\n var words = ARRAY16;\n\n for (var j = 0; j < 16; ++j) {\n words[j] = this._block.readInt32LE(j * 4);\n }\n\n var al = this._a | 0;\n var bl = this._b | 0;\n var cl = this._c | 0;\n var dl = this._d | 0;\n var el = this._e | 0;\n var ar = this._a | 0;\n var br = this._b | 0;\n var cr = this._c | 0;\n var dr = this._d | 0;\n var er = this._e | 0; // computation\n\n for (var i = 0; i < 80; i += 1) {\n var tl;\n var tr;\n\n if (i < 16) {\n tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i]);\n tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i]);\n } else if (i < 32) {\n tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i]);\n tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i]);\n } else if (i < 48) {\n tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i]);\n tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i]);\n } else if (i < 64) {\n tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i]);\n tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i]);\n } else {\n // if (i<80) {\n tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i]);\n tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i]);\n }\n\n al = el;\n el = dl;\n dl = rotl(cl, 10);\n cl = bl;\n bl = tl;\n ar = er;\n er = dr;\n dr = rotl(cr, 10);\n cr = br;\n br = tr;\n } // update state\n\n\n var t = this._b + cl + dr | 0;\n this._b = this._c + dl + er | 0;\n this._c = this._d + el + ar | 0;\n this._d = this._e + al + br | 0;\n this._e = this._a + bl + cr | 0;\n this._a = t;\n};\n\nRIPEMD160.prototype._digest = function () {\n // create padding and handle blocks\n this._block[this._blockOffset++] = 0x80;\n\n if (this._blockOffset > 56) {\n this._block.fill(0, this._blockOffset, 64);\n\n this._update();\n\n this._blockOffset = 0;\n }\n\n this._block.fill(0, this._blockOffset, 56);\n\n this._block.writeUInt32LE(this._length[0], 56);\n\n this._block.writeUInt32LE(this._length[1], 60);\n\n this._update(); // produce result\n\n\n var buffer = Buffer.alloc ? Buffer.alloc(20) : new Buffer(20);\n buffer.writeInt32LE(this._a, 0);\n buffer.writeInt32LE(this._b, 4);\n buffer.writeInt32LE(this._c, 8);\n buffer.writeInt32LE(this._d, 12);\n buffer.writeInt32LE(this._e, 16);\n return buffer;\n};\n\nfunction rotl(x, n) {\n return x << n | x >>> 32 - n;\n}\n\nfunction fn1(a, b, c, d, e, m, k, s) {\n return rotl(a + (b ^ c ^ d) + m + k | 0, s) + e | 0;\n}\n\nfunction fn2(a, b, c, d, e, m, k, s) {\n return rotl(a + (b & c | ~b & d) + m + k | 0, s) + e | 0;\n}\n\nfunction fn3(a, b, c, d, e, m, k, s) {\n return rotl(a + ((b | ~c) ^ d) + m + k | 0, s) + e | 0;\n}\n\nfunction fn4(a, b, c, d, e, m, k, s) {\n return rotl(a + (b & d | c & ~d) + m + k | 0, s) + e | 0;\n}\n\nfunction fn5(a, b, c, d, e, m, k, s) {\n return rotl(a + (b ^ (c | ~d)) + m + k | 0, s) + e | 0;\n}\n\nmodule.exports = RIPEMD160;","var exports = module.exports = function SHA(algorithm) {\n algorithm = algorithm.toLowerCase();\n var Algorithm = exports[algorithm];\n if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)');\n return new Algorithm();\n};\n\nexports.sha = require('./sha');\nexports.sha1 = require('./sha1');\nexports.sha224 = require('./sha224');\nexports.sha256 = require('./sha256');\nexports.sha384 = require('./sha384');\nexports.sha512 = require('./sha512');","exports = module.exports = require('./lib/_stream_readable.js');\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = require('./lib/_stream_writable.js');\nexports.Duplex = require('./lib/_stream_duplex.js');\nexports.Transform = require('./lib/_stream_transform.js');\nexports.PassThrough = require('./lib/_stream_passthrough.js');","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer');\n\nvar Buffer = buffer.Buffer; // alternative to using Object.keys for old browsers\n\nfunction copyProps(src, dst) {\n for (var key in src) {\n dst[key] = src[key];\n }\n}\n\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer;\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports);\n exports.Buffer = SafeBuffer;\n}\n\nfunction SafeBuffer(arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length);\n} // Copy static methods from Buffer\n\n\ncopyProps(Buffer, SafeBuffer);\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number');\n }\n\n return Buffer(arg, encodingOrOffset, length);\n};\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number');\n }\n\n var buf = Buffer(size);\n\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding);\n } else {\n buf.fill(fill);\n }\n } else {\n buf.fill(0);\n }\n\n return buf;\n};\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number');\n }\n\n return Buffer(size);\n};\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number');\n }\n\n return buffer.SlowBuffer(size);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n var isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm; // cast to ints.\n\n this.highWaterMark = Math.floor(this.highWaterMark); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb\n\n stream.emit('error', er);\n pna.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n stream.emit('error', err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","'use strict';\n\nvar assert = require('minimalistic-assert');\n\nfunction Cipher(options) {\n this.options = options;\n this.type = this.options.type;\n this.blockSize = 8;\n\n this._init();\n\n this.buffer = new Array(this.blockSize);\n this.bufferOff = 0;\n}\n\nmodule.exports = Cipher;\n\nCipher.prototype._init = function _init() {// Might be overrided\n};\n\nCipher.prototype.update = function update(data) {\n if (data.length === 0) return [];\n if (this.type === 'decrypt') return this._updateDecrypt(data);else return this._updateEncrypt(data);\n};\n\nCipher.prototype._buffer = function _buffer(data, off) {\n // Append data to buffer\n var min = Math.min(this.buffer.length - this.bufferOff, data.length - off);\n\n for (var i = 0; i < min; i++) {\n this.buffer[this.bufferOff + i] = data[off + i];\n }\n\n this.bufferOff += min; // Shift next\n\n return min;\n};\n\nCipher.prototype._flushBuffer = function _flushBuffer(out, off) {\n this._update(this.buffer, 0, out, off);\n\n this.bufferOff = 0;\n return this.blockSize;\n};\n\nCipher.prototype._updateEncrypt = function _updateEncrypt(data) {\n var inputOff = 0;\n var outputOff = 0;\n var count = (this.bufferOff + data.length) / this.blockSize | 0;\n var out = new Array(count * this.blockSize);\n\n if (this.bufferOff !== 0) {\n inputOff += this._buffer(data, inputOff);\n if (this.bufferOff === this.buffer.length) outputOff += this._flushBuffer(out, outputOff);\n } // Write blocks\n\n\n var max = data.length - (data.length - inputOff) % this.blockSize;\n\n for (; inputOff < max; inputOff += this.blockSize) {\n this._update(data, inputOff, out, outputOff);\n\n outputOff += this.blockSize;\n } // Queue rest\n\n\n for (; inputOff < data.length; inputOff++, this.bufferOff++) {\n this.buffer[this.bufferOff] = data[inputOff];\n }\n\n return out;\n};\n\nCipher.prototype._updateDecrypt = function _updateDecrypt(data) {\n var inputOff = 0;\n var outputOff = 0;\n var count = Math.ceil((this.bufferOff + data.length) / this.blockSize) - 1;\n var out = new Array(count * this.blockSize); // TODO(indutny): optimize it, this is far from optimal\n\n for (; count > 0; count--) {\n inputOff += this._buffer(data, inputOff);\n outputOff += this._flushBuffer(out, outputOff);\n } // Buffer rest of the input\n\n\n inputOff += this._buffer(data, inputOff);\n return out;\n};\n\nCipher.prototype.final = function final(buffer) {\n var first;\n if (buffer) first = this.update(buffer);\n var last;\n if (this.type === 'encrypt') last = this._finalEncrypt();else last = this._finalDecrypt();\n if (first) return first.concat(last);else return last;\n};\n\nCipher.prototype._pad = function _pad(buffer, off) {\n if (off === 0) return false;\n\n while (off < buffer.length) {\n buffer[off++] = 0;\n }\n\n return true;\n};\n\nCipher.prototype._finalEncrypt = function _finalEncrypt() {\n if (!this._pad(this.buffer, this.bufferOff)) return [];\n var out = new Array(this.blockSize);\n\n this._update(this.buffer, 0, out, 0);\n\n return out;\n};\n\nCipher.prototype._unpad = function _unpad(buffer) {\n return buffer;\n};\n\nCipher.prototype._finalDecrypt = function _finalDecrypt() {\n assert.equal(this.bufferOff, this.blockSize, 'Not enough data to decrypt');\n var out = new Array(this.blockSize);\n\n this._flushBuffer(out, 0);\n\n return this._unpad(out);\n};","var ciphers = require('./encrypter');\n\nvar deciphers = require('./decrypter');\n\nvar modes = require('./modes/list.json');\n\nfunction getCiphers() {\n return Object.keys(modes);\n}\n\nexports.createCipher = exports.Cipher = ciphers.createCipher;\nexports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv;\nexports.createDecipher = exports.Decipher = deciphers.createDecipher;\nexports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv;\nexports.listCiphers = exports.getCiphers = getCiphers;","var modeModules = {\n ECB: require('./ecb'),\n CBC: require('./cbc'),\n CFB: require('./cfb'),\n CFB8: require('./cfb8'),\n CFB1: require('./cfb1'),\n OFB: require('./ofb'),\n CTR: require('./ctr'),\n GCM: require('./ctr')\n};\n\nvar modes = require('./list.json');\n\nfor (var key in modes) {\n modes[key].module = modeModules[modes[key].mode];\n}\n\nmodule.exports = modes;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar r;\n\nmodule.exports = function rand(len) {\n if (!r) r = new Rand(null);\n return r.generate(len);\n};\n\nfunction Rand(rand) {\n this.rand = rand;\n}\n\nmodule.exports.Rand = Rand;\n\nRand.prototype.generate = function generate(len) {\n return this._rand(len);\n}; // Emulate crypto API using randy\n\n\nRand.prototype._rand = function _rand(n) {\n if (this.rand.getBytes) return this.rand.getBytes(n);\n var res = new Uint8Array(n);\n\n for (var i = 0; i < res.length; i++) {\n res[i] = this.rand.getByte();\n }\n\n return res;\n};\n\nif ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) === 'object') {\n if (self.crypto && self.crypto.getRandomValues) {\n // Modern browsers\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.crypto.getRandomValues(arr);\n return arr;\n };\n } else if (self.msCrypto && self.msCrypto.getRandomValues) {\n // IE\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.msCrypto.getRandomValues(arr);\n return arr;\n }; // Safari's WebWorkers do not have `crypto`\n\n } else if ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === 'object') {\n // Old junk\n Rand.prototype._rand = function () {\n throw new Error('Not implemented yet');\n };\n }\n} else {\n // Node.js or Web worker with no crypto support\n try {\n var crypto = require('crypto');\n\n if (typeof crypto.randomBytes !== 'function') throw new Error('Not supported');\n\n Rand.prototype._rand = function _rand(n) {\n return crypto.randomBytes(n);\n };\n } catch (e) {}\n}","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n callback.apply(this, args);\n };\n}\n\nfunction noop() {}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n\n var writableEnded = stream._writableState && stream._writableState.finished;\n\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n\n var onclose = function onclose() {\n var err;\n\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\n\nmodule.exports = eos;","var BN = require('bn.js');\n\nvar randomBytes = require('randombytes');\n\nfunction blind(priv) {\n var r = getr(priv);\n var blinder = r.toRed(BN.mont(priv.modulus)).redPow(new BN(priv.publicExponent)).fromRed();\n return {\n blinder: blinder,\n unblinder: r.invm(priv.modulus)\n };\n}\n\nfunction getr(priv) {\n var len = priv.modulus.byteLength();\n var r;\n\n do {\n r = new BN(randomBytes(len));\n } while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2));\n\n return r;\n}\n\nfunction crt(msg, priv) {\n var blinds = blind(priv);\n var len = priv.modulus.byteLength();\n var blinded = new BN(msg).mul(blinds.blinder).umod(priv.modulus);\n var c1 = blinded.toRed(BN.mont(priv.prime1));\n var c2 = blinded.toRed(BN.mont(priv.prime2));\n var qinv = priv.coefficient;\n var p = priv.prime1;\n var q = priv.prime2;\n var m1 = c1.redPow(priv.exponent1).fromRed();\n var m2 = c2.redPow(priv.exponent2).fromRed();\n var h = m1.isub(m2).imul(qinv).umod(p).imul(q);\n return m2.iadd(h).imul(blinds.unblinder).umod(priv.modulus).toArrayLike(Buffer, 'be', len);\n}\n\ncrt.getr = getr;\nmodule.exports = crt;","'use strict';\n\nvar elliptic = exports;\nelliptic.version = require('../package.json').version;\nelliptic.utils = require('./elliptic/utils');\nelliptic.rand = require('brorand');\nelliptic.curve = require('./elliptic/curve');\nelliptic.curves = require('./elliptic/curves'); // Protocols\n\nelliptic.ec = require('./elliptic/ec');\nelliptic.eddsa = require('./elliptic/eddsa');","'use strict';\n\nvar curves = exports;\n\nvar hash = require('hash.js');\n\nvar curve = require('./curve');\n\nvar utils = require('./utils');\n\nvar assert = utils.assert;\n\nfunction PresetCurve(options) {\n if (options.type === 'short') this.curve = new curve.short(options);else if (options.type === 'edwards') this.curve = new curve.edwards(options);else this.curve = new curve.mont(options);\n this.g = this.curve.g;\n this.n = this.curve.n;\n this.hash = options.hash;\n assert(this.g.validate(), 'Invalid curve');\n assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');\n}\n\ncurves.PresetCurve = PresetCurve;\n\nfunction defineCurve(name, options) {\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n get: function get() {\n var curve = new PresetCurve(options);\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n value: curve\n });\n return curve;\n }\n });\n}\n\ndefineCurve('p192', {\n type: 'short',\n prime: 'p192',\n p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',\n b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',\n n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',\n hash: hash.sha256,\n gRed: false,\n g: ['188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811']\n});\ndefineCurve('p224', {\n type: 'short',\n prime: 'p224',\n p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',\n b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',\n n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',\n hash: hash.sha256,\n gRed: false,\n g: ['b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34']\n});\ndefineCurve('p256', {\n type: 'short',\n prime: null,\n p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',\n a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',\n b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',\n n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',\n hash: hash.sha256,\n gRed: false,\n g: ['6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296', '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5']\n});\ndefineCurve('p384', {\n type: 'short',\n prime: null,\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'fffffffe ffffffff 00000000 00000000 ffffffff',\n a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'fffffffe ffffffff 00000000 00000000 fffffffc',\n b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' + '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',\n n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' + 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',\n hash: hash.sha384,\n gRed: false,\n g: ['aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' + '5502f25d bf55296c 3a545e38 72760ab7', '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' + '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f']\n});\ndefineCurve('p521', {\n type: 'short',\n prime: null,\n p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff',\n a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff fffffffc',\n b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' + '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' + '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',\n n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' + 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',\n hash: hash.sha512,\n gRed: false,\n g: ['000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' + '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' + 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66', '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' + '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' + '3fad0761 353c7086 a272c240 88be9476 9fd16650']\n});\ndefineCurve('curve25519', {\n type: 'mont',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '76d06',\n b: '1',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: ['9']\n});\ndefineCurve('ed25519', {\n type: 'edwards',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '-1',\n c: '1',\n // -121665 * (121666^(-1)) (mod P)\n d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: ['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', // 4/5\n '6666666666666666666666666666666666666666666666666666666666666658']\n});\nvar pre;\n\ntry {\n pre = require('./precomputed/secp256k1');\n} catch (e) {\n pre = undefined;\n}\n\ndefineCurve('secp256k1', {\n type: 'short',\n prime: 'k256',\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',\n a: '0',\n b: '7',\n n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',\n h: '1',\n hash: hash.sha256,\n // Precomputed endomorphism\n beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',\n lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',\n basis: [{\n a: '3086d221a7d46bcde86c90e49284eb15',\n b: '-e4437ed6010e88286f547fa90abfe4c3'\n }, {\n a: '114ca50f7a8e2f3f657c1108d9d44cfd8',\n b: '3086d221a7d46bcde86c90e49284eb15'\n }],\n gRed: false,\n g: ['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', pre]\n});","var hash = exports;\nhash.utils = require('./hash/utils');\nhash.common = require('./hash/common');\nhash.sha = require('./hash/sha');\nhash.ripemd = require('./hash/ripemd');\nhash.hmac = require('./hash/hmac'); // Proxy hash functions to the main object\n\nhash.sha1 = hash.sha.sha1;\nhash.sha256 = hash.sha.sha256;\nhash.sha224 = hash.sha.sha224;\nhash.sha384 = hash.sha.sha384;\nhash.sha512 = hash.sha.sha512;\nhash.ripemd160 = hash.ripemd.ripemd160;","/* eslint-disable node/no-deprecated-api */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar buffer = require('buffer');\n\nvar Buffer = buffer.Buffer;\nvar safer = {};\nvar key;\n\nfor (key in buffer) {\n if (!buffer.hasOwnProperty(key)) continue;\n if (key === 'SlowBuffer' || key === 'Buffer') continue;\n safer[key] = buffer[key];\n}\n\nvar Safer = safer.Buffer = {};\n\nfor (key in Buffer) {\n if (!Buffer.hasOwnProperty(key)) continue;\n if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue;\n Safer[key] = Buffer[key];\n}\n\nsafer.Buffer.prototype = Buffer.prototype;\n\nif (!Safer.from || Safer.from === Uint8Array.from) {\n Safer.from = function (value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('The \"value\" argument must not be of type number. Received type ' + _typeof(value));\n }\n\n if (value && typeof value.length === 'undefined') {\n throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + _typeof(value));\n }\n\n return Buffer(value, encodingOrOffset, length);\n };\n}\n\nif (!Safer.alloc) {\n Safer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('The \"size\" argument must be of type number. Received type ' + _typeof(size));\n }\n\n if (size < 0 || size >= 2 * (1 << 30)) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"');\n }\n\n var buf = Buffer(size);\n\n if (!fill || fill.length === 0) {\n buf.fill(0);\n } else if (typeof encoding === 'string') {\n buf.fill(fill, encoding);\n } else {\n buf.fill(fill);\n }\n\n return buf;\n };\n}\n\nif (!safer.kStringMaxLength) {\n try {\n safer.kStringMaxLength = process.binding('buffer').kStringMaxLength;\n } catch (e) {// we can't determine kStringMaxLength in environments where process.binding\n // is unsupported, so let's not set it\n }\n}\n\nif (!safer.constants) {\n safer.constants = {\n MAX_LENGTH: safer.kMaxLength\n };\n\n if (safer.kStringMaxLength) {\n safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength;\n }\n}\n\nmodule.exports = safer;","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar Reporter = require('../base/reporter').Reporter;\n\nvar EncoderBuffer = require('../base/buffer').EncoderBuffer;\n\nvar DecoderBuffer = require('../base/buffer').DecoderBuffer;\n\nvar assert = require('minimalistic-assert'); // Supported tags\n\n\nvar tags = ['seq', 'seqof', 'set', 'setof', 'objid', 'bool', 'gentime', 'utctime', 'null_', 'enum', 'int', 'objDesc', 'bitstr', 'bmpstr', 'charstr', 'genstr', 'graphstr', 'ia5str', 'iso646str', 'numstr', 'octstr', 'printstr', 't61str', 'unistr', 'utf8str', 'videostr']; // Public methods list\n\nvar methods = ['key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', 'any', 'contains'].concat(tags); // Overrided methods list\n\nvar overrided = ['_peekTag', '_decodeTag', '_use', '_decodeStr', '_decodeObjid', '_decodeTime', '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', '_encodeNull', '_encodeInt', '_encodeBool'];\n\nfunction Node(enc, parent, name) {\n var state = {};\n this._baseState = state;\n state.name = name;\n state.enc = enc;\n state.parent = parent || null;\n state.children = null; // State\n\n state.tag = null;\n state.args = null;\n state.reverseArgs = null;\n state.choice = null;\n state.optional = false;\n state.any = false;\n state.obj = false;\n state.use = null;\n state.useDecoder = null;\n state.key = null;\n state['default'] = null;\n state.explicit = null;\n state.implicit = null;\n state.contains = null; // Should create new instance on each method\n\n if (!state.parent) {\n state.children = [];\n\n this._wrap();\n }\n}\n\nmodule.exports = Node;\nvar stateProps = ['enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice', 'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit', 'implicit', 'contains'];\n\nNode.prototype.clone = function clone() {\n var state = this._baseState;\n var cstate = {};\n stateProps.forEach(function (prop) {\n cstate[prop] = state[prop];\n });\n var res = new this.constructor(cstate.parent);\n res._baseState = cstate;\n return res;\n};\n\nNode.prototype._wrap = function wrap() {\n var state = this._baseState;\n methods.forEach(function (method) {\n this[method] = function _wrappedMethod() {\n var clone = new this.constructor(this);\n state.children.push(clone);\n return clone[method].apply(clone, arguments);\n };\n }, this);\n};\n\nNode.prototype._init = function init(body) {\n var state = this._baseState;\n assert(state.parent === null);\n body.call(this); // Filter children\n\n state.children = state.children.filter(function (child) {\n return child._baseState.parent === this;\n }, this);\n assert.equal(state.children.length, 1, 'Root node can have only one child');\n};\n\nNode.prototype._useArgs = function useArgs(args) {\n var state = this._baseState; // Filter children and args\n\n var children = args.filter(function (arg) {\n return arg instanceof this.constructor;\n }, this);\n args = args.filter(function (arg) {\n return !(arg instanceof this.constructor);\n }, this);\n\n if (children.length !== 0) {\n assert(state.children === null);\n state.children = children; // Replace parent to maintain backward link\n\n children.forEach(function (child) {\n child._baseState.parent = this;\n }, this);\n }\n\n if (args.length !== 0) {\n assert(state.args === null);\n state.args = args;\n state.reverseArgs = args.map(function (arg) {\n if (_typeof(arg) !== 'object' || arg.constructor !== Object) return arg;\n var res = {};\n Object.keys(arg).forEach(function (key) {\n if (key == (key | 0)) key |= 0;\n var value = arg[key];\n res[value] = key;\n });\n return res;\n });\n }\n}; //\n// Overrided methods\n//\n\n\noverrided.forEach(function (method) {\n Node.prototype[method] = function _overrided() {\n var state = this._baseState;\n throw new Error(method + ' not implemented for encoding: ' + state.enc);\n };\n}); //\n// Public methods\n//\n\ntags.forEach(function (tag) {\n Node.prototype[tag] = function _tagMethod() {\n var state = this._baseState;\n var args = Array.prototype.slice.call(arguments);\n assert(state.tag === null);\n state.tag = tag;\n\n this._useArgs(args);\n\n return this;\n };\n});\n\nNode.prototype.use = function use(item) {\n assert(item);\n var state = this._baseState;\n assert(state.use === null);\n state.use = item;\n return this;\n};\n\nNode.prototype.optional = function optional() {\n var state = this._baseState;\n state.optional = true;\n return this;\n};\n\nNode.prototype.def = function def(val) {\n var state = this._baseState;\n assert(state['default'] === null);\n state['default'] = val;\n state.optional = true;\n return this;\n};\n\nNode.prototype.explicit = function explicit(num) {\n var state = this._baseState;\n assert(state.explicit === null && state.implicit === null);\n state.explicit = num;\n return this;\n};\n\nNode.prototype.implicit = function implicit(num) {\n var state = this._baseState;\n assert(state.explicit === null && state.implicit === null);\n state.implicit = num;\n return this;\n};\n\nNode.prototype.obj = function obj() {\n var state = this._baseState;\n var args = Array.prototype.slice.call(arguments);\n state.obj = true;\n if (args.length !== 0) this._useArgs(args);\n return this;\n};\n\nNode.prototype.key = function key(newKey) {\n var state = this._baseState;\n assert(state.key === null);\n state.key = newKey;\n return this;\n};\n\nNode.prototype.any = function any() {\n var state = this._baseState;\n state.any = true;\n return this;\n};\n\nNode.prototype.choice = function choice(obj) {\n var state = this._baseState;\n assert(state.choice === null);\n state.choice = obj;\n\n this._useArgs(Object.keys(obj).map(function (key) {\n return obj[key];\n }));\n\n return this;\n};\n\nNode.prototype.contains = function contains(item) {\n var state = this._baseState;\n assert(state.use === null);\n state.contains = item;\n return this;\n}; //\n// Decoding\n//\n\n\nNode.prototype._decode = function decode(input, options) {\n var state = this._baseState; // Decode root node\n\n if (state.parent === null) return input.wrapResult(state.children[0]._decode(input, options));\n var result = state['default'];\n var present = true;\n var prevKey = null;\n if (state.key !== null) prevKey = input.enterKey(state.key); // Check if tag is there\n\n if (state.optional) {\n var tag = null;\n if (state.explicit !== null) tag = state.explicit;else if (state.implicit !== null) tag = state.implicit;else if (state.tag !== null) tag = state.tag;\n\n if (tag === null && !state.any) {\n // Trial and Error\n var save = input.save();\n\n try {\n if (state.choice === null) this._decodeGeneric(state.tag, input, options);else this._decodeChoice(input, options);\n present = true;\n } catch (e) {\n present = false;\n }\n\n input.restore(save);\n } else {\n present = this._peekTag(input, tag, state.any);\n if (input.isError(present)) return present;\n }\n } // Push object on stack\n\n\n var prevObj;\n if (state.obj && present) prevObj = input.enterObject();\n\n if (present) {\n // Unwrap explicit values\n if (state.explicit !== null) {\n var explicit = this._decodeTag(input, state.explicit);\n\n if (input.isError(explicit)) return explicit;\n input = explicit;\n }\n\n var start = input.offset; // Unwrap implicit and normal values\n\n if (state.use === null && state.choice === null) {\n var _save;\n\n if (state.any) _save = input.save();\n\n var body = this._decodeTag(input, state.implicit !== null ? state.implicit : state.tag, state.any);\n\n if (input.isError(body)) return body;\n if (state.any) result = input.raw(_save);else input = body;\n }\n\n if (options && options.track && state.tag !== null) options.track(input.path(), start, input.length, 'tagged');\n if (options && options.track && state.tag !== null) options.track(input.path(), input.offset, input.length, 'content'); // Select proper method for tag\n\n if (state.any) {// no-op\n } else if (state.choice === null) {\n result = this._decodeGeneric(state.tag, input, options);\n } else {\n result = this._decodeChoice(input, options);\n }\n\n if (input.isError(result)) return result; // Decode children\n\n if (!state.any && state.choice === null && state.children !== null) {\n state.children.forEach(function decodeChildren(child) {\n // NOTE: We are ignoring errors here, to let parser continue with other\n // parts of encoded data\n child._decode(input, options);\n });\n } // Decode contained/encoded by schema, only in bit or octet strings\n\n\n if (state.contains && (state.tag === 'octstr' || state.tag === 'bitstr')) {\n var data = new DecoderBuffer(result);\n result = this._getUse(state.contains, input._reporterState.obj)._decode(data, options);\n }\n } // Pop object\n\n\n if (state.obj && present) result = input.leaveObject(prevObj); // Set key\n\n if (state.key !== null && (result !== null || present === true)) input.leaveKey(prevKey, state.key, result);else if (prevKey !== null) input.exitKey(prevKey);\n return result;\n};\n\nNode.prototype._decodeGeneric = function decodeGeneric(tag, input, options) {\n var state = this._baseState;\n if (tag === 'seq' || tag === 'set') return null;\n if (tag === 'seqof' || tag === 'setof') return this._decodeList(input, tag, state.args[0], options);else if (/str$/.test(tag)) return this._decodeStr(input, tag, options);else if (tag === 'objid' && state.args) return this._decodeObjid(input, state.args[0], state.args[1], options);else if (tag === 'objid') return this._decodeObjid(input, null, null, options);else if (tag === 'gentime' || tag === 'utctime') return this._decodeTime(input, tag, options);else if (tag === 'null_') return this._decodeNull(input, options);else if (tag === 'bool') return this._decodeBool(input, options);else if (tag === 'objDesc') return this._decodeStr(input, tag, options);else if (tag === 'int' || tag === 'enum') return this._decodeInt(input, state.args && state.args[0], options);\n\n if (state.use !== null) {\n return this._getUse(state.use, input._reporterState.obj)._decode(input, options);\n } else {\n return input.error('unknown tag: ' + tag);\n }\n};\n\nNode.prototype._getUse = function _getUse(entity, obj) {\n var state = this._baseState; // Create altered use decoder if implicit is set\n\n state.useDecoder = this._use(entity, obj);\n assert(state.useDecoder._baseState.parent === null);\n state.useDecoder = state.useDecoder._baseState.children[0];\n\n if (state.implicit !== state.useDecoder._baseState.implicit) {\n state.useDecoder = state.useDecoder.clone();\n state.useDecoder._baseState.implicit = state.implicit;\n }\n\n return state.useDecoder;\n};\n\nNode.prototype._decodeChoice = function decodeChoice(input, options) {\n var state = this._baseState;\n var result = null;\n var match = false;\n Object.keys(state.choice).some(function (key) {\n var save = input.save();\n var node = state.choice[key];\n\n try {\n var value = node._decode(input, options);\n\n if (input.isError(value)) return false;\n result = {\n type: key,\n value: value\n };\n match = true;\n } catch (e) {\n input.restore(save);\n return false;\n }\n\n return true;\n }, this);\n if (!match) return input.error('Choice not matched');\n return result;\n}; //\n// Encoding\n//\n\n\nNode.prototype._createEncoderBuffer = function createEncoderBuffer(data) {\n return new EncoderBuffer(data, this.reporter);\n};\n\nNode.prototype._encode = function encode(data, reporter, parent) {\n var state = this._baseState;\n if (state['default'] !== null && state['default'] === data) return;\n\n var result = this._encodeValue(data, reporter, parent);\n\n if (result === undefined) return;\n if (this._skipDefault(result, reporter, parent)) return;\n return result;\n};\n\nNode.prototype._encodeValue = function encode(data, reporter, parent) {\n var state = this._baseState; // Decode root node\n\n if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter());\n var result = null; // Set reporter to share it with a child class\n\n this.reporter = reporter; // Check if data is there\n\n if (state.optional && data === undefined) {\n if (state['default'] !== null) data = state['default'];else return;\n } // Encode children first\n\n\n var content = null;\n var primitive = false;\n\n if (state.any) {\n // Anything that was given is translated to buffer\n result = this._createEncoderBuffer(data);\n } else if (state.choice) {\n result = this._encodeChoice(data, reporter);\n } else if (state.contains) {\n content = this._getUse(state.contains, parent)._encode(data, reporter);\n primitive = true;\n } else if (state.children) {\n content = state.children.map(function (child) {\n if (child._baseState.tag === 'null_') return child._encode(null, reporter, data);\n if (child._baseState.key === null) return reporter.error('Child should have a key');\n var prevKey = reporter.enterKey(child._baseState.key);\n if (_typeof(data) !== 'object') return reporter.error('Child expected, but input is not object');\n\n var res = child._encode(data[child._baseState.key], reporter, data);\n\n reporter.leaveKey(prevKey);\n return res;\n }, this).filter(function (child) {\n return child;\n });\n content = this._createEncoderBuffer(content);\n } else {\n if (state.tag === 'seqof' || state.tag === 'setof') {\n // TODO(indutny): this should be thrown on DSL level\n if (!(state.args && state.args.length === 1)) return reporter.error('Too many args for : ' + state.tag);\n if (!Array.isArray(data)) return reporter.error('seqof/setof, but data is not Array');\n var child = this.clone();\n child._baseState.implicit = null;\n content = this._createEncoderBuffer(data.map(function (item) {\n var state = this._baseState;\n return this._getUse(state.args[0], data)._encode(item, reporter);\n }, child));\n } else if (state.use !== null) {\n result = this._getUse(state.use, parent)._encode(data, reporter);\n } else {\n content = this._encodePrimitive(state.tag, data);\n primitive = true;\n }\n } // Encode data itself\n\n\n if (!state.any && state.choice === null) {\n var tag = state.implicit !== null ? state.implicit : state.tag;\n var cls = state.implicit === null ? 'universal' : 'context';\n\n if (tag === null) {\n if (state.use === null) reporter.error('Tag could be omitted only for .use()');\n } else {\n if (state.use === null) result = this._encodeComposite(tag, primitive, cls, content);\n }\n } // Wrap in explicit\n\n\n if (state.explicit !== null) result = this._encodeComposite(state.explicit, false, 'context', result);\n return result;\n};\n\nNode.prototype._encodeChoice = function encodeChoice(data, reporter) {\n var state = this._baseState;\n var node = state.choice[data.type];\n\n if (!node) {\n assert(false, data.type + ' not found in ' + JSON.stringify(Object.keys(state.choice)));\n }\n\n return node._encode(data.value, reporter);\n};\n\nNode.prototype._encodePrimitive = function encodePrimitive(tag, data) {\n var state = this._baseState;\n if (/str$/.test(tag)) return this._encodeStr(data, tag);else if (tag === 'objid' && state.args) return this._encodeObjid(data, state.reverseArgs[0], state.args[1]);else if (tag === 'objid') return this._encodeObjid(data, null, null);else if (tag === 'gentime' || tag === 'utctime') return this._encodeTime(data, tag);else if (tag === 'null_') return this._encodeNull();else if (tag === 'int' || tag === 'enum') return this._encodeInt(data, state.args && state.reverseArgs[0]);else if (tag === 'bool') return this._encodeBool(data);else if (tag === 'objDesc') return this._encodeStr(data, tag);else throw new Error('Unsupported tag: ' + tag);\n};\n\nNode.prototype._isNumstr = function isNumstr(str) {\n return /^[0-9 ]*$/.test(str);\n};\n\nNode.prototype._isPrintstr = function isPrintstr(str) {\n return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(str);\n};","'use strict';\n\nvar inherits = require('inherits');\n\nfunction Reporter(options) {\n this._reporterState = {\n obj: null,\n path: [],\n options: options || {},\n errors: []\n };\n}\n\nexports.Reporter = Reporter;\n\nReporter.prototype.isError = function isError(obj) {\n return obj instanceof ReporterError;\n};\n\nReporter.prototype.save = function save() {\n var state = this._reporterState;\n return {\n obj: state.obj,\n pathLen: state.path.length\n };\n};\n\nReporter.prototype.restore = function restore(data) {\n var state = this._reporterState;\n state.obj = data.obj;\n state.path = state.path.slice(0, data.pathLen);\n};\n\nReporter.prototype.enterKey = function enterKey(key) {\n return this._reporterState.path.push(key);\n};\n\nReporter.prototype.exitKey = function exitKey(index) {\n var state = this._reporterState;\n state.path = state.path.slice(0, index - 1);\n};\n\nReporter.prototype.leaveKey = function leaveKey(index, key, value) {\n var state = this._reporterState;\n this.exitKey(index);\n if (state.obj !== null) state.obj[key] = value;\n};\n\nReporter.prototype.path = function path() {\n return this._reporterState.path.join('/');\n};\n\nReporter.prototype.enterObject = function enterObject() {\n var state = this._reporterState;\n var prev = state.obj;\n state.obj = {};\n return prev;\n};\n\nReporter.prototype.leaveObject = function leaveObject(prev) {\n var state = this._reporterState;\n var now = state.obj;\n state.obj = prev;\n return now;\n};\n\nReporter.prototype.error = function error(msg) {\n var err;\n var state = this._reporterState;\n var inherited = msg instanceof ReporterError;\n\n if (inherited) {\n err = msg;\n } else {\n err = new ReporterError(state.path.map(function (elem) {\n return '[' + JSON.stringify(elem) + ']';\n }).join(''), msg.message || msg, msg.stack);\n }\n\n if (!state.options.partial) throw err;\n if (!inherited) state.errors.push(err);\n return err;\n};\n\nReporter.prototype.wrapResult = function wrapResult(result) {\n var state = this._reporterState;\n if (!state.options.partial) return result;\n return {\n result: this.isError(result) ? null : result,\n errors: state.errors\n };\n};\n\nfunction ReporterError(path, msg) {\n this.path = path;\n this.rethrow(msg);\n}\n\ninherits(ReporterError, Error);\n\nReporterError.prototype.rethrow = function rethrow(msg) {\n this.message = msg + ' at: ' + (this.path || '(shallow)');\n if (Error.captureStackTrace) Error.captureStackTrace(this, ReporterError);\n\n if (!this.stack) {\n try {\n // IE only adds stack when thrown\n throw new Error(this.message);\n } catch (e) {\n this.stack = e.stack;\n }\n }\n\n return this;\n};","'use strict'; // Helper\n\nfunction reverse(map) {\n var res = {};\n Object.keys(map).forEach(function (key) {\n // Convert key to integer if it is stringified\n if ((key | 0) == key) key = key | 0;\n var value = map[key];\n res[value] = key;\n });\n return res;\n}\n\nexports.tagClass = {\n 0: 'universal',\n 1: 'application',\n 2: 'context',\n 3: 'private'\n};\nexports.tagClassByName = reverse(exports.tagClass);\nexports.tag = {\n 0x00: 'end',\n 0x01: 'bool',\n 0x02: 'int',\n 0x03: 'bitstr',\n 0x04: 'octstr',\n 0x05: 'null_',\n 0x06: 'objid',\n 0x07: 'objDesc',\n 0x08: 'external',\n 0x09: 'real',\n 0x0a: 'enum',\n 0x0b: 'embed',\n 0x0c: 'utf8str',\n 0x0d: 'relativeOid',\n 0x10: 'seq',\n 0x11: 'set',\n 0x12: 'numstr',\n 0x13: 'printstr',\n 0x14: 't61str',\n 0x15: 'videostr',\n 0x16: 'ia5str',\n 0x17: 'utctime',\n 0x18: 'gentime',\n 0x19: 'graphstr',\n 0x1a: 'iso646str',\n 0x1b: 'genstr',\n 0x1c: 'unistr',\n 0x1d: 'charstr',\n 0x1e: 'bmpstr'\n};\nexports.tagByName = reverse(exports.tag);","var isObject = require('../internals/is-object');\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory, undef) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var BlockCipher = C_lib.BlockCipher;\n var C_algo = C.algo; // Lookup tables\n\n var SBOX = [];\n var INV_SBOX = [];\n var SUB_MIX_0 = [];\n var SUB_MIX_1 = [];\n var SUB_MIX_2 = [];\n var SUB_MIX_3 = [];\n var INV_SUB_MIX_0 = [];\n var INV_SUB_MIX_1 = [];\n var INV_SUB_MIX_2 = [];\n var INV_SUB_MIX_3 = []; // Compute lookup tables\n\n (function () {\n // Compute double table\n var d = [];\n\n for (var i = 0; i < 256; i++) {\n if (i < 128) {\n d[i] = i << 1;\n } else {\n d[i] = i << 1 ^ 0x11b;\n }\n } // Walk GF(2^8)\n\n\n var x = 0;\n var xi = 0;\n\n for (var i = 0; i < 256; i++) {\n // Compute sbox\n var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;\n sx = sx >>> 8 ^ sx & 0xff ^ 0x63;\n SBOX[x] = sx;\n INV_SBOX[sx] = x; // Compute multiplication\n\n var x2 = d[x];\n var x4 = d[x2];\n var x8 = d[x4]; // Compute sub bytes, mix columns tables\n\n var t = d[sx] * 0x101 ^ sx * 0x1010100;\n SUB_MIX_0[x] = t << 24 | t >>> 8;\n SUB_MIX_1[x] = t << 16 | t >>> 16;\n SUB_MIX_2[x] = t << 8 | t >>> 24;\n SUB_MIX_3[x] = t; // Compute inv sub bytes, inv mix columns tables\n\n var t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;\n INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;\n INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;\n INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;\n INV_SUB_MIX_3[sx] = t; // Compute next counter\n\n if (!x) {\n x = xi = 1;\n } else {\n x = x2 ^ d[d[d[x8 ^ x2]]];\n xi ^= d[d[xi]];\n }\n }\n })(); // Precomputed Rcon lookup\n\n\n var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\n /**\n * AES block cipher algorithm.\n */\n\n var AES = C_algo.AES = BlockCipher.extend({\n _doReset: function _doReset() {\n var t; // Skip reset of nRounds has been set before and key did not change\n\n if (this._nRounds && this._keyPriorReset === this._key) {\n return;\n } // Shortcuts\n\n\n var key = this._keyPriorReset = this._key;\n var keyWords = key.words;\n var keySize = key.sigBytes / 4; // Compute number of rounds\n\n var nRounds = this._nRounds = keySize + 6; // Compute number of key schedule rows\n\n var ksRows = (nRounds + 1) * 4; // Compute key schedule\n\n var keySchedule = this._keySchedule = [];\n\n for (var ksRow = 0; ksRow < ksRows; ksRow++) {\n if (ksRow < keySize) {\n keySchedule[ksRow] = keyWords[ksRow];\n } else {\n t = keySchedule[ksRow - 1];\n\n if (!(ksRow % keySize)) {\n // Rot word\n t = t << 8 | t >>> 24; // Sub word\n\n t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff]; // Mix Rcon\n\n t ^= RCON[ksRow / keySize | 0] << 24;\n } else if (keySize > 6 && ksRow % keySize == 4) {\n // Sub word\n t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];\n }\n\n keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;\n }\n } // Compute inv key schedule\n\n\n var invKeySchedule = this._invKeySchedule = [];\n\n for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {\n var ksRow = ksRows - invKsRow;\n\n if (invKsRow % 4) {\n var t = keySchedule[ksRow];\n } else {\n var t = keySchedule[ksRow - 4];\n }\n\n if (invKsRow < 4 || ksRow <= 4) {\n invKeySchedule[invKsRow] = t;\n } else {\n invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 0xff]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];\n }\n }\n },\n encryptBlock: function encryptBlock(M, offset) {\n this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);\n },\n decryptBlock: function decryptBlock(M, offset) {\n // Swap 2nd and 4th rows\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n\n this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); // Inv swap 2nd and 4th rows\n\n\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n },\n _doCryptBlock: function _doCryptBlock(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {\n // Shortcut\n var nRounds = this._nRounds; // Get input, add round key\n\n var s0 = M[offset] ^ keySchedule[0];\n var s1 = M[offset + 1] ^ keySchedule[1];\n var s2 = M[offset + 2] ^ keySchedule[2];\n var s3 = M[offset + 3] ^ keySchedule[3]; // Key schedule row counter\n\n var ksRow = 4; // Rounds\n\n for (var round = 1; round < nRounds; round++) {\n // Shift rows, sub bytes, mix columns, add round key\n var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[s1 >>> 16 & 0xff] ^ SUB_MIX_2[s2 >>> 8 & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];\n var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[s2 >>> 16 & 0xff] ^ SUB_MIX_2[s3 >>> 8 & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];\n var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[s3 >>> 16 & 0xff] ^ SUB_MIX_2[s0 >>> 8 & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];\n var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[s0 >>> 16 & 0xff] ^ SUB_MIX_2[s1 >>> 8 & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++]; // Update state\n\n s0 = t0;\n s1 = t1;\n s2 = t2;\n s3 = t3;\n } // Shift rows, sub bytes, add round key\n\n\n var t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\n var t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\n var t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\n var t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]; // Set output\n\n M[offset] = t0;\n M[offset + 1] = t1;\n M[offset + 2] = t2;\n M[offset + 3] = t3;\n },\n keySize: 256 / 32\n });\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);\n */\n\n C.AES = BlockCipher._createHelper(AES);\n })();\n\n return CryptoJS.AES;\n});","'use strict';\n\nexports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = require('randombytes');\nexports.createHash = exports.Hash = require('create-hash');\nexports.createHmac = exports.Hmac = require('create-hmac');\n\nvar algos = require('browserify-sign/algos');\n\nvar algoKeys = Object.keys(algos);\nvar hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys);\n\nexports.getHashes = function () {\n return hashes;\n};\n\nvar p = require('pbkdf2');\n\nexports.pbkdf2 = p.pbkdf2;\nexports.pbkdf2Sync = p.pbkdf2Sync;\n\nvar aes = require('browserify-cipher');\n\nexports.Cipher = aes.Cipher;\nexports.createCipher = aes.createCipher;\nexports.Cipheriv = aes.Cipheriv;\nexports.createCipheriv = aes.createCipheriv;\nexports.Decipher = aes.Decipher;\nexports.createDecipher = aes.createDecipher;\nexports.Decipheriv = aes.Decipheriv;\nexports.createDecipheriv = aes.createDecipheriv;\nexports.getCiphers = aes.getCiphers;\nexports.listCiphers = aes.listCiphers;\n\nvar dh = require('diffie-hellman');\n\nexports.DiffieHellmanGroup = dh.DiffieHellmanGroup;\nexports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup;\nexports.getDiffieHellman = dh.getDiffieHellman;\nexports.createDiffieHellman = dh.createDiffieHellman;\nexports.DiffieHellman = dh.DiffieHellman;\n\nvar sign = require('browserify-sign');\n\nexports.createSign = sign.createSign;\nexports.Sign = sign.Sign;\nexports.createVerify = sign.createVerify;\nexports.Verify = sign.Verify;\nexports.createECDH = require('create-ecdh');\n\nvar publicEncrypt = require('public-encrypt');\n\nexports.publicEncrypt = publicEncrypt.publicEncrypt;\nexports.privateEncrypt = publicEncrypt.privateEncrypt;\nexports.publicDecrypt = publicEncrypt.publicDecrypt;\nexports.privateDecrypt = publicEncrypt.privateDecrypt; // the least I can do is make error messages for the rest of the node.js/crypto api.\n// ;[\n// 'createCredentials'\n// ].forEach(function (name) {\n// exports[name] = function () {\n// throw new Error([\n// 'sorry, ' + name + ' is not implemented yet',\n// 'we accept pull requests',\n// 'https://github.com/crypto-browserify/crypto-browserify'\n// ].join('\\n'))\n// }\n// })\n\nvar rf = require('randomfill');\n\nexports.randomFill = rf.randomFill;\nexports.randomFillSync = rf.randomFillSync;\n\nexports.createCredentials = function () {\n throw new Error(['sorry, createCredentials is not implemented yet', 'we accept pull requests', 'https://github.com/crypto-browserify/crypto-browserify'].join('\\n'));\n};\n\nexports.constants = {\n 'DH_CHECK_P_NOT_SAFE_PRIME': 2,\n 'DH_CHECK_P_NOT_PRIME': 1,\n 'DH_UNABLE_TO_CHECK_GENERATOR': 4,\n 'DH_NOT_SUITABLE_GENERATOR': 8,\n 'NPN_ENABLED': 1,\n 'ALPN_ENABLED': 1,\n 'RSA_PKCS1_PADDING': 1,\n 'RSA_SSLV23_PADDING': 2,\n 'RSA_NO_PADDING': 3,\n 'RSA_PKCS1_OAEP_PADDING': 4,\n 'RSA_X931_PADDING': 5,\n 'RSA_PKCS1_PSS_PADDING': 6,\n 'POINT_CONVERSION_COMPRESSED': 2,\n 'POINT_CONVERSION_UNCOMPRESSED': 4,\n 'POINT_CONVERSION_HYBRID': 6\n};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m4\"},[_c('i',{staticClass:\"prefix grey-text\",class:_vm.cardBrand}),_vm._v(\" \"),_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(_vm.cardNumberMask),expression:\"cardNumberMask\"},{name:\"model\",rawName:\"v-model\",value:(_vm.number),expression:\"number\"},{name:\"validate\",rawName:\"v-validate\",value:('required|min:15'),expression:\"'required|min:15'\"}],attrs:{\"id\":\"number\",\"type\":\"text\",\"name\":\"number\"},domProps:{\"value\":(_vm.number)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.number=$event.target.value},function($event){return _vm.jumpOn(_vm.cardNumberLength, _vm.number, _vm.$refs.monthInput)}]}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.invalidNumber),expression:\"invalidNumber\"}],staticClass:\"red-text text-darken-3\"},[_vm._v(\"Card number is invalid\")]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"number\"}},[_vm._v(\"Card number\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s3 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.expMonth),expression:\"expMonth\"},{name:\"validate\",rawName:\"v-validate\",value:('required|min:1|max:2|max_value:12'),expression:\"'required|min:1|max:2|max_value:12'\"}],ref:\"monthInput\",attrs:{\"id\":\"month\",\"name\":\"month\",\"type\":\"number\"},domProps:{\"value\":(_vm.expMonth)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.expMonth=$event.target.value},function($event){return _vm.jumpOn(2, _vm.expMonth, _vm.$refs.yearInput)}]}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"month\"}},[_vm._v(\"Exp MM\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s3 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.expYear),expression:\"expYear\"},{name:\"validate\",rawName:\"v-validate\",value:('required|min:2|max:4'),expression:\"'required|min:2|max:4'\"}],ref:\"yearInput\",attrs:{\"id\":\"year\",\"name\":\"year\",\"type\":\"number\"},domProps:{\"value\":(_vm.expYear)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.expYear=$event.target.value},function($event){return _vm.jumpOn(2, _vm.expYear, _vm.$refs.cvvInput)}]}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"year\"}},[_vm._v(\"Exp YY\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s3 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.verificationNumber),expression:\"verificationNumber\"},{name:\"validate\",rawName:\"v-validate\",value:('required|min:3'),expression:\"'required|min:3'\"}],ref:\"cvvInput\",attrs:{\"id\":\"cvv\",\"name\":\"cvv\",\"type\":\"number\"},domProps:{\"value\":(_vm.verificationNumber)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.verificationNumber=$event.target.value},function($event){return _vm.jumpOn(_vm.cvvCalculatedLength, _vm.verificationNumber, _vm.$refs.zipInput)}]}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"cvv\"}},[_vm._v(\"CVV\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s3 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addressZip),expression:\"addressZip\"},{name:\"mask\",rawName:\"v-mask\",value:(_vm.zipMask),expression:\"zipMask\"},{name:\"validate\",rawName:\"v-validate\",value:('required|length:' + _vm.zipLength),expression:\"'required|length:' + zipLength\"}],ref:\"zipInput\",attrs:{\"id\":\"addressZip\",\"name\":\"zip\",\"type\":\"text\"},domProps:{\"value\":(_vm.addressZip)},on:{\"keyup\":_vm.apiSubmit,\"input\":function($event){if($event.target.composing){ return; }_vm.addressZip=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"addressZip\"}},[_vm._v(_vm._s(_vm.zipLabel))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./card_input.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./card_input.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./card_input.vue?vue&type=template&id=5a811b3c&\"\nimport script from \"./card_input.vue?vue&type=script&lang=js&\"\nexport * from \"./card_input.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * vue-i18n v8.27.2 \n * (c) 2022 kazuya kawaguchi\n * Released under the MIT License.\n */\n\n/* */\n\n/**\n * constants\n */\nvar numberFormatKeys = ['compactDisplay', 'currency', 'currencyDisplay', 'currencySign', 'localeMatcher', 'notation', 'numberingSystem', 'signDisplay', 'style', 'unit', 'unitDisplay', 'useGrouping', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits', 'maximumSignificantDigits'];\n/**\n * utilities\n */\n\nfunction warn(msg, err) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n\n if (err) {\n console.warn(err.stack);\n }\n }\n}\n\nfunction error(msg, err) {\n if (typeof console !== 'undefined') {\n console.error('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n\n if (err) {\n console.error(err.stack);\n }\n }\n}\n\nvar isArray = Array.isArray;\n\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\n\nfunction isBoolean(val) {\n return typeof val === 'boolean';\n}\n\nfunction isString(val) {\n return typeof val === 'string';\n}\n\nvar toString = Object.prototype.toString;\nvar OBJECT_STRING = '[object Object]';\n\nfunction isPlainObject(obj) {\n return toString.call(obj) === OBJECT_STRING;\n}\n\nfunction isNull(val) {\n return val === null || val === undefined;\n}\n\nfunction isFunction(val) {\n return typeof val === 'function';\n}\n\nfunction parseArgs() {\n var args = [],\n len = arguments.length;\n\n while (len--) {\n args[len] = arguments[len];\n }\n\n var locale = null;\n var params = null;\n\n if (args.length === 1) {\n if (isObject(args[0]) || isArray(args[0])) {\n params = args[0];\n } else if (typeof args[0] === 'string') {\n locale = args[0];\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n locale = args[0];\n }\n /* istanbul ignore if */\n\n\n if (isObject(args[1]) || isArray(args[1])) {\n params = args[1];\n }\n }\n\n return {\n locale: locale,\n params: params\n };\n}\n\nfunction looseClone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}\n\nfunction remove(arr, item) {\n if (arr.delete(item)) {\n return arr;\n }\n}\n\nfunction arrayFrom(arr) {\n var ret = [];\n arr.forEach(function (a) {\n return ret.push(a);\n });\n return ret;\n}\n\nfunction includes(arr, item) {\n return !!~arr.indexOf(item);\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction merge(target) {\n var arguments$1 = arguments;\n var output = Object(target);\n\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments$1[i];\n\n if (source !== undefined && source !== null) {\n var key = void 0;\n\n for (key in source) {\n if (hasOwn(source, key)) {\n if (isObject(source[key])) {\n output[key] = merge(output[key], source[key]);\n } else {\n output[key] = source[key];\n }\n }\n }\n }\n }\n\n return output;\n}\n\nfunction looseEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = isArray(a);\n var isArrayB = isArray(b);\n\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i]);\n });\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key]);\n });\n } else {\n /* istanbul ignore next */\n return false;\n }\n } catch (e) {\n /* istanbul ignore next */\n return false;\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n } else {\n return false;\n }\n}\n/**\n * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.\n * @param rawText The raw input from the user that should be escaped.\n */\n\n\nfunction escapeHtml(rawText) {\n return rawText.replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''');\n}\n/**\n * Escapes html tags and special symbols from all provided params which were returned from parseArgs().params.\n * This method performs an in-place operation on the params object.\n *\n * @param {any} params Parameters as provided from `parseArgs().params`.\n * May be either an array of strings or a string->any map.\n *\n * @returns The manipulated `params` object.\n */\n\n\nfunction escapeParams(params) {\n if (params != null) {\n Object.keys(params).forEach(function (key) {\n if (typeof params[key] == 'string') {\n params[key] = escapeHtml(params[key]);\n }\n });\n }\n\n return params;\n}\n/* */\n\n\nfunction extend(Vue) {\n if (!Vue.prototype.hasOwnProperty('$i18n')) {\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$i18n', {\n get: function get() {\n return this._i18n;\n }\n });\n }\n\n Vue.prototype.$t = function (key) {\n var values = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n values[len] = arguments[len + 1];\n }\n\n var i18n = this.$i18n;\n return i18n._t.apply(i18n, [key, i18n.locale, i18n._getMessages(), this].concat(values));\n };\n\n Vue.prototype.$tc = function (key, choice) {\n var values = [],\n len = arguments.length - 2;\n\n while (len-- > 0) {\n values[len] = arguments[len + 2];\n }\n\n var i18n = this.$i18n;\n return i18n._tc.apply(i18n, [key, i18n.locale, i18n._getMessages(), this, choice].concat(values));\n };\n\n Vue.prototype.$te = function (key, locale) {\n var i18n = this.$i18n;\n return i18n._te(key, i18n.locale, i18n._getMessages(), locale);\n };\n\n Vue.prototype.$d = function (value) {\n var ref;\n var args = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n args[len] = arguments[len + 1];\n }\n\n return (ref = this.$i18n).d.apply(ref, [value].concat(args));\n };\n\n Vue.prototype.$n = function (value) {\n var ref;\n var args = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n args[len] = arguments[len + 1];\n }\n\n return (ref = this.$i18n).n.apply(ref, [value].concat(args));\n };\n}\n/* */\n\n/**\n * Mixin\n * \n * If `bridge` mode, empty mixin is returned,\n * else regulary mixin implementation is returned.\n */\n\n\nfunction defineMixin(bridge) {\n if (bridge === void 0) bridge = false;\n\n function mounted() {\n if (this !== this.$root && this.$options.__INTLIFY_META__ && this.$el) {\n this.$el.setAttribute('data-intlify', this.$options.__INTLIFY_META__);\n }\n }\n\n return bridge ? {\n mounted: mounted\n } // delegate `vue-i18n-bridge` mixin implementation\n : {\n // regulary \n beforeCreate: function beforeCreate() {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18nBridge || options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n if (options.__i18nBridge || options.__i18n) {\n try {\n var localeMessages = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n\n var _i18n = options.__i18nBridge || options.__i18n;\n\n _i18n.forEach(function (resource) {\n localeMessages = merge(localeMessages, JSON.parse(resource));\n });\n\n Object.keys(localeMessages).forEach(function (locale) {\n options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);\n });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n error(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n\n this._i18n = options.i18n;\n this._i18nWatcher = this._i18n.watchI18nData();\n } else if (isPlainObject(options.i18n)) {\n var rootI18n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n ? this.$root.$i18n : null; // component local i18n\n\n if (rootI18n) {\n options.i18n.root = this.$root;\n options.i18n.formatter = rootI18n.formatter;\n options.i18n.fallbackLocale = rootI18n.fallbackLocale;\n options.i18n.formatFallbackMessages = rootI18n.formatFallbackMessages;\n options.i18n.silentTranslationWarn = rootI18n.silentTranslationWarn;\n options.i18n.silentFallbackWarn = rootI18n.silentFallbackWarn;\n options.i18n.pluralizationRules = rootI18n.pluralizationRules;\n options.i18n.preserveDirectiveContent = rootI18n.preserveDirectiveContent;\n } // init locale messages via custom blocks\n\n\n if (options.__i18nBridge || options.__i18n) {\n try {\n var localeMessages$1 = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n\n var _i18n$1 = options.__i18nBridge || options.__i18n;\n\n _i18n$1.forEach(function (resource) {\n localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));\n });\n\n options.i18n.messages = localeMessages$1;\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n\n var ref = options.i18n;\n var sharedMessages = ref.sharedMessages;\n\n if (sharedMessages && isPlainObject(sharedMessages)) {\n options.i18n.messages = merge(options.i18n.messages, sharedMessages);\n }\n\n this._i18n = new VueI18n(options.i18n);\n this._i18nWatcher = this._i18n.watchI18nData();\n\n if (options.i18n.sync === undefined || !!options.i18n.sync) {\n this._localeWatcher = this.$i18n.watchLocale();\n }\n\n if (rootI18n) {\n rootI18n.onComponentInstanceCreated(this._i18n);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n // root i18n\n this._i18n = this.$root.$i18n;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n // parent i18n\n this._i18n = options.parent.$i18n;\n }\n },\n beforeMount: function beforeMount() {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18nBridge || options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n this._i18n.subscribeDataChanging(this);\n\n this._subscribing = true;\n } else if (isPlainObject(options.i18n)) {\n this._i18n.subscribeDataChanging(this);\n\n this._subscribing = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n\n this._subscribing = true;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n\n this._subscribing = true;\n }\n },\n mounted: mounted,\n beforeDestroy: function beforeDestroy() {\n if (!this._i18n) {\n return;\n }\n\n var self = this;\n this.$nextTick(function () {\n if (self._subscribing) {\n self._i18n.unsubscribeDataChanging(self);\n\n delete self._subscribing;\n }\n\n if (self._i18nWatcher) {\n self._i18nWatcher();\n\n self._i18n.destroyVM();\n\n delete self._i18nWatcher;\n }\n\n if (self._localeWatcher) {\n self._localeWatcher();\n\n delete self._localeWatcher;\n }\n });\n }\n };\n}\n/* */\n\n\nvar interpolationComponent = {\n name: 'i18n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n path: {\n type: String,\n required: true\n },\n locale: {\n type: String\n },\n places: {\n type: [Array, Object]\n }\n },\n render: function render(h, ref) {\n var data = ref.data;\n var parent = ref.parent;\n var props = ref.props;\n var slots = ref.slots;\n var $i18n = parent.$i18n;\n\n if (!$i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n\n return;\n }\n\n var path = props.path;\n var locale = props.locale;\n var places = props.places;\n var params = slots();\n var children = $i18n.i(path, locale, onlyHasDefaultPlace(params) || places ? useLegacyPlaces(params.default, places) : params);\n var tag = !!props.tag && props.tag !== true || props.tag === false ? props.tag : 'span';\n return tag ? h(tag, data, children) : children;\n }\n};\n\nfunction onlyHasDefaultPlace(params) {\n var prop;\n\n for (prop in params) {\n if (prop !== 'default') {\n return false;\n }\n }\n\n return Boolean(prop);\n}\n\nfunction useLegacyPlaces(children, places) {\n var params = places ? createParamsFromPlaces(places) : {};\n\n if (!children) {\n return params;\n } // Filter empty text nodes\n\n\n children = children.filter(function (child) {\n return child.tag || child.text.trim() !== '';\n });\n var everyPlace = children.every(vnodeHasPlaceAttribute);\n\n if (process.env.NODE_ENV !== 'production' && everyPlace) {\n warn('`place` attribute is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return children.reduce(everyPlace ? assignChildPlace : assignChildIndex, params);\n}\n\nfunction createParamsFromPlaces(places) {\n if (process.env.NODE_ENV !== 'production') {\n warn('`places` prop is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return Array.isArray(places) ? places.reduce(assignChildIndex, {}) : Object.assign({}, places);\n}\n\nfunction assignChildPlace(params, child) {\n if (child.data && child.data.attrs && child.data.attrs.place) {\n params[child.data.attrs.place] = child;\n }\n\n return params;\n}\n\nfunction assignChildIndex(params, child, index) {\n params[index] = child;\n return params;\n}\n\nfunction vnodeHasPlaceAttribute(vnode) {\n return Boolean(vnode.data && vnode.data.attrs && vnode.data.attrs.place);\n}\n/* */\n\n\nvar numberComponent = {\n name: 'i18n-n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n value: {\n type: Number,\n required: true\n },\n format: {\n type: [String, Object]\n },\n locale: {\n type: String\n }\n },\n render: function render(h, ref) {\n var props = ref.props;\n var parent = ref.parent;\n var data = ref.data;\n var i18n = parent.$i18n;\n\n if (!i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n\n return null;\n }\n\n var key = null;\n var options = null;\n\n if (isString(props.format)) {\n key = props.format;\n } else if (isObject(props.format)) {\n if (props.format.key) {\n key = props.format.key;\n } // Filter out number format options only\n\n\n options = Object.keys(props.format).reduce(function (acc, prop) {\n var obj;\n\n if (includes(numberFormatKeys, prop)) {\n return Object.assign({}, acc, (obj = {}, obj[prop] = props.format[prop], obj));\n }\n\n return acc;\n }, null);\n }\n\n var locale = props.locale || i18n.locale;\n\n var parts = i18n._ntp(props.value, locale, key, options);\n\n var values = parts.map(function (part, index) {\n var obj;\n var slot = data.scopedSlots && data.scopedSlots[part.type];\n return slot ? slot((obj = {}, obj[part.type] = part.value, obj.index = index, obj.parts = parts, obj)) : part.value;\n });\n var tag = !!props.tag && props.tag !== true || props.tag === false ? props.tag : 'span';\n return tag ? h(tag, {\n attrs: data.attrs,\n 'class': data['class'],\n staticClass: data.staticClass\n }, values) : values;\n }\n};\n/* */\n\nfunction bind(el, binding, vnode) {\n if (!assert(el, vnode)) {\n return;\n }\n\n t(el, binding, vnode);\n}\n\nfunction update(el, binding, vnode, oldVNode) {\n if (!assert(el, vnode)) {\n return;\n }\n\n var i18n = vnode.context.$i18n;\n\n if (localeEqual(el, vnode) && looseEqual(binding.value, binding.oldValue) && looseEqual(el._localeMessage, i18n.getLocaleMessage(i18n.locale))) {\n return;\n }\n\n t(el, binding, vnode);\n}\n\nfunction unbind(el, binding, vnode, oldVNode) {\n var vm = vnode.context;\n\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return;\n }\n\n var i18n = vnode.context.$i18n || {};\n\n if (!binding.modifiers.preserve && !i18n.preserveDirectiveContent) {\n el.textContent = '';\n }\n\n el._vt = undefined;\n delete el['_vt'];\n el._locale = undefined;\n delete el['_locale'];\n el._localeMessage = undefined;\n delete el['_localeMessage'];\n}\n\nfunction assert(el, vnode) {\n var vm = vnode.context;\n\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return false;\n }\n\n if (!vm.$i18n) {\n warn('VueI18n instance does not exists in Vue instance');\n return false;\n }\n\n return true;\n}\n\nfunction localeEqual(el, vnode) {\n var vm = vnode.context;\n return el._locale === vm.$i18n.locale;\n}\n\nfunction t(el, binding, vnode) {\n var ref$1, ref$2;\n var value = binding.value;\n var ref = parseValue(value);\n var path = ref.path;\n var locale = ref.locale;\n var args = ref.args;\n var choice = ref.choice;\n\n if (!path && !locale && !args) {\n warn('value type not supported');\n return;\n }\n\n if (!path) {\n warn('`path` is required in v-t directive');\n return;\n }\n\n var vm = vnode.context;\n\n if (choice != null) {\n el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [path, choice].concat(makeParams(locale, args)));\n } else {\n el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [path].concat(makeParams(locale, args)));\n }\n\n el._locale = vm.$i18n.locale;\n el._localeMessage = vm.$i18n.getLocaleMessage(vm.$i18n.locale);\n}\n\nfunction parseValue(value) {\n var path;\n var locale;\n var args;\n var choice;\n\n if (isString(value)) {\n path = value;\n } else if (isPlainObject(value)) {\n path = value.path;\n locale = value.locale;\n args = value.args;\n choice = value.choice;\n }\n\n return {\n path: path,\n locale: locale,\n args: args,\n choice: choice\n };\n}\n\nfunction makeParams(locale, args) {\n var params = [];\n locale && params.push(locale);\n\n if (args && (Array.isArray(args) || isPlainObject(args))) {\n params.push(args);\n }\n\n return params;\n}\n\nvar Vue;\n\nfunction install(_Vue, options) {\n if (options === void 0) options = {\n bridge: false\n };\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production' && install.installed && _Vue === Vue) {\n warn('already installed.');\n return;\n }\n\n install.installed = true;\n Vue = _Vue;\n var version = Vue.version && Number(Vue.version.split('.')[0]) || -1;\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production' && version < 2) {\n warn(\"vue-i18n (\" + install.version + \") need to use Vue 2.0 or later (Vue: \" + Vue.version + \").\");\n return;\n }\n\n extend(Vue);\n Vue.mixin(defineMixin(options.bridge));\n Vue.directive('t', {\n bind: bind,\n update: update,\n unbind: unbind\n });\n Vue.component(interpolationComponent.name, interpolationComponent);\n Vue.component(numberComponent.name, numberComponent); // use simple mergeStrategies to prevent i18n instance lose '__proto__'\n\n var strats = Vue.config.optionMergeStrategies;\n\n strats.i18n = function (parentVal, childVal) {\n return childVal === undefined ? parentVal : childVal;\n };\n}\n/* */\n\n\nvar BaseFormatter = function BaseFormatter() {\n this._caches = Object.create(null);\n};\n\nBaseFormatter.prototype.interpolate = function interpolate(message, values) {\n if (!values) {\n return [message];\n }\n\n var tokens = this._caches[message];\n\n if (!tokens) {\n tokens = parse(message);\n this._caches[message] = tokens;\n }\n\n return compile(tokens, values);\n};\n\nvar RE_TOKEN_LIST_VALUE = /^(?:\\d)+/;\nvar RE_TOKEN_NAMED_VALUE = /^(?:\\w)+/;\n\nfunction parse(format) {\n var tokens = [];\n var position = 0;\n var text = '';\n\n while (position < format.length) {\n var char = format[position++];\n\n if (char === '{') {\n if (text) {\n tokens.push({\n type: 'text',\n value: text\n });\n }\n\n text = '';\n var sub = '';\n char = format[position++];\n\n while (char !== undefined && char !== '}') {\n sub += char;\n char = format[position++];\n }\n\n var isClosed = char === '}';\n var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';\n tokens.push({\n value: sub,\n type: type\n });\n } else if (char === '%') {\n // when found rails i18n syntax, skip text capture\n if (format[position] !== '{') {\n text += char;\n }\n } else {\n text += char;\n }\n }\n\n text && tokens.push({\n type: 'text',\n value: text\n });\n return tokens;\n}\n\nfunction compile(tokens, values) {\n var compiled = [];\n var index = 0;\n var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';\n\n if (mode === 'unknown') {\n return compiled;\n }\n\n while (index < tokens.length) {\n var token = tokens[index];\n\n switch (token.type) {\n case 'text':\n compiled.push(token.value);\n break;\n\n case 'list':\n compiled.push(values[parseInt(token.value, 10)]);\n break;\n\n case 'named':\n if (mode === 'named') {\n compiled.push(values[token.value]);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Type of token '\" + token.type + \"' and format of value '\" + mode + \"' don't match!\");\n }\n }\n\n break;\n\n case 'unknown':\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Detect 'unknown' type of token!\");\n }\n\n break;\n }\n\n index++;\n }\n\n return compiled;\n}\n/* */\n\n/**\n * Path parser\n * - Inspired:\n * Vue.js Path parser\n */\n// actions\n\n\nvar APPEND = 0;\nvar PUSH = 1;\nvar INC_SUB_PATH_DEPTH = 2;\nvar PUSH_SUB_PATH = 3; // states\n\nvar BEFORE_PATH = 0;\nvar IN_PATH = 1;\nvar BEFORE_IDENT = 2;\nvar IN_IDENT = 3;\nvar IN_SUB_PATH = 4;\nvar IN_SINGLE_QUOTE = 5;\nvar IN_DOUBLE_QUOTE = 6;\nvar AFTER_PATH = 7;\nvar ERROR = 8;\nvar pathStateMachine = [];\npathStateMachine[BEFORE_PATH] = {\n 'ws': [BEFORE_PATH],\n 'ident': [IN_IDENT, APPEND],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\npathStateMachine[IN_PATH] = {\n 'ws': [IN_PATH],\n '.': [BEFORE_IDENT],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\npathStateMachine[BEFORE_IDENT] = {\n 'ws': [BEFORE_IDENT],\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND]\n};\npathStateMachine[IN_IDENT] = {\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND],\n 'ws': [IN_PATH, PUSH],\n '.': [BEFORE_IDENT, PUSH],\n '[': [IN_SUB_PATH, PUSH],\n 'eof': [AFTER_PATH, PUSH]\n};\npathStateMachine[IN_SUB_PATH] = {\n \"'\": [IN_SINGLE_QUOTE, APPEND],\n '\"': [IN_DOUBLE_QUOTE, APPEND],\n '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],\n ']': [IN_PATH, PUSH_SUB_PATH],\n 'eof': ERROR,\n 'else': [IN_SUB_PATH, APPEND]\n};\npathStateMachine[IN_SINGLE_QUOTE] = {\n \"'\": [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_SINGLE_QUOTE, APPEND]\n};\npathStateMachine[IN_DOUBLE_QUOTE] = {\n '\"': [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_DOUBLE_QUOTE, APPEND]\n};\n/**\n * Check if an expression is a literal value.\n */\n\nvar literalValueRE = /^\\s?(?:true|false|-?[\\d.]+|'[^']*'|\"[^\"]*\")\\s?$/;\n\nfunction isLiteral(exp) {\n return literalValueRE.test(exp);\n}\n/**\n * Strip quotes from a string\n */\n\n\nfunction stripQuotes(str) {\n var a = str.charCodeAt(0);\n var b = str.charCodeAt(str.length - 1);\n return a === b && (a === 0x22 || a === 0x27) ? str.slice(1, -1) : str;\n}\n/**\n * Determine the type of a character in a keypath.\n */\n\n\nfunction getPathCharType(ch) {\n if (ch === undefined || ch === null) {\n return 'eof';\n }\n\n var code = ch.charCodeAt(0);\n\n switch (code) {\n case 0x5B: // [\n\n case 0x5D: // ]\n\n case 0x2E: // .\n\n case 0x22: // \"\n\n case 0x27:\n // '\n return ch;\n\n case 0x5F: // _\n\n case 0x24: // $\n\n case 0x2D:\n // -\n return 'ident';\n\n case 0x09: // Tab\n\n case 0x0A: // Newline\n\n case 0x0D: // Return\n\n case 0xA0: // No-break space\n\n case 0xFEFF: // Byte Order Mark\n\n case 0x2028: // Line Separator\n\n case 0x2029:\n // Paragraph Separator\n return 'ws';\n }\n\n return 'ident';\n}\n/**\n * Format a subPath, return its plain form if it is\n * a literal string or number. Otherwise prepend the\n * dynamic indicator (*).\n */\n\n\nfunction formatSubPath(path) {\n var trimmed = path.trim(); // invalid leading 0\n\n if (path.charAt(0) === '0' && isNaN(path)) {\n return false;\n }\n\n return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed;\n}\n/**\n * Parse a string path into an array of segments\n */\n\n\nfunction parse$1(path) {\n var keys = [];\n var index = -1;\n var mode = BEFORE_PATH;\n var subPathDepth = 0;\n var c;\n var key;\n var newChar;\n var type;\n var transition;\n var action;\n var typeMap;\n var actions = [];\n\n actions[PUSH] = function () {\n if (key !== undefined) {\n keys.push(key);\n key = undefined;\n }\n };\n\n actions[APPEND] = function () {\n if (key === undefined) {\n key = newChar;\n } else {\n key += newChar;\n }\n };\n\n actions[INC_SUB_PATH_DEPTH] = function () {\n actions[APPEND]();\n subPathDepth++;\n };\n\n actions[PUSH_SUB_PATH] = function () {\n if (subPathDepth > 0) {\n subPathDepth--;\n mode = IN_SUB_PATH;\n actions[APPEND]();\n } else {\n subPathDepth = 0;\n\n if (key === undefined) {\n return false;\n }\n\n key = formatSubPath(key);\n\n if (key === false) {\n return false;\n } else {\n actions[PUSH]();\n }\n }\n };\n\n function maybeUnescapeQuote() {\n var nextChar = path[index + 1];\n\n if (mode === IN_SINGLE_QUOTE && nextChar === \"'\" || mode === IN_DOUBLE_QUOTE && nextChar === '\"') {\n index++;\n newChar = '\\\\' + nextChar;\n actions[APPEND]();\n return true;\n }\n }\n\n while (mode !== null) {\n index++;\n c = path[index];\n\n if (c === '\\\\' && maybeUnescapeQuote()) {\n continue;\n }\n\n type = getPathCharType(c);\n typeMap = pathStateMachine[mode];\n transition = typeMap[type] || typeMap['else'] || ERROR;\n\n if (transition === ERROR) {\n return; // parse error\n }\n\n mode = transition[0];\n action = actions[transition[1]];\n\n if (action) {\n newChar = transition[2];\n newChar = newChar === undefined ? c : newChar;\n\n if (action() === false) {\n return;\n }\n }\n\n if (mode === AFTER_PATH) {\n return keys;\n }\n }\n}\n\nvar I18nPath = function I18nPath() {\n this._cache = Object.create(null);\n};\n/**\n * External parse that check for a cache hit first\n */\n\n\nI18nPath.prototype.parsePath = function parsePath(path) {\n var hit = this._cache[path];\n\n if (!hit) {\n hit = parse$1(path);\n\n if (hit) {\n this._cache[path] = hit;\n }\n }\n\n return hit || [];\n};\n/**\n * Get path value from path string\n */\n\n\nI18nPath.prototype.getPathValue = function getPathValue(obj, path) {\n if (!isObject(obj)) {\n return null;\n }\n\n var paths = this.parsePath(path);\n\n if (paths.length === 0) {\n return null;\n } else {\n var length = paths.length;\n var last = obj;\n var i = 0;\n\n while (i < length) {\n var value = last[paths[i]];\n\n if (value === undefined || value === null) {\n return null;\n }\n\n last = value;\n i++;\n }\n\n return last;\n }\n};\n/* */\n\n\nvar htmlTagMatcher = /<\\/?[\\w\\s=\"/.':;#-\\/]+>/;\nvar linkKeyMatcher = /(?:@(?:\\.[a-zA-Z]+)?:(?:[\\w\\-_|./]+|\\([\\w\\-_:|./]+\\)))/g;\nvar linkKeyPrefixMatcher = /^@(?:\\.([a-zA-Z]+))?:/;\nvar bracketsMatcher = /[()]/g;\nvar defaultModifiers = {\n 'upper': function upper(str) {\n return str.toLocaleUpperCase();\n },\n 'lower': function lower(str) {\n return str.toLocaleLowerCase();\n },\n 'capitalize': function capitalize(str) {\n return \"\" + str.charAt(0).toLocaleUpperCase() + str.substr(1);\n }\n};\nvar defaultFormatter = new BaseFormatter();\n\nvar VueI18n = function VueI18n(options) {\n var this$1 = this;\n if (options === void 0) options = {}; // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #290\n\n /* istanbul ignore if */\n\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n var locale = options.locale || 'en-US';\n var fallbackLocale = options.fallbackLocale === false ? false : options.fallbackLocale || 'en-US';\n var messages = options.messages || {};\n var dateTimeFormats = options.dateTimeFormats || options.datetimeFormats || {};\n var numberFormats = options.numberFormats || {};\n this._vm = null;\n this._formatter = options.formatter || defaultFormatter;\n this._modifiers = options.modifiers || {};\n this._missing = options.missing || null;\n this._root = options.root || null;\n this._sync = options.sync === undefined ? true : !!options.sync;\n this._fallbackRoot = options.fallbackRoot === undefined ? true : !!options.fallbackRoot;\n this._fallbackRootWithEmptyString = options.fallbackRootWithEmptyString === undefined ? true : !!options.fallbackRootWithEmptyString;\n this._formatFallbackMessages = options.formatFallbackMessages === undefined ? false : !!options.formatFallbackMessages;\n this._silentTranslationWarn = options.silentTranslationWarn === undefined ? false : options.silentTranslationWarn;\n this._silentFallbackWarn = options.silentFallbackWarn === undefined ? false : !!options.silentFallbackWarn;\n this._dateTimeFormatters = {};\n this._numberFormatters = {};\n this._path = new I18nPath();\n this._dataListeners = new Set();\n this._componentInstanceCreatedListener = options.componentInstanceCreatedListener || null;\n this._preserveDirectiveContent = options.preserveDirectiveContent === undefined ? false : !!options.preserveDirectiveContent;\n this.pluralizationRules = options.pluralizationRules || {};\n this._warnHtmlInMessage = options.warnHtmlInMessage || 'off';\n this._postTranslation = options.postTranslation || null;\n this._escapeParameterHtml = options.escapeParameterHtml || false;\n\n if ('__VUE_I18N_BRIDGE__' in options) {\n this.__VUE_I18N_BRIDGE__ = options.__VUE_I18N_BRIDGE__;\n }\n /**\n * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`\n * @param choicesLength {number} an overall amount of available choices\n * @returns a final choice index\n */\n\n\n this.getChoiceIndex = function (choice, choicesLength) {\n var thisPrototype = Object.getPrototypeOf(this$1);\n\n if (thisPrototype && thisPrototype.getChoiceIndex) {\n var prototypeGetChoiceIndex = thisPrototype.getChoiceIndex;\n return prototypeGetChoiceIndex.call(this$1, choice, choicesLength);\n } // Default (old) getChoiceIndex implementation - english-compatible\n\n\n var defaultImpl = function defaultImpl(_choice, _choicesLength) {\n _choice = Math.abs(_choice);\n\n if (_choicesLength === 2) {\n return _choice ? _choice > 1 ? 1 : 0 : 1;\n }\n\n return _choice ? Math.min(_choice, 2) : 0;\n };\n\n if (this$1.locale in this$1.pluralizationRules) {\n return this$1.pluralizationRules[this$1.locale].apply(this$1, [choice, choicesLength]);\n } else {\n return defaultImpl(choice, choicesLength);\n }\n };\n\n this._exist = function (message, key) {\n if (!message || !key) {\n return false;\n }\n\n if (!isNull(this$1._path.getPathValue(message, key))) {\n return true;\n } // fallback for flat key\n\n\n if (message[key]) {\n return true;\n }\n\n return false;\n };\n\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n\n this._initVM({\n locale: locale,\n fallbackLocale: fallbackLocale,\n messages: messages,\n dateTimeFormats: dateTimeFormats,\n numberFormats: numberFormats\n });\n};\n\nvar prototypeAccessors = {\n vm: {\n configurable: true\n },\n messages: {\n configurable: true\n },\n dateTimeFormats: {\n configurable: true\n },\n numberFormats: {\n configurable: true\n },\n availableLocales: {\n configurable: true\n },\n locale: {\n configurable: true\n },\n fallbackLocale: {\n configurable: true\n },\n formatFallbackMessages: {\n configurable: true\n },\n missing: {\n configurable: true\n },\n formatter: {\n configurable: true\n },\n silentTranslationWarn: {\n configurable: true\n },\n silentFallbackWarn: {\n configurable: true\n },\n preserveDirectiveContent: {\n configurable: true\n },\n warnHtmlInMessage: {\n configurable: true\n },\n postTranslation: {\n configurable: true\n },\n sync: {\n configurable: true\n }\n};\n\nVueI18n.prototype._checkLocaleMessage = function _checkLocaleMessage(locale, level, message) {\n var paths = [];\n\n var fn = function fn(level, locale, message, paths) {\n if (isPlainObject(message)) {\n Object.keys(message).forEach(function (key) {\n var val = message[key];\n\n if (isPlainObject(val)) {\n paths.push(key);\n paths.push('.');\n fn(level, locale, val, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push(key);\n fn(level, locale, val, paths);\n paths.pop();\n }\n });\n } else if (isArray(message)) {\n message.forEach(function (item, index) {\n if (isPlainObject(item)) {\n paths.push(\"[\" + index + \"]\");\n paths.push('.');\n fn(level, locale, item, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push(\"[\" + index + \"]\");\n fn(level, locale, item, paths);\n paths.pop();\n }\n });\n } else if (isString(message)) {\n var ret = htmlTagMatcher.test(message);\n\n if (ret) {\n var msg = \"Detected HTML in message '\" + message + \"' of keypath '\" + paths.join('') + \"' at '\" + locale + \"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp\";\n\n if (level === 'warn') {\n warn(msg);\n } else if (level === 'error') {\n error(msg);\n }\n }\n }\n };\n\n fn(level, locale, message, paths);\n};\n\nVueI18n.prototype._initVM = function _initVM(data) {\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n this._vm = new Vue({\n data: data,\n __VUE18N__INSTANCE__: true\n });\n Vue.config.silent = silent;\n};\n\nVueI18n.prototype.destroyVM = function destroyVM() {\n this._vm.$destroy();\n};\n\nVueI18n.prototype.subscribeDataChanging = function subscribeDataChanging(vm) {\n this._dataListeners.add(vm);\n};\n\nVueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging(vm) {\n remove(this._dataListeners, vm);\n};\n\nVueI18n.prototype.watchI18nData = function watchI18nData() {\n var this$1 = this;\n return this._vm.$watch('$data', function () {\n var listeners = arrayFrom(this$1._dataListeners);\n var i = listeners.length;\n\n while (i--) {\n Vue.nextTick(function () {\n listeners[i] && listeners[i].$forceUpdate();\n });\n }\n }, {\n deep: true\n });\n};\n\nVueI18n.prototype.watchLocale = function watchLocale(composer) {\n if (!composer) {\n /* istanbul ignore if */\n if (!this._sync || !this._root) {\n return null;\n }\n\n var target = this._vm;\n return this._root.$i18n.vm.$watch('locale', function (val) {\n target.$set(target, 'locale', val);\n target.$forceUpdate();\n }, {\n immediate: true\n });\n } else {\n // deal with vue-i18n-bridge\n if (!this.__VUE_I18N_BRIDGE__) {\n return null;\n }\n\n var self = this;\n var target$1 = this._vm;\n return this.vm.$watch('locale', function (val) {\n target$1.$set(target$1, 'locale', val);\n\n if (self.__VUE_I18N_BRIDGE__ && composer) {\n composer.locale.value = val;\n }\n\n target$1.$forceUpdate();\n }, {\n immediate: true\n });\n }\n};\n\nVueI18n.prototype.onComponentInstanceCreated = function onComponentInstanceCreated(newI18n) {\n if (this._componentInstanceCreatedListener) {\n this._componentInstanceCreatedListener(newI18n, this);\n }\n};\n\nprototypeAccessors.vm.get = function () {\n return this._vm;\n};\n\nprototypeAccessors.messages.get = function () {\n return looseClone(this._getMessages());\n};\n\nprototypeAccessors.dateTimeFormats.get = function () {\n return looseClone(this._getDateTimeFormats());\n};\n\nprototypeAccessors.numberFormats.get = function () {\n return looseClone(this._getNumberFormats());\n};\n\nprototypeAccessors.availableLocales.get = function () {\n return Object.keys(this.messages).sort();\n};\n\nprototypeAccessors.locale.get = function () {\n return this._vm.locale;\n};\n\nprototypeAccessors.locale.set = function (locale) {\n this._vm.$set(this._vm, 'locale', locale);\n};\n\nprototypeAccessors.fallbackLocale.get = function () {\n return this._vm.fallbackLocale;\n};\n\nprototypeAccessors.fallbackLocale.set = function (locale) {\n this._localeChainCache = {};\n\n this._vm.$set(this._vm, 'fallbackLocale', locale);\n};\n\nprototypeAccessors.formatFallbackMessages.get = function () {\n return this._formatFallbackMessages;\n};\n\nprototypeAccessors.formatFallbackMessages.set = function (fallback) {\n this._formatFallbackMessages = fallback;\n};\n\nprototypeAccessors.missing.get = function () {\n return this._missing;\n};\n\nprototypeAccessors.missing.set = function (handler) {\n this._missing = handler;\n};\n\nprototypeAccessors.formatter.get = function () {\n return this._formatter;\n};\n\nprototypeAccessors.formatter.set = function (formatter) {\n this._formatter = formatter;\n};\n\nprototypeAccessors.silentTranslationWarn.get = function () {\n return this._silentTranslationWarn;\n};\n\nprototypeAccessors.silentTranslationWarn.set = function (silent) {\n this._silentTranslationWarn = silent;\n};\n\nprototypeAccessors.silentFallbackWarn.get = function () {\n return this._silentFallbackWarn;\n};\n\nprototypeAccessors.silentFallbackWarn.set = function (silent) {\n this._silentFallbackWarn = silent;\n};\n\nprototypeAccessors.preserveDirectiveContent.get = function () {\n return this._preserveDirectiveContent;\n};\n\nprototypeAccessors.preserveDirectiveContent.set = function (preserve) {\n this._preserveDirectiveContent = preserve;\n};\n\nprototypeAccessors.warnHtmlInMessage.get = function () {\n return this._warnHtmlInMessage;\n};\n\nprototypeAccessors.warnHtmlInMessage.set = function (level) {\n var this$1 = this;\n var orgLevel = this._warnHtmlInMessage;\n this._warnHtmlInMessage = level;\n\n if (orgLevel !== level && (level === 'warn' || level === 'error')) {\n var messages = this._getMessages();\n\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n};\n\nprototypeAccessors.postTranslation.get = function () {\n return this._postTranslation;\n};\n\nprototypeAccessors.postTranslation.set = function (handler) {\n this._postTranslation = handler;\n};\n\nprototypeAccessors.sync.get = function () {\n return this._sync;\n};\n\nprototypeAccessors.sync.set = function (val) {\n this._sync = val;\n};\n\nVueI18n.prototype._getMessages = function _getMessages() {\n return this._vm.messages;\n};\n\nVueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats() {\n return this._vm.dateTimeFormats;\n};\n\nVueI18n.prototype._getNumberFormats = function _getNumberFormats() {\n return this._vm.numberFormats;\n};\n\nVueI18n.prototype._warnDefault = function _warnDefault(locale, key, result, vm, values, interpolateMode) {\n if (!isNull(result)) {\n return result;\n }\n\n if (this._missing) {\n var missingRet = this._missing.apply(null, [locale, key, vm, values]);\n\n if (isString(missingRet)) {\n return missingRet;\n }\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn(\"Cannot translate the value of keypath '\" + key + \"'. \" + 'Use the value of keypath as default.');\n }\n }\n\n if (this._formatFallbackMessages) {\n var parsedArgs = parseArgs.apply(void 0, values);\n return this._render(key, interpolateMode, parsedArgs.params, key);\n } else {\n return key;\n }\n};\n\nVueI18n.prototype._isFallbackRoot = function _isFallbackRoot(val) {\n return (this._fallbackRootWithEmptyString ? !val : isNull(val)) && !isNull(this._root) && this._fallbackRoot;\n};\n\nVueI18n.prototype._isSilentFallbackWarn = function _isSilentFallbackWarn(key) {\n return this._silentFallbackWarn instanceof RegExp ? this._silentFallbackWarn.test(key) : this._silentFallbackWarn;\n};\n\nVueI18n.prototype._isSilentFallback = function _isSilentFallback(locale, key) {\n return this._isSilentFallbackWarn(key) && (this._isFallbackRoot() || locale !== this.fallbackLocale);\n};\n\nVueI18n.prototype._isSilentTranslationWarn = function _isSilentTranslationWarn(key) {\n return this._silentTranslationWarn instanceof RegExp ? this._silentTranslationWarn.test(key) : this._silentTranslationWarn;\n};\n\nVueI18n.prototype._interpolate = function _interpolate(locale, message, key, host, interpolateMode, values, visitedLinkStack) {\n if (!message) {\n return null;\n }\n\n var pathRet = this._path.getPathValue(message, key);\n\n if (isArray(pathRet) || isPlainObject(pathRet)) {\n return pathRet;\n }\n\n var ret;\n\n if (isNull(pathRet)) {\n /* istanbul ignore else */\n if (isPlainObject(message)) {\n ret = message[key];\n\n if (!(isString(ret) || isFunction(ret))) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn(\"Value of key '\" + key + \"' is not a string or function !\");\n }\n\n return null;\n }\n } else {\n return null;\n }\n } else {\n /* istanbul ignore else */\n if (isString(pathRet) || isFunction(pathRet)) {\n ret = pathRet;\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn(\"Value of key '\" + key + \"' is not a string or function!\");\n }\n\n return null;\n }\n } // Check for the existence of links within the translated string\n\n\n if (isString(ret) && (ret.indexOf('@:') >= 0 || ret.indexOf('@.') >= 0)) {\n ret = this._link(locale, message, ret, host, 'raw', values, visitedLinkStack);\n }\n\n return this._render(ret, interpolateMode, values, key);\n};\n\nVueI18n.prototype._link = function _link(locale, message, str, host, interpolateMode, values, visitedLinkStack) {\n var ret = str; // Match all the links within the local\n // We are going to replace each of\n // them with its translation\n\n var matches = ret.match(linkKeyMatcher); // eslint-disable-next-line no-autofix/prefer-const\n\n for (var idx in matches) {\n // ie compatible: filter custom array\n // prototype method\n if (!matches.hasOwnProperty(idx)) {\n continue;\n }\n\n var link = matches[idx];\n var linkKeyPrefixMatches = link.match(linkKeyPrefixMatcher);\n var linkPrefix = linkKeyPrefixMatches[0];\n var formatterName = linkKeyPrefixMatches[1]; // Remove the leading @:, @.case: and the brackets\n\n var linkPlaceholder = link.replace(linkPrefix, '').replace(bracketsMatcher, '');\n\n if (includes(visitedLinkStack, linkPlaceholder)) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Circular reference found. \\\"\" + link + \"\\\" is already visited in the chain of \" + visitedLinkStack.reverse().join(' <- '));\n }\n\n return ret;\n }\n\n visitedLinkStack.push(linkPlaceholder); // Translate the link\n\n var translated = this._interpolate(locale, message, linkPlaceholder, host, interpolateMode === 'raw' ? 'string' : interpolateMode, interpolateMode === 'raw' ? undefined : values, visitedLinkStack);\n\n if (this._isFallbackRoot(translated)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(linkPlaceholder)) {\n warn(\"Fall back to translate the link placeholder '\" + linkPlaceholder + \"' with root locale.\");\n }\n /* istanbul ignore if */\n\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n var root = this._root.$i18n;\n translated = root._translate(root._getMessages(), root.locale, root.fallbackLocale, linkPlaceholder, host, interpolateMode, values);\n }\n\n translated = this._warnDefault(locale, linkPlaceholder, translated, host, isArray(values) ? values : [values], interpolateMode);\n\n if (this._modifiers.hasOwnProperty(formatterName)) {\n translated = this._modifiers[formatterName](translated);\n } else if (defaultModifiers.hasOwnProperty(formatterName)) {\n translated = defaultModifiers[formatterName](translated);\n }\n\n visitedLinkStack.pop(); // Replace the link with the translated\n\n ret = !translated ? ret : ret.replace(link, translated);\n }\n\n return ret;\n};\n\nVueI18n.prototype._createMessageContext = function _createMessageContext(values, formatter, path, interpolateMode) {\n var this$1 = this;\n\n var _list = isArray(values) ? values : [];\n\n var _named = isObject(values) ? values : {};\n\n var list = function list(index) {\n return _list[index];\n };\n\n var named = function named(key) {\n return _named[key];\n };\n\n var messages = this._getMessages();\n\n var locale = this.locale;\n return {\n list: list,\n named: named,\n values: values,\n formatter: formatter,\n path: path,\n messages: messages,\n locale: locale,\n linked: function linked(linkedKey) {\n return this$1._interpolate(locale, messages[locale] || {}, linkedKey, null, interpolateMode, undefined, [linkedKey]);\n }\n };\n};\n\nVueI18n.prototype._render = function _render(message, interpolateMode, values, path) {\n if (isFunction(message)) {\n return message(this._createMessageContext(values, this._formatter || defaultFormatter, path, interpolateMode));\n }\n\n var ret = this._formatter.interpolate(message, values, path); // If the custom formatter refuses to work - apply the default one\n\n\n if (!ret) {\n ret = defaultFormatter.interpolate(message, values, path);\n } // if interpolateMode is **not** 'string' ('row'),\n // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter\n\n\n return interpolateMode === 'string' && !isString(ret) ? ret.join('') : ret;\n};\n\nVueI18n.prototype._appendItemToChain = function _appendItemToChain(chain, item, blocks) {\n var follow = false;\n\n if (!includes(chain, item)) {\n follow = true;\n\n if (item) {\n follow = item[item.length - 1] !== '!';\n item = item.replace(/!/g, '');\n chain.push(item);\n\n if (blocks && blocks[item]) {\n follow = blocks[item];\n }\n }\n }\n\n return follow;\n};\n\nVueI18n.prototype._appendLocaleToChain = function _appendLocaleToChain(chain, locale, blocks) {\n var follow;\n var tokens = locale.split('-');\n\n do {\n var item = tokens.join('-');\n follow = this._appendItemToChain(chain, item, blocks);\n tokens.splice(-1, 1);\n } while (tokens.length && follow === true);\n\n return follow;\n};\n\nVueI18n.prototype._appendBlockToChain = function _appendBlockToChain(chain, block, blocks) {\n var follow = true;\n\n for (var i = 0; i < block.length && isBoolean(follow); i++) {\n var locale = block[i];\n\n if (isString(locale)) {\n follow = this._appendLocaleToChain(chain, locale, blocks);\n }\n }\n\n return follow;\n};\n\nVueI18n.prototype._getLocaleChain = function _getLocaleChain(start, fallbackLocale) {\n if (start === '') {\n return [];\n }\n\n if (!this._localeChainCache) {\n this._localeChainCache = {};\n }\n\n var chain = this._localeChainCache[start];\n\n if (!chain) {\n if (!fallbackLocale) {\n fallbackLocale = this.fallbackLocale;\n }\n\n chain = []; // first block defined by start\n\n var block = [start]; // while any intervening block found\n\n while (isArray(block)) {\n block = this._appendBlockToChain(chain, block, fallbackLocale);\n } // last block defined by default\n\n\n var defaults;\n\n if (isArray(fallbackLocale)) {\n defaults = fallbackLocale;\n } else if (isObject(fallbackLocale)) {\n /* $FlowFixMe */\n if (fallbackLocale['default']) {\n defaults = fallbackLocale['default'];\n } else {\n defaults = null;\n }\n } else {\n defaults = fallbackLocale;\n } // convert defaults to array\n\n\n if (isString(defaults)) {\n block = [defaults];\n } else {\n block = defaults;\n }\n\n if (block) {\n this._appendBlockToChain(chain, block, null);\n }\n\n this._localeChainCache[start] = chain;\n }\n\n return chain;\n};\n\nVueI18n.prototype._translate = function _translate(messages, locale, fallback, key, host, interpolateMode, args) {\n var chain = this._getLocaleChain(locale, fallback);\n\n var res;\n\n for (var i = 0; i < chain.length; i++) {\n var step = chain[i];\n res = this._interpolate(step, messages[step], key, host, interpolateMode, args, [key]);\n\n if (!isNull(res)) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to translate the keypath '\" + key + \"' with '\" + step + \"' locale.\");\n }\n\n return res;\n }\n }\n\n return null;\n};\n\nVueI18n.prototype._t = function _t(key, _locale, messages, host) {\n var ref;\n var values = [],\n len = arguments.length - 4;\n\n while (len-- > 0) {\n values[len] = arguments[len + 4];\n }\n\n if (!key) {\n return '';\n }\n\n var parsedArgs = parseArgs.apply(void 0, values);\n\n if (this._escapeParameterHtml) {\n parsedArgs.params = escapeParams(parsedArgs.params);\n }\n\n var locale = parsedArgs.locale || _locale;\n\n var ret = this._translate(messages, locale, this.fallbackLocale, key, host, 'string', parsedArgs.params);\n\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to translate the keypath '\" + key + \"' with root locale.\");\n }\n /* istanbul ignore if */\n\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n return (ref = this._root).$t.apply(ref, [key].concat(values));\n } else {\n ret = this._warnDefault(locale, key, ret, host, values, 'string');\n\n if (this._postTranslation && ret !== null && ret !== undefined) {\n ret = this._postTranslation(ret, key);\n }\n\n return ret;\n }\n};\n\nVueI18n.prototype.t = function t(key) {\n var ref;\n var values = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n values[len] = arguments[len + 1];\n }\n\n return (ref = this)._t.apply(ref, [key, this.locale, this._getMessages(), null].concat(values));\n};\n\nVueI18n.prototype._i = function _i(key, locale, messages, host, values) {\n var ret = this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);\n\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn(\"Fall back to interpolate the keypath '\" + key + \"' with root locale.\");\n }\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n return this._root.$i18n.i(key, locale, values);\n } else {\n return this._warnDefault(locale, key, ret, host, [values], 'raw');\n }\n};\n\nVueI18n.prototype.i = function i(key, locale, values) {\n /* istanbul ignore if */\n if (!key) {\n return '';\n }\n\n if (!isString(locale)) {\n locale = this.locale;\n }\n\n return this._i(key, locale, this._getMessages(), null, values);\n};\n\nVueI18n.prototype._tc = function _tc(key, _locale, messages, host, choice) {\n var ref;\n var values = [],\n len = arguments.length - 5;\n\n while (len-- > 0) {\n values[len] = arguments[len + 5];\n }\n\n if (!key) {\n return '';\n }\n\n if (choice === undefined) {\n choice = 1;\n }\n\n var predefined = {\n 'count': choice,\n 'n': choice\n };\n var parsedArgs = parseArgs.apply(void 0, values);\n parsedArgs.params = Object.assign(predefined, parsedArgs.params);\n values = parsedArgs.locale === null ? [parsedArgs.params] : [parsedArgs.locale, parsedArgs.params];\n return this.fetchChoice((ref = this)._t.apply(ref, [key, _locale, messages, host].concat(values)), choice);\n};\n\nVueI18n.prototype.fetchChoice = function fetchChoice(message, choice) {\n /* istanbul ignore if */\n if (!message || !isString(message)) {\n return null;\n }\n\n var choices = message.split('|');\n choice = this.getChoiceIndex(choice, choices.length);\n\n if (!choices[choice]) {\n return message;\n }\n\n return choices[choice].trim();\n};\n\nVueI18n.prototype.tc = function tc(key, choice) {\n var ref;\n var values = [],\n len = arguments.length - 2;\n\n while (len-- > 0) {\n values[len] = arguments[len + 2];\n }\n\n return (ref = this)._tc.apply(ref, [key, this.locale, this._getMessages(), null, choice].concat(values));\n};\n\nVueI18n.prototype._te = function _te(key, locale, messages) {\n var args = [],\n len = arguments.length - 3;\n\n while (len-- > 0) {\n args[len] = arguments[len + 3];\n }\n\n var _locale = parseArgs.apply(void 0, args).locale || locale;\n\n return this._exist(messages[_locale], key);\n};\n\nVueI18n.prototype.te = function te(key, locale) {\n return this._te(key, this.locale, this._getMessages(), locale);\n};\n\nVueI18n.prototype.getLocaleMessage = function getLocaleMessage(locale) {\n return looseClone(this._vm.messages[locale] || {});\n};\n\nVueI18n.prototype.setLocaleMessage = function setLocaleMessage(locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n\n this._vm.$set(this._vm.messages, locale, message);\n};\n\nVueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage(locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n\n this._vm.$set(this._vm.messages, locale, merge(typeof this._vm.messages[locale] !== 'undefined' && Object.keys(this._vm.messages[locale]).length ? Object.assign({}, this._vm.messages[locale]) : {}, message));\n};\n\nVueI18n.prototype.getDateTimeFormat = function getDateTimeFormat(locale) {\n return looseClone(this._vm.dateTimeFormats[locale] || {});\n};\n\nVueI18n.prototype.setDateTimeFormat = function setDateTimeFormat(locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, format);\n\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat(locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, merge(this._vm.dateTimeFormats[locale] || {}, format));\n\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype._clearDateTimeFormat = function _clearDateTimeFormat(locale, format) {\n // eslint-disable-next-line no-autofix/prefer-const\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._dateTimeFormatters.hasOwnProperty(id)) {\n continue;\n }\n\n delete this._dateTimeFormatters[id];\n }\n};\n\nVueI18n.prototype._localizeDateTime = function _localizeDateTime(value, locale, fallback, dateTimeFormats, key) {\n var _locale = locale;\n var formats = dateTimeFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = dateTimeFormats[step];\n _locale = step; // fallback locale\n\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to '\" + step + \"' datetime formats from '\" + current + \"' datetime formats.\");\n }\n } else {\n break;\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null;\n } else {\n var format = formats[key];\n var id = _locale + \"__\" + key;\n var formatter = this._dateTimeFormatters[id];\n\n if (!formatter) {\n formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);\n }\n\n return formatter.format(value);\n }\n};\n\nVueI18n.prototype._d = function _d(value, locale, key) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !VueI18n.availabilities.dateTimeFormat) {\n warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');\n return '';\n }\n\n if (!key) {\n return new Intl.DateTimeFormat(locale).format(value);\n }\n\n var ret = this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key);\n\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to datetime localization of root: key '\" + key + \"'.\");\n }\n /* istanbul ignore if */\n\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n return this._root.$i18n.d(value, key, locale);\n } else {\n return ret || '';\n }\n};\n\nVueI18n.prototype.d = function d(value) {\n var args = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n args[len] = arguments[len + 1];\n }\n\n var locale = this.locale;\n var key = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n\n if (args[0].key) {\n key = args[0].key;\n }\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._d(value, locale, key);\n};\n\nVueI18n.prototype.getNumberFormat = function getNumberFormat(locale) {\n return looseClone(this._vm.numberFormats[locale] || {});\n};\n\nVueI18n.prototype.setNumberFormat = function setNumberFormat(locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, format);\n\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype.mergeNumberFormat = function mergeNumberFormat(locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, merge(this._vm.numberFormats[locale] || {}, format));\n\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype._clearNumberFormat = function _clearNumberFormat(locale, format) {\n // eslint-disable-next-line no-autofix/prefer-const\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._numberFormatters.hasOwnProperty(id)) {\n continue;\n }\n\n delete this._numberFormatters[id];\n }\n};\n\nVueI18n.prototype._getNumberFormatter = function _getNumberFormatter(value, locale, fallback, numberFormats, key, options) {\n var _locale = locale;\n var formats = numberFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = numberFormats[step];\n _locale = step; // fallback locale\n\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to '\" + step + \"' number formats from '\" + current + \"' number formats.\");\n }\n } else {\n break;\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null;\n } else {\n var format = formats[key];\n var formatter;\n\n if (options) {\n // If options specified - create one time number formatter\n formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));\n } else {\n var id = _locale + \"__\" + key;\n formatter = this._numberFormatters[id];\n\n if (!formatter) {\n formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);\n }\n }\n\n return formatter;\n }\n};\n\nVueI18n.prototype._n = function _n(value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format a Number value due to not supported Intl.NumberFormat.');\n }\n\n return '';\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.format(value);\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n\n var ret = formatter && formatter.format(value);\n\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn(\"Fall back to number localization of root: key '\" + key + \"'.\");\n }\n /* istanbul ignore if */\n\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n return this._root.$i18n.n(value, Object.assign({}, {\n key: key,\n locale: locale\n }, options));\n } else {\n return ret || '';\n }\n};\n\nVueI18n.prototype.n = function n(value) {\n var args = [],\n len = arguments.length - 1;\n\n while (len-- > 0) {\n args[len] = arguments[len + 1];\n }\n\n var locale = this.locale;\n var key = null;\n var options = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n\n if (args[0].key) {\n key = args[0].key;\n } // Filter out number format options only\n\n\n options = Object.keys(args[0]).reduce(function (acc, key) {\n var obj;\n\n if (includes(numberFormatKeys, key)) {\n return Object.assign({}, acc, (obj = {}, obj[key] = args[0][key], obj));\n }\n\n return acc;\n }, null);\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._n(value, locale, key, options);\n};\n\nVueI18n.prototype._ntp = function _ntp(value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format to parts a Number value due to not supported Intl.NumberFormat.');\n }\n\n return [];\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.formatToParts(value);\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n\n var ret = formatter && formatter.formatToParts(value);\n\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn(\"Fall back to format number to parts of root: key '\" + key + \"' .\");\n }\n /* istanbul ignore if */\n\n\n if (!this._root) {\n throw Error('unexpected error');\n }\n\n return this._root.$i18n._ntp(value, locale, key, options);\n } else {\n return ret || [];\n }\n};\n\nObject.defineProperties(VueI18n.prototype, prototypeAccessors);\nvar availabilities; // $FlowFixMe\n\nObject.defineProperty(VueI18n, 'availabilities', {\n get: function get() {\n if (!availabilities) {\n var intlDefined = typeof Intl !== 'undefined';\n availabilities = {\n dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',\n numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'\n };\n }\n\n return availabilities;\n }\n});\nVueI18n.install = install;\nVueI18n.version = '8.27.2';\nexport default VueI18n;","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","module.exports = require('./lib')['PhoneNumber$$module$src$index'];\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.default = module.exports;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _SET_BY_CODE;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n} // constants for internal usage\n\n\nvar SET_A = exports.SET_A = 0;\nvar SET_B = exports.SET_B = 1;\nvar SET_C = exports.SET_C = 2; // Special characters\n\nvar SHIFT = exports.SHIFT = 98;\nvar START_A = exports.START_A = 103;\nvar START_B = exports.START_B = 104;\nvar START_C = exports.START_C = 105;\nvar MODULO = exports.MODULO = 103;\nvar STOP = exports.STOP = 106;\nvar FNC1 = exports.FNC1 = 207; // Get set by start code\n\nvar SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code\n\nvar SWAP = exports.SWAP = {\n 101: SET_A,\n 100: SET_B,\n 99: SET_C\n};\nvar A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105\n\nvar B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105\n\nvar C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105\n// 128A (Code Set A)\n// ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4\n\nvar A_CHARS = exports.A_CHARS = \"[\\x00-\\x5F\\xC8-\\xCF]\"; // 128B (Code Set B)\n// ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4\n\nvar B_CHARS = exports.B_CHARS = \"[\\x20-\\x7F\\xC8-\\xCF]\"; // 128C (Code Set C)\n// 00–99 (encodes two digits with a single code point) and FNC1\n\nvar C_CHARS = exports.C_CHARS = \"(\\xCF*[0-9]{2}\\xCF*)\"; // CODE128 includes 107 symbols:\n// 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one)\n// Each symbol consist of three black bars (1) and three white spaces (0).\n\nvar BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n}); // Standard start end and middle bits\n\nvar SIDE_BIN = exports.SIDE_BIN = '101';\nvar MIDDLE_BIN = exports.MIDDLE_BIN = '01010';\nvar BINARIES = exports.BINARIES = {\n 'L': [// The L (left) type of encoding\n '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],\n 'G': [// The G type of encoding\n '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'],\n 'R': [// The R (right) type of encoding\n '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'],\n 'O': [// The O (odd) encoding for UPC-E\n '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],\n 'E': [// The E (even) encoding for UPC-E\n '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111']\n}; // Define the EAN-2 structure\n\nvar EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure\n\nvar EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure\n\nvar EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _constants = require('./constants'); // Encode data string\n\n\nvar encode = function encode(data, structure, separator) {\n var encoded = data.split('').map(function (val, idx) {\n return _constants.BINARIES[structure[idx]];\n }).map(function (val, idx) {\n return val ? val[data[idx]] : '';\n });\n\n if (separator) {\n var last = data.length - 1;\n encoded = encoded.map(function (val, idx) {\n return idx < last ? val + separator : val;\n });\n }\n\n return encoded.join('');\n};\n\nexports.default = encode;","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (_typeof(call) === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + _typeof(superClass));\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation\n// https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup\n\n\nvar MSI = function (_Barcode) {\n _inherits(MSI, _Barcode);\n\n function MSI(data, options) {\n _classCallCheck(this, MSI);\n\n return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options));\n }\n\n _createClass(MSI, [{\n key: \"encode\",\n value: function encode() {\n // Start bits\n var ret = \"110\";\n\n for (var i = 0; i < this.data.length; i++) {\n // Convert the character to binary (always 4 binary digits)\n var digit = parseInt(this.data[i]);\n var bin = digit.toString(2);\n bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1\n\n for (var b = 0; b < bin.length; b++) {\n ret += bin[b] == \"0\" ? \"100\" : \"110\";\n }\n } // End bits\n\n\n ret += \"1001\";\n return {\n data: ret,\n text: this.text\n };\n }\n }, {\n key: \"valid\",\n value: function valid() {\n return this.data.search(/^[0-9]+$/) !== -1;\n }\n }]);\n\n return MSI;\n}(_Barcode3.default);\n\nfunction addZeroes(number, n) {\n for (var i = 0; i < n; i++) {\n number = \"0\" + number;\n }\n\n return number;\n}\n\nexports.default = MSI;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getPropsValues = getPropsValues;\nexports.bindProps = bindProps;\n\nvar _WatchPrimitiveProperties = require('../utils/WatchPrimitiveProperties');\n\nvar _WatchPrimitiveProperties2 = _interopRequireDefault(_WatchPrimitiveProperties);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction capitalizeFirstLetter(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nfunction getPropsValues(vueInst, props) {\n return Object.keys(props).reduce(function (acc, prop) {\n if (vueInst[prop] !== undefined) {\n acc[prop] = vueInst[prop];\n }\n\n return acc;\n }, {});\n}\n/**\n * Binds the properties defined in props to the google maps instance.\n * If the prop is an Object type, and we wish to track the properties\n * of the object (e.g. the lat and lng of a LatLng), then we do a deep\n * watch. For deep watch, we also prevent the _changed event from being\n * emitted if the data source was external.\n */\n\n\nfunction bindProps(vueInst, googleMapsInst, props) {\n var _loop = function _loop(attribute) {\n var _props$attribute = props[attribute],\n twoWay = _props$attribute.twoWay,\n type = _props$attribute.type,\n trackProperties = _props$attribute.trackProperties,\n noBind = _props$attribute.noBind;\n if (noBind) return 'continue';\n var setMethodName = 'set' + capitalizeFirstLetter(attribute);\n var getMethodName = 'get' + capitalizeFirstLetter(attribute);\n var eventName = attribute.toLowerCase() + '_changed';\n var initialValue = vueInst[attribute];\n\n if (typeof googleMapsInst[setMethodName] === 'undefined') {\n throw new Error(setMethodName + ' is not a method of (the Maps object corresponding to) ' + vueInst.$options._componentTag);\n } // We need to avoid an endless\n // propChanged -> event emitted -> propChanged -> event emitted loop\n // although this may really be the user's responsibility\n\n\n if (type !== Object || !trackProperties) {\n // Track the object deeply\n vueInst.$watch(attribute, function () {\n var attributeValue = vueInst[attribute];\n googleMapsInst[setMethodName](attributeValue);\n }, {\n immediate: typeof initialValue !== 'undefined',\n deep: type === Object\n });\n } else {\n (0, _WatchPrimitiveProperties2.default)(vueInst, trackProperties.map(function (prop) {\n return attribute + '.' + prop;\n }), function () {\n googleMapsInst[setMethodName](vueInst[attribute]);\n }, vueInst[attribute] !== undefined);\n }\n\n if (twoWay && (vueInst.$gmapOptions.autobindAllEvents || vueInst.$listeners[eventName])) {\n googleMapsInst.addListener(eventName, function () {\n // eslint-disable-line no-unused-vars\n vueInst.$emit(eventName, googleMapsInst[getMethodName]());\n });\n }\n };\n\n for (var attribute in props) {\n var _ret = _loop(attribute);\n\n if (_ret === 'continue') continue;\n }\n}","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo; // Constants table\n\n var T = []; // Compute constants\n\n (function () {\n for (var i = 0; i < 64; i++) {\n T[i] = Math.abs(Math.sin(i + 1)) * 0x100000000 | 0;\n }\n })();\n /**\n * MD5 hash algorithm.\n */\n\n\n var MD5 = C_algo.MD5 = Hasher.extend({\n _doReset: function _doReset() {\n this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]);\n },\n _doProcessBlock: function _doProcessBlock(M, offset) {\n // Swap endian\n for (var i = 0; i < 16; i++) {\n // Shortcuts\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff | (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;\n } // Shortcuts\n\n\n var H = this._hash.words;\n var M_offset_0 = M[offset + 0];\n var M_offset_1 = M[offset + 1];\n var M_offset_2 = M[offset + 2];\n var M_offset_3 = M[offset + 3];\n var M_offset_4 = M[offset + 4];\n var M_offset_5 = M[offset + 5];\n var M_offset_6 = M[offset + 6];\n var M_offset_7 = M[offset + 7];\n var M_offset_8 = M[offset + 8];\n var M_offset_9 = M[offset + 9];\n var M_offset_10 = M[offset + 10];\n var M_offset_11 = M[offset + 11];\n var M_offset_12 = M[offset + 12];\n var M_offset_13 = M[offset + 13];\n var M_offset_14 = M[offset + 14];\n var M_offset_15 = M[offset + 15]; // Working varialbes\n\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3]; // Computation\n\n a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n a = II(a, b, c, d, M_offset_0, 6, T[48]);\n d = II(d, a, b, c, M_offset_7, 10, T[49]);\n c = II(c, d, a, b, M_offset_14, 15, T[50]);\n b = II(b, c, d, a, M_offset_5, 21, T[51]);\n a = II(a, b, c, d, M_offset_12, 6, T[52]);\n d = II(d, a, b, c, M_offset_3, 10, T[53]);\n c = II(c, d, a, b, M_offset_10, 15, T[54]);\n b = II(b, c, d, a, M_offset_1, 21, T[55]);\n a = II(a, b, c, d, M_offset_8, 6, T[56]);\n d = II(d, a, b, c, M_offset_15, 10, T[57]);\n c = II(c, d, a, b, M_offset_6, 15, T[58]);\n b = II(b, c, d, a, M_offset_13, 21, T[59]);\n a = II(a, b, c, d, M_offset_4, 6, T[60]);\n d = II(d, a, b, c, M_offset_11, 10, T[61]);\n c = II(c, d, a, b, M_offset_2, 15, T[62]);\n b = II(b, c, d, a, M_offset_9, 21, T[63]); // Intermediate hash value\n\n H[0] = H[0] + a | 0;\n H[1] = H[1] + b | 0;\n H[2] = H[2] + c | 0;\n H[3] = H[3] + d | 0;\n },\n _doFinalize: function _doFinalize() {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8; // Add padding\n\n dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;\n var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n var nBitsTotalL = nBitsTotal;\n dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 0x00ff00ff | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 0xff00ff00;\n dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 0x00ff00ff | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 0xff00ff00;\n data.sigBytes = (dataWords.length + 1) * 4; // Hash final blocks\n\n this._process(); // Shortcuts\n\n\n var hash = this._hash;\n var H = hash.words; // Swap endian\n\n for (var i = 0; i < 4; i++) {\n // Shortcut\n var H_i = H[i];\n H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff | (H_i << 24 | H_i >>> 8) & 0xff00ff00;\n } // Return final computed hash\n\n\n return hash;\n },\n clone: function clone() {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n return clone;\n }\n });\n\n function FF(a, b, c, d, x, s, t) {\n var n = a + (b & c | ~b & d) + x + t;\n return (n << s | n >>> 32 - s) + b;\n }\n\n function GG(a, b, c, d, x, s, t) {\n var n = a + (b & d | c & ~d) + x + t;\n return (n << s | n >>> 32 - s) + b;\n }\n\n function HH(a, b, c, d, x, s, t) {\n var n = a + (b ^ c ^ d) + x + t;\n return (n << s | n >>> 32 - s) + b;\n }\n\n function II(a, b, c, d, x, s, t) {\n var n = a + (c ^ (b | ~d)) + x + t;\n return (n << s | n >>> 32 - s) + b;\n }\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.MD5('message');\n * var hash = CryptoJS.MD5(wordArray);\n */\n\n\n C.MD5 = Hasher._createHelper(MD5);\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacMD5(message, key);\n */\n\n C.HmacMD5 = Hasher._createHmacHelper(MD5);\n })(Math);\n\n return CryptoJS.MD5;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo; // Reusable object\n\n var W = [];\n /**\n * SHA-1 hash algorithm.\n */\n\n var SHA1 = C_algo.SHA1 = Hasher.extend({\n _doReset: function _doReset() {\n this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]);\n },\n _doProcessBlock: function _doProcessBlock(M, offset) {\n // Shortcut\n var H = this._hash.words; // Working variables\n\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n var e = H[4]; // Computation\n\n for (var i = 0; i < 80; i++) {\n if (i < 16) {\n W[i] = M[offset + i] | 0;\n } else {\n var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\n W[i] = n << 1 | n >>> 31;\n }\n\n var t = (a << 5 | a >>> 27) + e + W[i];\n\n if (i < 20) {\n t += (b & c | ~b & d) + 0x5a827999;\n } else if (i < 40) {\n t += (b ^ c ^ d) + 0x6ed9eba1;\n } else if (i < 60) {\n t += (b & c | b & d | c & d) - 0x70e44324;\n } else\n /* if (i < 80) */\n {\n t += (b ^ c ^ d) - 0x359d3e2a;\n }\n\n e = d;\n d = c;\n c = b << 30 | b >>> 2;\n b = a;\n a = t;\n } // Intermediate hash value\n\n\n H[0] = H[0] + a | 0;\n H[1] = H[1] + b | 0;\n H[2] = H[2] + c | 0;\n H[3] = H[3] + d | 0;\n H[4] = H[4] + e | 0;\n },\n _doFinalize: function _doFinalize() {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8; // Add padding\n\n dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;\n dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;\n data.sigBytes = dataWords.length * 4; // Hash final blocks\n\n this._process(); // Return final computed hash\n\n\n return this._hash;\n },\n clone: function clone() {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n return clone;\n }\n });\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA1('message');\n * var hash = CryptoJS.SHA1(wordArray);\n */\n\n C.SHA1 = Hasher._createHelper(SHA1);\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA1(message, key);\n */\n\n C.HmacSHA1 = Hasher._createHmacHelper(SHA1);\n })();\n\n return CryptoJS.SHA1;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var C_enc = C.enc;\n var Utf8 = C_enc.Utf8;\n var C_algo = C.algo;\n /**\n * HMAC algorithm.\n */\n\n var HMAC = C_algo.HMAC = Base.extend({\n /**\n * Initializes a newly created HMAC.\n *\n * @param {Hasher} hasher The hash algorithm to use.\n * @param {WordArray|string} key The secret key.\n *\n * @example\n *\n * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\n */\n init: function init(hasher, key) {\n // Init hasher\n hasher = this._hasher = new hasher.init(); // Convert string to WordArray, else assume WordArray already\n\n if (typeof key == 'string') {\n key = Utf8.parse(key);\n } // Shortcuts\n\n\n var hasherBlockSize = hasher.blockSize;\n var hasherBlockSizeBytes = hasherBlockSize * 4; // Allow arbitrary length keys\n\n if (key.sigBytes > hasherBlockSizeBytes) {\n key = hasher.finalize(key);\n } // Clamp excess bits\n\n\n key.clamp(); // Clone key for inner and outer pads\n\n var oKey = this._oKey = key.clone();\n var iKey = this._iKey = key.clone(); // Shortcuts\n\n var oKeyWords = oKey.words;\n var iKeyWords = iKey.words; // XOR keys with pad constants\n\n for (var i = 0; i < hasherBlockSize; i++) {\n oKeyWords[i] ^= 0x5c5c5c5c;\n iKeyWords[i] ^= 0x36363636;\n }\n\n oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; // Set initial values\n\n this.reset();\n },\n\n /**\n * Resets this HMAC to its initial state.\n *\n * @example\n *\n * hmacHasher.reset();\n */\n reset: function reset() {\n // Shortcut\n var hasher = this._hasher; // Reset\n\n hasher.reset();\n hasher.update(this._iKey);\n },\n\n /**\n * Updates this HMAC with a message.\n *\n * @param {WordArray|string} messageUpdate The message to append.\n *\n * @return {HMAC} This HMAC instance.\n *\n * @example\n *\n * hmacHasher.update('message');\n * hmacHasher.update(wordArray);\n */\n update: function update(messageUpdate) {\n this._hasher.update(messageUpdate); // Chainable\n\n\n return this;\n },\n\n /**\n * Finalizes the HMAC computation.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} messageUpdate (Optional) A final message update.\n *\n * @return {WordArray} The HMAC.\n *\n * @example\n *\n * var hmac = hmacHasher.finalize();\n * var hmac = hmacHasher.finalize('message');\n * var hmac = hmacHasher.finalize(wordArray);\n */\n finalize: function finalize(messageUpdate) {\n // Shortcut\n var hasher = this._hasher; // Compute HMAC\n\n var innerHash = hasher.finalize(messageUpdate);\n hasher.reset();\n var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\n return hmac;\n }\n });\n })();\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n;\n\n(function (root, factory, undef) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\") {\n // CommonJS\n module.exports = exports = factory(require(\"./core\"), require(\"./evpkdf\"));\n } else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([\"./core\", \"./evpkdf\"], factory);\n } else {\n // Global (browser)\n factory(root.CryptoJS);\n }\n})(this, function (CryptoJS) {\n /**\n * Cipher core components.\n */\n CryptoJS.lib.Cipher || function (undefined) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\n var C_enc = C.enc;\n var Utf8 = C_enc.Utf8;\n var Base64 = C_enc.Base64;\n var C_algo = C.algo;\n var EvpKDF = C_algo.EvpKDF;\n /**\n * Abstract base cipher template.\n *\n * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\n * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\n * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\n * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\n */\n\n var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\n /**\n * Configuration options.\n *\n * @property {WordArray} iv The IV to use for this operation.\n */\n cfg: Base.extend(),\n\n /**\n * Creates this cipher in encryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\n */\n createEncryptor: function createEncryptor(key, cfg) {\n return this.create(this._ENC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Creates this cipher in decryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\n */\n createDecryptor: function createDecryptor(key, cfg) {\n return this.create(this._DEC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Initializes a newly created cipher.\n *\n * @param {number} xformMode Either the encryption or decryption transormation mode constant.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\n */\n init: function init(xformMode, key, cfg) {\n // Apply config defaults\n this.cfg = this.cfg.extend(cfg); // Store transform mode and key\n\n this._xformMode = xformMode;\n this._key = key; // Set initial values\n\n this.reset();\n },\n\n /**\n * Resets this cipher to its initial state.\n *\n * @example\n *\n * cipher.reset();\n */\n reset: function reset() {\n // Reset data buffer\n BufferedBlockAlgorithm.reset.call(this); // Perform concrete-cipher logic\n\n this._doReset();\n },\n\n /**\n * Adds data to be encrypted or decrypted.\n *\n * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\n *\n * @return {WordArray} The data after processing.\n *\n * @example\n *\n * var encrypted = cipher.process('data');\n * var encrypted = cipher.process(wordArray);\n */\n process: function process(dataUpdate) {\n // Append\n this._append(dataUpdate); // Process available blocks\n\n\n return this._process();\n },\n\n /**\n * Finalizes the encryption or decryption process.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\n *\n * @return {WordArray} The data after final processing.\n *\n * @example\n *\n * var encrypted = cipher.finalize();\n * var encrypted = cipher.finalize('data');\n * var encrypted = cipher.finalize(wordArray);\n */\n finalize: function finalize(dataUpdate) {\n // Final data update\n if (dataUpdate) {\n this._append(dataUpdate);\n } // Perform concrete-cipher logic\n\n\n var finalProcessedData = this._doFinalize();\n\n return finalProcessedData;\n },\n keySize: 128 / 32,\n ivSize: 128 / 32,\n _ENC_XFORM_MODE: 1,\n _DEC_XFORM_MODE: 2,\n\n /**\n * Creates shortcut functions to a cipher's object interface.\n *\n * @param {Cipher} cipher The cipher to create a helper for.\n *\n * @return {Object} An object with encrypt and decrypt shortcut functions.\n *\n * @static\n *\n * @example\n *\n * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\n */\n _createHelper: function () {\n function selectCipherStrategy(key) {\n if (typeof key == 'string') {\n return PasswordBasedCipher;\n } else {\n return SerializableCipher;\n }\n }\n\n return function (cipher) {\n return {\n encrypt: function encrypt(message, key, cfg) {\n return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\n },\n decrypt: function decrypt(ciphertext, key, cfg) {\n return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\n }\n };\n };\n }()\n });\n /**\n * Abstract base stream cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\n */\n\n var StreamCipher = C_lib.StreamCipher = Cipher.extend({\n _doFinalize: function _doFinalize() {\n // Process partial blocks\n var finalProcessedBlocks = this._process(!!'flush');\n\n return finalProcessedBlocks;\n },\n blockSize: 1\n });\n /**\n * Mode namespace.\n */\n\n var C_mode = C.mode = {};\n /**\n * Abstract base block cipher mode template.\n */\n\n var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\n /**\n * Creates this mode for encryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\n */\n createEncryptor: function createEncryptor(cipher, iv) {\n return this.Encryptor.create(cipher, iv);\n },\n\n /**\n * Creates this mode for decryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\n */\n createDecryptor: function createDecryptor(cipher, iv) {\n return this.Decryptor.create(cipher, iv);\n },\n\n /**\n * Initializes a newly created mode.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\n */\n init: function init(cipher, iv) {\n this._cipher = cipher;\n this._iv = iv;\n }\n });\n /**\n * Cipher Block Chaining mode.\n */\n\n var CBC = C_mode.CBC = function () {\n /**\n * Abstract base CBC mode.\n */\n var CBC = BlockCipherMode.extend();\n /**\n * CBC encryptor.\n */\n\n CBC.Encryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function processBlock(words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize; // XOR and encrypt\n\n xorBlock.call(this, words, offset, blockSize);\n cipher.encryptBlock(words, offset); // Remember this block to use with next block\n\n this._prevBlock = words.slice(offset, offset + blockSize);\n }\n });\n /**\n * CBC decryptor.\n */\n\n CBC.Decryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function processBlock(words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize; // Remember this block to use with next block\n\n var thisBlock = words.slice(offset, offset + blockSize); // Decrypt and XOR\n\n cipher.decryptBlock(words, offset);\n xorBlock.call(this, words, offset, blockSize); // This block becomes the previous block\n\n this._prevBlock = thisBlock;\n }\n });\n\n function xorBlock(words, offset, blockSize) {\n var block; // Shortcut\n\n var iv = this._iv; // Choose mixing block\n\n if (iv) {\n block = iv; // Remove IV for subsequent blocks\n\n this._iv = undefined;\n } else {\n block = this._prevBlock;\n } // XOR blocks\n\n\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= block[i];\n }\n }\n\n return CBC;\n }();\n /**\n * Padding namespace.\n */\n\n\n var C_pad = C.pad = {};\n /**\n * PKCS #5/7 padding strategy.\n */\n\n var Pkcs7 = C_pad.Pkcs7 = {\n /**\n * Pads data using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to pad.\n * @param {number} blockSize The multiple that the data should be padded to.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\n */\n pad: function pad(data, blockSize) {\n // Shortcut\n var blockSizeBytes = blockSize * 4; // Count padding bytes\n\n var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; // Create padding word\n\n var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes; // Create padding\n\n var paddingWords = [];\n\n for (var i = 0; i < nPaddingBytes; i += 4) {\n paddingWords.push(paddingWord);\n }\n\n var padding = WordArray.create(paddingWords, nPaddingBytes); // Add padding\n\n data.concat(padding);\n },\n\n /**\n * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to unpad.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.unpad(wordArray);\n */\n unpad: function unpad(data) {\n // Get number of padding bytes from last byte\n var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff; // Remove padding\n\n data.sigBytes -= nPaddingBytes;\n }\n };\n /**\n * Abstract base block cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\n */\n\n var BlockCipher = C_lib.BlockCipher = Cipher.extend({\n /**\n * Configuration options.\n *\n * @property {Mode} mode The block mode to use. Default: CBC\n * @property {Padding} padding The padding strategy to use. Default: Pkcs7\n */\n cfg: Cipher.cfg.extend({\n mode: CBC,\n padding: Pkcs7\n }),\n reset: function reset() {\n var modeCreator; // Reset cipher\n\n Cipher.reset.call(this); // Shortcuts\n\n var cfg = this.cfg;\n var iv = cfg.iv;\n var mode = cfg.mode; // Reset block mode\n\n if (this._xformMode == this._ENC_XFORM_MODE) {\n modeCreator = mode.createEncryptor;\n } else\n /* if (this._xformMode == this._DEC_XFORM_MODE) */\n {\n modeCreator = mode.createDecryptor; // Keep at least one block in the buffer for unpadding\n\n this._minBufferSize = 1;\n }\n\n if (this._mode && this._mode.__creator == modeCreator) {\n this._mode.init(this, iv && iv.words);\n } else {\n this._mode = modeCreator.call(mode, this, iv && iv.words);\n this._mode.__creator = modeCreator;\n }\n },\n _doProcessBlock: function _doProcessBlock(words, offset) {\n this._mode.processBlock(words, offset);\n },\n _doFinalize: function _doFinalize() {\n var finalProcessedBlocks; // Shortcut\n\n var padding = this.cfg.padding; // Finalize\n\n if (this._xformMode == this._ENC_XFORM_MODE) {\n // Pad data\n padding.pad(this._data, this.blockSize); // Process final blocks\n\n finalProcessedBlocks = this._process(!!'flush');\n } else\n /* if (this._xformMode == this._DEC_XFORM_MODE) */\n {\n // Process final blocks\n finalProcessedBlocks = this._process(!!'flush'); // Unpad data\n\n padding.unpad(finalProcessedBlocks);\n }\n\n return finalProcessedBlocks;\n },\n blockSize: 128 / 32\n });\n /**\n * A collection of cipher parameters.\n *\n * @property {WordArray} ciphertext The raw ciphertext.\n * @property {WordArray} key The key to this ciphertext.\n * @property {WordArray} iv The IV used in the ciphering operation.\n * @property {WordArray} salt The salt used with a key derivation function.\n * @property {Cipher} algorithm The cipher algorithm.\n * @property {Mode} mode The block mode used in the ciphering operation.\n * @property {Padding} padding The padding scheme used in the ciphering operation.\n * @property {number} blockSize The block size of the cipher.\n * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\n */\n\n var CipherParams = C_lib.CipherParams = Base.extend({\n /**\n * Initializes a newly created cipher params object.\n *\n * @param {Object} cipherParams An object with any of the possible cipher parameters.\n *\n * @example\n *\n * var cipherParams = CryptoJS.lib.CipherParams.create({\n * ciphertext: ciphertextWordArray,\n * key: keyWordArray,\n * iv: ivWordArray,\n * salt: saltWordArray,\n * algorithm: CryptoJS.algo.AES,\n * mode: CryptoJS.mode.CBC,\n * padding: CryptoJS.pad.PKCS7,\n * blockSize: 4,\n * formatter: CryptoJS.format.OpenSSL\n * });\n */\n init: function init(cipherParams) {\n this.mixIn(cipherParams);\n },\n\n /**\n * Converts this cipher params object to a string.\n *\n * @param {Format} formatter (Optional) The formatting strategy to use.\n *\n * @return {string} The stringified cipher params.\n *\n * @throws Error If neither the formatter nor the default formatter is set.\n *\n * @example\n *\n * var string = cipherParams + '';\n * var string = cipherParams.toString();\n * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\n */\n toString: function toString(formatter) {\n return (formatter || this.formatter).stringify(this);\n }\n });\n /**\n * Format namespace.\n */\n\n var C_format = C.format = {};\n /**\n * OpenSSL formatting strategy.\n */\n\n var OpenSSLFormatter = C_format.OpenSSL = {\n /**\n * Converts a cipher params object to an OpenSSL-compatible string.\n *\n * @param {CipherParams} cipherParams The cipher params object.\n *\n * @return {string} The OpenSSL-compatible string.\n *\n * @static\n *\n * @example\n *\n * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\n */\n stringify: function stringify(cipherParams) {\n var wordArray; // Shortcuts\n\n var ciphertext = cipherParams.ciphertext;\n var salt = cipherParams.salt; // Format\n\n if (salt) {\n wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\n } else {\n wordArray = ciphertext;\n }\n\n return wordArray.toString(Base64);\n },\n\n /**\n * Converts an OpenSSL-compatible string to a cipher params object.\n *\n * @param {string} openSSLStr The OpenSSL-compatible string.\n *\n * @return {CipherParams} The cipher params object.\n *\n * @static\n *\n * @example\n *\n * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\n */\n parse: function parse(openSSLStr) {\n var salt; // Parse base64\n\n var ciphertext = Base64.parse(openSSLStr); // Shortcut\n\n var ciphertextWords = ciphertext.words; // Test for salt\n\n if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\n // Extract salt\n salt = WordArray.create(ciphertextWords.slice(2, 4)); // Remove salt from ciphertext\n\n ciphertextWords.splice(0, 4);\n ciphertext.sigBytes -= 16;\n }\n\n return CipherParams.create({\n ciphertext: ciphertext,\n salt: salt\n });\n }\n };\n /**\n * A cipher wrapper that returns ciphertext as a serializable cipher params object.\n */\n\n var SerializableCipher = C_lib.SerializableCipher = Base.extend({\n /**\n * Configuration options.\n *\n * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\n */\n cfg: Base.extend({\n format: OpenSSLFormatter\n }),\n\n /**\n * Encrypts a message.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n encrypt: function encrypt(cipher, message, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg); // Encrypt\n\n var encryptor = cipher.createEncryptor(key, cfg);\n var ciphertext = encryptor.finalize(message); // Shortcut\n\n var cipherCfg = encryptor.cfg; // Create and return serializable cipher params\n\n return CipherParams.create({\n ciphertext: ciphertext,\n key: key,\n iv: cipherCfg.iv,\n algorithm: cipher,\n mode: cipherCfg.mode,\n padding: cipherCfg.padding,\n blockSize: cipher.blockSize,\n formatter: cfg.format\n });\n },\n\n /**\n * Decrypts serialized ciphertext.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n decrypt: function decrypt(cipher, ciphertext, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg); // Convert string to CipherParams\n\n ciphertext = this._parse(ciphertext, cfg.format); // Decrypt\n\n var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\n return plaintext;\n },\n\n /**\n * Converts serialized ciphertext to CipherParams,\n * else assumed CipherParams already and returns ciphertext unchanged.\n *\n * @param {CipherParams|string} ciphertext The ciphertext.\n * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\n *\n * @return {CipherParams} The unserialized ciphertext.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\n */\n _parse: function _parse(ciphertext, format) {\n if (typeof ciphertext == 'string') {\n return format.parse(ciphertext, this);\n } else {\n return ciphertext;\n }\n }\n });\n /**\n * Key derivation function namespace.\n */\n\n var C_kdf = C.kdf = {};\n /**\n * OpenSSL key derivation function.\n */\n\n var OpenSSLKdf = C_kdf.OpenSSL = {\n /**\n * Derives a key and IV from a password.\n *\n * @param {string} password The password to derive from.\n * @param {number} keySize The size in words of the key to generate.\n * @param {number} ivSize The size in words of the IV to generate.\n * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\n *\n * @return {CipherParams} A cipher params object with the key, IV, and salt.\n *\n * @static\n *\n * @example\n *\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\n */\n execute: function execute(password, keySize, ivSize, salt) {\n // Generate random salt\n if (!salt) {\n salt = WordArray.random(64 / 8);\n } // Derive key and IV\n\n\n var key = EvpKDF.create({\n keySize: keySize + ivSize\n }).compute(password, salt); // Separate key and IV\n\n var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\n key.sigBytes = keySize * 4; // Return params\n\n return CipherParams.create({\n key: key,\n iv: iv,\n salt: salt\n });\n }\n };\n /**\n * A serializable cipher wrapper that derives the key from a password,\n * and returns ciphertext as a serializable cipher params object.\n */\n\n var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\n /**\n * Configuration options.\n *\n * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\n */\n cfg: SerializableCipher.cfg.extend({\n kdf: OpenSSLKdf\n }),\n\n /**\n * Encrypts a message using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\n */\n encrypt: function encrypt(cipher, message, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg); // Derive key and other params\n\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize); // Add IV to config\n\n cfg.iv = derivedParams.iv; // Encrypt\n\n var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); // Mix in derived params\n\n ciphertext.mixIn(derivedParams);\n return ciphertext;\n },\n\n /**\n * Decrypts serialized ciphertext using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\n */\n decrypt: function decrypt(cipher, ciphertext, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg); // Convert string to CipherParams\n\n ciphertext = this._parse(ciphertext, cfg.format); // Derive key and other params\n\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt); // Add IV to config\n\n cfg.iv = derivedParams.iv; // Decrypt\n\n var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\n return plaintext;\n }\n });\n }();\n});","'use strict';\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar Transform = require('readable-stream').Transform;\n\nvar inherits = require('inherits');\n\nfunction throwIfNotStringOrBuffer(val, prefix) {\n if (!Buffer.isBuffer(val) && typeof val !== 'string') {\n throw new TypeError(prefix + ' must be a string or a buffer');\n }\n}\n\nfunction HashBase(blockSize) {\n Transform.call(this);\n this._block = Buffer.allocUnsafe(blockSize);\n this._blockSize = blockSize;\n this._blockOffset = 0;\n this._length = [0, 0, 0, 0];\n this._finalized = false;\n}\n\ninherits(HashBase, Transform);\n\nHashBase.prototype._transform = function (chunk, encoding, callback) {\n var error = null;\n\n try {\n this.update(chunk, encoding);\n } catch (err) {\n error = err;\n }\n\n callback(error);\n};\n\nHashBase.prototype._flush = function (callback) {\n var error = null;\n\n try {\n this.push(this.digest());\n } catch (err) {\n error = err;\n }\n\n callback(error);\n};\n\nHashBase.prototype.update = function (data, encoding) {\n throwIfNotStringOrBuffer(data, 'Data');\n if (this._finalized) throw new Error('Digest already called');\n if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding); // consume data\n\n var block = this._block;\n var offset = 0;\n\n while (this._blockOffset + data.length - offset >= this._blockSize) {\n for (var i = this._blockOffset; i < this._blockSize;) {\n block[i++] = data[offset++];\n }\n\n this._update();\n\n this._blockOffset = 0;\n }\n\n while (offset < data.length) {\n block[this._blockOffset++] = data[offset++];\n } // update length\n\n\n for (var j = 0, carry = data.length * 8; carry > 0; ++j) {\n this._length[j] += carry;\n carry = this._length[j] / 0x0100000000 | 0;\n if (carry > 0) this._length[j] -= 0x0100000000 * carry;\n }\n\n return this;\n};\n\nHashBase.prototype._update = function () {\n throw new Error('_update is not implemented');\n};\n\nHashBase.prototype.digest = function (encoding) {\n if (this._finalized) throw new Error('Digest already called');\n this._finalized = true;\n\n var digest = this._digest();\n\n if (encoding !== undefined) digest = digest.toString(encoding); // reset state\n\n this._block.fill(0);\n\n this._blockOffset = 0;\n\n for (var i = 0; i < 4; ++i) {\n this._length[i] = 0;\n }\n\n return digest;\n};\n\nHashBase.prototype._digest = function () {\n throw new Error('_digest is not implemented');\n};\n\nmodule.exports = HashBase;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nmodule.exports = Readable;\n/**/\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n\nvar debugUtil = require('util');\n\nvar debug;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/buffer_list');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.\n\n\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\n\nrequire('inherits')(Readable, Stream);\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')\n\n this.autoDestroy = !!options.autoDestroy; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n } // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n\n\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n\n return er;\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8\n\n this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:\n\n var p = this._readableState.buffer.head;\n var content = '';\n\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n\n this._readableState.buffer.clear();\n\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n}; // Don't raise the hwm > 1GB\n\n\nvar MAX_HWM = 0x40000000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true;\n\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\n\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n } // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n\n\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\n\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true; // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume'); // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n\n state.paused = false;\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n this._readableState.paused = true;\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {\n ;\n }\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n\n return createReadableStreamAsyncIterator(this);\n };\n}\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n}); // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\n\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\n\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n\n return from(Readable, iterable, opts);\n };\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","module.exports = require('events').EventEmitter;","'use strict'; // undocumented cb() API, needed for core, not for public API\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n\n return this;\n}\n\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\n\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\n\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n\n return Math.floor(hwm);\n } // Default value\n\n\n return state.objectMode ? 16 : 16 * 1024;\n}\n\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n'use strict';\n\nmodule.exports = Writable;\n/* */\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n} // It seems a linked list but it is not\n// there will be only 2 of these for each stream\n\n\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\n\n\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n/**/\n\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n\nvar Buffer = require('buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\n\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\n\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\n\nrequire('inherits')(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\n\n this.finalCalled = false; // drain event flag.\n\n this.needDrain = false; // at the start of calling end()\n\n this.ending = false; // when end() has been called, and returned\n\n this.ended = false; // when 'finish' is emitted\n\n this.finished = false; // has it been destroyed\n\n this.destroyed = false; // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n\n this.length = 0; // a flag to see when we're in the middle of a write.\n\n this.writing = false; // when true all writes will be buffered until .uncork() call\n\n this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n\n this.sync = true; // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n\n this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\n\n this.onwrite = function (er) {\n onwrite(stream, er);\n }; // the callback that the user supplies to write(chunk,encoding,cb)\n\n\n this.writecb = null; // the amount that is being written when _write is called.\n\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n\n this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n\n this.prefinished = false; // True if the error was already emitted and should not be thrown again\n\n this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\n\n this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')\n\n this.autoDestroy = !!options.autoDestroy; // count buffered requests\n\n this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n\n while (current) {\n out.push(current);\n current = current.next;\n }\n\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})(); // Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\n\n\nvar realHasInstance;\n\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex); // legacy.\n\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n} // Otherwise people can pipe Writable streams, which is just wrong.\n\n\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\n\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n} // Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\n\n\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n\n return true;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\n\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n}); // if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\n\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\n\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er); // this can emit finish, and it will always happen\n // after error\n\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er); // this can emit finish, but finish must\n // always follow error\n\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n} // Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\n\n\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n} // if there's something in the buffer waiting, then process it\n\n\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n\n state.pendingcb++;\n state.lastBufferedRequest = null;\n\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\n\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n } // ignore unnecessary end() calls.\n\n\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\n\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\n\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n\n if (err) {\n errorOrDestroy(stream, err);\n }\n\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n\n if (need) {\n prefinish(stream, state);\n\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n } // reuse the free corkReq.\n\n\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\n\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n'use strict';\n\nmodule.exports = Transform;\n\nvar _require$codes = require('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\n\nvar Duplex = require('./_stream_duplex');\n\nrequire('inherits')(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n }; // start out asking for a readable event once data is transformed.\n\n this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n } // When the writable side finishes, then flush out anything remaining.\n\n\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n}; // This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\n\n\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n}; // Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\n\n\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}","/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\nvar inherits = require('inherits');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar K = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174, 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA, 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967, 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85, 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070, 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3, 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2];\nvar W = new Array(64);\n\nfunction Sha256() {\n this.init();\n this._w = W; // new Array(64)\n\n Hash.call(this, 64, 56);\n}\n\ninherits(Sha256, Hash);\n\nSha256.prototype.init = function () {\n this._a = 0x6a09e667;\n this._b = 0xbb67ae85;\n this._c = 0x3c6ef372;\n this._d = 0xa54ff53a;\n this._e = 0x510e527f;\n this._f = 0x9b05688c;\n this._g = 0x1f83d9ab;\n this._h = 0x5be0cd19;\n return this;\n};\n\nfunction ch(x, y, z) {\n return z ^ x & (y ^ z);\n}\n\nfunction maj(x, y, z) {\n return x & y | z & (x | y);\n}\n\nfunction sigma0(x) {\n return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10);\n}\n\nfunction sigma1(x) {\n return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7);\n}\n\nfunction gamma0(x) {\n return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3;\n}\n\nfunction gamma1(x) {\n return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10;\n}\n\nSha256.prototype._update = function (M) {\n var W = this._w;\n var a = this._a | 0;\n var b = this._b | 0;\n var c = this._c | 0;\n var d = this._d | 0;\n var e = this._e | 0;\n var f = this._f | 0;\n var g = this._g | 0;\n var h = this._h | 0;\n\n for (var i = 0; i < 16; ++i) {\n W[i] = M.readInt32BE(i * 4);\n }\n\n for (; i < 64; ++i) {\n W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16] | 0;\n }\n\n for (var j = 0; j < 64; ++j) {\n var T1 = h + sigma1(e) + ch(e, f, g) + K[j] + W[j] | 0;\n var T2 = sigma0(a) + maj(a, b, c) | 0;\n h = g;\n g = f;\n f = e;\n e = d + T1 | 0;\n d = c;\n c = b;\n b = a;\n a = T1 + T2 | 0;\n }\n\n this._a = a + this._a | 0;\n this._b = b + this._b | 0;\n this._c = c + this._c | 0;\n this._d = d + this._d | 0;\n this._e = e + this._e | 0;\n this._f = f + this._f | 0;\n this._g = g + this._g | 0;\n this._h = h + this._h | 0;\n};\n\nSha256.prototype._hash = function () {\n var H = Buffer.allocUnsafe(32);\n H.writeInt32BE(this._a, 0);\n H.writeInt32BE(this._b, 4);\n H.writeInt32BE(this._c, 8);\n H.writeInt32BE(this._d, 12);\n H.writeInt32BE(this._e, 16);\n H.writeInt32BE(this._f, 20);\n H.writeInt32BE(this._g, 24);\n H.writeInt32BE(this._h, 28);\n return H;\n};\n\nmodule.exports = Sha256;","var inherits = require('inherits');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar K = [0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd, 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc, 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019, 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118, 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe, 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2, 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1, 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694, 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3, 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65, 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483, 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5, 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210, 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4, 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725, 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70, 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926, 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df, 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8, 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b, 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001, 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30, 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910, 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8, 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53, 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8, 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb, 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3, 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60, 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec, 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9, 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b, 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207, 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178, 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6, 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b, 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493, 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c, 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a, 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817];\nvar W = new Array(160);\n\nfunction Sha512() {\n this.init();\n this._w = W;\n Hash.call(this, 128, 112);\n}\n\ninherits(Sha512, Hash);\n\nSha512.prototype.init = function () {\n this._ah = 0x6a09e667;\n this._bh = 0xbb67ae85;\n this._ch = 0x3c6ef372;\n this._dh = 0xa54ff53a;\n this._eh = 0x510e527f;\n this._fh = 0x9b05688c;\n this._gh = 0x1f83d9ab;\n this._hh = 0x5be0cd19;\n this._al = 0xf3bcc908;\n this._bl = 0x84caa73b;\n this._cl = 0xfe94f82b;\n this._dl = 0x5f1d36f1;\n this._el = 0xade682d1;\n this._fl = 0x2b3e6c1f;\n this._gl = 0xfb41bd6b;\n this._hl = 0x137e2179;\n return this;\n};\n\nfunction Ch(x, y, z) {\n return z ^ x & (y ^ z);\n}\n\nfunction maj(x, y, z) {\n return x & y | z & (x | y);\n}\n\nfunction sigma0(x, xl) {\n return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25);\n}\n\nfunction sigma1(x, xl) {\n return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23);\n}\n\nfunction Gamma0(x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ x >>> 7;\n}\n\nfunction Gamma0l(x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25);\n}\n\nfunction Gamma1(x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ x >>> 6;\n}\n\nfunction Gamma1l(x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26);\n}\n\nfunction getCarry(a, b) {\n return a >>> 0 < b >>> 0 ? 1 : 0;\n}\n\nSha512.prototype._update = function (M) {\n var W = this._w;\n var ah = this._ah | 0;\n var bh = this._bh | 0;\n var ch = this._ch | 0;\n var dh = this._dh | 0;\n var eh = this._eh | 0;\n var fh = this._fh | 0;\n var gh = this._gh | 0;\n var hh = this._hh | 0;\n var al = this._al | 0;\n var bl = this._bl | 0;\n var cl = this._cl | 0;\n var dl = this._dl | 0;\n var el = this._el | 0;\n var fl = this._fl | 0;\n var gl = this._gl | 0;\n var hl = this._hl | 0;\n\n for (var i = 0; i < 32; i += 2) {\n W[i] = M.readInt32BE(i * 4);\n W[i + 1] = M.readInt32BE(i * 4 + 4);\n }\n\n for (; i < 160; i += 2) {\n var xh = W[i - 15 * 2];\n var xl = W[i - 15 * 2 + 1];\n var gamma0 = Gamma0(xh, xl);\n var gamma0l = Gamma0l(xl, xh);\n xh = W[i - 2 * 2];\n xl = W[i - 2 * 2 + 1];\n var gamma1 = Gamma1(xh, xl);\n var gamma1l = Gamma1l(xl, xh); // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\n var Wi7h = W[i - 7 * 2];\n var Wi7l = W[i - 7 * 2 + 1];\n var Wi16h = W[i - 16 * 2];\n var Wi16l = W[i - 16 * 2 + 1];\n var Wil = gamma0l + Wi7l | 0;\n var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;\n Wil = Wil + gamma1l | 0;\n Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;\n Wil = Wil + Wi16l | 0;\n Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;\n W[i] = Wih;\n W[i + 1] = Wil;\n }\n\n for (var j = 0; j < 160; j += 2) {\n Wih = W[j];\n Wil = W[j + 1];\n var majh = maj(ah, bh, ch);\n var majl = maj(al, bl, cl);\n var sigma0h = sigma0(ah, al);\n var sigma0l = sigma0(al, ah);\n var sigma1h = sigma1(eh, el);\n var sigma1l = sigma1(el, eh); // t1 = h + sigma1 + ch + K[j] + W[j]\n\n var Kih = K[j];\n var Kil = K[j + 1];\n var chh = Ch(eh, fh, gh);\n var chl = Ch(el, fl, gl);\n var t1l = hl + sigma1l | 0;\n var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;\n t1l = t1l + chl | 0;\n t1h = t1h + chh + getCarry(t1l, chl) | 0;\n t1l = t1l + Kil | 0;\n t1h = t1h + Kih + getCarry(t1l, Kil) | 0;\n t1l = t1l + Wil | 0;\n t1h = t1h + Wih + getCarry(t1l, Wil) | 0; // t2 = sigma0 + maj\n\n var t2l = sigma0l + majl | 0;\n var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;\n hh = gh;\n hl = gl;\n gh = fh;\n gl = fl;\n fh = eh;\n fl = el;\n el = dl + t1l | 0;\n eh = dh + t1h + getCarry(el, dl) | 0;\n dh = ch;\n dl = cl;\n ch = bh;\n cl = bl;\n bh = ah;\n bl = al;\n al = t1l + t2l | 0;\n ah = t1h + t2h + getCarry(al, t1l) | 0;\n }\n\n this._al = this._al + al | 0;\n this._bl = this._bl + bl | 0;\n this._cl = this._cl + cl | 0;\n this._dl = this._dl + dl | 0;\n this._el = this._el + el | 0;\n this._fl = this._fl + fl | 0;\n this._gl = this._gl + gl | 0;\n this._hl = this._hl + hl | 0;\n this._ah = this._ah + ah + getCarry(this._al, al) | 0;\n this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;\n this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;\n this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;\n this._eh = this._eh + eh + getCarry(this._el, el) | 0;\n this._fh = this._fh + fh + getCarry(this._fl, fl) | 0;\n this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;\n this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;\n};\n\nSha512.prototype._hash = function () {\n var H = Buffer.allocUnsafe(64);\n\n function writeInt64BE(h, l, offset) {\n H.writeInt32BE(h, offset);\n H.writeInt32BE(l, offset + 4);\n }\n\n writeInt64BE(this._ah, this._al, 0);\n writeInt64BE(this._bh, this._bl, 8);\n writeInt64BE(this._ch, this._cl, 16);\n writeInt64BE(this._dh, this._dl, 24);\n writeInt64BE(this._eh, this._el, 32);\n writeInt64BE(this._fh, this._fl, 40);\n writeInt64BE(this._gh, this._gl, 48);\n writeInt64BE(this._hh, this._hl, 56);\n return H;\n};\n\nmodule.exports = Sha512;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n\nmodule.exports = Readable;\n/**/\n\nvar isArray = require('isarray');\n/**/\n\n/**/\n\n\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n/**/\n\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\n\n\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar OurUint8Array = global.Uint8Array || function () {};\n\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\n\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n/**/\n\n/**/\n\n\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\n\nvar debugUtil = require('util');\n\nvar debug = void 0;\n\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\n\nvar BufferList = require('./internal/streams/BufferList');\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nvar StringDecoder;\nutil.inherits(Readable, Stream);\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {}; // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n\n var isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm; // cast to ints.\n\n this.highWaterMark = Math.floor(this.highWaterMark); // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n\n this.sync = true; // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false; // has it been destroyed\n\n this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n\n this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\n\n this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\n\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options);\n this._readableState = new ReadableState(options, this); // legacy\n\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n } // backward compatibility, the user is explicitly\n // managing destroyed\n\n\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\n\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n}; // Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\n\n\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n}; // Unshift should *always* be something directly out of read()\n\n\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n\n return er;\n} // if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\n\n\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n}; // backwards compatibility.\n\n\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n}; // Don't raise the hwm > 8MB\n\n\nvar MAX_HWM = 0x800000;\n\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n\n return n;\n} // This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n } // If we're asking for more than the current hwm, then raise the hwm.\n\n\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n; // Don't have enough\n\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n\n return state.length;\n} // you can override either this method, or the async _read(n) below.\n\n\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\n\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n } // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n // if we need a readable event, then we need to do some reading.\n\n\n var doRead = state.needReadable;\n debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\n\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n } // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n\n\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true; // if the length is currently zero, then we *need* a readable event.\n\n if (state.length === 0) state.needReadable = true; // call internal read method\n\n this._read(state.highWaterMark);\n\n state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\n\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n\n if (state.decoder) {\n var chunk = state.decoder.end();\n\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n\n state.ended = true; // emit 'readable' now to make sure it gets picked up.\n\n emitReadable(stream);\n} // Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\n\n\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n} // at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\n\n\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length) // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n\n state.readingMore = false;\n} // abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\n\n\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n\n default:\n state.pipes.push(dest);\n break;\n }\n\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n } // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n\n\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n\n function cleanup() {\n debug('cleanup'); // cleanup event handlers once the pipe is broken\n\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true; // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n } // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n\n\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n\n src.pause();\n }\n } // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n\n\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n } // Make sure our error handler is attached before userland ones.\n\n\n prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\n\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n\n dest.once('close', onclose);\n\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n } // tell the dest that it's being piped to\n\n\n dest.emit('pipe', src); // start the flow if it hasn't been started already.\n\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n }; // if we're not piping anywhere, then do nothing.\n\n if (state.pipesCount === 0) return this; // just one destination. most common case.\n\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes; // got a match.\n\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n } // slow case. multiple pipe destinations.\n\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }\n\n return this;\n } // try to find the right one.\n\n\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n}; // set up data events if they are asked for\n// Ensure readable listeners eventually get something\n\n\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\n\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n} // pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\n\n\nReadable.prototype.resume = function () {\n var state = this._readableState;\n\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n\n while (state.flowing && stream.read() !== null) {}\n} // wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\n\n\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\n\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n\n if (!ret) {\n paused = true;\n stream.pause();\n }\n }); // proxy all the other methods.\n // important when wrapping filters and duplexes.\n\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n } // proxy certain important events.\n\n\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n } // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n\n\n this._read = function (n) {\n debug('wrapped _read', n);\n\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n}); // exposed for testing purposes only.\n\nReadable._fromList = fromList; // Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n return ret;\n} // Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n\n return ret;\n} // Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n list.length -= c;\n return ret;\n} // Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\n\n\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState; // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n\n return -1;\n}","module.exports = require('events').EventEmitter;","'use strict';\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n// undocumented cb() API, needed for core, not for public API\n\n\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n\n return this;\n } // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n } // if this is a duplex stream mark the writable part as destroyed as well\n\n\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n } // Copy function arguments\n\n\n var args = new Array(arguments.length - 1);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n } // Store and register the task\n\n\n var task = {\n callback: callback,\n args: args\n };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n\n switch (args.length) {\n case 0:\n callback();\n break;\n\n case 1:\n callback(args[0]);\n break;\n\n case 2:\n callback(args[0], args[1]);\n break;\n\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n\n if (task) {\n currentlyRunningATask = true;\n\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function registerImmediate(handle) {\n process.nextTick(function () {\n runIfPresent(handle);\n });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n\n global.onmessage = function () {\n postMessageIsAsynchronous = false;\n };\n\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n var onGlobalMessage = function onGlobalMessage(event) {\n if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function registerImmediate(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n\n channel.port1.onmessage = function (event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function registerImmediate(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n\n registerImmediate = function registerImmediate(handle) {\n // Create a \n","var supported;\nvar perf;\nexport function isPerformanceSupported() {\n var _a;\n\n if (supported !== undefined) {\n return supported;\n }\n\n if (typeof window !== 'undefined' && window.performance) {\n supported = true;\n perf = window.performance;\n } else if (typeof global !== 'undefined' && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {\n supported = true;\n perf = global.perf_hooks.performance;\n } else {\n supported = false;\n }\n\n return supported;\n}\nexport function now() {\n return isPerformanceSupported() ? perf.now() : Date.now();\n}","/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\nexport function dedentBlockStringValue(rawString) {\n // Expand a block string's raw value into independent lines.\n var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n\n var commonIndent = getBlockStringIndentation(rawString);\n\n if (commonIndent !== 0) {\n for (var i = 1; i < lines.length; i++) {\n lines[i] = lines[i].slice(commonIndent);\n }\n } // Remove leading and trailing blank lines.\n\n\n var startLine = 0;\n\n while (startLine < lines.length && isBlank(lines[startLine])) {\n ++startLine;\n }\n\n var endLine = lines.length;\n\n while (endLine > startLine && isBlank(lines[endLine - 1])) {\n --endLine;\n } // Return a string of the lines joined with U+000A.\n\n\n return lines.slice(startLine, endLine).join('\\n');\n}\n\nfunction isBlank(str) {\n for (var i = 0; i < str.length; ++i) {\n if (str[i] !== ' ' && str[i] !== '\\t') {\n return false;\n }\n }\n\n return true;\n}\n/**\n * @internal\n */\n\n\nexport function getBlockStringIndentation(value) {\n var _commonIndent;\n\n var isFirstLine = true;\n var isEmptyLine = true;\n var indent = 0;\n var commonIndent = null;\n\n for (var i = 0; i < value.length; ++i) {\n switch (value.charCodeAt(i)) {\n case 13:\n // \\r\n if (value.charCodeAt(i + 1) === 10) {\n ++i; // skip \\r\\n as one symbol\n }\n\n // falls through\n\n case 10:\n // \\n\n isFirstLine = false;\n isEmptyLine = true;\n indent = 0;\n break;\n\n case 9: // \\t\n\n case 32:\n // \n ++indent;\n break;\n\n default:\n if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) {\n commonIndent = indent;\n }\n\n isEmptyLine = false;\n }\n }\n\n return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value) {\n var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isSingleLine = value.indexOf('\\n') === -1;\n var hasLeadingSpace = value[0] === ' ' || value[0] === '\\t';\n var hasTrailingQuote = value[value.length - 1] === '\"';\n var hasTrailingSlash = value[value.length - 1] === '\\\\';\n var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n var result = ''; // Format a multi-line block quote to account for leading space.\n\n if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {\n result += '\\n' + indentation;\n }\n\n result += indentation ? value.replace(/\\n/g, '\\n' + indentation) : value;\n\n if (printAsMultipleLines) {\n result += '\\n';\n }\n\n return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}","export function getDevtoolsGlobalHook() {\n return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;\n}\nexport function getTarget() {\n // @ts-ignore\n return typeof navigator !== 'undefined' && typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};\n}\nexport var isProxyAvailable = typeof Proxy === 'function';","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (vueInst, googleMapsInst, events) {\n var _loop = function _loop(eventName) {\n if (vueInst.$gmapOptions.autobindAllEvents || vueInst.$listeners[eventName]) {\n googleMapsInst.addListener(eventName, function (ev) {\n vueInst.$emit(eventName, ev);\n });\n }\n };\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = events[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var eventName = _step.value;\n\n _loop(eventName);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = WatchPrimitiveProperties;\n/**\r\n * Watch the individual properties of a PoD object, instead of the object\r\n * per se. This is different from a deep watch where both the reference\r\n * and the individual values are watched.\r\n *\r\n * In effect, it throttles the multiple $watch to execute at most once per tick.\r\n */\n\nfunction WatchPrimitiveProperties(vueInst, propertiesToTrack, handler) {\n var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var isHandled = false;\n\n function requestHandle() {\n if (!isHandled) {\n isHandled = true;\n vueInst.$nextTick(function () {\n isHandled = false;\n handler();\n });\n }\n }\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = propertiesToTrack[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var prop = _step.value;\n vueInst.$watch(prop, requestHandle, {\n immediate: immediate\n });\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/*\nMixin for objects that are mounted by Google Maps\nJavascript API.\n\nThese are objects that are sensitive to element resize\noperations so it exposes a property which accepts a bus\n\n*/\n\nexports.default = {\n props: ['resizeBus'],\n data: function data() {\n return {\n _actualResizeBus: null\n };\n },\n created: function created() {\n if (typeof this.resizeBus === 'undefined') {\n this.$data._actualResizeBus = this.$gmapDefaultResizeBus;\n } else {\n this.$data._actualResizeBus = this.resizeBus;\n }\n },\n methods: {\n _resizeCallback: function _resizeCallback() {\n this.resize();\n },\n _delayedResizeCallback: function _delayedResizeCallback() {\n var _this = this;\n\n this.$nextTick(function () {\n return _this._resizeCallback();\n });\n }\n },\n watch: {\n resizeBus: function resizeBus(newVal) {\n // eslint-disable-line no-unused-vars\n this.$data._actualResizeBus = newVal;\n },\n '$data._actualResizeBus': function $data_actualResizeBus(newVal, oldVal) {\n if (oldVal) {\n oldVal.$off('resize', this._delayedResizeCallback);\n }\n\n if (newVal) {\n newVal.$on('resize', this._delayedResizeCallback);\n }\n }\n },\n destroyed: function destroyed() {\n if (this.$data._actualResizeBus) {\n this.$data._actualResizeBus.$off('resize', this._delayedResizeCallback);\n }\n }\n};","export * from \"-!../../../../../shared/node_modules/mini-css-extract-plugin/dist/loader.js!../../../../../shared/node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../../shared/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../shared/node_modules/postcss-loader/src/index.js??ref--3-2!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tips.vue?vue&type=style&index=0&id=08d88655&scoped=true&lang=css&\"","'use strict';\n\nexports.byteLength = byteLength;\nexports.toByteArray = toByteArray;\nexports.fromByteArray = fromByteArray;\nvar lookup = [];\nvar revLookup = [];\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i];\n revLookup[code.charCodeAt(i)] = i;\n} // Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\n\n\nrevLookup['-'.charCodeAt(0)] = 62;\nrevLookup['_'.charCodeAt(0)] = 63;\n\nfunction getLens(b64) {\n var len = b64.length;\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4');\n } // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n\n\n var validLen = b64.indexOf('=');\n if (validLen === -1) validLen = len;\n var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;\n return [validLen, placeHoldersLen];\n} // base64 is 4/3 + up to two characters of the original data\n\n\nfunction byteLength(b64) {\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n}\n\nfunction _byteLength(b64, validLen, placeHoldersLen) {\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n}\n\nfunction toByteArray(b64) {\n var tmp;\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));\n var curByte = 0; // if there are placeholders, only get up to the last complete 4 chars\n\n var len = placeHoldersLen > 0 ? validLen - 4 : validLen;\n var i;\n\n for (i = 0; i < len; i += 4) {\n tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];\n arr[curByte++] = tmp >> 16 & 0xFF;\n arr[curByte++] = tmp >> 8 & 0xFF;\n arr[curByte++] = tmp & 0xFF;\n }\n\n if (placeHoldersLen === 2) {\n tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;\n arr[curByte++] = tmp & 0xFF;\n }\n\n if (placeHoldersLen === 1) {\n tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;\n arr[curByte++] = tmp >> 8 & 0xFF;\n arr[curByte++] = tmp & 0xFF;\n }\n\n return arr;\n}\n\nfunction tripletToBase64(num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];\n}\n\nfunction encodeChunk(uint8, start, end) {\n var tmp;\n var output = [];\n\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF);\n output.push(tripletToBase64(tmp));\n }\n\n return output.join('');\n}\n\nfunction fromByteArray(uint8) {\n var tmp;\n var len = uint8.length;\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n\n var parts = [];\n var maxChunkLength = 16383; // must be multiple of 3\n // go through the array every three bytes, we'll deal with trailing stuff later\n\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));\n } // pad the end with zeros, but make sure to not forget the extra bytes\n\n\n if (extraBytes === 1) {\n tmp = uint8[len - 1];\n parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '==');\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1];\n parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '=');\n }\n\n return parts.join('');\n}","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? nBytes - 1 : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n};\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n var i = isLE ? 0 : nBytes - 1;\n var d = isLE ? 1 : -1;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = e << mLen | m;\n eLen += mLen;\n\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128;\n};","exports = module.exports = require('./lib/_stream_readable.js');\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = require('./lib/_stream_writable.js');\nexports.Duplex = require('./lib/_stream_duplex.js');\nexports.Transform = require('./lib/_stream_transform.js');\nexports.PassThrough = require('./lib/_stream_passthrough.js');\nexports.finished = require('./lib/internal/streams/end-of-stream.js');\nexports.pipeline = require('./lib/internal/streams/pipeline.js');","'use strict';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = require('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports = /*#__PURE__*/function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();","'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar finished = require('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this; // if we have detected an error in the meanwhile\n // reject straight away\n\n\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this; // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n\n\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;","module.exports = function () {\n throw new Error('Readable.from is not available in the browser');\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\nrequire('inherits')(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar eos;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\n\nvar _require$codes = require('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\n\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = require('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true; // request.destroy just do .end - .abort is what we want\n\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\n\nfunction call(fn) {\n fn();\n}\n\nfunction pipe(from, to) {\n return from.pipe(to);\n}\n\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\n\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\n\nmodule.exports = pipeline;","/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined\n * in FIPS PUB 180-1\n * This source code is derived from sha1.js of the same repository.\n * The difference between SHA-0 and SHA-1 is just a bitwise rotate left\n * operation was added.\n */\nvar inherits = require('inherits');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0];\nvar W = new Array(80);\n\nfunction Sha() {\n this.init();\n this._w = W;\n Hash.call(this, 64, 56);\n}\n\ninherits(Sha, Hash);\n\nSha.prototype.init = function () {\n this._a = 0x67452301;\n this._b = 0xefcdab89;\n this._c = 0x98badcfe;\n this._d = 0x10325476;\n this._e = 0xc3d2e1f0;\n return this;\n};\n\nfunction rotl5(num) {\n return num << 5 | num >>> 27;\n}\n\nfunction rotl30(num) {\n return num << 30 | num >>> 2;\n}\n\nfunction ft(s, b, c, d) {\n if (s === 0) return b & c | ~b & d;\n if (s === 2) return b & c | b & d | c & d;\n return b ^ c ^ d;\n}\n\nSha.prototype._update = function (M) {\n var W = this._w;\n var a = this._a | 0;\n var b = this._b | 0;\n var c = this._c | 0;\n var d = this._d | 0;\n var e = this._e | 0;\n\n for (var i = 0; i < 16; ++i) {\n W[i] = M.readInt32BE(i * 4);\n }\n\n for (; i < 80; ++i) {\n W[i] = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\n }\n\n for (var j = 0; j < 80; ++j) {\n var s = ~~(j / 20);\n var t = rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s] | 0;\n e = d;\n d = c;\n c = rotl30(b);\n b = a;\n a = t;\n }\n\n this._a = a + this._a | 0;\n this._b = b + this._b | 0;\n this._c = c + this._c | 0;\n this._d = d + this._d | 0;\n this._e = e + this._e | 0;\n};\n\nSha.prototype._hash = function () {\n var H = Buffer.allocUnsafe(20);\n H.writeInt32BE(this._a | 0, 0);\n H.writeInt32BE(this._b | 0, 4);\n H.writeInt32BE(this._c | 0, 8);\n H.writeInt32BE(this._d | 0, 12);\n H.writeInt32BE(this._e | 0, 16);\n return H;\n};\n\nmodule.exports = Sha;","/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined\n * in FIPS PUB 180-1\n * Version 2.1a Copyright Paul Johnston 2000 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for details.\n */\nvar inherits = require('inherits');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0];\nvar W = new Array(80);\n\nfunction Sha1() {\n this.init();\n this._w = W;\n Hash.call(this, 64, 56);\n}\n\ninherits(Sha1, Hash);\n\nSha1.prototype.init = function () {\n this._a = 0x67452301;\n this._b = 0xefcdab89;\n this._c = 0x98badcfe;\n this._d = 0x10325476;\n this._e = 0xc3d2e1f0;\n return this;\n};\n\nfunction rotl1(num) {\n return num << 1 | num >>> 31;\n}\n\nfunction rotl5(num) {\n return num << 5 | num >>> 27;\n}\n\nfunction rotl30(num) {\n return num << 30 | num >>> 2;\n}\n\nfunction ft(s, b, c, d) {\n if (s === 0) return b & c | ~b & d;\n if (s === 2) return b & c | b & d | c & d;\n return b ^ c ^ d;\n}\n\nSha1.prototype._update = function (M) {\n var W = this._w;\n var a = this._a | 0;\n var b = this._b | 0;\n var c = this._c | 0;\n var d = this._d | 0;\n var e = this._e | 0;\n\n for (var i = 0; i < 16; ++i) {\n W[i] = M.readInt32BE(i * 4);\n }\n\n for (; i < 80; ++i) {\n W[i] = rotl1(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]);\n }\n\n for (var j = 0; j < 80; ++j) {\n var s = ~~(j / 20);\n var t = rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s] | 0;\n e = d;\n d = c;\n c = rotl30(b);\n b = a;\n a = t;\n }\n\n this._a = a + this._a | 0;\n this._b = b + this._b | 0;\n this._c = c + this._c | 0;\n this._d = d + this._d | 0;\n this._e = e + this._e | 0;\n};\n\nSha1.prototype._hash = function () {\n var H = Buffer.allocUnsafe(20);\n H.writeInt32BE(this._a | 0, 0);\n H.writeInt32BE(this._b | 0, 4);\n H.writeInt32BE(this._c | 0, 8);\n H.writeInt32BE(this._d | 0, 12);\n H.writeInt32BE(this._e | 0, 16);\n return H;\n};\n\nmodule.exports = Sha1;","/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\nvar inherits = require('inherits');\n\nvar Sha256 = require('./sha256');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar W = new Array(64);\n\nfunction Sha224() {\n this.init();\n this._w = W; // new Array(64)\n\n Hash.call(this, 64, 56);\n}\n\ninherits(Sha224, Sha256);\n\nSha224.prototype.init = function () {\n this._a = 0xc1059ed8;\n this._b = 0x367cd507;\n this._c = 0x3070dd17;\n this._d = 0xf70e5939;\n this._e = 0xffc00b31;\n this._f = 0x68581511;\n this._g = 0x64f98fa7;\n this._h = 0xbefa4fa4;\n return this;\n};\n\nSha224.prototype._hash = function () {\n var H = Buffer.allocUnsafe(28);\n H.writeInt32BE(this._a, 0);\n H.writeInt32BE(this._b, 4);\n H.writeInt32BE(this._c, 8);\n H.writeInt32BE(this._d, 12);\n H.writeInt32BE(this._e, 16);\n H.writeInt32BE(this._f, 20);\n H.writeInt32BE(this._g, 24);\n return H;\n};\n\nmodule.exports = Sha224;","var inherits = require('inherits');\n\nvar SHA512 = require('./sha512');\n\nvar Hash = require('./hash');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar W = new Array(160);\n\nfunction Sha384() {\n this.init();\n this._w = W;\n Hash.call(this, 128, 112);\n}\n\ninherits(Sha384, SHA512);\n\nSha384.prototype.init = function () {\n this._ah = 0xcbbb9d5d;\n this._bh = 0x629a292a;\n this._ch = 0x9159015a;\n this._dh = 0x152fecd8;\n this._eh = 0x67332667;\n this._fh = 0x8eb44a87;\n this._gh = 0xdb0c2e0d;\n this._hh = 0x47b5481d;\n this._al = 0xc1059ed8;\n this._bl = 0x367cd507;\n this._cl = 0x3070dd17;\n this._dl = 0xf70e5939;\n this._el = 0xffc00b31;\n this._fl = 0x68581511;\n this._gl = 0x64f98fa7;\n this._hl = 0xbefa4fa4;\n return this;\n};\n\nSha384.prototype._hash = function () {\n var H = Buffer.allocUnsafe(48);\n\n function writeInt64BE(h, l, offset) {\n H.writeInt32BE(h, offset);\n H.writeInt32BE(l, offset + 4);\n }\n\n writeInt64BE(this._ah, this._al, 0);\n writeInt64BE(this._bh, this._bl, 8);\n writeInt64BE(this._ch, this._cl, 16);\n writeInt64BE(this._dh, this._dl, 24);\n writeInt64BE(this._eh, this._el, 32);\n writeInt64BE(this._fh, this._fl, 40);\n return H;\n};\n\nmodule.exports = Sha384;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\nmodule.exports = Stream;\n\nvar EE = require('events').EventEmitter;\n\nvar inherits = require('inherits');\n\ninherits(Stream, EE);\nStream.Readable = require('readable-stream/readable.js');\nStream.Writable = require('readable-stream/writable.js');\nStream.Duplex = require('readable-stream/duplex.js');\nStream.Transform = require('readable-stream/transform.js');\nStream.PassThrough = require('readable-stream/passthrough.js'); // Backwards-compat with node 0.4.x\n\nStream.Stream = Stream; // old-style streams. Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\n\nfunction Stream() {\n EE.call(this);\n}\n\nStream.prototype.pipe = function (dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain); // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n dest.end();\n }\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n if (typeof dest.destroy === 'function') dest.destroy();\n } // don't leave dangling pipes when there are errors.\n\n\n function onerror(er) {\n cleanup();\n\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror); // remove all the event listeners that were added.\n\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n dest.on('close', cleanup);\n dest.emit('pipe', source); // Allow for unix-like usage: A.pipe(B).pipe(C)\n\n return dest;\n};","'use strict';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({\n length: this.length\n });\n return this.constructor.name + ' ' + obj;\n };\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n/**/\n\n\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","module.exports = require('./lib/_stream_writable.js');","module.exports = require('./lib/_stream_duplex.js');","module.exports = require('./readable').Transform;","module.exports = require('./readable').PassThrough;","'use strict';\n\nvar inherits = require('inherits');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar Base = require('cipher-base');\n\nvar ZEROS = Buffer.alloc(128);\nvar blocksize = 64;\n\nfunction Hmac(alg, key) {\n Base.call(this, 'digest');\n\n if (typeof key === 'string') {\n key = Buffer.from(key);\n }\n\n this._alg = alg;\n this._key = key;\n\n if (key.length > blocksize) {\n key = alg(key);\n } else if (key.length < blocksize) {\n key = Buffer.concat([key, ZEROS], blocksize);\n }\n\n var ipad = this._ipad = Buffer.allocUnsafe(blocksize);\n var opad = this._opad = Buffer.allocUnsafe(blocksize);\n\n for (var i = 0; i < blocksize; i++) {\n ipad[i] = key[i] ^ 0x36;\n opad[i] = key[i] ^ 0x5C;\n }\n\n this._hash = [ipad];\n}\n\ninherits(Hmac, Base);\n\nHmac.prototype._update = function (data) {\n this._hash.push(data);\n};\n\nHmac.prototype._final = function () {\n var h = this._alg(Buffer.concat(this._hash));\n\n return this._alg(Buffer.concat([this._opad, h]));\n};\n\nmodule.exports = Hmac;","module.exports = require('./browser/algorithms.json');","var Buffer = require('safe-buffer').Buffer;\n\nvar checkParameters = require('./precondition');\n\nvar defaultEncoding = require('./default-encoding');\n\nvar sync = require('./sync');\n\nvar toBuffer = require('./to-buffer');\n\nvar ZERO_BUF;\nvar subtle = global.crypto && global.crypto.subtle;\nvar toBrowser = {\n sha: 'SHA-1',\n 'sha-1': 'SHA-1',\n sha1: 'SHA-1',\n sha256: 'SHA-256',\n 'sha-256': 'SHA-256',\n sha384: 'SHA-384',\n 'sha-384': 'SHA-384',\n 'sha-512': 'SHA-512',\n sha512: 'SHA-512'\n};\nvar checks = [];\n\nfunction checkNative(algo) {\n if (global.process && !global.process.browser) {\n return Promise.resolve(false);\n }\n\n if (!subtle || !subtle.importKey || !subtle.deriveBits) {\n return Promise.resolve(false);\n }\n\n if (checks[algo] !== undefined) {\n return checks[algo];\n }\n\n ZERO_BUF = ZERO_BUF || Buffer.alloc(8);\n var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function () {\n return true;\n }).catch(function () {\n return false;\n });\n checks[algo] = prom;\n return prom;\n}\n\nvar nextTick;\n\nfunction getNextTick() {\n if (nextTick) {\n return nextTick;\n }\n\n if (global.process && global.process.nextTick) {\n nextTick = global.process.nextTick;\n } else if (global.queueMicrotask) {\n nextTick = global.queueMicrotask;\n } else if (global.setImmediate) {\n nextTick = global.setImmediate;\n } else {\n nextTick = global.setTimeout;\n }\n\n return nextTick;\n}\n\nfunction browserPbkdf2(password, salt, iterations, length, algo) {\n return subtle.importKey('raw', password, {\n name: 'PBKDF2'\n }, false, ['deriveBits']).then(function (key) {\n return subtle.deriveBits({\n name: 'PBKDF2',\n salt: salt,\n iterations: iterations,\n hash: {\n name: algo\n }\n }, key, length << 3);\n }).then(function (res) {\n return Buffer.from(res);\n });\n}\n\nfunction resolvePromise(promise, callback) {\n promise.then(function (out) {\n getNextTick()(function () {\n callback(null, out);\n });\n }, function (e) {\n getNextTick()(function () {\n callback(e);\n });\n });\n}\n\nmodule.exports = function (password, salt, iterations, keylen, digest, callback) {\n if (typeof digest === 'function') {\n callback = digest;\n digest = undefined;\n }\n\n digest = digest || 'sha1';\n var algo = toBrowser[digest.toLowerCase()];\n\n if (!algo || typeof global.Promise !== 'function') {\n getNextTick()(function () {\n var out;\n\n try {\n out = sync(password, salt, iterations, keylen, digest);\n } catch (e) {\n return callback(e);\n }\n\n callback(null, out);\n });\n return;\n }\n\n checkParameters(iterations, keylen);\n password = toBuffer(password, defaultEncoding, 'Password');\n salt = toBuffer(salt, defaultEncoding, 'Salt');\n if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2');\n resolvePromise(checkNative(algo).then(function (resp) {\n if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo);\n return sync(password, salt, iterations, keylen, digest);\n }), callback);\n};","var DES = require('browserify-des');\n\nvar aes = require('browserify-aes/browser');\n\nvar aesModes = require('browserify-aes/modes');\n\nvar desModes = require('browserify-des/modes');\n\nvar ebtk = require('evp_bytestokey');\n\nfunction createCipher(suite, password) {\n suite = suite.toLowerCase();\n var keyLen, ivLen;\n\n if (aesModes[suite]) {\n keyLen = aesModes[suite].key;\n ivLen = aesModes[suite].iv;\n } else if (desModes[suite]) {\n keyLen = desModes[suite].key * 8;\n ivLen = desModes[suite].iv;\n } else {\n throw new TypeError('invalid suite type');\n }\n\n var keys = ebtk(password, false, keyLen, ivLen);\n return createCipheriv(suite, keys.key, keys.iv);\n}\n\nfunction createDecipher(suite, password) {\n suite = suite.toLowerCase();\n var keyLen, ivLen;\n\n if (aesModes[suite]) {\n keyLen = aesModes[suite].key;\n ivLen = aesModes[suite].iv;\n } else if (desModes[suite]) {\n keyLen = desModes[suite].key * 8;\n ivLen = desModes[suite].iv;\n } else {\n throw new TypeError('invalid suite type');\n }\n\n var keys = ebtk(password, false, keyLen, ivLen);\n return createDecipheriv(suite, keys.key, keys.iv);\n}\n\nfunction createCipheriv(suite, key, iv) {\n suite = suite.toLowerCase();\n if (aesModes[suite]) return aes.createCipheriv(suite, key, iv);\n if (desModes[suite]) return new DES({\n key: key,\n iv: iv,\n mode: suite\n });\n throw new TypeError('invalid suite type');\n}\n\nfunction createDecipheriv(suite, key, iv) {\n suite = suite.toLowerCase();\n if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv);\n if (desModes[suite]) return new DES({\n key: key,\n iv: iv,\n mode: suite,\n decrypt: true\n });\n throw new TypeError('invalid suite type');\n}\n\nfunction getCiphers() {\n return Object.keys(desModes).concat(aes.getCiphers());\n}\n\nexports.createCipher = exports.Cipher = createCipher;\nexports.createCipheriv = exports.Cipheriv = createCipheriv;\nexports.createDecipher = exports.Decipher = createDecipher;\nexports.createDecipheriv = exports.Decipheriv = createDecipheriv;\nexports.listCiphers = exports.getCiphers = getCiphers;","var CipherBase = require('cipher-base');\n\nvar des = require('des.js');\n\nvar inherits = require('inherits');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar modes = {\n 'des-ede3-cbc': des.CBC.instantiate(des.EDE),\n 'des-ede3': des.EDE,\n 'des-ede-cbc': des.CBC.instantiate(des.EDE),\n 'des-ede': des.EDE,\n 'des-cbc': des.CBC.instantiate(des.DES),\n 'des-ecb': des.DES\n};\nmodes.des = modes['des-cbc'];\nmodes.des3 = modes['des-ede3-cbc'];\nmodule.exports = DES;\ninherits(DES, CipherBase);\n\nfunction DES(opts) {\n CipherBase.call(this);\n var modeName = opts.mode.toLowerCase();\n var mode = modes[modeName];\n var type;\n\n if (opts.decrypt) {\n type = 'decrypt';\n } else {\n type = 'encrypt';\n }\n\n var key = opts.key;\n\n if (!Buffer.isBuffer(key)) {\n key = Buffer.from(key);\n }\n\n if (modeName === 'des-ede' || modeName === 'des-ede-cbc') {\n key = Buffer.concat([key, key.slice(0, 8)]);\n }\n\n var iv = opts.iv;\n\n if (!Buffer.isBuffer(iv)) {\n iv = Buffer.from(iv);\n }\n\n this._des = mode.create({\n key: key,\n iv: iv,\n type: type\n });\n}\n\nDES.prototype._update = function (data) {\n return Buffer.from(this._des.update(data));\n};\n\nDES.prototype._final = function () {\n return Buffer.from(this._des.final());\n};","'use strict';\n\nexports.utils = require('./des/utils');\nexports.Cipher = require('./des/cipher');\nexports.DES = require('./des/des');\nexports.CBC = require('./des/cbc');\nexports.EDE = require('./des/ede');","'use strict';\n\nvar assert = require('minimalistic-assert');\n\nvar inherits = require('inherits');\n\nvar proto = {};\n\nfunction CBCState(iv) {\n assert.equal(iv.length, 8, 'Invalid IV length');\n this.iv = new Array(8);\n\n for (var i = 0; i < this.iv.length; i++) {\n this.iv[i] = iv[i];\n }\n}\n\nfunction instantiate(Base) {\n function CBC(options) {\n Base.call(this, options);\n\n this._cbcInit();\n }\n\n inherits(CBC, Base);\n var keys = Object.keys(proto);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n CBC.prototype[key] = proto[key];\n }\n\n CBC.create = function create(options) {\n return new CBC(options);\n };\n\n return CBC;\n}\n\nexports.instantiate = instantiate;\n\nproto._cbcInit = function _cbcInit() {\n var state = new CBCState(this.options.iv);\n this._cbcState = state;\n};\n\nproto._update = function _update(inp, inOff, out, outOff) {\n var state = this._cbcState;\n var superProto = this.constructor.super_.prototype;\n var iv = state.iv;\n\n if (this.type === 'encrypt') {\n for (var i = 0; i < this.blockSize; i++) {\n iv[i] ^= inp[inOff + i];\n }\n\n superProto._update.call(this, iv, 0, out, outOff);\n\n for (var i = 0; i < this.blockSize; i++) {\n iv[i] = out[outOff + i];\n }\n } else {\n superProto._update.call(this, inp, inOff, out, outOff);\n\n for (var i = 0; i < this.blockSize; i++) {\n out[outOff + i] ^= iv[i];\n }\n\n for (var i = 0; i < this.blockSize; i++) {\n iv[i] = inp[inOff + i];\n }\n }\n};","'use strict';\n\nvar assert = require('minimalistic-assert');\n\nvar inherits = require('inherits');\n\nvar Cipher = require('./cipher');\n\nvar DES = require('./des');\n\nfunction EDEState(type, key) {\n assert.equal(key.length, 24, 'Invalid key length');\n var k1 = key.slice(0, 8);\n var k2 = key.slice(8, 16);\n var k3 = key.slice(16, 24);\n\n if (type === 'encrypt') {\n this.ciphers = [DES.create({\n type: 'encrypt',\n key: k1\n }), DES.create({\n type: 'decrypt',\n key: k2\n }), DES.create({\n type: 'encrypt',\n key: k3\n })];\n } else {\n this.ciphers = [DES.create({\n type: 'decrypt',\n key: k3\n }), DES.create({\n type: 'encrypt',\n key: k2\n }), DES.create({\n type: 'decrypt',\n key: k1\n })];\n }\n}\n\nfunction EDE(options) {\n Cipher.call(this, options);\n var state = new EDEState(this.type, this.options.key);\n this._edeState = state;\n}\n\ninherits(EDE, Cipher);\nmodule.exports = EDE;\n\nEDE.create = function create(options) {\n return new EDE(options);\n};\n\nEDE.prototype._update = function _update(inp, inOff, out, outOff) {\n var state = this._edeState;\n\n state.ciphers[0]._update(inp, inOff, out, outOff);\n\n state.ciphers[1]._update(out, outOff, out, outOff);\n\n state.ciphers[2]._update(out, outOff, out, outOff);\n};\n\nEDE.prototype._pad = DES.prototype._pad;\nEDE.prototype._unpad = DES.prototype._unpad;","var MODES = require('./modes');\n\nvar AuthCipher = require('./authCipher');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar StreamCipher = require('./streamCipher');\n\nvar Transform = require('cipher-base');\n\nvar aes = require('./aes');\n\nvar ebtk = require('evp_bytestokey');\n\nvar inherits = require('inherits');\n\nfunction Cipher(mode, key, iv) {\n Transform.call(this);\n this._cache = new Splitter();\n this._cipher = new aes.AES(key);\n this._prev = Buffer.from(iv);\n this._mode = mode;\n this._autopadding = true;\n}\n\ninherits(Cipher, Transform);\n\nCipher.prototype._update = function (data) {\n this._cache.add(data);\n\n var chunk;\n var thing;\n var out = [];\n\n while (chunk = this._cache.get()) {\n thing = this._mode.encrypt(this, chunk);\n out.push(thing);\n }\n\n return Buffer.concat(out);\n};\n\nvar PADDING = Buffer.alloc(16, 0x10);\n\nCipher.prototype._final = function () {\n var chunk = this._cache.flush();\n\n if (this._autopadding) {\n chunk = this._mode.encrypt(this, chunk);\n\n this._cipher.scrub();\n\n return chunk;\n }\n\n if (!chunk.equals(PADDING)) {\n this._cipher.scrub();\n\n throw new Error('data not multiple of block length');\n }\n};\n\nCipher.prototype.setAutoPadding = function (setTo) {\n this._autopadding = !!setTo;\n return this;\n};\n\nfunction Splitter() {\n this.cache = Buffer.allocUnsafe(0);\n}\n\nSplitter.prototype.add = function (data) {\n this.cache = Buffer.concat([this.cache, data]);\n};\n\nSplitter.prototype.get = function () {\n if (this.cache.length > 15) {\n var out = this.cache.slice(0, 16);\n this.cache = this.cache.slice(16);\n return out;\n }\n\n return null;\n};\n\nSplitter.prototype.flush = function () {\n var len = 16 - this.cache.length;\n var padBuff = Buffer.allocUnsafe(len);\n var i = -1;\n\n while (++i < len) {\n padBuff.writeUInt8(len, i);\n }\n\n return Buffer.concat([this.cache, padBuff]);\n};\n\nfunction createCipheriv(suite, password, iv) {\n var config = MODES[suite.toLowerCase()];\n if (!config) throw new TypeError('invalid suite type');\n if (typeof password === 'string') password = Buffer.from(password);\n if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length);\n if (typeof iv === 'string') iv = Buffer.from(iv);\n if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length);\n\n if (config.type === 'stream') {\n return new StreamCipher(config.module, password, iv);\n } else if (config.type === 'auth') {\n return new AuthCipher(config.module, password, iv);\n }\n\n return new Cipher(config.module, password, iv);\n}\n\nfunction createCipher(suite, password) {\n var config = MODES[suite.toLowerCase()];\n if (!config) throw new TypeError('invalid suite type');\n var keys = ebtk(password, false, config.key, config.iv);\n return createCipheriv(suite, keys.key, keys.iv);\n}\n\nexports.createCipheriv = createCipheriv;\nexports.createCipher = createCipher;","exports.encrypt = function (self, block) {\n return self._cipher.encryptBlock(block);\n};\n\nexports.decrypt = function (self, block) {\n return self._cipher.decryptBlock(block);\n};","var xor = require('buffer-xor');\n\nexports.encrypt = function (self, block) {\n var data = xor(block, self._prev);\n self._prev = self._cipher.encryptBlock(data);\n return self._prev;\n};\n\nexports.decrypt = function (self, block) {\n var pad = self._prev;\n self._prev = block;\n\n var out = self._cipher.decryptBlock(block);\n\n return xor(out, pad);\n};","var Buffer = require('safe-buffer').Buffer;\n\nvar xor = require('buffer-xor');\n\nfunction encryptStart(self, data, decrypt) {\n var len = data.length;\n var out = xor(data, self._cache);\n self._cache = self._cache.slice(len);\n self._prev = Buffer.concat([self._prev, decrypt ? data : out]);\n return out;\n}\n\nexports.encrypt = function (self, data, decrypt) {\n var out = Buffer.allocUnsafe(0);\n var len;\n\n while (data.length) {\n if (self._cache.length === 0) {\n self._cache = self._cipher.encryptBlock(self._prev);\n self._prev = Buffer.allocUnsafe(0);\n }\n\n if (self._cache.length <= data.length) {\n len = self._cache.length;\n out = Buffer.concat([out, encryptStart(self, data.slice(0, len), decrypt)]);\n data = data.slice(len);\n } else {\n out = Buffer.concat([out, encryptStart(self, data, decrypt)]);\n break;\n }\n }\n\n return out;\n};","var Buffer = require('safe-buffer').Buffer;\n\nfunction encryptByte(self, byteParam, decrypt) {\n var pad = self._cipher.encryptBlock(self._prev);\n\n var out = pad[0] ^ byteParam;\n self._prev = Buffer.concat([self._prev.slice(1), Buffer.from([decrypt ? byteParam : out])]);\n return out;\n}\n\nexports.encrypt = function (self, chunk, decrypt) {\n var len = chunk.length;\n var out = Buffer.allocUnsafe(len);\n var i = -1;\n\n while (++i < len) {\n out[i] = encryptByte(self, chunk[i], decrypt);\n }\n\n return out;\n};","var Buffer = require('safe-buffer').Buffer;\n\nfunction encryptByte(self, byteParam, decrypt) {\n var pad;\n var i = -1;\n var len = 8;\n var out = 0;\n var bit, value;\n\n while (++i < len) {\n pad = self._cipher.encryptBlock(self._prev);\n bit = byteParam & 1 << 7 - i ? 0x80 : 0;\n value = pad[0] ^ bit;\n out += (value & 0x80) >> i % 8;\n self._prev = shiftIn(self._prev, decrypt ? bit : value);\n }\n\n return out;\n}\n\nfunction shiftIn(buffer, value) {\n var len = buffer.length;\n var i = -1;\n var out = Buffer.allocUnsafe(buffer.length);\n buffer = Buffer.concat([buffer, Buffer.from([value])]);\n\n while (++i < len) {\n out[i] = buffer[i] << 1 | buffer[i + 1] >> 7;\n }\n\n return out;\n}\n\nexports.encrypt = function (self, chunk, decrypt) {\n var len = chunk.length;\n var out = Buffer.allocUnsafe(len);\n var i = -1;\n\n while (++i < len) {\n out[i] = encryptByte(self, chunk[i], decrypt);\n }\n\n return out;\n};","var xor = require('buffer-xor');\n\nfunction getBlock(self) {\n self._prev = self._cipher.encryptBlock(self._prev);\n return self._prev;\n}\n\nexports.encrypt = function (self, chunk) {\n while (self._cache.length < chunk.length) {\n self._cache = Buffer.concat([self._cache, getBlock(self)]);\n }\n\n var pad = self._cache.slice(0, chunk.length);\n\n self._cache = self._cache.slice(chunk.length);\n return xor(chunk, pad);\n};","var Buffer = require('safe-buffer').Buffer;\n\nvar ZEROES = Buffer.alloc(16, 0);\n\nfunction toArray(buf) {\n return [buf.readUInt32BE(0), buf.readUInt32BE(4), buf.readUInt32BE(8), buf.readUInt32BE(12)];\n}\n\nfunction fromArray(out) {\n var buf = Buffer.allocUnsafe(16);\n buf.writeUInt32BE(out[0] >>> 0, 0);\n buf.writeUInt32BE(out[1] >>> 0, 4);\n buf.writeUInt32BE(out[2] >>> 0, 8);\n buf.writeUInt32BE(out[3] >>> 0, 12);\n return buf;\n}\n\nfunction GHASH(key) {\n this.h = key;\n this.state = Buffer.alloc(16, 0);\n this.cache = Buffer.allocUnsafe(0);\n} // from http://bitwiseshiftleft.github.io/sjcl/doc/symbols/src/core_gcm.js.html\n// by Juho Vähä-Herttua\n\n\nGHASH.prototype.ghash = function (block) {\n var i = -1;\n\n while (++i < block.length) {\n this.state[i] ^= block[i];\n }\n\n this._multiply();\n};\n\nGHASH.prototype._multiply = function () {\n var Vi = toArray(this.h);\n var Zi = [0, 0, 0, 0];\n var j, xi, lsbVi;\n var i = -1;\n\n while (++i < 128) {\n xi = (this.state[~~(i / 8)] & 1 << 7 - i % 8) !== 0;\n\n if (xi) {\n // Z_i+1 = Z_i ^ V_i\n Zi[0] ^= Vi[0];\n Zi[1] ^= Vi[1];\n Zi[2] ^= Vi[2];\n Zi[3] ^= Vi[3];\n } // Store the value of LSB(V_i)\n\n\n lsbVi = (Vi[3] & 1) !== 0; // V_i+1 = V_i >> 1\n\n for (j = 3; j > 0; j--) {\n Vi[j] = Vi[j] >>> 1 | (Vi[j - 1] & 1) << 31;\n }\n\n Vi[0] = Vi[0] >>> 1; // If LSB(V_i) is 1, V_i+1 = (V_i >> 1) ^ R\n\n if (lsbVi) {\n Vi[0] = Vi[0] ^ 0xe1 << 24;\n }\n }\n\n this.state = fromArray(Zi);\n};\n\nGHASH.prototype.update = function (buf) {\n this.cache = Buffer.concat([this.cache, buf]);\n var chunk;\n\n while (this.cache.length >= 16) {\n chunk = this.cache.slice(0, 16);\n this.cache = this.cache.slice(16);\n this.ghash(chunk);\n }\n};\n\nGHASH.prototype.final = function (abl, bl) {\n if (this.cache.length) {\n this.ghash(Buffer.concat([this.cache, ZEROES], 16));\n }\n\n this.ghash(fromArray([0, abl, 0, bl]));\n return this.state;\n};\n\nmodule.exports = GHASH;","var AuthCipher = require('./authCipher');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nvar MODES = require('./modes');\n\nvar StreamCipher = require('./streamCipher');\n\nvar Transform = require('cipher-base');\n\nvar aes = require('./aes');\n\nvar ebtk = require('evp_bytestokey');\n\nvar inherits = require('inherits');\n\nfunction Decipher(mode, key, iv) {\n Transform.call(this);\n this._cache = new Splitter();\n this._last = void 0;\n this._cipher = new aes.AES(key);\n this._prev = Buffer.from(iv);\n this._mode = mode;\n this._autopadding = true;\n}\n\ninherits(Decipher, Transform);\n\nDecipher.prototype._update = function (data) {\n this._cache.add(data);\n\n var chunk;\n var thing;\n var out = [];\n\n while (chunk = this._cache.get(this._autopadding)) {\n thing = this._mode.decrypt(this, chunk);\n out.push(thing);\n }\n\n return Buffer.concat(out);\n};\n\nDecipher.prototype._final = function () {\n var chunk = this._cache.flush();\n\n if (this._autopadding) {\n return unpad(this._mode.decrypt(this, chunk));\n } else if (chunk) {\n throw new Error('data not multiple of block length');\n }\n};\n\nDecipher.prototype.setAutoPadding = function (setTo) {\n this._autopadding = !!setTo;\n return this;\n};\n\nfunction Splitter() {\n this.cache = Buffer.allocUnsafe(0);\n}\n\nSplitter.prototype.add = function (data) {\n this.cache = Buffer.concat([this.cache, data]);\n};\n\nSplitter.prototype.get = function (autoPadding) {\n var out;\n\n if (autoPadding) {\n if (this.cache.length > 16) {\n out = this.cache.slice(0, 16);\n this.cache = this.cache.slice(16);\n return out;\n }\n } else {\n if (this.cache.length >= 16) {\n out = this.cache.slice(0, 16);\n this.cache = this.cache.slice(16);\n return out;\n }\n }\n\n return null;\n};\n\nSplitter.prototype.flush = function () {\n if (this.cache.length) return this.cache;\n};\n\nfunction unpad(last) {\n var padded = last[15];\n\n if (padded < 1 || padded > 16) {\n throw new Error('unable to decrypt data');\n }\n\n var i = -1;\n\n while (++i < padded) {\n if (last[i + (16 - padded)] !== padded) {\n throw new Error('unable to decrypt data');\n }\n }\n\n if (padded === 16) return;\n return last.slice(0, 16 - padded);\n}\n\nfunction createDecipheriv(suite, password, iv) {\n var config = MODES[suite.toLowerCase()];\n if (!config) throw new TypeError('invalid suite type');\n if (typeof iv === 'string') iv = Buffer.from(iv);\n if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length);\n if (typeof password === 'string') password = Buffer.from(password);\n if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length);\n\n if (config.type === 'stream') {\n return new StreamCipher(config.module, password, iv, true);\n } else if (config.type === 'auth') {\n return new AuthCipher(config.module, password, iv, true);\n }\n\n return new Decipher(config.module, password, iv);\n}\n\nfunction createDecipher(suite, password) {\n var config = MODES[suite.toLowerCase()];\n if (!config) throw new TypeError('invalid suite type');\n var keys = ebtk(password, false, config.key, config.iv);\n return createDecipheriv(suite, keys.key, keys.iv);\n}\n\nexports.createDecipher = createDecipher;\nexports.createDecipheriv = createDecipheriv;","exports['des-ecb'] = {\n key: 8,\n iv: 0\n};\nexports['des-cbc'] = exports.des = {\n key: 8,\n iv: 8\n};\nexports['des-ede3-cbc'] = exports.des3 = {\n key: 24,\n iv: 8\n};\nexports['des-ede3'] = {\n key: 24,\n iv: 0\n};\nexports['des-ede-cbc'] = {\n key: 16,\n iv: 8\n};\nexports['des-ede'] = {\n key: 16,\n iv: 0\n};","var generatePrime = require('./lib/generatePrime');\n\nvar primes = require('./lib/primes.json');\n\nvar DH = require('./lib/dh');\n\nfunction getDiffieHellman(mod) {\n var prime = new Buffer(primes[mod].prime, 'hex');\n var gen = new Buffer(primes[mod].gen, 'hex');\n return new DH(prime, gen);\n}\n\nvar ENCODINGS = {\n 'binary': true,\n 'hex': true,\n 'base64': true\n};\n\nfunction createDiffieHellman(prime, enc, generator, genc) {\n if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) {\n return createDiffieHellman(prime, 'binary', enc, generator);\n }\n\n enc = enc || 'binary';\n genc = genc || 'binary';\n generator = generator || new Buffer([2]);\n\n if (!Buffer.isBuffer(generator)) {\n generator = new Buffer(generator, genc);\n }\n\n if (typeof prime === 'number') {\n return new DH(generatePrime(prime, generator), generator, true);\n }\n\n if (!Buffer.isBuffer(prime)) {\n prime = new Buffer(prime, enc);\n }\n\n return new DH(prime, generator, true);\n}\n\nexports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman;\nexports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman;","var BN = require('bn.js');\n\nvar MillerRabin = require('miller-rabin');\n\nvar millerRabin = new MillerRabin();\nvar TWENTYFOUR = new BN(24);\nvar ELEVEN = new BN(11);\nvar TEN = new BN(10);\nvar THREE = new BN(3);\nvar SEVEN = new BN(7);\n\nvar primes = require('./generatePrime');\n\nvar randomBytes = require('randombytes');\n\nmodule.exports = DH;\n\nfunction setPublicKey(pub, enc) {\n enc = enc || 'utf8';\n\n if (!Buffer.isBuffer(pub)) {\n pub = new Buffer(pub, enc);\n }\n\n this._pub = new BN(pub);\n return this;\n}\n\nfunction setPrivateKey(priv, enc) {\n enc = enc || 'utf8';\n\n if (!Buffer.isBuffer(priv)) {\n priv = new Buffer(priv, enc);\n }\n\n this._priv = new BN(priv);\n return this;\n}\n\nvar primeCache = {};\n\nfunction checkPrime(prime, generator) {\n var gen = generator.toString('hex');\n var hex = [gen, prime.toString(16)].join('_');\n\n if (hex in primeCache) {\n return primeCache[hex];\n }\n\n var error = 0;\n\n if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) {\n //not a prime so +1\n error += 1;\n\n if (gen === '02' || gen === '05') {\n // we'd be able to check the generator\n // it would fail so +8\n error += 8;\n } else {\n //we wouldn't be able to test the generator\n // so +4\n error += 4;\n }\n\n primeCache[hex] = error;\n return error;\n }\n\n if (!millerRabin.test(prime.shrn(1))) {\n //not a safe prime\n error += 2;\n }\n\n var rem;\n\n switch (gen) {\n case '02':\n if (prime.mod(TWENTYFOUR).cmp(ELEVEN)) {\n // unsuidable generator\n error += 8;\n }\n\n break;\n\n case '05':\n rem = prime.mod(TEN);\n\n if (rem.cmp(THREE) && rem.cmp(SEVEN)) {\n // prime mod 10 needs to equal 3 or 7\n error += 8;\n }\n\n break;\n\n default:\n error += 4;\n }\n\n primeCache[hex] = error;\n return error;\n}\n\nfunction DH(prime, generator, malleable) {\n this.setGenerator(generator);\n this.__prime = new BN(prime);\n this._prime = BN.mont(this.__prime);\n this._primeLen = prime.length;\n this._pub = undefined;\n this._priv = undefined;\n this._primeCode = undefined;\n\n if (malleable) {\n this.setPublicKey = setPublicKey;\n this.setPrivateKey = setPrivateKey;\n } else {\n this._primeCode = 8;\n }\n}\n\nObject.defineProperty(DH.prototype, 'verifyError', {\n enumerable: true,\n get: function get() {\n if (typeof this._primeCode !== 'number') {\n this._primeCode = checkPrime(this.__prime, this.__gen);\n }\n\n return this._primeCode;\n }\n});\n\nDH.prototype.generateKeys = function () {\n if (!this._priv) {\n this._priv = new BN(randomBytes(this._primeLen));\n }\n\n this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed();\n return this.getPublicKey();\n};\n\nDH.prototype.computeSecret = function (other) {\n other = new BN(other);\n other = other.toRed(this._prime);\n var secret = other.redPow(this._priv).fromRed();\n var out = new Buffer(secret.toArray());\n var prime = this.getPrime();\n\n if (out.length < prime.length) {\n var front = new Buffer(prime.length - out.length);\n front.fill(0);\n out = Buffer.concat([front, out]);\n }\n\n return out;\n};\n\nDH.prototype.getPublicKey = function getPublicKey(enc) {\n return formatReturnValue(this._pub, enc);\n};\n\nDH.prototype.getPrivateKey = function getPrivateKey(enc) {\n return formatReturnValue(this._priv, enc);\n};\n\nDH.prototype.getPrime = function (enc) {\n return formatReturnValue(this.__prime, enc);\n};\n\nDH.prototype.getGenerator = function (enc) {\n return formatReturnValue(this._gen, enc);\n};\n\nDH.prototype.setGenerator = function (gen, enc) {\n enc = enc || 'utf8';\n\n if (!Buffer.isBuffer(gen)) {\n gen = new Buffer(gen, enc);\n }\n\n this.__gen = gen;\n this._gen = new BN(gen);\n return this;\n};\n\nfunction formatReturnValue(bn, enc) {\n var buf = new Buffer(bn.toArray());\n\n if (!enc) {\n return buf;\n } else {\n return buf.toString(enc);\n }\n}","var Buffer = require('safe-buffer').Buffer;\n\nvar createHash = require('create-hash');\n\nvar stream = require('readable-stream');\n\nvar inherits = require('inherits');\n\nvar sign = require('./sign');\n\nvar verify = require('./verify');\n\nvar algorithms = require('./algorithms.json');\n\nObject.keys(algorithms).forEach(function (key) {\n algorithms[key].id = Buffer.from(algorithms[key].id, 'hex');\n algorithms[key.toLowerCase()] = algorithms[key];\n});\n\nfunction Sign(algorithm) {\n stream.Writable.call(this);\n var data = algorithms[algorithm];\n if (!data) throw new Error('Unknown message digest');\n this._hashType = data.hash;\n this._hash = createHash(data.hash);\n this._tag = data.id;\n this._signType = data.sign;\n}\n\ninherits(Sign, stream.Writable);\n\nSign.prototype._write = function _write(data, _, done) {\n this._hash.update(data);\n\n done();\n};\n\nSign.prototype.update = function update(data, enc) {\n if (typeof data === 'string') data = Buffer.from(data, enc);\n\n this._hash.update(data);\n\n return this;\n};\n\nSign.prototype.sign = function signMethod(key, enc) {\n this.end();\n\n var hash = this._hash.digest();\n\n var sig = sign(hash, key, this._hashType, this._signType, this._tag);\n return enc ? sig.toString(enc) : sig;\n};\n\nfunction Verify(algorithm) {\n stream.Writable.call(this);\n var data = algorithms[algorithm];\n if (!data) throw new Error('Unknown message digest');\n this._hash = createHash(data.hash);\n this._tag = data.id;\n this._signType = data.sign;\n}\n\ninherits(Verify, stream.Writable);\n\nVerify.prototype._write = function _write(data, _, done) {\n this._hash.update(data);\n\n done();\n};\n\nVerify.prototype.update = function update(data, enc) {\n if (typeof data === 'string') data = Buffer.from(data, enc);\n\n this._hash.update(data);\n\n return this;\n};\n\nVerify.prototype.verify = function verifyMethod(key, sig, enc) {\n if (typeof sig === 'string') sig = Buffer.from(sig, enc);\n this.end();\n\n var hash = this._hash.digest();\n\n return verify(sig, hash, key, this._signType, this._tag);\n};\n\nfunction createSign(algorithm) {\n return new Sign(algorithm);\n}\n\nfunction createVerify(algorithm) {\n return new Verify(algorithm);\n}\n\nmodule.exports = {\n Sign: createSign,\n Verify: createVerify,\n createSign: createSign,\n createVerify: createVerify\n};","exports = module.exports = require('./lib/_stream_readable.js');\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = require('./lib/_stream_writable.js');\nexports.Duplex = require('./lib/_stream_duplex.js');\nexports.Transform = require('./lib/_stream_transform.js');\nexports.PassThrough = require('./lib/_stream_passthrough.js');\nexports.finished = require('./lib/internal/streams/end-of-stream.js');\nexports.pipeline = require('./lib/internal/streams/pipeline.js');","'use strict';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\n\nvar _require2 = require('util'),\n inspect = _require2.inspect;\n\nvar custom = inspect && inspect.custom || 'inspect';\n\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\n\nmodule.exports = /*#__PURE__*/function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n\n while (p = p.next) {\n ret += s + p.data;\n }\n\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n\n return ret;\n } // Consumes a specified amount of bytes or characters from the buffered data.\n\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n } // Consumes a specified amount of characters from the buffered data.\n\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Consumes a specified amount of bytes from the buffered data.\n\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n\n break;\n }\n\n ++c;\n }\n\n this.length -= c;\n return ret;\n } // Make sure the linked list only shows the minimal necessary information.\n\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread({}, options, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n\n return BufferList;\n}();","'use strict';\n\nvar _Object$setPrototypeO;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar finished = require('./end-of-stream');\n\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\n\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\n\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n\n if (resolve !== null) {\n var data = iter[kStream].read(); // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\n\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\n\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\n\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n\n next: function next() {\n var _this = this; // if we have detected an error in the meanwhile\n // reject straight away\n\n\n var error = this[kError];\n\n if (error !== null) {\n return Promise.reject(error);\n }\n\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n } // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n\n\n var lastPromise = this[kLastPromise];\n var promise;\n\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n\n promise = new Promise(this[kHandlePromise]);\n }\n\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this; // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n\n\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\n\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n\n iterator[kError] = err;\n return;\n }\n\n var resolve = iterator[kLastResolve];\n\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\n\nmodule.exports = createReadableStreamAsyncIterator;","module.exports = function () {\n throw new Error('Readable.from is not available in the browser');\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\nrequire('inherits')(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n'use strict';\n\nvar eos;\n\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\n\nvar _require$codes = require('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\n\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\n\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\n\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = require('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true; // request.destroy just do .end - .abort is what we want\n\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\n\nfunction call(fn) {\n fn();\n}\n\nfunction pipe(from, to) {\n return from.pipe(to);\n}\n\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\n\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\n\nmodule.exports = pipeline;","// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js\nvar Buffer = require('safe-buffer').Buffer;\n\nvar createHmac = require('create-hmac');\n\nvar crt = require('browserify-rsa');\n\nvar EC = require('elliptic').ec;\n\nvar BN = require('bn.js');\n\nvar parseKeys = require('parse-asn1');\n\nvar curves = require('./curves.json');\n\nfunction sign(hash, key, hashType, signType, tag) {\n var priv = parseKeys(key);\n\n if (priv.curve) {\n // rsa keys can be interpreted as ecdsa ones in openssl\n if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type');\n return ecSign(hash, priv);\n } else if (priv.type === 'dsa') {\n if (signType !== 'dsa') throw new Error('wrong private key type');\n return dsaSign(hash, priv, hashType);\n } else {\n if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type');\n }\n\n hash = Buffer.concat([tag, hash]);\n var len = priv.modulus.byteLength();\n var pad = [0, 1];\n\n while (hash.length + pad.length + 1 < len) {\n pad.push(0xff);\n }\n\n pad.push(0x00);\n var i = -1;\n\n while (++i < hash.length) {\n pad.push(hash[i]);\n }\n\n var out = crt(pad, priv);\n return out;\n}\n\nfunction ecSign(hash, priv) {\n var curveId = curves[priv.curve.join('.')];\n if (!curveId) throw new Error('unknown curve ' + priv.curve.join('.'));\n var curve = new EC(curveId);\n var key = curve.keyFromPrivate(priv.privateKey);\n var out = key.sign(hash);\n return Buffer.from(out.toDER());\n}\n\nfunction dsaSign(hash, priv, algo) {\n var x = priv.params.priv_key;\n var p = priv.params.p;\n var q = priv.params.q;\n var g = priv.params.g;\n var r = new BN(0);\n var k;\n var H = bits2int(hash, q).mod(q);\n var s = false;\n var kv = getKey(x, q, hash, algo);\n\n while (s === false) {\n k = makeKey(q, kv, algo);\n r = makeR(g, k, p, q);\n s = k.invm(q).imul(H.add(x.mul(r))).mod(q);\n\n if (s.cmpn(0) === 0) {\n s = false;\n r = new BN(0);\n }\n }\n\n return toDER(r, s);\n}\n\nfunction toDER(r, s) {\n r = r.toArray();\n s = s.toArray(); // Pad values\n\n if (r[0] & 0x80) r = [0].concat(r);\n if (s[0] & 0x80) s = [0].concat(s);\n var total = r.length + s.length + 4;\n var res = [0x30, total, 0x02, r.length];\n res = res.concat(r, [0x02, s.length], s);\n return Buffer.from(res);\n}\n\nfunction getKey(x, q, hash, algo) {\n x = Buffer.from(x.toArray());\n\n if (x.length < q.byteLength()) {\n var zeros = Buffer.alloc(q.byteLength() - x.length);\n x = Buffer.concat([zeros, x]);\n }\n\n var hlen = hash.length;\n var hbits = bits2octets(hash, q);\n var v = Buffer.alloc(hlen);\n v.fill(1);\n var k = Buffer.alloc(hlen);\n k = createHmac(algo, k).update(v).update(Buffer.from([0])).update(x).update(hbits).digest();\n v = createHmac(algo, k).update(v).digest();\n k = createHmac(algo, k).update(v).update(Buffer.from([1])).update(x).update(hbits).digest();\n v = createHmac(algo, k).update(v).digest();\n return {\n k: k,\n v: v\n };\n}\n\nfunction bits2int(obits, q) {\n var bits = new BN(obits);\n var shift = (obits.length << 3) - q.bitLength();\n if (shift > 0) bits.ishrn(shift);\n return bits;\n}\n\nfunction bits2octets(bits, q) {\n bits = bits2int(bits, q);\n bits = bits.mod(q);\n var out = Buffer.from(bits.toArray());\n\n if (out.length < q.byteLength()) {\n var zeros = Buffer.alloc(q.byteLength() - out.length);\n out = Buffer.concat([zeros, out]);\n }\n\n return out;\n}\n\nfunction makeKey(q, kv, algo) {\n var t;\n var k;\n\n do {\n t = Buffer.alloc(0);\n\n while (t.length * 8 < q.bitLength()) {\n kv.v = createHmac(algo, kv.k).update(kv.v).digest();\n t = Buffer.concat([t, kv.v]);\n }\n\n k = bits2int(t, q);\n kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer.from([0])).digest();\n kv.v = createHmac(algo, kv.k).update(kv.v).digest();\n } while (k.cmp(q) !== -1);\n\n return k;\n}\n\nfunction makeR(g, k, p, q) {\n return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q);\n}\n\nmodule.exports = sign;\nmodule.exports.getKey = getKey;\nmodule.exports.makeKey = makeKey;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (module, exports) {\n 'use strict'; // Utils\n\n function assert(val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n } // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n\n\n function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n\n var TempCtor = function TempCtor() {};\n\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n } // BN\n\n\n function BN(number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0; // Reduction context\n\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n\n if (_typeof(module) === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n var Buffer;\n\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {}\n\n BN.isBN = function isBN(num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && _typeof(num) === 'object' && num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max(left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min(left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init(number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (_typeof(number) === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n\n assert(base === (base | 0) && base >= 2 && base <= 36);\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber(number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n\n if (number < 0x4000000) {\n this.words = [number & 0x3ffffff];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n\n this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff, 1];\n this.length = 3;\n }\n\n if (endian !== 'le') return; // Reverse the bytes\n\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray(number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n\n if (number.length <= 0) {\n this.words = [0];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | number[i - 1] << 8 | number[i - 2] << 16;\n this.words[j] |= w << off & 0x3ffffff;\n this.words[j + 1] = w >>> 26 - off & 0x3ffffff;\n off += 24;\n\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | number[i + 1] << 8 | number[i + 2] << 16;\n this.words[j] |= w << off & 0x3ffffff;\n this.words[j + 1] = w >>> 26 - off & 0x3ffffff;\n off += 24;\n\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n\n return this._strip();\n };\n\n function parseHex4Bits(string, index) {\n var c = string.charCodeAt(index); // '0' - '9'\n\n if (c >= 48 && c <= 57) {\n return c - 48; // 'A' - 'F'\n } else if (c >= 65 && c <= 70) {\n return c - 55; // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n } else {\n assert(false, 'Invalid character in ' + string);\n }\n }\n\n function parseHexByte(string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex(number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n } // 24-bits chunks\n\n\n var off = 0;\n var j = 0;\n var w;\n\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this._strip();\n };\n\n function parseBase(str, start, end, mul) {\n var r = 0;\n var b = 0;\n var len = Math.min(str.length, end);\n\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n r *= mul; // 'a'\n\n if (c >= 49) {\n b = c - 49 + 0xa; // 'A'\n } else if (c >= 17) {\n b = c - 17 + 0xa; // '0' - '9'\n } else {\n b = c;\n }\n\n assert(c >= 0 && b < mul, 'Invalid character');\n r += b;\n }\n\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase(number, base, start) {\n // Initialize as zero\n this.words = [0];\n this.length = 1; // Find length of limb in base\n\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n\n limbLen--;\n limbPow = limbPow / base | 0;\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n var word = 0;\n\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n this.imuln(limbPow);\n\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this._strip();\n };\n\n BN.prototype.copy = function copy(dest) {\n dest.words = new Array(this.length);\n\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n function move(dest, src) {\n dest.words = src.words;\n dest.length = src.length;\n dest.negative = src.negative;\n dest.red = src.red;\n }\n\n BN.prototype._move = function _move(dest) {\n move(dest, this);\n };\n\n BN.prototype.clone = function clone() {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand(size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n\n return this;\n }; // Remove leading `0` from `this`\n\n\n BN.prototype._strip = function strip() {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign() {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n\n return this;\n }; // Check Symbol.for because not everywhere where Symbol defined\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Browser_compatibility\n\n\n if (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function') {\n try {\n BN.prototype[Symbol.for('nodejs.util.inspect.custom')] = inspect;\n } catch (e) {\n BN.prototype.inspect = inspect;\n }\n } else {\n BN.prototype.inspect = inspect;\n }\n\n function inspect() {\n return (this.red ? '';\n }\n /*\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n */\n\n\n var zeros = ['', '0', '00', '000', '0000', '00000', '000000', '0000000', '00000000', '000000000', '0000000000', '00000000000', '000000000000', '0000000000000', '00000000000000', '000000000000000', '0000000000000000', '00000000000000000', '000000000000000000', '0000000000000000000', '00000000000000000000', '000000000000000000000', '0000000000000000000000', '00000000000000000000000', '000000000000000000000000', '0000000000000000000000000'];\n var groupSizes = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];\n var groupBases = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];\n\n BN.prototype.toString = function toString(base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n var out;\n\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = ((w << off | carry) & 0xffffff).toString(16);\n carry = w >>> 24 - off & 0xffffff;\n\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n\n off += 2;\n\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n\n if (this.negative !== 0) {\n out = '-' + out;\n }\n\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base]; // var groupBase = Math.pow(base, groupSize);\n\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n\n while (!c.isZero()) {\n var r = c.modrn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n\n if (this.isZero()) {\n out = '0' + out;\n }\n\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n\n if (this.negative !== 0) {\n out = '-' + out;\n }\n\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber() {\n var ret = this.words[0];\n\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + this.words[1] * 0x4000000;\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n\n return this.negative !== 0 ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON() {\n return this.toString(16, 2);\n };\n\n if (Buffer) {\n BN.prototype.toBuffer = function toBuffer(endian, length) {\n return this.toArrayLike(Buffer, endian, length);\n };\n }\n\n BN.prototype.toArray = function toArray(endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n var allocate = function allocate(ArrayType, size) {\n if (ArrayType.allocUnsafe) {\n return ArrayType.allocUnsafe(size);\n }\n\n return new ArrayType(size);\n };\n\n BN.prototype.toArrayLike = function toArrayLike(ArrayType, endian, length) {\n this._strip();\n\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n var res = allocate(ArrayType, reqLength);\n var postfix = endian === 'le' ? 'LE' : 'BE';\n this['_toArrayLike' + postfix](res, byteLength);\n return res;\n };\n\n BN.prototype._toArrayLikeLE = function _toArrayLikeLE(res, byteLength) {\n var position = 0;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = this.words[i] << shift | carry;\n res[position++] = word & 0xff;\n\n if (position < res.length) {\n res[position++] = word >> 8 & 0xff;\n }\n\n if (position < res.length) {\n res[position++] = word >> 16 & 0xff;\n }\n\n if (shift === 6) {\n if (position < res.length) {\n res[position++] = word >> 24 & 0xff;\n }\n\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position < res.length) {\n res[position++] = carry;\n\n while (position < res.length) {\n res[position++] = 0;\n }\n }\n };\n\n BN.prototype._toArrayLikeBE = function _toArrayLikeBE(res, byteLength) {\n var position = res.length - 1;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = this.words[i] << shift | carry;\n res[position--] = word & 0xff;\n\n if (position >= 0) {\n res[position--] = word >> 8 & 0xff;\n }\n\n if (position >= 0) {\n res[position--] = word >> 16 & 0xff;\n }\n\n if (shift === 6) {\n if (position >= 0) {\n res[position--] = word >> 24 & 0xff;\n }\n\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position >= 0) {\n res[position--] = carry;\n\n while (position >= 0) {\n res[position--] = 0;\n }\n }\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits(w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits(w) {\n var t = w;\n var r = 0;\n\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits(w) {\n // Short-cut\n if (w === 0) return 26;\n var t = w;\n var r = 0;\n\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n\n if ((t & 0x1) === 0) {\n r++;\n }\n\n return r;\n }; // Return number of used bits in a BN\n\n\n BN.prototype.bitLength = function bitLength() {\n var w = this.words[this.length - 1];\n\n var hi = this._countBits(w);\n\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray(num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = bit / 26 | 0;\n var wbit = bit % 26;\n w[bit] = num.words[off] >>> wbit & 0x01;\n }\n\n return w;\n } // Number of trailing zero bits\n\n\n BN.prototype.zeroBits = function zeroBits() {\n if (this.isZero()) return 0;\n var r = 0;\n\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n\n r += b;\n if (b !== 26) break;\n }\n\n return r;\n };\n\n BN.prototype.byteLength = function byteLength() {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos(width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos(width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg() {\n return this.negative !== 0;\n }; // Return negative clone of `this`\n\n\n BN.prototype.neg = function neg() {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg() {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n }; // Or `num` with `this` in-place\n\n\n BN.prototype.iuor = function iuor(num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this._strip();\n };\n\n BN.prototype.ior = function ior(num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n }; // Or `num` with `this`\n\n\n BN.prototype.or = function or(num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor(num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n }; // And `num` with `this` in-place\n\n\n BN.prototype.iuand = function iuand(num) {\n // b = min-length(num, this)\n var b;\n\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n return this._strip();\n };\n\n BN.prototype.iand = function iand(num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n }; // And `num` with `this`\n\n\n BN.prototype.and = function and(num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand(num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n }; // Xor `num` with `this` in-place\n\n\n BN.prototype.iuxor = function iuxor(num) {\n // a.length > b.length\n var a;\n var b;\n\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n return this._strip();\n };\n\n BN.prototype.ixor = function ixor(num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n }; // Xor `num` with `this`\n\n\n BN.prototype.xor = function xor(num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor(num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n }; // Not ``this`` with ``width`` bitwidth\n\n\n BN.prototype.inotn = function inotn(width) {\n assert(typeof width === 'number' && width >= 0);\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26; // Extend the buffer with leading zeroes\n\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n } // Handle complete words\n\n\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n } // Handle the residue\n\n\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & 0x3ffffff >> 26 - bitsLeft;\n } // And remove leading zeroes\n\n\n return this._strip();\n };\n\n BN.prototype.notn = function notn(width) {\n return this.clone().inotn(width);\n }; // Set `bit` of `this`\n\n\n BN.prototype.setn = function setn(bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n var off = bit / 26 | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | 1 << wbit;\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this._strip();\n }; // Add `num` to `this` in-place\n\n\n BN.prototype.iadd = function iadd(num) {\n var r; // negative + positive\n\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign(); // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n } // a.length > b.length\n\n\n var a, b;\n\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++; // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n }; // Add `num` to `this`\n\n\n BN.prototype.add = function add(num) {\n var res;\n\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n return num.clone().iadd(this);\n }; // Subtract `num` from `this` in-place\n\n\n BN.prototype.isub = function isub(num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign(); // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n } // At this point both numbers are positive\n\n\n var cmp = this.cmp(num); // Optimization - zeroify\n\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n } // a > b\n\n\n var a, b;\n\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n } // Copy rest of the words\n\n\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this._strip();\n }; // Subtract `num` from `this`\n\n\n BN.prototype.sub = function sub(num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo(self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = self.length + num.length | 0;\n out.length = len;\n len = len - 1 | 0; // Peel one iteration (compiler can't do it, because of code complexity)\n\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n var lo = r & 0x3ffffff;\n var carry = r / 0x4000000 | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += r / 0x4000000 | 0;\n rword = r & 0x3ffffff;\n }\n\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out._strip();\n } // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n\n\n var comb10MulTo = function comb10MulTo(self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = mid + Math.imul(ah0, bl0) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w0 >>> 26) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = mid + Math.imul(ah1, bl0) | 0;\n hi = Math.imul(ah1, bh0);\n lo = lo + Math.imul(al0, bl1) | 0;\n mid = mid + Math.imul(al0, bh1) | 0;\n mid = mid + Math.imul(ah0, bl1) | 0;\n hi = hi + Math.imul(ah0, bh1) | 0;\n var w1 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w1 >>> 26) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = mid + Math.imul(ah2, bl0) | 0;\n hi = Math.imul(ah2, bh0);\n lo = lo + Math.imul(al1, bl1) | 0;\n mid = mid + Math.imul(al1, bh1) | 0;\n mid = mid + Math.imul(ah1, bl1) | 0;\n hi = hi + Math.imul(ah1, bh1) | 0;\n lo = lo + Math.imul(al0, bl2) | 0;\n mid = mid + Math.imul(al0, bh2) | 0;\n mid = mid + Math.imul(ah0, bl2) | 0;\n hi = hi + Math.imul(ah0, bh2) | 0;\n var w2 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w2 >>> 26) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = mid + Math.imul(ah3, bl0) | 0;\n hi = Math.imul(ah3, bh0);\n lo = lo + Math.imul(al2, bl1) | 0;\n mid = mid + Math.imul(al2, bh1) | 0;\n mid = mid + Math.imul(ah2, bl1) | 0;\n hi = hi + Math.imul(ah2, bh1) | 0;\n lo = lo + Math.imul(al1, bl2) | 0;\n mid = mid + Math.imul(al1, bh2) | 0;\n mid = mid + Math.imul(ah1, bl2) | 0;\n hi = hi + Math.imul(ah1, bh2) | 0;\n lo = lo + Math.imul(al0, bl3) | 0;\n mid = mid + Math.imul(al0, bh3) | 0;\n mid = mid + Math.imul(ah0, bl3) | 0;\n hi = hi + Math.imul(ah0, bh3) | 0;\n var w3 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w3 >>> 26) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = mid + Math.imul(ah4, bl0) | 0;\n hi = Math.imul(ah4, bh0);\n lo = lo + Math.imul(al3, bl1) | 0;\n mid = mid + Math.imul(al3, bh1) | 0;\n mid = mid + Math.imul(ah3, bl1) | 0;\n hi = hi + Math.imul(ah3, bh1) | 0;\n lo = lo + Math.imul(al2, bl2) | 0;\n mid = mid + Math.imul(al2, bh2) | 0;\n mid = mid + Math.imul(ah2, bl2) | 0;\n hi = hi + Math.imul(ah2, bh2) | 0;\n lo = lo + Math.imul(al1, bl3) | 0;\n mid = mid + Math.imul(al1, bh3) | 0;\n mid = mid + Math.imul(ah1, bl3) | 0;\n hi = hi + Math.imul(ah1, bh3) | 0;\n lo = lo + Math.imul(al0, bl4) | 0;\n mid = mid + Math.imul(al0, bh4) | 0;\n mid = mid + Math.imul(ah0, bl4) | 0;\n hi = hi + Math.imul(ah0, bh4) | 0;\n var w4 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w4 >>> 26) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = mid + Math.imul(ah5, bl0) | 0;\n hi = Math.imul(ah5, bh0);\n lo = lo + Math.imul(al4, bl1) | 0;\n mid = mid + Math.imul(al4, bh1) | 0;\n mid = mid + Math.imul(ah4, bl1) | 0;\n hi = hi + Math.imul(ah4, bh1) | 0;\n lo = lo + Math.imul(al3, bl2) | 0;\n mid = mid + Math.imul(al3, bh2) | 0;\n mid = mid + Math.imul(ah3, bl2) | 0;\n hi = hi + Math.imul(ah3, bh2) | 0;\n lo = lo + Math.imul(al2, bl3) | 0;\n mid = mid + Math.imul(al2, bh3) | 0;\n mid = mid + Math.imul(ah2, bl3) | 0;\n hi = hi + Math.imul(ah2, bh3) | 0;\n lo = lo + Math.imul(al1, bl4) | 0;\n mid = mid + Math.imul(al1, bh4) | 0;\n mid = mid + Math.imul(ah1, bl4) | 0;\n hi = hi + Math.imul(ah1, bh4) | 0;\n lo = lo + Math.imul(al0, bl5) | 0;\n mid = mid + Math.imul(al0, bh5) | 0;\n mid = mid + Math.imul(ah0, bl5) | 0;\n hi = hi + Math.imul(ah0, bh5) | 0;\n var w5 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w5 >>> 26) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = mid + Math.imul(ah6, bl0) | 0;\n hi = Math.imul(ah6, bh0);\n lo = lo + Math.imul(al5, bl1) | 0;\n mid = mid + Math.imul(al5, bh1) | 0;\n mid = mid + Math.imul(ah5, bl1) | 0;\n hi = hi + Math.imul(ah5, bh1) | 0;\n lo = lo + Math.imul(al4, bl2) | 0;\n mid = mid + Math.imul(al4, bh2) | 0;\n mid = mid + Math.imul(ah4, bl2) | 0;\n hi = hi + Math.imul(ah4, bh2) | 0;\n lo = lo + Math.imul(al3, bl3) | 0;\n mid = mid + Math.imul(al3, bh3) | 0;\n mid = mid + Math.imul(ah3, bl3) | 0;\n hi = hi + Math.imul(ah3, bh3) | 0;\n lo = lo + Math.imul(al2, bl4) | 0;\n mid = mid + Math.imul(al2, bh4) | 0;\n mid = mid + Math.imul(ah2, bl4) | 0;\n hi = hi + Math.imul(ah2, bh4) | 0;\n lo = lo + Math.imul(al1, bl5) | 0;\n mid = mid + Math.imul(al1, bh5) | 0;\n mid = mid + Math.imul(ah1, bl5) | 0;\n hi = hi + Math.imul(ah1, bh5) | 0;\n lo = lo + Math.imul(al0, bl6) | 0;\n mid = mid + Math.imul(al0, bh6) | 0;\n mid = mid + Math.imul(ah0, bl6) | 0;\n hi = hi + Math.imul(ah0, bh6) | 0;\n var w6 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w6 >>> 26) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = mid + Math.imul(ah7, bl0) | 0;\n hi = Math.imul(ah7, bh0);\n lo = lo + Math.imul(al6, bl1) | 0;\n mid = mid + Math.imul(al6, bh1) | 0;\n mid = mid + Math.imul(ah6, bl1) | 0;\n hi = hi + Math.imul(ah6, bh1) | 0;\n lo = lo + Math.imul(al5, bl2) | 0;\n mid = mid + Math.imul(al5, bh2) | 0;\n mid = mid + Math.imul(ah5, bl2) | 0;\n hi = hi + Math.imul(ah5, bh2) | 0;\n lo = lo + Math.imul(al4, bl3) | 0;\n mid = mid + Math.imul(al4, bh3) | 0;\n mid = mid + Math.imul(ah4, bl3) | 0;\n hi = hi + Math.imul(ah4, bh3) | 0;\n lo = lo + Math.imul(al3, bl4) | 0;\n mid = mid + Math.imul(al3, bh4) | 0;\n mid = mid + Math.imul(ah3, bl4) | 0;\n hi = hi + Math.imul(ah3, bh4) | 0;\n lo = lo + Math.imul(al2, bl5) | 0;\n mid = mid + Math.imul(al2, bh5) | 0;\n mid = mid + Math.imul(ah2, bl5) | 0;\n hi = hi + Math.imul(ah2, bh5) | 0;\n lo = lo + Math.imul(al1, bl6) | 0;\n mid = mid + Math.imul(al1, bh6) | 0;\n mid = mid + Math.imul(ah1, bl6) | 0;\n hi = hi + Math.imul(ah1, bh6) | 0;\n lo = lo + Math.imul(al0, bl7) | 0;\n mid = mid + Math.imul(al0, bh7) | 0;\n mid = mid + Math.imul(ah0, bl7) | 0;\n hi = hi + Math.imul(ah0, bh7) | 0;\n var w7 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w7 >>> 26) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = mid + Math.imul(ah8, bl0) | 0;\n hi = Math.imul(ah8, bh0);\n lo = lo + Math.imul(al7, bl1) | 0;\n mid = mid + Math.imul(al7, bh1) | 0;\n mid = mid + Math.imul(ah7, bl1) | 0;\n hi = hi + Math.imul(ah7, bh1) | 0;\n lo = lo + Math.imul(al6, bl2) | 0;\n mid = mid + Math.imul(al6, bh2) | 0;\n mid = mid + Math.imul(ah6, bl2) | 0;\n hi = hi + Math.imul(ah6, bh2) | 0;\n lo = lo + Math.imul(al5, bl3) | 0;\n mid = mid + Math.imul(al5, bh3) | 0;\n mid = mid + Math.imul(ah5, bl3) | 0;\n hi = hi + Math.imul(ah5, bh3) | 0;\n lo = lo + Math.imul(al4, bl4) | 0;\n mid = mid + Math.imul(al4, bh4) | 0;\n mid = mid + Math.imul(ah4, bl4) | 0;\n hi = hi + Math.imul(ah4, bh4) | 0;\n lo = lo + Math.imul(al3, bl5) | 0;\n mid = mid + Math.imul(al3, bh5) | 0;\n mid = mid + Math.imul(ah3, bl5) | 0;\n hi = hi + Math.imul(ah3, bh5) | 0;\n lo = lo + Math.imul(al2, bl6) | 0;\n mid = mid + Math.imul(al2, bh6) | 0;\n mid = mid + Math.imul(ah2, bl6) | 0;\n hi = hi + Math.imul(ah2, bh6) | 0;\n lo = lo + Math.imul(al1, bl7) | 0;\n mid = mid + Math.imul(al1, bh7) | 0;\n mid = mid + Math.imul(ah1, bl7) | 0;\n hi = hi + Math.imul(ah1, bh7) | 0;\n lo = lo + Math.imul(al0, bl8) | 0;\n mid = mid + Math.imul(al0, bh8) | 0;\n mid = mid + Math.imul(ah0, bl8) | 0;\n hi = hi + Math.imul(ah0, bh8) | 0;\n var w8 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w8 >>> 26) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = mid + Math.imul(ah9, bl0) | 0;\n hi = Math.imul(ah9, bh0);\n lo = lo + Math.imul(al8, bl1) | 0;\n mid = mid + Math.imul(al8, bh1) | 0;\n mid = mid + Math.imul(ah8, bl1) | 0;\n hi = hi + Math.imul(ah8, bh1) | 0;\n lo = lo + Math.imul(al7, bl2) | 0;\n mid = mid + Math.imul(al7, bh2) | 0;\n mid = mid + Math.imul(ah7, bl2) | 0;\n hi = hi + Math.imul(ah7, bh2) | 0;\n lo = lo + Math.imul(al6, bl3) | 0;\n mid = mid + Math.imul(al6, bh3) | 0;\n mid = mid + Math.imul(ah6, bl3) | 0;\n hi = hi + Math.imul(ah6, bh3) | 0;\n lo = lo + Math.imul(al5, bl4) | 0;\n mid = mid + Math.imul(al5, bh4) | 0;\n mid = mid + Math.imul(ah5, bl4) | 0;\n hi = hi + Math.imul(ah5, bh4) | 0;\n lo = lo + Math.imul(al4, bl5) | 0;\n mid = mid + Math.imul(al4, bh5) | 0;\n mid = mid + Math.imul(ah4, bl5) | 0;\n hi = hi + Math.imul(ah4, bh5) | 0;\n lo = lo + Math.imul(al3, bl6) | 0;\n mid = mid + Math.imul(al3, bh6) | 0;\n mid = mid + Math.imul(ah3, bl6) | 0;\n hi = hi + Math.imul(ah3, bh6) | 0;\n lo = lo + Math.imul(al2, bl7) | 0;\n mid = mid + Math.imul(al2, bh7) | 0;\n mid = mid + Math.imul(ah2, bl7) | 0;\n hi = hi + Math.imul(ah2, bh7) | 0;\n lo = lo + Math.imul(al1, bl8) | 0;\n mid = mid + Math.imul(al1, bh8) | 0;\n mid = mid + Math.imul(ah1, bl8) | 0;\n hi = hi + Math.imul(ah1, bh8) | 0;\n lo = lo + Math.imul(al0, bl9) | 0;\n mid = mid + Math.imul(al0, bh9) | 0;\n mid = mid + Math.imul(ah0, bl9) | 0;\n hi = hi + Math.imul(ah0, bh9) | 0;\n var w9 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w9 >>> 26) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = mid + Math.imul(ah9, bl1) | 0;\n hi = Math.imul(ah9, bh1);\n lo = lo + Math.imul(al8, bl2) | 0;\n mid = mid + Math.imul(al8, bh2) | 0;\n mid = mid + Math.imul(ah8, bl2) | 0;\n hi = hi + Math.imul(ah8, bh2) | 0;\n lo = lo + Math.imul(al7, bl3) | 0;\n mid = mid + Math.imul(al7, bh3) | 0;\n mid = mid + Math.imul(ah7, bl3) | 0;\n hi = hi + Math.imul(ah7, bh3) | 0;\n lo = lo + Math.imul(al6, bl4) | 0;\n mid = mid + Math.imul(al6, bh4) | 0;\n mid = mid + Math.imul(ah6, bl4) | 0;\n hi = hi + Math.imul(ah6, bh4) | 0;\n lo = lo + Math.imul(al5, bl5) | 0;\n mid = mid + Math.imul(al5, bh5) | 0;\n mid = mid + Math.imul(ah5, bl5) | 0;\n hi = hi + Math.imul(ah5, bh5) | 0;\n lo = lo + Math.imul(al4, bl6) | 0;\n mid = mid + Math.imul(al4, bh6) | 0;\n mid = mid + Math.imul(ah4, bl6) | 0;\n hi = hi + Math.imul(ah4, bh6) | 0;\n lo = lo + Math.imul(al3, bl7) | 0;\n mid = mid + Math.imul(al3, bh7) | 0;\n mid = mid + Math.imul(ah3, bl7) | 0;\n hi = hi + Math.imul(ah3, bh7) | 0;\n lo = lo + Math.imul(al2, bl8) | 0;\n mid = mid + Math.imul(al2, bh8) | 0;\n mid = mid + Math.imul(ah2, bl8) | 0;\n hi = hi + Math.imul(ah2, bh8) | 0;\n lo = lo + Math.imul(al1, bl9) | 0;\n mid = mid + Math.imul(al1, bh9) | 0;\n mid = mid + Math.imul(ah1, bl9) | 0;\n hi = hi + Math.imul(ah1, bh9) | 0;\n var w10 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w10 >>> 26) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = mid + Math.imul(ah9, bl2) | 0;\n hi = Math.imul(ah9, bh2);\n lo = lo + Math.imul(al8, bl3) | 0;\n mid = mid + Math.imul(al8, bh3) | 0;\n mid = mid + Math.imul(ah8, bl3) | 0;\n hi = hi + Math.imul(ah8, bh3) | 0;\n lo = lo + Math.imul(al7, bl4) | 0;\n mid = mid + Math.imul(al7, bh4) | 0;\n mid = mid + Math.imul(ah7, bl4) | 0;\n hi = hi + Math.imul(ah7, bh4) | 0;\n lo = lo + Math.imul(al6, bl5) | 0;\n mid = mid + Math.imul(al6, bh5) | 0;\n mid = mid + Math.imul(ah6, bl5) | 0;\n hi = hi + Math.imul(ah6, bh5) | 0;\n lo = lo + Math.imul(al5, bl6) | 0;\n mid = mid + Math.imul(al5, bh6) | 0;\n mid = mid + Math.imul(ah5, bl6) | 0;\n hi = hi + Math.imul(ah5, bh6) | 0;\n lo = lo + Math.imul(al4, bl7) | 0;\n mid = mid + Math.imul(al4, bh7) | 0;\n mid = mid + Math.imul(ah4, bl7) | 0;\n hi = hi + Math.imul(ah4, bh7) | 0;\n lo = lo + Math.imul(al3, bl8) | 0;\n mid = mid + Math.imul(al3, bh8) | 0;\n mid = mid + Math.imul(ah3, bl8) | 0;\n hi = hi + Math.imul(ah3, bh8) | 0;\n lo = lo + Math.imul(al2, bl9) | 0;\n mid = mid + Math.imul(al2, bh9) | 0;\n mid = mid + Math.imul(ah2, bl9) | 0;\n hi = hi + Math.imul(ah2, bh9) | 0;\n var w11 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w11 >>> 26) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = mid + Math.imul(ah9, bl3) | 0;\n hi = Math.imul(ah9, bh3);\n lo = lo + Math.imul(al8, bl4) | 0;\n mid = mid + Math.imul(al8, bh4) | 0;\n mid = mid + Math.imul(ah8, bl4) | 0;\n hi = hi + Math.imul(ah8, bh4) | 0;\n lo = lo + Math.imul(al7, bl5) | 0;\n mid = mid + Math.imul(al7, bh5) | 0;\n mid = mid + Math.imul(ah7, bl5) | 0;\n hi = hi + Math.imul(ah7, bh5) | 0;\n lo = lo + Math.imul(al6, bl6) | 0;\n mid = mid + Math.imul(al6, bh6) | 0;\n mid = mid + Math.imul(ah6, bl6) | 0;\n hi = hi + Math.imul(ah6, bh6) | 0;\n lo = lo + Math.imul(al5, bl7) | 0;\n mid = mid + Math.imul(al5, bh7) | 0;\n mid = mid + Math.imul(ah5, bl7) | 0;\n hi = hi + Math.imul(ah5, bh7) | 0;\n lo = lo + Math.imul(al4, bl8) | 0;\n mid = mid + Math.imul(al4, bh8) | 0;\n mid = mid + Math.imul(ah4, bl8) | 0;\n hi = hi + Math.imul(ah4, bh8) | 0;\n lo = lo + Math.imul(al3, bl9) | 0;\n mid = mid + Math.imul(al3, bh9) | 0;\n mid = mid + Math.imul(ah3, bl9) | 0;\n hi = hi + Math.imul(ah3, bh9) | 0;\n var w12 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w12 >>> 26) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = mid + Math.imul(ah9, bl4) | 0;\n hi = Math.imul(ah9, bh4);\n lo = lo + Math.imul(al8, bl5) | 0;\n mid = mid + Math.imul(al8, bh5) | 0;\n mid = mid + Math.imul(ah8, bl5) | 0;\n hi = hi + Math.imul(ah8, bh5) | 0;\n lo = lo + Math.imul(al7, bl6) | 0;\n mid = mid + Math.imul(al7, bh6) | 0;\n mid = mid + Math.imul(ah7, bl6) | 0;\n hi = hi + Math.imul(ah7, bh6) | 0;\n lo = lo + Math.imul(al6, bl7) | 0;\n mid = mid + Math.imul(al6, bh7) | 0;\n mid = mid + Math.imul(ah6, bl7) | 0;\n hi = hi + Math.imul(ah6, bh7) | 0;\n lo = lo + Math.imul(al5, bl8) | 0;\n mid = mid + Math.imul(al5, bh8) | 0;\n mid = mid + Math.imul(ah5, bl8) | 0;\n hi = hi + Math.imul(ah5, bh8) | 0;\n lo = lo + Math.imul(al4, bl9) | 0;\n mid = mid + Math.imul(al4, bh9) | 0;\n mid = mid + Math.imul(ah4, bl9) | 0;\n hi = hi + Math.imul(ah4, bh9) | 0;\n var w13 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w13 >>> 26) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = mid + Math.imul(ah9, bl5) | 0;\n hi = Math.imul(ah9, bh5);\n lo = lo + Math.imul(al8, bl6) | 0;\n mid = mid + Math.imul(al8, bh6) | 0;\n mid = mid + Math.imul(ah8, bl6) | 0;\n hi = hi + Math.imul(ah8, bh6) | 0;\n lo = lo + Math.imul(al7, bl7) | 0;\n mid = mid + Math.imul(al7, bh7) | 0;\n mid = mid + Math.imul(ah7, bl7) | 0;\n hi = hi + Math.imul(ah7, bh7) | 0;\n lo = lo + Math.imul(al6, bl8) | 0;\n mid = mid + Math.imul(al6, bh8) | 0;\n mid = mid + Math.imul(ah6, bl8) | 0;\n hi = hi + Math.imul(ah6, bh8) | 0;\n lo = lo + Math.imul(al5, bl9) | 0;\n mid = mid + Math.imul(al5, bh9) | 0;\n mid = mid + Math.imul(ah5, bl9) | 0;\n hi = hi + Math.imul(ah5, bh9) | 0;\n var w14 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w14 >>> 26) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = mid + Math.imul(ah9, bl6) | 0;\n hi = Math.imul(ah9, bh6);\n lo = lo + Math.imul(al8, bl7) | 0;\n mid = mid + Math.imul(al8, bh7) | 0;\n mid = mid + Math.imul(ah8, bl7) | 0;\n hi = hi + Math.imul(ah8, bh7) | 0;\n lo = lo + Math.imul(al7, bl8) | 0;\n mid = mid + Math.imul(al7, bh8) | 0;\n mid = mid + Math.imul(ah7, bl8) | 0;\n hi = hi + Math.imul(ah7, bh8) | 0;\n lo = lo + Math.imul(al6, bl9) | 0;\n mid = mid + Math.imul(al6, bh9) | 0;\n mid = mid + Math.imul(ah6, bl9) | 0;\n hi = hi + Math.imul(ah6, bh9) | 0;\n var w15 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w15 >>> 26) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = mid + Math.imul(ah9, bl7) | 0;\n hi = Math.imul(ah9, bh7);\n lo = lo + Math.imul(al8, bl8) | 0;\n mid = mid + Math.imul(al8, bh8) | 0;\n mid = mid + Math.imul(ah8, bl8) | 0;\n hi = hi + Math.imul(ah8, bh8) | 0;\n lo = lo + Math.imul(al7, bl9) | 0;\n mid = mid + Math.imul(al7, bh9) | 0;\n mid = mid + Math.imul(ah7, bl9) | 0;\n hi = hi + Math.imul(ah7, bh9) | 0;\n var w16 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w16 >>> 26) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = mid + Math.imul(ah9, bl8) | 0;\n hi = Math.imul(ah9, bh8);\n lo = lo + Math.imul(al8, bl9) | 0;\n mid = mid + Math.imul(al8, bh9) | 0;\n mid = mid + Math.imul(ah8, bl9) | 0;\n hi = hi + Math.imul(ah8, bh9) | 0;\n var w17 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w17 >>> 26) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = mid + Math.imul(ah9, bl9) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;\n c = (hi + (mid >>> 13) | 0) + (w18 >>> 26) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n\n return out;\n }; // Polyfill comb\n\n\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo(self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n var carry = 0;\n var hncarry = 0;\n\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n var lo = r & 0x3ffffff;\n ncarry = ncarry + (r / 0x4000000 | 0) | 0;\n lo = lo + rword | 0;\n rword = lo & 0x3ffffff;\n ncarry = ncarry + (lo >>> 26) | 0;\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n function jumboMulTo(self, num, out) {\n // Temporary disable, see https://github.com/indutny/bn.js/issues/211\n // var fftm = new FFTM();\n // return fftm.mulp(self, num, out);\n return bigMulTo(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo(num, out) {\n var res;\n var len = this.length + num.length;\n\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n }; // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n\n function FFTM(x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT(N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n }; // Returns binary-reversed representation of `x`\n\n\n FFTM.prototype.revBin = function revBin(x, l, N) {\n if (x === 0 || x === N - 1) return x;\n var rb = 0;\n\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << l - i - 1;\n x >>= 1;\n }\n\n return rb;\n }; // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n\n\n FFTM.prototype.permute = function permute(rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform(rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n var rx = rtwdf_ * ro - itwdf_ * io;\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n /* jshint maxdepth : false */\n\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b(n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate(rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n t = iws[i];\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b(ws, N) {\n var carry = 0;\n\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 + Math.round(ws[2 * i] / N) + carry;\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b(ws, len, rws, N) {\n var carry = 0;\n\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n rws[2 * i] = carry & 0x1fff;\n carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff;\n carry = carry >>> 13;\n } // Pad with zeroes\n\n\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub(N) {\n var ph = new Array(N);\n\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp(x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n var rmws = out.words;\n rmws.length = N;\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out._strip();\n }; // Multiply `this` by `num`\n\n\n BN.prototype.mul = function mul(num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n }; // Multiply employing FFT\n\n\n BN.prototype.mulf = function mulf(num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n }; // In-place Multiplication\n\n\n BN.prototype.imul = function imul(num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln(num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n assert(typeof num === 'number');\n assert(num < 0x4000000); // Carry\n\n var carry = 0;\n\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += w / 0x4000000 | 0; // NOTE: lo is 27bit maximum\n\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.muln = function muln(num) {\n return this.clone().imuln(num);\n }; // `this` * `this`\n\n\n BN.prototype.sqr = function sqr() {\n return this.mul(this);\n }; // `this` * `this` in-place\n\n\n BN.prototype.isqr = function isqr() {\n return this.imul(this.clone());\n }; // Math.pow(`this`, `num`)\n\n\n BN.prototype.pow = function pow(num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1); // Skip leading zeroes\n\n var res = this;\n\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n res = res.mul(q);\n }\n }\n\n return res;\n }; // Shift-left in-place\n\n\n BN.prototype.iushln = function iushln(bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = 0x3ffffff >>> 26 - r << 26 - r;\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = (this.words[i] | 0) - newCarry << r;\n this.words[i] = c | carry;\n carry = newCarry >>> 26 - r;\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishln = function ishln(bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n }; // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n\n\n BN.prototype.iushrn = function iushrn(bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n\n if (hint) {\n h = (hint - hint % 26) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;\n var maskedWords = extended;\n h -= s;\n h = Math.max(0, h); // Extended mode, copy masked part\n\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n\n maskedWords.length = s;\n }\n\n if (s === 0) {// No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = carry << 26 - r | word >>> r;\n carry = word & mask;\n } // Push carried bits as a mask\n\n\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishrn = function ishrn(bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n }; // Shift-left\n\n\n BN.prototype.shln = function shln(bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln(bits) {\n return this.clone().iushln(bits);\n }; // Shift-right\n\n\n BN.prototype.shrn = function shrn(bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn(bits) {\n return this.clone().iushrn(bits);\n }; // Test if n bit is set\n\n\n BN.prototype.testn = function testn(bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r; // Fast case: bit is much higher than all existing words\n\n if (this.length <= s) return false; // Check bit and return\n\n var w = this.words[s];\n return !!(w & q);\n }; // Return only lowers bits of number (in-place)\n\n\n BN.prototype.imaskn = function imaskn(bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;\n this.words[this.length - 1] &= mask;\n }\n\n return this._strip();\n }; // Return only lowers bits of number\n\n\n BN.prototype.maskn = function maskn(bits) {\n return this.clone().imaskn(bits);\n }; // Add plain number `num` to `this`\n\n\n BN.prototype.iaddn = function iaddn(num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num); // Possible sign change\n\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) <= num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n } // Add without checks\n\n\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn(num) {\n this.words[0] += num; // Carry\n\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n\n this.length = Math.max(this.length, i + 1);\n return this;\n }; // Subtract plain number `num` from `this`\n\n\n BN.prototype.isubn = function isubn(num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this._strip();\n };\n\n BN.prototype.addn = function addn(num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn(num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs() {\n this.negative = 0;\n return this;\n };\n\n BN.prototype.abs = function abs() {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul(num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - (right / 0x4000000 | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this._strip(); // Subtraction overflow\n\n assert(carry === -1);\n carry = 0;\n\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n\n this.negative = 1;\n return this._strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv(num, mode) {\n var shift = this.length - num.length;\n var a = this.clone();\n var b = num; // Normalize\n\n var bhi = b.words[b.length - 1] | 0;\n\n var bhiBits = this._countBits(bhi);\n\n shift = 26 - bhiBits;\n\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n } // Initialize quotient\n\n\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n\n if (diff.negative === 0) {\n a = diff;\n\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 + (a.words[b.length + j - 1] | 0); // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n\n qj = Math.min(qj / bhi | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n\n a._ishlnsubmul(b, 1, j);\n\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n\n if (q) {\n q.words[j] = qj;\n }\n }\n\n if (q) {\n q._strip();\n }\n\n a._strip(); // Denormalize\n\n\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n }; // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n\n\n BN.prototype.divmod = function divmod(num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n } // Both numbers are positive at this point\n // Strip both numbers to approximate shift value\n\n\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n } // Very short reduction\n\n\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n }; // Find `this` / `num`\n\n\n BN.prototype.div = function div(num) {\n return this.divmod(num, 'div', false).div;\n }; // Find `this` % `num`\n\n\n BN.prototype.mod = function mod(num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod(num) {\n return this.divmod(num, 'mod', true).mod;\n }; // Find Round(`this` / `num`)\n\n\n BN.prototype.divRound = function divRound(num) {\n var dm = this.divmod(num); // Fast case - exact division\n\n if (dm.mod.isZero()) return dm.div;\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half); // Round down\n\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div; // Round up\n\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modrn = function modrn(num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n var acc = 0;\n\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return isNegNum ? -acc : acc;\n }; // WARNING: DEPRECATED\n\n\n BN.prototype.modn = function modn(num) {\n return this.modrn(num);\n }; // In-place division by number\n\n\n BN.prototype.idivn = function idivn(num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n assert(num <= 0x3ffffff);\n var carry = 0;\n\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = w / num | 0;\n carry = w % num;\n }\n\n this._strip();\n\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.divn = function divn(num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd(p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n } // A * x + B * y = x\n\n\n var A = new BN(1);\n var B = new BN(0); // C * x + D * y = y\n\n var C = new BN(0);\n var D = new BN(1);\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {\n ;\n }\n\n if (i > 0) {\n x.iushrn(i);\n\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1) {\n ;\n }\n\n if (j > 0) {\n y.iushrn(j);\n\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n }; // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n\n\n BN.prototype._invmp = function _invmp(p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {\n ;\n }\n\n if (i > 0) {\n a.iushrn(i);\n\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1) {\n ;\n }\n\n if (j > 0) {\n b.iushrn(j);\n\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd(num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0; // Remove common factor of two\n\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n }; // Invert number in the field F(num)\n\n\n BN.prototype.invm = function invm(num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven() {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd() {\n return (this.words[0] & 1) === 1;\n }; // And first word and num\n\n\n BN.prototype.andln = function andln(num) {\n return this.words[0] & num;\n }; // Increment at the bit position in-line\n\n\n BN.prototype.bincn = function bincn(bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r; // Fast case: bit is much higher than all existing words\n\n if (this.length <= s) {\n this._expand(s + 1);\n\n this.words[s] |= q;\n return this;\n } // Add bit and propagate, if needed\n\n\n var carry = q;\n\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.isZero = function isZero() {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn(num) {\n var negative = num < 0;\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this._strip();\n\n var res;\n\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n\n if (this.negative !== 0) return -res | 0;\n return res;\n }; // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n\n\n BN.prototype.cmp = function cmp(num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n }; // Unsigned comparison\n\n\n BN.prototype.ucmp = function ucmp(num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n var res = 0;\n\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n if (a === b) continue;\n\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n\n break;\n }\n\n return res;\n };\n\n BN.prototype.gtn = function gtn(num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt(num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten(num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte(num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn(num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt(num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten(num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte(num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn(num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq(num) {\n return this.cmp(num) === 0;\n }; //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n\n\n BN.red = function red(num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed(ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed() {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed(ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed(ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd(num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd(num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub(num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub(num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl(num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul(num) {\n assert(this.red, 'redMul works only with red numbers');\n\n this.red._verify2(this, num);\n\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul(num) {\n assert(this.red, 'redMul works only with red numbers');\n\n this.red._verify2(this, num);\n\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr() {\n assert(this.red, 'redSqr works only with red numbers');\n\n this.red._verify1(this);\n\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr() {\n assert(this.red, 'redISqr works only with red numbers');\n\n this.red._verify1(this);\n\n return this.red.isqr(this);\n }; // Square root over p\n\n\n BN.prototype.redSqrt = function redSqrt() {\n assert(this.red, 'redSqrt works only with red numbers');\n\n this.red._verify1(this);\n\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm() {\n assert(this.red, 'redInvm works only with red numbers');\n\n this.red._verify1(this);\n\n return this.red.invm(this);\n }; // Return negative clone of `this` % `red modulo`\n\n\n BN.prototype.redNeg = function redNeg() {\n assert(this.red, 'redNeg works only with red numbers');\n\n this.red._verify1(this);\n\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow(num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n\n this.red._verify1(this);\n\n return this.red.pow(this, num);\n }; // Prime numbers with efficient reduction\n\n\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n }; // Pseudo-Mersenne prime\n\n function MPrime(name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp() {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce(num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is a BN v4 instance\n r.strip();\n } else {\n // r is a BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split(input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK(num) {\n return num.imul(this.k);\n };\n\n function K256() {\n MPrime.call(this, 'k256', 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n\n inherits(K256, MPrime);\n\n K256.prototype.split = function split(input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n var outLen = Math.min(input.length, 9);\n\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n } // Shift by 9 limbs\n\n\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = (next & mask) << 4 | prev >>> 22;\n prev = next;\n }\n\n prev >>>= 22;\n input.words[i - 10] = prev;\n\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK(num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2; // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n\n var lo = 0;\n\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + (lo / 0x4000000 | 0);\n } // Fast length reduction\n\n\n if (num.words[num.length - 1] === 0) {\n num.length--;\n\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n\n return num;\n };\n\n function P224() {\n MPrime.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n\n inherits(P224, MPrime);\n\n function P192() {\n MPrime.call(this, 'p192', 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n\n inherits(P192, MPrime);\n\n function P25519() {\n // 2 ^ 255 - 19\n MPrime.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK(num) {\n // K = 0x13\n var carry = 0;\n\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n num.words[i] = lo;\n carry = hi;\n }\n\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n\n return num;\n }; // Exported mostly for testing purposes, use plain name instead\n\n\n BN._prime = function prime(name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n var prime;\n\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n\n primes[name] = prime;\n return prime;\n }; //\n // Base reduction engine\n //\n\n\n function Red(m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1(a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2(a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red, 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod(a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n move(a, a.umod(this.m)._forceRed(this));\n return a;\n };\n\n Red.prototype.neg = function neg(a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add(a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd(a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n\n return res;\n };\n\n Red.prototype.sub = function sub(a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub(a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n\n return res;\n };\n\n Red.prototype.shl = function shl(a, num) {\n this._verify1(a);\n\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul(a, b) {\n this._verify2(a, b);\n\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul(a, b) {\n this._verify2(a, b);\n\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr(a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr(a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt(a) {\n if (a.isZero()) return a.clone();\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1); // Fast case\n\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n } // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n\n\n var q = this.m.subn(1);\n var s = 0;\n\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n\n assert(!q.isZero());\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg(); // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n\n while (t.cmp(one) !== 0) {\n var tmp = t;\n\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm(a) {\n var inv = a._invmp(this.m);\n\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow(a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n\n for (var j = start - 1; j >= 0; j--) {\n var bit = word >> j & 1;\n\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo(num) {\n var r = num.umod(this.m);\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom(num) {\n var res = num.clone();\n res.red = null;\n return res;\n }; //\n // Montgomery method engine\n //\n\n\n BN.mont = function mont(num) {\n return new Mont(num);\n };\n\n function Mont(m) {\n Red.call(this, m);\n this.shift = this.m.bitLength();\n\n if (this.shift % 26 !== 0) {\n this.shift += 26 - this.shift % 26;\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo(num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom(num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul(a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul(a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm(a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);","'use strict';\n\nvar utils = require('../utils');\n\nvar BN = require('bn.js');\n\nvar inherits = require('inherits');\n\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction ShortCurve(conf) {\n Base.call(this, 'short', conf);\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.tinv = this.two.redInvm();\n this.zeroA = this.a.fromRed().cmpn(0) === 0;\n this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0; // If the curve is endomorphic, precalculate beta and lambda\n\n this.endo = this._getEndomorphism(conf);\n this._endoWnafT1 = new Array(4);\n this._endoWnafT2 = new Array(4);\n}\n\ninherits(ShortCurve, Base);\nmodule.exports = ShortCurve;\n\nShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {\n // No efficient endomorphism\n if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1) return; // Compute beta and lambda, that lambda * P = (beta * Px; Py)\n\n var beta;\n var lambda;\n\n if (conf.beta) {\n beta = new BN(conf.beta, 16).toRed(this.red);\n } else {\n var betas = this._getEndoRoots(this.p); // Choose the smallest beta\n\n\n beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];\n beta = beta.toRed(this.red);\n }\n\n if (conf.lambda) {\n lambda = new BN(conf.lambda, 16);\n } else {\n // Choose the lambda that is matching selected beta\n var lambdas = this._getEndoRoots(this.n);\n\n if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {\n lambda = lambdas[0];\n } else {\n lambda = lambdas[1];\n assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);\n }\n } // Get basis vectors, used for balanced length-two representation\n\n\n var basis;\n\n if (conf.basis) {\n basis = conf.basis.map(function (vec) {\n return {\n a: new BN(vec.a, 16),\n b: new BN(vec.b, 16)\n };\n });\n } else {\n basis = this._getEndoBasis(lambda);\n }\n\n return {\n beta: beta,\n lambda: lambda,\n basis: basis\n };\n};\n\nShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {\n // Find roots of for x^2 + x + 1 in F\n // Root = (-1 +- Sqrt(-3)) / 2\n //\n var red = num === this.p ? this.red : BN.mont(num);\n var tinv = new BN(2).toRed(red).redInvm();\n var ntinv = tinv.redNeg();\n var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);\n var l1 = ntinv.redAdd(s).fromRed();\n var l2 = ntinv.redSub(s).fromRed();\n return [l1, l2];\n};\n\nShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {\n // aprxSqrt >= sqrt(this.n)\n var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2)); // 3.74\n // Run EGCD, until r(L + 1) < aprxSqrt\n\n var u = lambda;\n var v = this.n.clone();\n var x1 = new BN(1);\n var y1 = new BN(0);\n var x2 = new BN(0);\n var y2 = new BN(1); // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)\n\n var a0;\n var b0; // First vector\n\n var a1;\n var b1; // Second vector\n\n var a2;\n var b2;\n var prevR;\n var i = 0;\n var r;\n var x;\n\n while (u.cmpn(0) !== 0) {\n var q = v.div(u);\n r = v.sub(q.mul(u));\n x = x2.sub(q.mul(x1));\n var y = y2.sub(q.mul(y1));\n\n if (!a1 && r.cmp(aprxSqrt) < 0) {\n a0 = prevR.neg();\n b0 = x1;\n a1 = r.neg();\n b1 = x;\n } else if (a1 && ++i === 2) {\n break;\n }\n\n prevR = r;\n v = u;\n u = r;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n }\n\n a2 = r.neg();\n b2 = x;\n var len1 = a1.sqr().add(b1.sqr());\n var len2 = a2.sqr().add(b2.sqr());\n\n if (len2.cmp(len1) >= 0) {\n a2 = a0;\n b2 = b0;\n } // Normalize signs\n\n\n if (a1.negative) {\n a1 = a1.neg();\n b1 = b1.neg();\n }\n\n if (a2.negative) {\n a2 = a2.neg();\n b2 = b2.neg();\n }\n\n return [{\n a: a1,\n b: b1\n }, {\n a: a2,\n b: b2\n }];\n};\n\nShortCurve.prototype._endoSplit = function _endoSplit(k) {\n var basis = this.endo.basis;\n var v1 = basis[0];\n var v2 = basis[1];\n var c1 = v2.b.mul(k).divRound(this.n);\n var c2 = v1.b.neg().mul(k).divRound(this.n);\n var p1 = c1.mul(v1.a);\n var p2 = c2.mul(v2.a);\n var q1 = c1.mul(v1.b);\n var q2 = c2.mul(v2.b); // Calculate answer\n\n var k1 = k.sub(p1).sub(p2);\n var k2 = q1.add(q2).neg();\n return {\n k1: k1,\n k2: k2\n };\n};\n\nShortCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red) x = x.toRed(this.red);\n var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point'); // XXX Is there any way to tell if the number is odd without converting it\n // to non-red form?\n\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd) y = y.redNeg();\n return this.point(x, y);\n};\n\nShortCurve.prototype.validate = function validate(point) {\n if (point.inf) return true;\n var x = point.x;\n var y = point.y;\n var ax = this.a.redMul(x);\n var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);\n return y.redSqr().redISub(rhs).cmpn(0) === 0;\n};\n\nShortCurve.prototype._endoWnafMulAdd = function _endoWnafMulAdd(points, coeffs, jacobianResult) {\n var npoints = this._endoWnafT1;\n var ncoeffs = this._endoWnafT2;\n\n for (var i = 0; i < points.length; i++) {\n var split = this._endoSplit(coeffs[i]);\n\n var p = points[i];\n\n var beta = p._getBeta();\n\n if (split.k1.negative) {\n split.k1.ineg();\n p = p.neg(true);\n }\n\n if (split.k2.negative) {\n split.k2.ineg();\n beta = beta.neg(true);\n }\n\n npoints[i * 2] = p;\n npoints[i * 2 + 1] = beta;\n ncoeffs[i * 2] = split.k1;\n ncoeffs[i * 2 + 1] = split.k2;\n }\n\n var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult); // Clean-up references to points and coefficients\n\n\n for (var j = 0; j < i * 2; j++) {\n npoints[j] = null;\n ncoeffs[j] = null;\n }\n\n return res;\n};\n\nfunction Point(curve, x, y, isRed) {\n Base.BasePoint.call(this, curve, 'affine');\n\n if (x === null && y === null) {\n this.x = null;\n this.y = null;\n this.inf = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16); // Force redgomery representation when loading from JSON\n\n if (isRed) {\n this.x.forceRed(this.curve.red);\n this.y.forceRed(this.curve.red);\n }\n\n if (!this.x.red) this.x = this.x.toRed(this.curve.red);\n if (!this.y.red) this.y = this.y.toRed(this.curve.red);\n this.inf = false;\n }\n}\n\ninherits(Point, Base.BasePoint);\n\nShortCurve.prototype.point = function point(x, y, isRed) {\n return new Point(this, x, y, isRed);\n};\n\nShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {\n return Point.fromJSON(this, obj, red);\n};\n\nPoint.prototype._getBeta = function _getBeta() {\n if (!this.curve.endo) return;\n var pre = this.precomputed;\n if (pre && pre.beta) return pre.beta;\n var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);\n\n if (pre) {\n var curve = this.curve;\n\n var endoMul = function endoMul(p) {\n return curve.point(p.x.redMul(curve.endo.beta), p.y);\n };\n\n pre.beta = beta;\n beta.precomputed = {\n beta: null,\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(endoMul)\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(endoMul)\n }\n };\n }\n\n return beta;\n};\n\nPoint.prototype.toJSON = function toJSON() {\n if (!this.precomputed) return [this.x, this.y];\n return [this.x, this.y, this.precomputed && {\n doubles: this.precomputed.doubles && {\n step: this.precomputed.doubles.step,\n points: this.precomputed.doubles.points.slice(1)\n },\n naf: this.precomputed.naf && {\n wnd: this.precomputed.naf.wnd,\n points: this.precomputed.naf.points.slice(1)\n }\n }];\n};\n\nPoint.fromJSON = function fromJSON(curve, obj, red) {\n if (typeof obj === 'string') obj = JSON.parse(obj);\n var res = curve.point(obj[0], obj[1], red);\n if (!obj[2]) return res;\n\n function obj2point(obj) {\n return curve.point(obj[0], obj[1], red);\n }\n\n var pre = obj[2];\n res.precomputed = {\n beta: null,\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: [res].concat(pre.doubles.points.map(obj2point))\n },\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: [res].concat(pre.naf.points.map(obj2point))\n }\n };\n return res;\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity()) return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n return this.inf;\n};\n\nPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.inf) return p; // P + O = P\n\n if (p.inf) return this; // P + P = 2P\n\n if (this.eq(p)) return this.dbl(); // P + (-P) = O\n\n if (this.neg().eq(p)) return this.curve.point(null, null); // P + Q = O\n\n if (this.x.cmp(p.x) === 0) return this.curve.point(null, null);\n var c = this.y.redSub(p.y);\n if (c.cmpn(0) !== 0) c = c.redMul(this.x.redSub(p.x).redInvm());\n var nx = c.redSqr().redISub(this.x).redISub(p.x);\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.inf) return this; // 2P = O\n\n var ys1 = this.y.redAdd(this.y);\n if (ys1.cmpn(0) === 0) return this.curve.point(null, null);\n var a = this.curve.a;\n var x2 = this.x.redSqr();\n var dyinv = ys1.redInvm();\n var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);\n var nx = c.redSqr().redISub(this.x.redAdd(this.x));\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.getX = function getX() {\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n return this.y.fromRed();\n};\n\nPoint.prototype.mul = function mul(k) {\n k = new BN(k, 16);\n if (this.isInfinity()) return this;else if (this._hasDoubles(k)) return this.curve._fixedNafMul(this, k);else if (this.curve.endo) return this.curve._endoWnafMulAdd([this], [k]);else return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p2, k2) {\n var points = [this, p2];\n var coeffs = [k1, k2];\n if (this.curve.endo) return this.curve._endoWnafMulAdd(points, coeffs);else return this.curve._wnafMulAdd(1, points, coeffs, 2);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {\n var points = [this, p2];\n var coeffs = [k1, k2];\n if (this.curve.endo) return this.curve._endoWnafMulAdd(points, coeffs, true);else return this.curve._wnafMulAdd(1, points, coeffs, 2, true);\n};\n\nPoint.prototype.eq = function eq(p) {\n return this === p || this.inf === p.inf && (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);\n};\n\nPoint.prototype.neg = function neg(_precompute) {\n if (this.inf) return this;\n var res = this.curve.point(this.x, this.y.redNeg());\n\n if (_precompute && this.precomputed) {\n var pre = this.precomputed;\n\n var negate = function negate(p) {\n return p.neg();\n };\n\n res.precomputed = {\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(negate)\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(negate)\n }\n };\n }\n\n return res;\n};\n\nPoint.prototype.toJ = function toJ() {\n if (this.inf) return this.curve.jpoint(null, null, null);\n var res = this.curve.jpoint(this.x, this.y, this.curve.one);\n return res;\n};\n\nfunction JPoint(curve, x, y, z) {\n Base.BasePoint.call(this, curve, 'jacobian');\n\n if (x === null && y === null && z === null) {\n this.x = this.curve.one;\n this.y = this.curve.one;\n this.z = new BN(0);\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = new BN(z, 16);\n }\n\n if (!this.x.red) this.x = this.x.toRed(this.curve.red);\n if (!this.y.red) this.y = this.y.toRed(this.curve.red);\n if (!this.z.red) this.z = this.z.toRed(this.curve.red);\n this.zOne = this.z === this.curve.one;\n}\n\ninherits(JPoint, Base.BasePoint);\n\nShortCurve.prototype.jpoint = function jpoint(x, y, z) {\n return new JPoint(this, x, y, z);\n};\n\nJPoint.prototype.toP = function toP() {\n if (this.isInfinity()) return this.curve.point(null, null);\n var zinv = this.z.redInvm();\n var zinv2 = zinv.redSqr();\n var ax = this.x.redMul(zinv2);\n var ay = this.y.redMul(zinv2).redMul(zinv);\n return this.curve.point(ax, ay);\n};\n\nJPoint.prototype.neg = function neg() {\n return this.curve.jpoint(this.x, this.y.redNeg(), this.z);\n};\n\nJPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.isInfinity()) return p; // P + O = P\n\n if (p.isInfinity()) return this; // 12M + 4S + 7A\n\n var pz2 = p.z.redSqr();\n var z2 = this.z.redSqr();\n var u1 = this.x.redMul(pz2);\n var u2 = p.x.redMul(z2);\n var s1 = this.y.redMul(pz2.redMul(p.z));\n var s2 = p.y.redMul(z2.redMul(this.z));\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0) return this.curve.jpoint(null, null, null);else return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(p.z).redMul(h);\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mixedAdd = function mixedAdd(p) {\n // O + P = P\n if (this.isInfinity()) return p.toJ(); // P + O = P\n\n if (p.isInfinity()) return this; // 8M + 3S + 7A\n\n var z2 = this.z.redSqr();\n var u1 = this.x;\n var u2 = p.x.redMul(z2);\n var s1 = this.y;\n var s2 = p.y.redMul(z2).redMul(this.z);\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0) return this.curve.jpoint(null, null, null);else return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(h);\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.dblp = function dblp(pow) {\n if (pow === 0) return this;\n if (this.isInfinity()) return this;\n if (!pow) return this.dbl();\n var i;\n\n if (this.curve.zeroA || this.curve.threeA) {\n var r = this;\n\n for (i = 0; i < pow; i++) {\n r = r.dbl();\n }\n\n return r;\n } // 1M + 2S + 1A + N * (4S + 5M + 8A)\n // N = 1 => 6M + 6S + 9A\n\n\n var a = this.curve.a;\n var tinv = this.curve.tinv;\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr(); // Reuse results\n\n var jyd = jy.redAdd(jy);\n\n for (i = 0; i < pow; i++) {\n var jx2 = jx.redSqr();\n var jyd2 = jyd.redSqr();\n var jyd4 = jyd2.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n var t1 = jx.redMul(jyd2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var dny = c.redMul(t2);\n dny = dny.redIAdd(dny).redISub(jyd4);\n var nz = jyd.redMul(jz);\n if (i + 1 < pow) jz4 = jz4.redMul(jyd4);\n jx = nx;\n jz = nz;\n jyd = dny;\n }\n\n return this.curve.jpoint(jx, jyd.redMul(tinv), jz);\n};\n\nJPoint.prototype.dbl = function dbl() {\n if (this.isInfinity()) return this;\n if (this.curve.zeroA) return this._zeroDbl();else if (this.curve.threeA) return this._threeDbl();else return this._dbl();\n};\n\nJPoint.prototype._zeroDbl = function _zeroDbl() {\n var nx;\n var ny;\n var nz; // Z = 1\n\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 14A\n // XX = X1^2\n var xx = this.x.redSqr(); // YY = Y1^2\n\n var yy = this.y.redSqr(); // YYYY = YY^2\n\n var yyyy = yy.redSqr(); // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s); // M = 3 * XX + a; a = 0\n\n var m = xx.redAdd(xx).redIAdd(xx); // T = M ^ 2 - 2*S\n\n var t = m.redSqr().redISub(s).redISub(s); // 8 * YYYY\n\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8); // X3 = T\n\n nx = t; // Y3 = M * (S - T) - 8 * YYYY\n\n ny = m.redMul(s.redISub(t)).redISub(yyyy8); // Z3 = 2*Y1\n\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-dbl-2009-l\n // 2M + 5S + 13A\n // A = X1^2\n var a = this.x.redSqr(); // B = Y1^2\n\n var b = this.y.redSqr(); // C = B^2\n\n var c = b.redSqr(); // D = 2 * ((X1 + B)^2 - A - C)\n\n var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);\n d = d.redIAdd(d); // E = 3 * A\n\n var e = a.redAdd(a).redIAdd(a); // F = E^2\n\n var f = e.redSqr(); // 8 * C\n\n var c8 = c.redIAdd(c);\n c8 = c8.redIAdd(c8);\n c8 = c8.redIAdd(c8); // X3 = F - 2 * D\n\n nx = f.redISub(d).redISub(d); // Y3 = E * (D - X3) - 8 * C\n\n ny = e.redMul(d.redISub(nx)).redISub(c8); // Z3 = 2 * Y1 * Z1\n\n nz = this.y.redMul(this.z);\n nz = nz.redIAdd(nz);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._threeDbl = function _threeDbl() {\n var nx;\n var ny;\n var nz; // Z = 1\n\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 15A\n // XX = X1^2\n var xx = this.x.redSqr(); // YY = Y1^2\n\n var yy = this.y.redSqr(); // YYYY = YY^2\n\n var yyyy = yy.redSqr(); // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s); // M = 3 * XX + a\n\n var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a); // T = M^2 - 2 * S\n\n var t = m.redSqr().redISub(s).redISub(s); // X3 = T\n\n nx = t; // Y3 = M * (S - T) - 8 * YYYY\n\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n ny = m.redMul(s.redISub(t)).redISub(yyyy8); // Z3 = 2 * Y1\n\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b\n // 3M + 5S\n // delta = Z1^2\n var delta = this.z.redSqr(); // gamma = Y1^2\n\n var gamma = this.y.redSqr(); // beta = X1 * gamma\n\n var beta = this.x.redMul(gamma); // alpha = 3 * (X1 - delta) * (X1 + delta)\n\n var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));\n alpha = alpha.redAdd(alpha).redIAdd(alpha); // X3 = alpha^2 - 8 * beta\n\n var beta4 = beta.redIAdd(beta);\n beta4 = beta4.redIAdd(beta4);\n var beta8 = beta4.redAdd(beta4);\n nx = alpha.redSqr().redISub(beta8); // Z3 = (Y1 + Z1)^2 - gamma - delta\n\n nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta); // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2\n\n var ggamma8 = gamma.redSqr();\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._dbl = function _dbl() {\n var a = this.curve.a; // 4M + 6S + 10A\n\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n var jx2 = jx.redSqr();\n var jy2 = jy.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n var jxd4 = jx.redAdd(jx);\n jxd4 = jxd4.redIAdd(jxd4);\n var t1 = jxd4.redMul(jy2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var jyd8 = jy2.redSqr();\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n var ny = c.redMul(t2).redISub(jyd8);\n var nz = jy.redAdd(jy).redMul(jz);\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.trpl = function trpl() {\n if (!this.curve.zeroA) return this.dbl().add(this); // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl\n // 5M + 10S + ...\n // XX = X1^2\n\n var xx = this.x.redSqr(); // YY = Y1^2\n\n var yy = this.y.redSqr(); // ZZ = Z1^2\n\n var zz = this.z.redSqr(); // YYYY = YY^2\n\n var yyyy = yy.redSqr(); // M = 3 * XX + a * ZZ2; a = 0\n\n var m = xx.redAdd(xx).redIAdd(xx); // MM = M^2\n\n var mm = m.redSqr(); // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM\n\n var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n e = e.redIAdd(e);\n e = e.redAdd(e).redIAdd(e);\n e = e.redISub(mm); // EE = E^2\n\n var ee = e.redSqr(); // T = 16*YYYY\n\n var t = yyyy.redIAdd(yyyy);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n t = t.redIAdd(t); // U = (M + E)^2 - MM - EE - T\n\n var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t); // X3 = 4 * (X1 * EE - 4 * YY * U)\n\n var yyu4 = yy.redMul(u);\n yyu4 = yyu4.redIAdd(yyu4);\n yyu4 = yyu4.redIAdd(yyu4);\n var nx = this.x.redMul(ee).redISub(yyu4);\n nx = nx.redIAdd(nx);\n nx = nx.redIAdd(nx); // Y3 = 8 * Y1 * (U * (T - U) - E * EE)\n\n var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny); // Z3 = (Z1 + E)^2 - ZZ - EE\n\n var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mul = function mul(k, kbase) {\n k = new BN(k, kbase);\n return this.curve._wnafMul(this, k);\n};\n\nJPoint.prototype.eq = function eq(p) {\n if (p.type === 'affine') return this.eq(p.toJ());\n if (this === p) return true; // x1 * z2^2 == x2 * z1^2\n\n var z2 = this.z.redSqr();\n var pz2 = p.z.redSqr();\n if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0) return false; // y1 * z2^3 == y2 * z1^3\n\n var z3 = z2.redMul(this.z);\n var pz3 = pz2.redMul(p.z);\n return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;\n};\n\nJPoint.prototype.eqXToP = function eqXToP(x) {\n var zs = this.z.redSqr();\n var rx = x.toRed(this.curve.red).redMul(zs);\n if (this.x.cmp(rx) === 0) return true;\n var xc = x.clone();\n var t = this.curve.redN.redMul(zs);\n\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0) return false;\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0) return true;\n }\n};\n\nJPoint.prototype.inspect = function inspect() {\n if (this.isInfinity()) return '';\n return '';\n};\n\nJPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};","'use strict';\n\nvar BN = require('bn.js');\n\nvar inherits = require('inherits');\n\nvar Base = require('./base');\n\nvar utils = require('../utils');\n\nfunction MontCurve(conf) {\n Base.call(this, 'mont', conf);\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.i4 = new BN(4).toRed(this.red).redInvm();\n this.two = new BN(2).toRed(this.red);\n this.a24 = this.i4.redMul(this.a.redAdd(this.two));\n}\n\ninherits(MontCurve, Base);\nmodule.exports = MontCurve;\n\nMontCurve.prototype.validate = function validate(point) {\n var x = point.normalize().x;\n var x2 = x.redSqr();\n var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);\n var y = rhs.redSqrt();\n return y.redSqr().cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, z) {\n Base.BasePoint.call(this, curve, 'projective');\n\n if (x === null && z === null) {\n this.x = this.curve.one;\n this.z = this.curve.zero;\n } else {\n this.x = new BN(x, 16);\n this.z = new BN(z, 16);\n if (!this.x.red) this.x = this.x.toRed(this.curve.red);\n if (!this.z.red) this.z = this.z.toRed(this.curve.red);\n }\n}\n\ninherits(Point, Base.BasePoint);\n\nMontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n return this.point(utils.toArray(bytes, enc), 1);\n};\n\nMontCurve.prototype.point = function point(x, z) {\n return new Point(this, x, z);\n};\n\nMontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nPoint.prototype.precompute = function precompute() {// No-op\n};\n\nPoint.prototype._encode = function _encode() {\n return this.getX().toArray('be', this.curve.p.byteLength());\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1] || curve.one);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity()) return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n\nPoint.prototype.dbl = function dbl() {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3\n // 2M + 2S + 4A\n // A = X1 + Z1\n var a = this.x.redAdd(this.z); // AA = A^2\n\n var aa = a.redSqr(); // B = X1 - Z1\n\n var b = this.x.redSub(this.z); // BB = B^2\n\n var bb = b.redSqr(); // C = AA - BB\n\n var c = aa.redSub(bb); // X3 = AA * BB\n\n var nx = aa.redMul(bb); // Z3 = C * (BB + A24 * C)\n\n var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.add = function add() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.diffAdd = function diffAdd(p, diff) {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3\n // 4M + 2S + 6A\n // A = X2 + Z2\n var a = this.x.redAdd(this.z); // B = X2 - Z2\n\n var b = this.x.redSub(this.z); // C = X3 + Z3\n\n var c = p.x.redAdd(p.z); // D = X3 - Z3\n\n var d = p.x.redSub(p.z); // DA = D * A\n\n var da = d.redMul(a); // CB = C * B\n\n var cb = c.redMul(b); // X5 = Z1 * (DA + CB)^2\n\n var nx = diff.z.redMul(da.redAdd(cb).redSqr()); // Z5 = X1 * (DA - CB)^2\n\n var nz = diff.x.redMul(da.redISub(cb).redSqr());\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.mul = function mul(k) {\n var t = k.clone();\n var a = this; // (N / 2) * Q + Q\n\n var b = this.curve.point(null, null); // (N / 2) * Q\n\n var c = this; // Q\n\n for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) {\n bits.push(t.andln(1));\n }\n\n for (var i = bits.length - 1; i >= 0; i--) {\n if (bits[i] === 0) {\n // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q\n a = a.diffAdd(b, c); // N * Q = 2 * ((N / 2) * Q + Q))\n\n b = b.dbl();\n } else {\n // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)\n b = a.diffAdd(b, c); // N * Q + Q = 2 * ((N / 2) * Q + Q)\n\n a = a.dbl();\n }\n }\n\n return b;\n};\n\nPoint.prototype.mulAdd = function mulAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.jumlAdd = function jumlAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.eq = function eq(other) {\n return this.getX().cmp(other.getX()) === 0;\n};\n\nPoint.prototype.normalize = function normalize() {\n this.x = this.x.redMul(this.z.redInvm());\n this.z = this.curve.one;\n return this;\n};\n\nPoint.prototype.getX = function getX() {\n // Normalize coordinates\n this.normalize();\n return this.x.fromRed();\n};","'use strict';\n\nvar utils = require('../utils');\n\nvar BN = require('bn.js');\n\nvar inherits = require('inherits');\n\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction EdwardsCurve(conf) {\n // NOTE: Important as we are creating point in Base.call()\n this.twisted = (conf.a | 0) !== 1;\n this.mOneA = this.twisted && (conf.a | 0) === -1;\n this.extended = this.mOneA;\n Base.call(this, 'edwards', conf);\n this.a = new BN(conf.a, 16).umod(this.red.m);\n this.a = this.a.toRed(this.red);\n this.c = new BN(conf.c, 16).toRed(this.red);\n this.c2 = this.c.redSqr();\n this.d = new BN(conf.d, 16).toRed(this.red);\n this.dd = this.d.redAdd(this.d);\n assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);\n this.oneC = (conf.c | 0) === 1;\n}\n\ninherits(EdwardsCurve, Base);\nmodule.exports = EdwardsCurve;\n\nEdwardsCurve.prototype._mulA = function _mulA(num) {\n if (this.mOneA) return num.redNeg();else return this.a.redMul(num);\n};\n\nEdwardsCurve.prototype._mulC = function _mulC(num) {\n if (this.oneC) return num;else return this.c.redMul(num);\n}; // Just for compatibility with Short curve\n\n\nEdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {\n return this.point(x, y, z, t);\n};\n\nEdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red) x = x.toRed(this.red);\n var x2 = x.redSqr();\n var rhs = this.c2.redSub(this.a.redMul(x2));\n var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));\n var y2 = rhs.redMul(lhs.redInvm());\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point');\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd) y = y.redNeg();\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {\n y = new BN(y, 16);\n if (!y.red) y = y.toRed(this.red); // x^2 = (y^2 - c^2) / (c^2 d y^2 - a)\n\n var y2 = y.redSqr();\n var lhs = y2.redSub(this.c2);\n var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a);\n var x2 = lhs.redMul(rhs.redInvm());\n\n if (x2.cmp(this.zero) === 0) {\n if (odd) throw new Error('invalid point');else return this.point(this.zero, y);\n }\n\n var x = x2.redSqrt();\n if (x.redSqr().redSub(x2).cmp(this.zero) !== 0) throw new Error('invalid point');\n if (x.fromRed().isOdd() !== odd) x = x.redNeg();\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.validate = function validate(point) {\n if (point.isInfinity()) return true; // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)\n\n point.normalize();\n var x2 = point.x.redSqr();\n var y2 = point.y.redSqr();\n var lhs = x2.redMul(this.a).redAdd(y2);\n var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));\n return lhs.cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, y, z, t) {\n Base.BasePoint.call(this, curve, 'projective');\n\n if (x === null && y === null && z === null) {\n this.x = this.curve.zero;\n this.y = this.curve.one;\n this.z = this.curve.one;\n this.t = this.curve.zero;\n this.zOne = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = z ? new BN(z, 16) : this.curve.one;\n this.t = t && new BN(t, 16);\n if (!this.x.red) this.x = this.x.toRed(this.curve.red);\n if (!this.y.red) this.y = this.y.toRed(this.curve.red);\n if (!this.z.red) this.z = this.z.toRed(this.curve.red);\n if (this.t && !this.t.red) this.t = this.t.toRed(this.curve.red);\n this.zOne = this.z === this.curve.one; // Use extended coordinates\n\n if (this.curve.extended && !this.t) {\n this.t = this.x.redMul(this.y);\n if (!this.zOne) this.t = this.t.redMul(this.z.redInvm());\n }\n }\n}\n\ninherits(Point, Base.BasePoint);\n\nEdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nEdwardsCurve.prototype.point = function point(x, y, z, t) {\n return new Point(this, x, y, z, t);\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1], obj[2]);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity()) return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.x.cmpn(0) === 0 && (this.y.cmp(this.z) === 0 || this.zOne && this.y.cmp(this.curve.c) === 0);\n};\n\nPoint.prototype._extDbl = function _extDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #doubling-dbl-2008-hwcd\n // 4M + 4S\n // A = X1^2\n var a = this.x.redSqr(); // B = Y1^2\n\n var b = this.y.redSqr(); // C = 2 * Z1^2\n\n var c = this.z.redSqr();\n c = c.redIAdd(c); // D = a * A\n\n var d = this.curve._mulA(a); // E = (X1 + Y1)^2 - A - B\n\n\n var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b); // G = D + B\n\n var g = d.redAdd(b); // F = G - C\n\n var f = g.redSub(c); // H = D - B\n\n var h = d.redSub(b); // X3 = E * F\n\n var nx = e.redMul(f); // Y3 = G * H\n\n var ny = g.redMul(h); // T3 = E * H\n\n var nt = e.redMul(h); // Z3 = F * G\n\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projDbl = function _projDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #doubling-dbl-2008-bbjlp\n // #doubling-dbl-2007-bl\n // and others\n // Generally 3M + 4S or 2M + 4S\n // B = (X1 + Y1)^2\n var b = this.x.redAdd(this.y).redSqr(); // C = X1^2\n\n var c = this.x.redSqr(); // D = Y1^2\n\n var d = this.y.redSqr();\n var nx;\n var ny;\n var nz;\n var e;\n var h;\n var j;\n\n if (this.curve.twisted) {\n // E = a * C\n e = this.curve._mulA(c); // F = E + D\n\n var f = e.redAdd(d);\n\n if (this.zOne) {\n // X3 = (B - C - D) * (F - 2)\n nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two)); // Y3 = F * (E - D)\n\n ny = f.redMul(e.redSub(d)); // Z3 = F^2 - 2 * F\n\n nz = f.redSqr().redSub(f).redSub(f);\n } else {\n // H = Z1^2\n h = this.z.redSqr(); // J = F - 2 * H\n\n j = f.redSub(h).redISub(h); // X3 = (B-C-D)*J\n\n nx = b.redSub(c).redISub(d).redMul(j); // Y3 = F * (E - D)\n\n ny = f.redMul(e.redSub(d)); // Z3 = F * J\n\n nz = f.redMul(j);\n }\n } else {\n // E = C + D\n e = c.redAdd(d); // H = (c * Z1)^2\n\n h = this.curve._mulC(this.z).redSqr(); // J = E - 2 * H\n\n j = e.redSub(h).redSub(h); // X3 = c * (B - E) * J\n\n nx = this.curve._mulC(b.redISub(e)).redMul(j); // Y3 = c * E * (C - D)\n\n ny = this.curve._mulC(e).redMul(c.redISub(d)); // Z3 = E * J\n\n nz = e.redMul(j);\n }\n\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.isInfinity()) return this; // Double in extended coordinates\n\n if (this.curve.extended) return this._extDbl();else return this._projDbl();\n};\n\nPoint.prototype._extAdd = function _extAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #addition-add-2008-hwcd-3\n // 8M\n // A = (Y1 - X1) * (Y2 - X2)\n var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x)); // B = (Y1 + X1) * (Y2 + X2)\n\n var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)); // C = T1 * k * T2\n\n var c = this.t.redMul(this.curve.dd).redMul(p.t); // D = Z1 * 2 * Z2\n\n var d = this.z.redMul(p.z.redAdd(p.z)); // E = B - A\n\n var e = b.redSub(a); // F = D - C\n\n var f = d.redSub(c); // G = D + C\n\n var g = d.redAdd(c); // H = B + A\n\n var h = b.redAdd(a); // X3 = E * F\n\n var nx = e.redMul(f); // Y3 = G * H\n\n var ny = g.redMul(h); // T3 = E * H\n\n var nt = e.redMul(h); // Z3 = F * G\n\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projAdd = function _projAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #addition-add-2008-bbjlp\n // #addition-add-2007-bl\n // 10M + 1S\n // A = Z1 * Z2\n var a = this.z.redMul(p.z); // B = A^2\n\n var b = a.redSqr(); // C = X1 * X2\n\n var c = this.x.redMul(p.x); // D = Y1 * Y2\n\n var d = this.y.redMul(p.y); // E = d * C * D\n\n var e = this.curve.d.redMul(c).redMul(d); // F = B - E\n\n var f = b.redSub(e); // G = B + E\n\n var g = b.redAdd(e); // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)\n\n var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);\n var nx = a.redMul(f).redMul(tmp);\n var ny;\n var nz;\n\n if (this.curve.twisted) {\n // Y3 = A * G * (D - a * C)\n ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c))); // Z3 = F * G\n\n nz = f.redMul(g);\n } else {\n // Y3 = A * G * (D - C)\n ny = a.redMul(g).redMul(d.redSub(c)); // Z3 = c * F * G\n\n nz = this.curve._mulC(f).redMul(g);\n }\n\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.add = function add(p) {\n if (this.isInfinity()) return p;\n if (p.isInfinity()) return this;\n if (this.curve.extended) return this._extAdd(p);else return this._projAdd(p);\n};\n\nPoint.prototype.mul = function mul(k) {\n if (this._hasDoubles(k)) return this.curve._fixedNafMul(this, k);else return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, false);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, true);\n};\n\nPoint.prototype.normalize = function normalize() {\n if (this.zOne) return this; // Normalize coordinates\n\n var zi = this.z.redInvm();\n this.x = this.x.redMul(zi);\n this.y = this.y.redMul(zi);\n if (this.t) this.t = this.t.redMul(zi);\n this.z = this.curve.one;\n this.zOne = true;\n return this;\n};\n\nPoint.prototype.neg = function neg() {\n return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg());\n};\n\nPoint.prototype.getX = function getX() {\n this.normalize();\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n this.normalize();\n return this.y.fromRed();\n};\n\nPoint.prototype.eq = function eq(other) {\n return this === other || this.getX().cmp(other.getX()) === 0 && this.getY().cmp(other.getY()) === 0;\n};\n\nPoint.prototype.eqXToP = function eqXToP(x) {\n var rx = x.toRed(this.curve.red).redMul(this.z);\n if (this.x.cmp(rx) === 0) return true;\n var xc = x.clone();\n var t = this.curve.redN.redMul(this.z);\n\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0) return false;\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0) return true;\n }\n}; // Compatibility with BaseCurve\n\n\nPoint.prototype.toP = Point.prototype.normalize;\nPoint.prototype.mixedAdd = Point.prototype.add;","'use strict';\n\nexports.sha1 = require('./sha/1');\nexports.sha224 = require('./sha/224');\nexports.sha256 = require('./sha/256');\nexports.sha384 = require('./sha/384');\nexports.sha512 = require('./sha/512');","'use strict';\n\nvar utils = require('../utils');\n\nvar common = require('../common');\n\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\nvar sha1_K = [0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xCA62C1D6];\n\nfunction SHA1() {\n if (!(this instanceof SHA1)) return new SHA1();\n BlockHash.call(this);\n this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++) {\n W[i] = msg[start + i];\n }\n\n for (; i < W.length; i++) {\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n }\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big');\n};","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA256 = require('./256');\n\nfunction SHA224() {\n if (!(this instanceof SHA224)) return new SHA224();\n SHA256.call(this);\n this.h = [0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4];\n}\n\nutils.inherits(SHA224, SHA256);\nmodule.exports = SHA224;\nSHA224.blockSize = 512;\nSHA224.outSize = 224;\nSHA224.hmacStrength = 192;\nSHA224.padLength = 64;\n\nSHA224.prototype._digest = function digest(enc) {\n // Just truncate output\n if (enc === 'hex') return utils.toHex32(this.h.slice(0, 7), 'big');else return utils.split32(this.h.slice(0, 7), 'big');\n};","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA512 = require('./512');\n\nfunction SHA384() {\n if (!(this instanceof SHA384)) return new SHA384();\n SHA512.call(this);\n this.h = [0xcbbb9d5d, 0xc1059ed8, 0x629a292a, 0x367cd507, 0x9159015a, 0x3070dd17, 0x152fecd8, 0xf70e5939, 0x67332667, 0xffc00b31, 0x8eb44a87, 0x68581511, 0xdb0c2e0d, 0x64f98fa7, 0x47b5481d, 0xbefa4fa4];\n}\n\nutils.inherits(SHA384, SHA512);\nmodule.exports = SHA384;\nSHA384.blockSize = 1024;\nSHA384.outSize = 384;\nSHA384.hmacStrength = 192;\nSHA384.padLength = 128;\n\nSHA384.prototype._digest = function digest(enc) {\n if (enc === 'hex') return utils.toHex32(this.h.slice(0, 12), 'big');else return utils.split32(this.h.slice(0, 12), 'big');\n};","'use strict';\n\nvar utils = require('./utils');\n\nvar common = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_3 = utils.sum32_3;\nvar sum32_4 = utils.sum32_4;\nvar BlockHash = common.BlockHash;\n\nfunction RIPEMD160() {\n if (!(this instanceof RIPEMD160)) return new RIPEMD160();\n BlockHash.call(this);\n this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];\n this.endian = 'little';\n}\n\nutils.inherits(RIPEMD160, BlockHash);\nexports.ripemd160 = RIPEMD160;\nRIPEMD160.blockSize = 512;\nRIPEMD160.outSize = 160;\nRIPEMD160.hmacStrength = 192;\nRIPEMD160.padLength = 64;\n\nRIPEMD160.prototype._update = function update(msg, start) {\n var A = this.h[0];\n var B = this.h[1];\n var C = this.h[2];\n var D = this.h[3];\n var E = this.h[4];\n var Ah = A;\n var Bh = B;\n var Ch = C;\n var Dh = D;\n var Eh = E;\n\n for (var j = 0; j < 80; j++) {\n var T = sum32(rotl32(sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)), s[j]), E);\n A = E;\n E = D;\n D = rotl32(C, 10);\n C = B;\n B = T;\n T = sum32(rotl32(sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)), sh[j]), Eh);\n Ah = Eh;\n Eh = Dh;\n Dh = rotl32(Ch, 10);\n Ch = Bh;\n Bh = T;\n }\n\n T = sum32_3(this.h[1], C, Dh);\n this.h[1] = sum32_3(this.h[2], D, Eh);\n this.h[2] = sum32_3(this.h[3], E, Ah);\n this.h[3] = sum32_3(this.h[4], A, Bh);\n this.h[4] = sum32_3(this.h[0], B, Ch);\n this.h[0] = T;\n};\n\nRIPEMD160.prototype._digest = function digest(enc) {\n if (enc === 'hex') return utils.toHex32(this.h, 'little');else return utils.split32(this.h, 'little');\n};\n\nfunction f(j, x, y, z) {\n if (j <= 15) return x ^ y ^ z;else if (j <= 31) return x & y | ~x & z;else if (j <= 47) return (x | ~y) ^ z;else if (j <= 63) return x & z | y & ~z;else return x ^ (y | ~z);\n}\n\nfunction K(j) {\n if (j <= 15) return 0x00000000;else if (j <= 31) return 0x5a827999;else if (j <= 47) return 0x6ed9eba1;else if (j <= 63) return 0x8f1bbcdc;else return 0xa953fd4e;\n}\n\nfunction Kh(j) {\n if (j <= 15) return 0x50a28be6;else if (j <= 31) return 0x5c4dd124;else if (j <= 47) return 0x6d703ef3;else if (j <= 63) return 0x7a6d76e9;else return 0x00000000;\n}\n\nvar r = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13];\nvar rh = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11];\nvar s = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6];\nvar sh = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11];","'use strict';\n\nvar utils = require('./utils');\n\nvar assert = require('minimalistic-assert');\n\nfunction Hmac(hash, key, enc) {\n if (!(this instanceof Hmac)) return new Hmac(hash, key, enc);\n this.Hash = hash;\n this.blockSize = hash.blockSize / 8;\n this.outSize = hash.outSize / 8;\n this.inner = null;\n this.outer = null;\n\n this._init(utils.toArray(key, enc));\n}\n\nmodule.exports = Hmac;\n\nHmac.prototype._init = function init(key) {\n // Shorten key, if needed\n if (key.length > this.blockSize) key = new this.Hash().update(key).digest();\n assert(key.length <= this.blockSize); // Add padding to key\n\n for (var i = key.length; i < this.blockSize; i++) {\n key.push(0);\n }\n\n for (i = 0; i < key.length; i++) {\n key[i] ^= 0x36;\n }\n\n this.inner = new this.Hash().update(key); // 0x36 ^ 0x5c = 0x6a\n\n for (i = 0; i < key.length; i++) {\n key[i] ^= 0x6a;\n }\n\n this.outer = new this.Hash().update(key);\n};\n\nHmac.prototype.update = function update(msg, enc) {\n this.inner.update(msg, enc);\n return this;\n};\n\nHmac.prototype.digest = function digest(enc) {\n this.outer.update(this.inner.digest());\n return this.outer.digest(enc);\n};","module.exports = {\n doubles: {\n step: 4,\n points: [['e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a', 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821'], ['8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508', '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf'], ['175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739', 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695'], ['363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640', '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9'], ['8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c', '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36'], ['723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda', '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f'], ['eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa', '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999'], ['100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0', 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09'], ['e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d', '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d'], ['feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d', 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088'], ['da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1', '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d'], ['53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0', '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8'], ['8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047', '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a'], ['385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862', '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453'], ['6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7', '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160'], ['3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd', '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0'], ['85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83', '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6'], ['948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a', '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589'], ['6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8', 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17'], ['e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d', '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda'], ['e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725', '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd'], ['213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754', '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2'], ['4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c', '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6'], ['fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6', '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f'], ['76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39', 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01'], ['c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891', '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3'], ['d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b', 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f'], ['b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03', '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7'], ['e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d', 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78'], ['a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070', '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1'], ['90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4', 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150'], ['8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da', '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82'], ['e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11', '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc'], ['8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e', 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b'], ['e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41', '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51'], ['b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef', '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45'], ['d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8', 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120'], ['324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d', '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84'], ['4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96', '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d'], ['9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd', 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d'], ['6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5', '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8'], ['a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266', '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8'], ['7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71', '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac'], ['928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac', 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f'], ['85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751', '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962'], ['ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e', '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907'], ['827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241', 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec'], ['eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3', 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d'], ['e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f', '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414'], ['1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19', 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd'], ['146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be', 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0'], ['fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9', '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811'], ['da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2', '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1'], ['a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13', '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c'], ['174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c', 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73'], ['959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba', '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd'], ['d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151', 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405'], ['64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073', 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589'], ['8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458', '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e'], ['13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b', '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27'], ['bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366', 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1'], ['8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa', '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482'], ['8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0', '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945'], ['dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787', '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573'], ['f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e', 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82']]\n },\n naf: {\n wnd: 7,\n points: [['f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9', '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672'], ['2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4', 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6'], ['5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc', '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da'], ['acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe', 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37'], ['774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb', 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b'], ['f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8', 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81'], ['d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e', '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58'], ['defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34', '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77'], ['2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c', '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a'], ['352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5', '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c'], ['2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f', '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67'], ['9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714', '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402'], ['daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729', 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55'], ['c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db', '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482'], ['6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4', 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82'], ['1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5', 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396'], ['605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479', '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49'], ['62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d', '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf'], ['80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f', '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a'], ['7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb', 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7'], ['d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9', 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933'], ['49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963', '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a'], ['77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74', '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6'], ['f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530', 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37'], ['463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b', '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e'], ['f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247', 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6'], ['caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1', 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476'], ['2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120', '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40'], ['7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435', '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61'], ['754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18', '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683'], ['e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8', '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5'], ['186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb', '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b'], ['df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f', '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417'], ['5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143', 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868'], ['290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba', 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a'], ['af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45', 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6'], ['766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a', '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996'], ['59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e', 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e'], ['f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8', 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d'], ['7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c', '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2'], ['948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519', 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e'], ['7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab', '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437'], ['3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca', 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311'], ['d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf', '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4'], ['1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610', '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575'], ['733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4', 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d'], ['15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c', 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d'], ['a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940', 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629'], ['e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980', 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06'], ['311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3', '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374'], ['34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf', '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee'], ['f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63', '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1'], ['d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448', 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b'], ['32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf', '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661'], ['7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5', '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6'], ['ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6', '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e'], ['16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5', '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d'], ['eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99', 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc'], ['78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51', 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4'], ['494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5', '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c'], ['a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5', '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b'], ['c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997', '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913'], ['841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881', '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154'], ['5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5', '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865'], ['36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66', 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc'], ['336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726', 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224'], ['8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede', '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e'], ['1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94', '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6'], ['85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31', '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511'], ['29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51', 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b'], ['a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252', 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2'], ['4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5', 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c'], ['d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b', '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3'], ['ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4', '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d'], ['af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f', '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700'], ['e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889', '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4'], ['591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246', 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196'], ['11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984', '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4'], ['3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a', 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257'], ['cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030', 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13'], ['c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197', '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096'], ['c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593', 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38'], ['a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef', '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f'], ['347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38', '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448'], ['da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a', '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a'], ['c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111', '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4'], ['4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502', '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437'], ['3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea', 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7'], ['cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26', '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d'], ['b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986', '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a'], ['d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e', '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54'], ['48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4', '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77'], ['dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda', 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517'], ['6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859', 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10'], ['e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f', 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125'], ['eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c', '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e'], ['13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942', 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1'], ['ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a', '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2'], ['b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80', '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423'], ['ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d', '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8'], ['8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1', 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758'], ['52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63', 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375'], ['e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352', '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d'], ['7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193', 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec'], ['5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00', '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0'], ['32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58', 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c'], ['e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7', 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4'], ['8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8', 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f'], ['4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e', '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649'], ['3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d', 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826'], ['674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b', '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5'], ['d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f', 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87'], ['30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6', '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b'], ['be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297', '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc'], ['93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a', '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c'], ['b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c', 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f'], ['d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52', '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a'], ['d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb', 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46'], ['463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065', 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f'], ['7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917', '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03'], ['74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9', 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08'], ['30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3', '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8'], ['9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57', '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373'], ['176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66', 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3'], ['75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8', '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8'], ['809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721', '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1'], ['1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180', '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9']]\n }\n};","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar BN = require('bn.js');\n\nvar HmacDRBG = require('hmac-drbg');\n\nvar utils = require('../utils');\n\nvar curves = require('../curves');\n\nvar rand = require('brorand');\n\nvar assert = utils.assert;\n\nvar KeyPair = require('./key');\n\nvar Signature = require('./signature');\n\nfunction EC(options) {\n if (!(this instanceof EC)) return new EC(options); // Shortcut `elliptic.ec(curve-name)`\n\n if (typeof options === 'string') {\n assert(Object.prototype.hasOwnProperty.call(curves, options), 'Unknown curve ' + options);\n options = curves[options];\n } // Shortcut for `elliptic.ec(elliptic.curves.curveName)`\n\n\n if (options instanceof curves.PresetCurve) options = {\n curve: options\n };\n this.curve = options.curve.curve;\n this.n = this.curve.n;\n this.nh = this.n.ushrn(1);\n this.g = this.curve.g; // Point on curve\n\n this.g = options.curve.g;\n this.g.precompute(options.curve.n.bitLength() + 1); // Hash for function for DRBG\n\n this.hash = options.hash || options.curve.hash;\n}\n\nmodule.exports = EC;\n\nEC.prototype.keyPair = function keyPair(options) {\n return new KeyPair(this, options);\n};\n\nEC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {\n return KeyPair.fromPrivate(this, priv, enc);\n};\n\nEC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {\n return KeyPair.fromPublic(this, pub, enc);\n};\n\nEC.prototype.genKeyPair = function genKeyPair(options) {\n if (!options) options = {}; // Instantiate Hmac_DRBG\n\n var drbg = new HmacDRBG({\n hash: this.hash,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n entropy: options.entropy || rand(this.hash.hmacStrength),\n entropyEnc: options.entropy && options.entropyEnc || 'utf8',\n nonce: this.n.toArray()\n });\n var bytes = this.n.byteLength();\n var ns2 = this.n.sub(new BN(2));\n\n for (;;) {\n var priv = new BN(drbg.generate(bytes));\n if (priv.cmp(ns2) > 0) continue;\n priv.iaddn(1);\n return this.keyFromPrivate(priv);\n }\n};\n\nEC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {\n var delta = msg.byteLength() * 8 - this.n.bitLength();\n if (delta > 0) msg = msg.ushrn(delta);\n if (!truncOnly && msg.cmp(this.n) >= 0) return msg.sub(this.n);else return msg;\n};\n\nEC.prototype.sign = function sign(msg, key, enc, options) {\n if (_typeof(enc) === 'object') {\n options = enc;\n enc = null;\n }\n\n if (!options) options = {};\n key = this.keyFromPrivate(key, enc);\n msg = this._truncateToN(new BN(msg, 16)); // Zero-extend key to provide enough entropy\n\n var bytes = this.n.byteLength();\n var bkey = key.getPrivate().toArray('be', bytes); // Zero-extend nonce to have the same byte size as N\n\n var nonce = msg.toArray('be', bytes); // Instantiate Hmac_DRBG\n\n var drbg = new HmacDRBG({\n hash: this.hash,\n entropy: bkey,\n nonce: nonce,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8'\n }); // Number of bytes to generate\n\n var ns1 = this.n.sub(new BN(1));\n\n for (var iter = 0;; iter++) {\n var k = options.k ? options.k(iter) : new BN(drbg.generate(this.n.byteLength()));\n k = this._truncateToN(k, true);\n if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) continue;\n var kp = this.g.mul(k);\n if (kp.isInfinity()) continue;\n var kpX = kp.getX();\n var r = kpX.umod(this.n);\n if (r.cmpn(0) === 0) continue;\n var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));\n s = s.umod(this.n);\n if (s.cmpn(0) === 0) continue;\n var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (kpX.cmp(r) !== 0 ? 2 : 0); // Use complement of `s`, if it is > `n / 2`\n\n if (options.canonical && s.cmp(this.nh) > 0) {\n s = this.n.sub(s);\n recoveryParam ^= 1;\n }\n\n return new Signature({\n r: r,\n s: s,\n recoveryParam: recoveryParam\n });\n }\n};\n\nEC.prototype.verify = function verify(msg, signature, key, enc) {\n msg = this._truncateToN(new BN(msg, 16));\n key = this.keyFromPublic(key, enc);\n signature = new Signature(signature, 'hex'); // Perform primitive values validation\n\n var r = signature.r;\n var s = signature.s;\n if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0) return false;\n if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0) return false; // Validate signature\n\n var sinv = s.invm(this.n);\n var u1 = sinv.mul(msg).umod(this.n);\n var u2 = sinv.mul(r).umod(this.n);\n var p;\n\n if (!this.curve._maxwellTrick) {\n p = this.g.mulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity()) return false;\n return p.getX().umod(this.n).cmp(r) === 0;\n } // NOTE: Greg Maxwell's trick, inspired by:\n // https://git.io/vad3K\n\n\n p = this.g.jmulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity()) return false; // Compare `p.x` of Jacobian point with `r`,\n // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the\n // inverse of `p.z^2`\n\n return p.eqXToP(r);\n};\n\nEC.prototype.recoverPubKey = function (msg, signature, j, enc) {\n assert((3 & j) === j, 'The recovery param is more than two bits');\n signature = new Signature(signature, enc);\n var n = this.n;\n var e = new BN(msg);\n var r = signature.r;\n var s = signature.s; // A set LSB signifies that the y-coordinate is odd\n\n var isYOdd = j & 1;\n var isSecondKey = j >> 1;\n if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey) throw new Error('Unable to find sencond key candinate'); // 1.1. Let x = r + jn.\n\n if (isSecondKey) r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);else r = this.curve.pointFromX(r, isYOdd);\n var rInv = signature.r.invm(n);\n var s1 = n.sub(e).mul(rInv).umod(n);\n var s2 = s.mul(rInv).umod(n); // 1.6.1 Compute Q = r^-1 (sR - eG)\n // Q = r^-1 (sR + -eG)\n\n return this.g.mulAdd(s1, r, s2);\n};\n\nEC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) {\n signature = new Signature(signature, enc);\n if (signature.recoveryParam !== null) return signature.recoveryParam;\n\n for (var i = 0; i < 4; i++) {\n var Qprime;\n\n try {\n Qprime = this.recoverPubKey(e, signature, i);\n } catch (e) {\n continue;\n }\n\n if (Qprime.eq(Q)) return i;\n }\n\n throw new Error('Unable to find valid recovery factor');\n};","'use strict';\n\nvar hash = require('hash.js');\n\nvar utils = require('minimalistic-crypto-utils');\n\nvar assert = require('minimalistic-assert');\n\nfunction HmacDRBG(options) {\n if (!(this instanceof HmacDRBG)) return new HmacDRBG(options);\n this.hash = options.hash;\n this.predResist = !!options.predResist;\n this.outLen = this.hash.outSize;\n this.minEntropy = options.minEntropy || this.hash.hmacStrength;\n this._reseed = null;\n this.reseedInterval = null;\n this.K = null;\n this.V = null;\n var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');\n var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');\n var pers = utils.toArray(options.pers, options.persEnc || 'hex');\n assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._init(entropy, nonce, pers);\n}\n\nmodule.exports = HmacDRBG;\n\nHmacDRBG.prototype._init = function init(entropy, nonce, pers) {\n var seed = entropy.concat(nonce).concat(pers);\n this.K = new Array(this.outLen / 8);\n this.V = new Array(this.outLen / 8);\n\n for (var i = 0; i < this.V.length; i++) {\n this.K[i] = 0x00;\n this.V[i] = 0x01;\n }\n\n this._update(seed);\n\n this._reseed = 1;\n this.reseedInterval = 0x1000000000000; // 2^48\n};\n\nHmacDRBG.prototype._hmac = function hmac() {\n return new hash.hmac(this.hash, this.K);\n};\n\nHmacDRBG.prototype._update = function update(seed) {\n var kmac = this._hmac().update(this.V).update([0x00]);\n\n if (seed) kmac = kmac.update(seed);\n this.K = kmac.digest();\n this.V = this._hmac().update(this.V).digest();\n if (!seed) return;\n this.K = this._hmac().update(this.V).update([0x01]).update(seed).digest();\n this.V = this._hmac().update(this.V).digest();\n};\n\nHmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {\n // Optional entropy enc\n if (typeof entropyEnc !== 'string') {\n addEnc = add;\n add = entropyEnc;\n entropyEnc = null;\n }\n\n entropy = utils.toArray(entropy, entropyEnc);\n add = utils.toArray(add, addEnc);\n assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._update(entropy.concat(add || []));\n\n this._reseed = 1;\n};\n\nHmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {\n if (this._reseed > this.reseedInterval) throw new Error('Reseed is required'); // Optional encoding\n\n if (typeof enc !== 'string') {\n addEnc = add;\n add = enc;\n enc = null;\n } // Optional additional data\n\n\n if (add) {\n add = utils.toArray(add, addEnc || 'hex');\n\n this._update(add);\n }\n\n var temp = [];\n\n while (temp.length < len) {\n this.V = this._hmac().update(this.V).digest();\n temp = temp.concat(this.V);\n }\n\n var res = temp.slice(0, len);\n\n this._update(add);\n\n this._reseed++;\n return utils.encode(res, enc);\n};","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\n\nvar assert = utils.assert;\n\nfunction KeyPair(ec, options) {\n this.ec = ec;\n this.priv = null;\n this.pub = null; // KeyPair(ec, { priv: ..., pub: ... })\n\n if (options.priv) this._importPrivate(options.priv, options.privEnc);\n if (options.pub) this._importPublic(options.pub, options.pubEnc);\n}\n\nmodule.exports = KeyPair;\n\nKeyPair.fromPublic = function fromPublic(ec, pub, enc) {\n if (pub instanceof KeyPair) return pub;\n return new KeyPair(ec, {\n pub: pub,\n pubEnc: enc\n });\n};\n\nKeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {\n if (priv instanceof KeyPair) return priv;\n return new KeyPair(ec, {\n priv: priv,\n privEnc: enc\n });\n};\n\nKeyPair.prototype.validate = function validate() {\n var pub = this.getPublic();\n if (pub.isInfinity()) return {\n result: false,\n reason: 'Invalid public key'\n };\n if (!pub.validate()) return {\n result: false,\n reason: 'Public key is not a point'\n };\n if (!pub.mul(this.ec.curve.n).isInfinity()) return {\n result: false,\n reason: 'Public key * N != O'\n };\n return {\n result: true,\n reason: null\n };\n};\n\nKeyPair.prototype.getPublic = function getPublic(compact, enc) {\n // compact is optional argument\n if (typeof compact === 'string') {\n enc = compact;\n compact = null;\n }\n\n if (!this.pub) this.pub = this.ec.g.mul(this.priv);\n if (!enc) return this.pub;\n return this.pub.encode(enc, compact);\n};\n\nKeyPair.prototype.getPrivate = function getPrivate(enc) {\n if (enc === 'hex') return this.priv.toString(16, 2);else return this.priv;\n};\n\nKeyPair.prototype._importPrivate = function _importPrivate(key, enc) {\n this.priv = new BN(key, enc || 16); // Ensure that the priv won't be bigger than n, otherwise we may fail\n // in fixed multiplication method\n\n this.priv = this.priv.umod(this.ec.curve.n);\n};\n\nKeyPair.prototype._importPublic = function _importPublic(key, enc) {\n if (key.x || key.y) {\n // Montgomery points only have an `x` coordinate.\n // Weierstrass/Edwards points on the other hand have both `x` and\n // `y` coordinates.\n if (this.ec.curve.type === 'mont') {\n assert(key.x, 'Need x coordinate');\n } else if (this.ec.curve.type === 'short' || this.ec.curve.type === 'edwards') {\n assert(key.x && key.y, 'Need both x and y coordinate');\n }\n\n this.pub = this.ec.curve.point(key.x, key.y);\n return;\n }\n\n this.pub = this.ec.curve.decodePoint(key, enc);\n}; // ECDH\n\n\nKeyPair.prototype.derive = function derive(pub) {\n if (!pub.validate()) {\n assert(pub.validate(), 'public point not validated');\n }\n\n return pub.mul(this.priv).getX();\n}; // ECDSA\n\n\nKeyPair.prototype.sign = function sign(msg, enc, options) {\n return this.ec.sign(msg, this, enc, options);\n};\n\nKeyPair.prototype.verify = function verify(msg, signature) {\n return this.ec.verify(msg, signature, this);\n};\n\nKeyPair.prototype.inspect = function inspect() {\n return '';\n};","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\n\nvar assert = utils.assert;\n\nfunction Signature(options, enc) {\n if (options instanceof Signature) return options;\n if (this._importDER(options, enc)) return;\n assert(options.r && options.s, 'Signature without r or s');\n this.r = new BN(options.r, 16);\n this.s = new BN(options.s, 16);\n if (options.recoveryParam === undefined) this.recoveryParam = null;else this.recoveryParam = options.recoveryParam;\n}\n\nmodule.exports = Signature;\n\nfunction Position() {\n this.place = 0;\n}\n\nfunction getLength(buf, p) {\n var initial = buf[p.place++];\n\n if (!(initial & 0x80)) {\n return initial;\n }\n\n var octetLen = initial & 0xf; // Indefinite length or overflow\n\n if (octetLen === 0 || octetLen > 4) {\n return false;\n }\n\n var val = 0;\n\n for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n val <<= 8;\n val |= buf[off];\n val >>>= 0;\n } // Leading zeroes\n\n\n if (val <= 0x7f) {\n return false;\n }\n\n p.place = off;\n return val;\n}\n\nfunction rmPadding(buf) {\n var i = 0;\n var len = buf.length - 1;\n\n while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n i++;\n }\n\n if (i === 0) {\n return buf;\n }\n\n return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n data = utils.toArray(data, enc);\n var p = new Position();\n\n if (data[p.place++] !== 0x30) {\n return false;\n }\n\n var len = getLength(data, p);\n\n if (len === false) {\n return false;\n }\n\n if (len + p.place !== data.length) {\n return false;\n }\n\n if (data[p.place++] !== 0x02) {\n return false;\n }\n\n var rlen = getLength(data, p);\n\n if (rlen === false) {\n return false;\n }\n\n var r = data.slice(p.place, rlen + p.place);\n p.place += rlen;\n\n if (data[p.place++] !== 0x02) {\n return false;\n }\n\n var slen = getLength(data, p);\n\n if (slen === false) {\n return false;\n }\n\n if (data.length !== slen + p.place) {\n return false;\n }\n\n var s = data.slice(p.place, slen + p.place);\n\n if (r[0] === 0) {\n if (r[1] & 0x80) {\n r = r.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n if (s[0] === 0) {\n if (s[1] & 0x80) {\n s = s.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n this.r = new BN(r);\n this.s = new BN(s);\n this.recoveryParam = null;\n return true;\n};\n\nfunction constructLength(arr, len) {\n if (len < 0x80) {\n arr.push(len);\n return;\n }\n\n var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n arr.push(octets | 0x80);\n\n while (--octets) {\n arr.push(len >>> (octets << 3) & 0xff);\n }\n\n arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n var r = this.r.toArray();\n var s = this.s.toArray(); // Pad values\n\n if (r[0] & 0x80) r = [0].concat(r); // Pad values\n\n if (s[0] & 0x80) s = [0].concat(s);\n r = rmPadding(r);\n s = rmPadding(s);\n\n while (!s[0] && !(s[1] & 0x80)) {\n s = s.slice(1);\n }\n\n var arr = [0x02];\n constructLength(arr, r.length);\n arr = arr.concat(r);\n arr.push(0x02);\n constructLength(arr, s.length);\n var backHalf = arr.concat(s);\n var res = [0x30];\n constructLength(res, backHalf.length);\n res = res.concat(backHalf);\n return utils.encode(res, enc);\n};","'use strict';\n\nvar hash = require('hash.js');\n\nvar curves = require('../curves');\n\nvar utils = require('../utils');\n\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\n\nvar KeyPair = require('./key');\n\nvar Signature = require('./signature');\n\nfunction EDDSA(curve) {\n assert(curve === 'ed25519', 'only tested with ed25519 so far');\n if (!(this instanceof EDDSA)) return new EDDSA(curve);\n curve = curves[curve].curve;\n this.curve = curve;\n this.g = curve.g;\n this.g.precompute(curve.n.bitLength() + 1);\n this.pointClass = curve.point().constructor;\n this.encodingLength = Math.ceil(curve.n.bitLength() / 8);\n this.hash = hash.sha512;\n}\n\nmodule.exports = EDDSA;\n/**\n* @param {Array|String} message - message bytes\n* @param {Array|String|KeyPair} secret - secret bytes or a keypair\n* @returns {Signature} - signature\n*/\n\nEDDSA.prototype.sign = function sign(message, secret) {\n message = parseBytes(message);\n var key = this.keyFromSecret(secret);\n var r = this.hashInt(key.messagePrefix(), message);\n var R = this.g.mul(r);\n var Rencoded = this.encodePoint(R);\n var s_ = this.hashInt(Rencoded, key.pubBytes(), message).mul(key.priv());\n var S = r.add(s_).umod(this.curve.n);\n return this.makeSignature({\n R: R,\n S: S,\n Rencoded: Rencoded\n });\n};\n/**\n* @param {Array} message - message bytes\n* @param {Array|String|Signature} sig - sig bytes\n* @param {Array|String|Point|KeyPair} pub - public key\n* @returns {Boolean} - true if public key matches sig of message\n*/\n\n\nEDDSA.prototype.verify = function verify(message, sig, pub) {\n message = parseBytes(message);\n sig = this.makeSignature(sig);\n var key = this.keyFromPublic(pub);\n var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);\n var SG = this.g.mul(sig.S());\n var RplusAh = sig.R().add(key.pub().mul(h));\n return RplusAh.eq(SG);\n};\n\nEDDSA.prototype.hashInt = function hashInt() {\n var hash = this.hash();\n\n for (var i = 0; i < arguments.length; i++) {\n hash.update(arguments[i]);\n }\n\n return utils.intFromLE(hash.digest()).umod(this.curve.n);\n};\n\nEDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {\n return KeyPair.fromPublic(this, pub);\n};\n\nEDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {\n return KeyPair.fromSecret(this, secret);\n};\n\nEDDSA.prototype.makeSignature = function makeSignature(sig) {\n if (sig instanceof Signature) return sig;\n return new Signature(this, sig);\n};\n/**\n* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2\n*\n* EDDSA defines methods for encoding and decoding points and integers. These are\n* helper convenience methods, that pass along to utility functions implied\n* parameters.\n*\n*/\n\n\nEDDSA.prototype.encodePoint = function encodePoint(point) {\n var enc = point.getY().toArray('le', this.encodingLength);\n enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;\n return enc;\n};\n\nEDDSA.prototype.decodePoint = function decodePoint(bytes) {\n bytes = utils.parseBytes(bytes);\n var lastIx = bytes.length - 1;\n var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);\n var xIsOdd = (bytes[lastIx] & 0x80) !== 0;\n var y = utils.intFromLE(normed);\n return this.curve.pointFromY(y, xIsOdd);\n};\n\nEDDSA.prototype.encodeInt = function encodeInt(num) {\n return num.toArray('le', this.encodingLength);\n};\n\nEDDSA.prototype.decodeInt = function decodeInt(bytes) {\n return utils.intFromLE(bytes);\n};\n\nEDDSA.prototype.isPoint = function isPoint(val) {\n return val instanceof this.pointClass;\n};","'use strict';\n\nvar utils = require('../utils');\n\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar cachedProperty = utils.cachedProperty;\n/**\n* @param {EDDSA} eddsa - instance\n* @param {Object} params - public/private key parameters\n*\n* @param {Array} [params.secret] - secret seed bytes\n* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)\n* @param {Array} [params.pub] - public key point encoded as bytes\n*\n*/\n\nfunction KeyPair(eddsa, params) {\n this.eddsa = eddsa;\n this._secret = parseBytes(params.secret);\n if (eddsa.isPoint(params.pub)) this._pub = params.pub;else this._pubBytes = parseBytes(params.pub);\n}\n\nKeyPair.fromPublic = function fromPublic(eddsa, pub) {\n if (pub instanceof KeyPair) return pub;\n return new KeyPair(eddsa, {\n pub: pub\n });\n};\n\nKeyPair.fromSecret = function fromSecret(eddsa, secret) {\n if (secret instanceof KeyPair) return secret;\n return new KeyPair(eddsa, {\n secret: secret\n });\n};\n\nKeyPair.prototype.secret = function secret() {\n return this._secret;\n};\n\ncachedProperty(KeyPair, 'pubBytes', function pubBytes() {\n return this.eddsa.encodePoint(this.pub());\n});\ncachedProperty(KeyPair, 'pub', function pub() {\n if (this._pubBytes) return this.eddsa.decodePoint(this._pubBytes);\n return this.eddsa.g.mul(this.priv());\n});\ncachedProperty(KeyPair, 'privBytes', function privBytes() {\n var eddsa = this.eddsa;\n var hash = this.hash();\n var lastIx = eddsa.encodingLength - 1;\n var a = hash.slice(0, eddsa.encodingLength);\n a[0] &= 248;\n a[lastIx] &= 127;\n a[lastIx] |= 64;\n return a;\n});\ncachedProperty(KeyPair, 'priv', function priv() {\n return this.eddsa.decodeInt(this.privBytes());\n});\ncachedProperty(KeyPair, 'hash', function hash() {\n return this.eddsa.hash().update(this.secret()).digest();\n});\ncachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {\n return this.hash().slice(this.eddsa.encodingLength);\n});\n\nKeyPair.prototype.sign = function sign(message) {\n assert(this._secret, 'KeyPair can only verify');\n return this.eddsa.sign(message, this);\n};\n\nKeyPair.prototype.verify = function verify(message, sig) {\n return this.eddsa.verify(message, sig, this);\n};\n\nKeyPair.prototype.getSecret = function getSecret(enc) {\n assert(this._secret, 'KeyPair is public only');\n return utils.encode(this.secret(), enc);\n};\n\nKeyPair.prototype.getPublic = function getPublic(enc) {\n return utils.encode(this.pubBytes(), enc);\n};\n\nmodule.exports = KeyPair;","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\n\nvar assert = utils.assert;\nvar cachedProperty = utils.cachedProperty;\nvar parseBytes = utils.parseBytes;\n/**\n* @param {EDDSA} eddsa - eddsa instance\n* @param {Array|Object} sig -\n* @param {Array|Point} [sig.R] - R point as Point or bytes\n* @param {Array|bn} [sig.S] - S scalar as bn or bytes\n* @param {Array} [sig.Rencoded] - R point encoded\n* @param {Array} [sig.Sencoded] - S scalar encoded\n*/\n\nfunction Signature(eddsa, sig) {\n this.eddsa = eddsa;\n if (_typeof(sig) !== 'object') sig = parseBytes(sig);\n\n if (Array.isArray(sig)) {\n sig = {\n R: sig.slice(0, eddsa.encodingLength),\n S: sig.slice(eddsa.encodingLength)\n };\n }\n\n assert(sig.R && sig.S, 'Signature without R or S');\n if (eddsa.isPoint(sig.R)) this._R = sig.R;\n if (sig.S instanceof BN) this._S = sig.S;\n this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;\n this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;\n}\n\ncachedProperty(Signature, 'S', function S() {\n return this.eddsa.decodeInt(this.Sencoded());\n});\ncachedProperty(Signature, 'R', function R() {\n return this.eddsa.decodePoint(this.Rencoded());\n});\ncachedProperty(Signature, 'Rencoded', function Rencoded() {\n return this.eddsa.encodePoint(this.R());\n});\ncachedProperty(Signature, 'Sencoded', function Sencoded() {\n return this.eddsa.encodeInt(this.S());\n});\n\nSignature.prototype.toBytes = function toBytes() {\n return this.Rencoded().concat(this.Sencoded());\n};\n\nSignature.prototype.toHex = function toHex() {\n return utils.encode(this.toBytes(), 'hex').toUpperCase();\n};\n\nmodule.exports = Signature;","// from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js\n// Fedor, you are amazing.\n'use strict';\n\nvar asn1 = require('asn1.js');\n\nexports.certificate = require('./certificate');\nvar RSAPrivateKey = asn1.define('RSAPrivateKey', function () {\n this.seq().obj(this.key('version').int(), this.key('modulus').int(), this.key('publicExponent').int(), this.key('privateExponent').int(), this.key('prime1').int(), this.key('prime2').int(), this.key('exponent1').int(), this.key('exponent2').int(), this.key('coefficient').int());\n});\nexports.RSAPrivateKey = RSAPrivateKey;\nvar RSAPublicKey = asn1.define('RSAPublicKey', function () {\n this.seq().obj(this.key('modulus').int(), this.key('publicExponent').int());\n});\nexports.RSAPublicKey = RSAPublicKey;\nvar PublicKey = asn1.define('SubjectPublicKeyInfo', function () {\n this.seq().obj(this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPublicKey').bitstr());\n});\nexports.PublicKey = PublicKey;\nvar AlgorithmIdentifier = asn1.define('AlgorithmIdentifier', function () {\n this.seq().obj(this.key('algorithm').objid(), this.key('none').null_().optional(), this.key('curve').objid().optional(), this.key('params').seq().obj(this.key('p').int(), this.key('q').int(), this.key('g').int()).optional());\n});\nvar PrivateKeyInfo = asn1.define('PrivateKeyInfo', function () {\n this.seq().obj(this.key('version').int(), this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPrivateKey').octstr());\n});\nexports.PrivateKey = PrivateKeyInfo;\nvar EncryptedPrivateKeyInfo = asn1.define('EncryptedPrivateKeyInfo', function () {\n this.seq().obj(this.key('algorithm').seq().obj(this.key('id').objid(), this.key('decrypt').seq().obj(this.key('kde').seq().obj(this.key('id').objid(), this.key('kdeparams').seq().obj(this.key('salt').octstr(), this.key('iters').int())), this.key('cipher').seq().obj(this.key('algo').objid(), this.key('iv').octstr()))), this.key('subjectPrivateKey').octstr());\n});\nexports.EncryptedPrivateKey = EncryptedPrivateKeyInfo;\nvar DSAPrivateKey = asn1.define('DSAPrivateKey', function () {\n this.seq().obj(this.key('version').int(), this.key('p').int(), this.key('q').int(), this.key('g').int(), this.key('pub_key').int(), this.key('priv_key').int());\n});\nexports.DSAPrivateKey = DSAPrivateKey;\nexports.DSAparam = asn1.define('DSAparam', function () {\n this.int();\n});\nvar ECPrivateKey = asn1.define('ECPrivateKey', function () {\n this.seq().obj(this.key('version').int(), this.key('privateKey').octstr(), this.key('parameters').optional().explicit(0).use(ECParameters), this.key('publicKey').optional().explicit(1).bitstr());\n});\nexports.ECPrivateKey = ECPrivateKey;\nvar ECParameters = asn1.define('ECParameters', function () {\n this.choice({\n namedCurve: this.objid()\n });\n});\nexports.signature = asn1.define('signature', function () {\n this.seq().obj(this.key('r').int(), this.key('s').int());\n});","'use strict';\n\nvar encoders = require('./encoders');\n\nvar decoders = require('./decoders');\n\nvar inherits = require('inherits');\n\nvar api = exports;\n\napi.define = function define(name, body) {\n return new Entity(name, body);\n};\n\nfunction Entity(name, body) {\n this.name = name;\n this.body = body;\n this.decoders = {};\n this.encoders = {};\n}\n\nEntity.prototype._createNamed = function createNamed(Base) {\n var name = this.name;\n\n function Generated(entity) {\n this._initNamed(entity, name);\n }\n\n inherits(Generated, Base);\n\n Generated.prototype._initNamed = function _initNamed(entity, name) {\n Base.call(this, entity, name);\n };\n\n return new Generated(this);\n};\n\nEntity.prototype._getDecoder = function _getDecoder(enc) {\n enc = enc || 'der'; // Lazily create decoder\n\n if (!this.decoders.hasOwnProperty(enc)) this.decoders[enc] = this._createNamed(decoders[enc]);\n return this.decoders[enc];\n};\n\nEntity.prototype.decode = function decode(data, enc, options) {\n return this._getDecoder(enc).decode(data, options);\n};\n\nEntity.prototype._getEncoder = function _getEncoder(enc) {\n enc = enc || 'der'; // Lazily create encoder\n\n if (!this.encoders.hasOwnProperty(enc)) this.encoders[enc] = this._createNamed(encoders[enc]);\n return this.encoders[enc];\n};\n\nEntity.prototype.encode = function encode(data, enc,\n/* internal */\nreporter) {\n return this._getEncoder(enc).encode(data, reporter);\n};","'use strict';\n\nvar inherits = require('inherits');\n\nvar DEREncoder = require('./der');\n\nfunction PEMEncoder(entity) {\n DEREncoder.call(this, entity);\n this.enc = 'pem';\n}\n\ninherits(PEMEncoder, DEREncoder);\nmodule.exports = PEMEncoder;\n\nPEMEncoder.prototype.encode = function encode(data, options) {\n var buf = DEREncoder.prototype.encode.call(this, data);\n var p = buf.toString('base64');\n var out = ['-----BEGIN ' + options.label + '-----'];\n\n for (var i = 0; i < p.length; i += 64) {\n out.push(p.slice(i, i + 64));\n }\n\n out.push('-----END ' + options.label + '-----');\n return out.join('\\n');\n};","'use strict';\n\nvar inherits = require('inherits');\n\nvar Buffer = require('safer-buffer').Buffer;\n\nvar DERDecoder = require('./der');\n\nfunction PEMDecoder(entity) {\n DERDecoder.call(this, entity);\n this.enc = 'pem';\n}\n\ninherits(PEMDecoder, DERDecoder);\nmodule.exports = PEMDecoder;\n\nPEMDecoder.prototype.decode = function decode(data, options) {\n var lines = data.toString().split(/[\\r\\n]+/g);\n var label = options.label.toUpperCase();\n var re = /^-----(BEGIN|END) ([^-]+)-----$/;\n var start = -1;\n var end = -1;\n\n for (var i = 0; i < lines.length; i++) {\n var match = lines[i].match(re);\n if (match === null) continue;\n if (match[2] !== label) continue;\n\n if (start === -1) {\n if (match[1] !== 'BEGIN') break;\n start = i;\n } else {\n if (match[1] !== 'END') break;\n end = i;\n break;\n }\n }\n\n if (start === -1 || end === -1) throw new Error('PEM section not found for: ' + label);\n var base64 = lines.slice(start + 1, end).join(''); // Remove excessive symbols\n\n base64.replace(/[^a-z0-9+/=]+/gi, '');\n var input = Buffer.from(base64, 'base64');\n return DERDecoder.prototype.decode.call(this, input, options);\n};","'use strict';\n\nvar base = exports;\nbase.Reporter = require('./reporter').Reporter;\nbase.DecoderBuffer = require('./buffer').DecoderBuffer;\nbase.EncoderBuffer = require('./buffer').EncoderBuffer;\nbase.Node = require('./node');","'use strict';\n\nvar constants = exports; // Helper\n\nconstants._reverse = function reverse(map) {\n var res = {};\n Object.keys(map).forEach(function (key) {\n // Convert key to integer if it is stringified\n if ((key | 0) == key) key = key | 0;\n var value = map[key];\n res[value] = key;\n });\n return res;\n};\n\nconstants.der = require('./der');","// from https://github.com/Rantanen/node-dtls/blob/25a7dc861bda38cfeac93a723500eea4f0ac2e86/Certificate.js\n// thanks to @Rantanen\n'use strict';\n\nvar asn = require('asn1.js');\n\nvar Time = asn.define('Time', function () {\n this.choice({\n utcTime: this.utctime(),\n generalTime: this.gentime()\n });\n});\nvar AttributeTypeValue = asn.define('AttributeTypeValue', function () {\n this.seq().obj(this.key('type').objid(), this.key('value').any());\n});\nvar AlgorithmIdentifier = asn.define('AlgorithmIdentifier', function () {\n this.seq().obj(this.key('algorithm').objid(), this.key('parameters').optional(), this.key('curve').objid().optional());\n});\nvar SubjectPublicKeyInfo = asn.define('SubjectPublicKeyInfo', function () {\n this.seq().obj(this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPublicKey').bitstr());\n});\nvar RelativeDistinguishedName = asn.define('RelativeDistinguishedName', function () {\n this.setof(AttributeTypeValue);\n});\nvar RDNSequence = asn.define('RDNSequence', function () {\n this.seqof(RelativeDistinguishedName);\n});\nvar Name = asn.define('Name', function () {\n this.choice({\n rdnSequence: this.use(RDNSequence)\n });\n});\nvar Validity = asn.define('Validity', function () {\n this.seq().obj(this.key('notBefore').use(Time), this.key('notAfter').use(Time));\n});\nvar Extension = asn.define('Extension', function () {\n this.seq().obj(this.key('extnID').objid(), this.key('critical').bool().def(false), this.key('extnValue').octstr());\n});\nvar TBSCertificate = asn.define('TBSCertificate', function () {\n this.seq().obj(this.key('version').explicit(0).int().optional(), this.key('serialNumber').int(), this.key('signature').use(AlgorithmIdentifier), this.key('issuer').use(Name), this.key('validity').use(Validity), this.key('subject').use(Name), this.key('subjectPublicKeyInfo').use(SubjectPublicKeyInfo), this.key('issuerUniqueID').implicit(1).bitstr().optional(), this.key('subjectUniqueID').implicit(2).bitstr().optional(), this.key('extensions').explicit(3).seqof(Extension).optional());\n});\nvar X509Certificate = asn.define('X509Certificate', function () {\n this.seq().obj(this.key('tbsCertificate').use(TBSCertificate), this.key('signatureAlgorithm').use(AlgorithmIdentifier), this.key('signatureValue').bitstr());\n});\nmodule.exports = X509Certificate;","// adapted from https://github.com/apatil/pemstrip\nvar findProc = /Proc-Type: 4,ENCRYPTED[\\n\\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\\n\\r]+([0-9A-z\\n\\r+/=]+)[\\n\\r]+/m;\nvar startRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m;\nvar fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\\n\\r+/=]+)-----END \\1-----$/m;\n\nvar evp = require('evp_bytestokey');\n\nvar ciphers = require('browserify-aes');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nmodule.exports = function (okey, password) {\n var key = okey.toString();\n var match = key.match(findProc);\n var decrypted;\n\n if (!match) {\n var match2 = key.match(fullRegex);\n decrypted = Buffer.from(match2[2].replace(/[\\r\\n]/g, ''), 'base64');\n } else {\n var suite = 'aes' + match[1];\n var iv = Buffer.from(match[2], 'hex');\n var cipherText = Buffer.from(match[3].replace(/[\\r\\n]/g, ''), 'base64');\n var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key;\n var out = [];\n var cipher = ciphers.createDecipheriv(suite, cipherKey, iv);\n out.push(cipher.update(cipherText));\n out.push(cipher.final());\n decrypted = Buffer.concat(out);\n }\n\n var tag = key.match(startRegex)[1];\n return {\n tag: tag,\n data: decrypted\n };\n};","// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js\nvar Buffer = require('safe-buffer').Buffer;\n\nvar BN = require('bn.js');\n\nvar EC = require('elliptic').ec;\n\nvar parseKeys = require('parse-asn1');\n\nvar curves = require('./curves.json');\n\nfunction verify(sig, hash, key, signType, tag) {\n var pub = parseKeys(key);\n\n if (pub.type === 'ec') {\n // rsa keys can be interpreted as ecdsa ones in openssl\n if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type');\n return ecVerify(sig, hash, pub);\n } else if (pub.type === 'dsa') {\n if (signType !== 'dsa') throw new Error('wrong public key type');\n return dsaVerify(sig, hash, pub);\n } else {\n if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type');\n }\n\n hash = Buffer.concat([tag, hash]);\n var len = pub.modulus.byteLength();\n var pad = [1];\n var padNum = 0;\n\n while (hash.length + pad.length + 2 < len) {\n pad.push(0xff);\n padNum++;\n }\n\n pad.push(0x00);\n var i = -1;\n\n while (++i < hash.length) {\n pad.push(hash[i]);\n }\n\n pad = Buffer.from(pad);\n var red = BN.mont(pub.modulus);\n sig = new BN(sig).toRed(red);\n sig = sig.redPow(new BN(pub.publicExponent));\n sig = Buffer.from(sig.fromRed().toArray());\n var out = padNum < 8 ? 1 : 0;\n len = Math.min(sig.length, pad.length);\n if (sig.length !== pad.length) out = 1;\n i = -1;\n\n while (++i < len) {\n out |= sig[i] ^ pad[i];\n }\n\n return out === 0;\n}\n\nfunction ecVerify(sig, hash, pub) {\n var curveId = curves[pub.data.algorithm.curve.join('.')];\n if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'));\n var curve = new EC(curveId);\n var pubkey = pub.data.subjectPrivateKey.data;\n return curve.verify(hash, sig, pubkey);\n}\n\nfunction dsaVerify(sig, hash, pub) {\n var p = pub.data.p;\n var q = pub.data.q;\n var g = pub.data.g;\n var y = pub.data.pub_key;\n var unpacked = parseKeys.signature.decode(sig, 'der');\n var s = unpacked.s;\n var r = unpacked.r;\n checkValue(s, q);\n checkValue(r, q);\n var montp = BN.mont(p);\n var w = s.invm(q);\n var v = g.toRed(montp).redPow(new BN(hash).mul(w).mod(q)).fromRed().mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed()).mod(p).mod(q);\n return v.cmp(r) === 0;\n}\n\nfunction checkValue(b, q) {\n if (b.cmpn(0) <= 0) throw new Error('invalid sig');\n if (b.cmp(q) >= q) throw new Error('invalid sig');\n}\n\nmodule.exports = verify;","var elliptic = require('elliptic');\n\nvar BN = require('bn.js');\n\nmodule.exports = function createECDH(curve) {\n return new ECDH(curve);\n};\n\nvar aliases = {\n secp256k1: {\n name: 'secp256k1',\n byteLength: 32\n },\n secp224r1: {\n name: 'p224',\n byteLength: 28\n },\n prime256v1: {\n name: 'p256',\n byteLength: 32\n },\n prime192v1: {\n name: 'p192',\n byteLength: 24\n },\n ed25519: {\n name: 'ed25519',\n byteLength: 32\n },\n secp384r1: {\n name: 'p384',\n byteLength: 48\n },\n secp521r1: {\n name: 'p521',\n byteLength: 66\n }\n};\naliases.p224 = aliases.secp224r1;\naliases.p256 = aliases.secp256r1 = aliases.prime256v1;\naliases.p192 = aliases.secp192r1 = aliases.prime192v1;\naliases.p384 = aliases.secp384r1;\naliases.p521 = aliases.secp521r1;\n\nfunction ECDH(curve) {\n this.curveType = aliases[curve];\n\n if (!this.curveType) {\n this.curveType = {\n name: curve\n };\n }\n\n this.curve = new elliptic.ec(this.curveType.name); // eslint-disable-line new-cap\n\n this.keys = void 0;\n}\n\nECDH.prototype.generateKeys = function (enc, format) {\n this.keys = this.curve.genKeyPair();\n return this.getPublicKey(enc, format);\n};\n\nECDH.prototype.computeSecret = function (other, inenc, enc) {\n inenc = inenc || 'utf8';\n\n if (!Buffer.isBuffer(other)) {\n other = new Buffer(other, inenc);\n }\n\n var otherPub = this.curve.keyFromPublic(other).getPublic();\n var out = otherPub.mul(this.keys.getPrivate()).getX();\n return formatReturnValue(out, enc, this.curveType.byteLength);\n};\n\nECDH.prototype.getPublicKey = function (enc, format) {\n var key = this.keys.getPublic(format === 'compressed', true);\n\n if (format === 'hybrid') {\n if (key[key.length - 1] % 2) {\n key[0] = 7;\n } else {\n key[0] = 6;\n }\n }\n\n return formatReturnValue(key, enc);\n};\n\nECDH.prototype.getPrivateKey = function (enc) {\n return formatReturnValue(this.keys.getPrivate(), enc);\n};\n\nECDH.prototype.setPublicKey = function (pub, enc) {\n enc = enc || 'utf8';\n\n if (!Buffer.isBuffer(pub)) {\n pub = new Buffer(pub, enc);\n }\n\n this.keys._importPublic(pub);\n\n return this;\n};\n\nECDH.prototype.setPrivateKey = function (priv, enc) {\n enc = enc || 'utf8';\n\n if (!Buffer.isBuffer(priv)) {\n priv = new Buffer(priv, enc);\n }\n\n var _priv = new BN(priv);\n\n _priv = _priv.toString(16);\n this.keys = this.curve.genKeyPair();\n\n this.keys._importPrivate(_priv);\n\n return this;\n};\n\nfunction formatReturnValue(bn, enc, len) {\n if (!Array.isArray(bn)) {\n bn = bn.toArray();\n }\n\n var buf = new Buffer(bn);\n\n if (len && buf.length < len) {\n var zeros = new Buffer(len - buf.length);\n zeros.fill(0);\n buf = Buffer.concat([zeros, buf]);\n }\n\n if (!enc) {\n return buf;\n } else {\n return buf.toString(enc);\n }\n}","exports.publicEncrypt = require('./publicEncrypt');\nexports.privateDecrypt = require('./privateDecrypt');\n\nexports.privateEncrypt = function privateEncrypt(key, buf) {\n return exports.publicEncrypt(key, buf, true);\n};\n\nexports.publicDecrypt = function publicDecrypt(key, buf) {\n return exports.privateDecrypt(key, buf, true);\n};","var parseKeys = require('parse-asn1');\n\nvar randomBytes = require('randombytes');\n\nvar createHash = require('create-hash');\n\nvar mgf = require('./mgf');\n\nvar xor = require('./xor');\n\nvar BN = require('bn.js');\n\nvar withPublic = require('./withPublic');\n\nvar crt = require('browserify-rsa');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nmodule.exports = function publicEncrypt(publicKey, msg, reverse) {\n var padding;\n\n if (publicKey.padding) {\n padding = publicKey.padding;\n } else if (reverse) {\n padding = 1;\n } else {\n padding = 4;\n }\n\n var key = parseKeys(publicKey);\n var paddedMsg;\n\n if (padding === 4) {\n paddedMsg = oaep(key, msg);\n } else if (padding === 1) {\n paddedMsg = pkcs1(key, msg, reverse);\n } else if (padding === 3) {\n paddedMsg = new BN(msg);\n\n if (paddedMsg.cmp(key.modulus) >= 0) {\n throw new Error('data too long for modulus');\n }\n } else {\n throw new Error('unknown padding');\n }\n\n if (reverse) {\n return crt(paddedMsg, key);\n } else {\n return withPublic(paddedMsg, key);\n }\n};\n\nfunction oaep(key, msg) {\n var k = key.modulus.byteLength();\n var mLen = msg.length;\n var iHash = createHash('sha1').update(Buffer.alloc(0)).digest();\n var hLen = iHash.length;\n var hLen2 = 2 * hLen;\n\n if (mLen > k - hLen2 - 2) {\n throw new Error('message too long');\n }\n\n var ps = Buffer.alloc(k - mLen - hLen2 - 2);\n var dblen = k - hLen - 1;\n var seed = randomBytes(hLen);\n var maskedDb = xor(Buffer.concat([iHash, ps, Buffer.alloc(1, 1), msg], dblen), mgf(seed, dblen));\n var maskedSeed = xor(seed, mgf(maskedDb, hLen));\n return new BN(Buffer.concat([Buffer.alloc(1), maskedSeed, maskedDb], k));\n}\n\nfunction pkcs1(key, msg, reverse) {\n var mLen = msg.length;\n var k = key.modulus.byteLength();\n\n if (mLen > k - 11) {\n throw new Error('message too long');\n }\n\n var ps;\n\n if (reverse) {\n ps = Buffer.alloc(k - mLen - 3, 0xff);\n } else {\n ps = nonZero(k - mLen - 3);\n }\n\n return new BN(Buffer.concat([Buffer.from([0, reverse ? 1 : 2]), ps, Buffer.alloc(1), msg], k));\n}\n\nfunction nonZero(len) {\n var out = Buffer.allocUnsafe(len);\n var i = 0;\n var cache = randomBytes(len * 2);\n var cur = 0;\n var num;\n\n while (i < len) {\n if (cur === cache.length) {\n cache = randomBytes(len * 2);\n cur = 0;\n }\n\n num = cache[cur++];\n\n if (num) {\n out[i++] = num;\n }\n }\n\n return out;\n}","var parseKeys = require('parse-asn1');\n\nvar mgf = require('./mgf');\n\nvar xor = require('./xor');\n\nvar BN = require('bn.js');\n\nvar crt = require('browserify-rsa');\n\nvar createHash = require('create-hash');\n\nvar withPublic = require('./withPublic');\n\nvar Buffer = require('safe-buffer').Buffer;\n\nmodule.exports = function privateDecrypt(privateKey, enc, reverse) {\n var padding;\n\n if (privateKey.padding) {\n padding = privateKey.padding;\n } else if (reverse) {\n padding = 1;\n } else {\n padding = 4;\n }\n\n var key = parseKeys(privateKey);\n var k = key.modulus.byteLength();\n\n if (enc.length > k || new BN(enc).cmp(key.modulus) >= 0) {\n throw new Error('decryption error');\n }\n\n var msg;\n\n if (reverse) {\n msg = withPublic(new BN(enc), key);\n } else {\n msg = crt(enc, key);\n }\n\n var zBuffer = Buffer.alloc(k - msg.length);\n msg = Buffer.concat([zBuffer, msg], k);\n\n if (padding === 4) {\n return oaep(key, msg);\n } else if (padding === 1) {\n return pkcs1(key, msg, reverse);\n } else if (padding === 3) {\n return msg;\n } else {\n throw new Error('unknown padding');\n }\n};\n\nfunction oaep(key, msg) {\n var k = key.modulus.byteLength();\n var iHash = createHash('sha1').update(Buffer.alloc(0)).digest();\n var hLen = iHash.length;\n\n if (msg[0] !== 0) {\n throw new Error('decryption error');\n }\n\n var maskedSeed = msg.slice(1, hLen + 1);\n var maskedDb = msg.slice(hLen + 1);\n var seed = xor(maskedSeed, mgf(maskedDb, hLen));\n var db = xor(maskedDb, mgf(seed, k - hLen - 1));\n\n if (compare(iHash, db.slice(0, hLen))) {\n throw new Error('decryption error');\n }\n\n var i = hLen;\n\n while (db[i] === 0) {\n i++;\n }\n\n if (db[i++] !== 1) {\n throw new Error('decryption error');\n }\n\n return db.slice(i);\n}\n\nfunction pkcs1(key, msg, reverse) {\n var p1 = msg.slice(0, 2);\n var i = 2;\n var status = 0;\n\n while (msg[i++] !== 0) {\n if (i >= msg.length) {\n status++;\n break;\n }\n }\n\n var ps = msg.slice(2, i - 1);\n\n if (p1.toString('hex') !== '0002' && !reverse || p1.toString('hex') !== '0001' && reverse) {\n status++;\n }\n\n if (ps.length < 8) {\n status++;\n }\n\n if (status) {\n throw new Error('decryption error');\n }\n\n return msg.slice(i);\n}\n\nfunction compare(a, b) {\n a = Buffer.from(a);\n b = Buffer.from(b);\n var dif = 0;\n var len = a.length;\n\n if (a.length !== b.length) {\n dif++;\n len = Math.min(a.length, b.length);\n }\n\n var i = -1;\n\n while (++i < len) {\n dif += a[i] ^ b[i];\n }\n\n return dif;\n}","'use strict';\n\nfunction oldBrowser() {\n throw new Error('secure random number generation not supported by this browser\\nuse chrome, FireFox or Internet Explorer 11');\n}\n\nvar safeBuffer = require('safe-buffer');\n\nvar randombytes = require('randombytes');\n\nvar Buffer = safeBuffer.Buffer;\nvar kBufferMaxLength = safeBuffer.kMaxLength;\nvar crypto = global.crypto || global.msCrypto;\nvar kMaxUint32 = Math.pow(2, 32) - 1;\n\nfunction assertOffset(offset, length) {\n if (typeof offset !== 'number' || offset !== offset) {\n // eslint-disable-line no-self-compare\n throw new TypeError('offset must be a number');\n }\n\n if (offset > kMaxUint32 || offset < 0) {\n throw new TypeError('offset must be a uint32');\n }\n\n if (offset > kBufferMaxLength || offset > length) {\n throw new RangeError('offset out of range');\n }\n}\n\nfunction assertSize(size, offset, length) {\n if (typeof size !== 'number' || size !== size) {\n // eslint-disable-line no-self-compare\n throw new TypeError('size must be a number');\n }\n\n if (size > kMaxUint32 || size < 0) {\n throw new TypeError('size must be a uint32');\n }\n\n if (size + offset > length || size > kBufferMaxLength) {\n throw new RangeError('buffer too small');\n }\n}\n\nif (crypto && crypto.getRandomValues || !process.browser) {\n exports.randomFill = randomFill;\n exports.randomFillSync = randomFillSync;\n} else {\n exports.randomFill = oldBrowser;\n exports.randomFillSync = oldBrowser;\n}\n\nfunction randomFill(buf, offset, size, cb) {\n if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {\n throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');\n }\n\n if (typeof offset === 'function') {\n cb = offset;\n offset = 0;\n size = buf.length;\n } else if (typeof size === 'function') {\n cb = size;\n size = buf.length - offset;\n } else if (typeof cb !== 'function') {\n throw new TypeError('\"cb\" argument must be a function');\n }\n\n assertOffset(offset, buf.length);\n assertSize(size, offset, buf.length);\n return actualFill(buf, offset, size, cb);\n}\n\nfunction actualFill(buf, offset, size, cb) {\n if (process.browser) {\n var ourBuf = buf.buffer;\n var uint = new Uint8Array(ourBuf, offset, size);\n crypto.getRandomValues(uint);\n\n if (cb) {\n process.nextTick(function () {\n cb(null, buf);\n });\n return;\n }\n\n return buf;\n }\n\n if (cb) {\n randombytes(size, function (err, bytes) {\n if (err) {\n return cb(err);\n }\n\n bytes.copy(buf, offset);\n cb(null, buf);\n });\n return;\n }\n\n var bytes = randombytes(size);\n bytes.copy(buf, offset);\n return buf;\n}\n\nfunction randomFillSync(buf, offset, size) {\n if (typeof offset === 'undefined') {\n offset = 0;\n }\n\n if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {\n throw new TypeError('\"buf\" argument must be a Buffer or Uint8Array');\n }\n\n assertOffset(offset, buf.length);\n if (size === undefined) size = buf.length - offset;\n assertSize(size, offset, buf.length);\n return actualFill(buf, offset, size);\n}","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.18.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var global = require('../internals/global');\n\nmodule.exports = function (key, value) {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : String(key);\n};\n","var isCallable = require('../internals/is-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && Object(it) instanceof $Symbol;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","/**\n * @fileoverview\n * - Using the 'QRCode for Javascript library'\n * - Fixed dataset of 'QRCode for Javascript library' for support full-spec.\n * - this library has no dependencies.\n * \n * @author davidshimjs\n * @see http://www.d-project.com/\n * @see http://jeromeetienne.github.com/jquery-qrcode/\n */\nvar QRCode;\n\n(function () {\n //---------------------------------------------------------------------\n // QRCode for JavaScript\n //\n // Copyright (c) 2009 Kazuhiko Arase\n //\n // URL: http://www.d-project.com/\n //\n // Licensed under the MIT license:\n // http://www.opensource.org/licenses/mit-license.php\n //\n // The word \"QR Code\" is registered trademark of \n // DENSO WAVE INCORPORATED\n // http://www.denso-wave.com/qrcode/faqpatent-e.html\n //\n //---------------------------------------------------------------------\n function QR8bitByte(data) {\n this.mode = QRMode.MODE_8BIT_BYTE;\n this.data = data;\n this.parsedData = []; // Added to support UTF-8 Characters\n\n for (var i = 0, l = this.data.length; i < l; i++) {\n var byteArray = [];\n var code = this.data.charCodeAt(i);\n\n if (code > 0x10000) {\n byteArray[0] = 0xF0 | (code & 0x1C0000) >>> 18;\n byteArray[1] = 0x80 | (code & 0x3F000) >>> 12;\n byteArray[2] = 0x80 | (code & 0xFC0) >>> 6;\n byteArray[3] = 0x80 | code & 0x3F;\n } else if (code > 0x800) {\n byteArray[0] = 0xE0 | (code & 0xF000) >>> 12;\n byteArray[1] = 0x80 | (code & 0xFC0) >>> 6;\n byteArray[2] = 0x80 | code & 0x3F;\n } else if (code > 0x80) {\n byteArray[0] = 0xC0 | (code & 0x7C0) >>> 6;\n byteArray[1] = 0x80 | code & 0x3F;\n } else {\n byteArray[0] = code;\n }\n\n this.parsedData.push(byteArray);\n }\n\n this.parsedData = Array.prototype.concat.apply([], this.parsedData);\n\n if (this.parsedData.length != this.data.length) {\n this.parsedData.unshift(191);\n this.parsedData.unshift(187);\n this.parsedData.unshift(239);\n }\n }\n\n QR8bitByte.prototype = {\n getLength: function getLength(buffer) {\n return this.parsedData.length;\n },\n write: function write(buffer) {\n for (var i = 0, l = this.parsedData.length; i < l; i++) {\n buffer.put(this.parsedData[i], 8);\n }\n }\n };\n\n function QRCodeModel(typeNumber, errorCorrectLevel) {\n this.typeNumber = typeNumber;\n this.errorCorrectLevel = errorCorrectLevel;\n this.modules = null;\n this.moduleCount = 0;\n this.dataCache = null;\n this.dataList = [];\n }\n\n QRCodeModel.prototype = {\n addData: function addData(data) {\n var newData = new QR8bitByte(data);\n this.dataList.push(newData);\n this.dataCache = null;\n },\n isDark: function isDark(row, col) {\n if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {\n throw new Error(row + \",\" + col);\n }\n\n return this.modules[row][col];\n },\n getModuleCount: function getModuleCount() {\n return this.moduleCount;\n },\n make: function make() {\n this.makeImpl(false, this.getBestMaskPattern());\n },\n makeImpl: function makeImpl(test, maskPattern) {\n this.moduleCount = this.typeNumber * 4 + 17;\n this.modules = new Array(this.moduleCount);\n\n for (var row = 0; row < this.moduleCount; row++) {\n this.modules[row] = new Array(this.moduleCount);\n\n for (var col = 0; col < this.moduleCount; col++) {\n this.modules[row][col] = null;\n }\n }\n\n this.setupPositionProbePattern(0, 0);\n this.setupPositionProbePattern(this.moduleCount - 7, 0);\n this.setupPositionProbePattern(0, this.moduleCount - 7);\n this.setupPositionAdjustPattern();\n this.setupTimingPattern();\n this.setupTypeInfo(test, maskPattern);\n\n if (this.typeNumber >= 7) {\n this.setupTypeNumber(test);\n }\n\n if (this.dataCache == null) {\n this.dataCache = QRCodeModel.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);\n }\n\n this.mapData(this.dataCache, maskPattern);\n },\n setupPositionProbePattern: function setupPositionProbePattern(row, col) {\n for (var r = -1; r <= 7; r++) {\n if (row + r <= -1 || this.moduleCount <= row + r) continue;\n\n for (var c = -1; c <= 7; c++) {\n if (col + c <= -1 || this.moduleCount <= col + c) continue;\n\n if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {\n this.modules[row + r][col + c] = true;\n } else {\n this.modules[row + r][col + c] = false;\n }\n }\n }\n },\n getBestMaskPattern: function getBestMaskPattern() {\n var minLostPoint = 0;\n var pattern = 0;\n\n for (var i = 0; i < 8; i++) {\n this.makeImpl(true, i);\n var lostPoint = QRUtil.getLostPoint(this);\n\n if (i == 0 || minLostPoint > lostPoint) {\n minLostPoint = lostPoint;\n pattern = i;\n }\n }\n\n return pattern;\n },\n createMovieClip: function createMovieClip(target_mc, instance_name, depth) {\n var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);\n var cs = 1;\n this.make();\n\n for (var row = 0; row < this.modules.length; row++) {\n var y = row * cs;\n\n for (var col = 0; col < this.modules[row].length; col++) {\n var x = col * cs;\n var dark = this.modules[row][col];\n\n if (dark) {\n qr_mc.beginFill(0, 100);\n qr_mc.moveTo(x, y);\n qr_mc.lineTo(x + cs, y);\n qr_mc.lineTo(x + cs, y + cs);\n qr_mc.lineTo(x, y + cs);\n qr_mc.endFill();\n }\n }\n }\n\n return qr_mc;\n },\n setupTimingPattern: function setupTimingPattern() {\n for (var r = 8; r < this.moduleCount - 8; r++) {\n if (this.modules[r][6] != null) {\n continue;\n }\n\n this.modules[r][6] = r % 2 == 0;\n }\n\n for (var c = 8; c < this.moduleCount - 8; c++) {\n if (this.modules[6][c] != null) {\n continue;\n }\n\n this.modules[6][c] = c % 2 == 0;\n }\n },\n setupPositionAdjustPattern: function setupPositionAdjustPattern() {\n var pos = QRUtil.getPatternPosition(this.typeNumber);\n\n for (var i = 0; i < pos.length; i++) {\n for (var j = 0; j < pos.length; j++) {\n var row = pos[i];\n var col = pos[j];\n\n if (this.modules[row][col] != null) {\n continue;\n }\n\n for (var r = -2; r <= 2; r++) {\n for (var c = -2; c <= 2; c++) {\n if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {\n this.modules[row + r][col + c] = true;\n } else {\n this.modules[row + r][col + c] = false;\n }\n }\n }\n }\n }\n },\n setupTypeNumber: function setupTypeNumber(test) {\n var bits = QRUtil.getBCHTypeNumber(this.typeNumber);\n\n for (var i = 0; i < 18; i++) {\n var mod = !test && (bits >> i & 1) == 1;\n this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;\n }\n\n for (var i = 0; i < 18; i++) {\n var mod = !test && (bits >> i & 1) == 1;\n this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;\n }\n },\n setupTypeInfo: function setupTypeInfo(test, maskPattern) {\n var data = this.errorCorrectLevel << 3 | maskPattern;\n var bits = QRUtil.getBCHTypeInfo(data);\n\n for (var i = 0; i < 15; i++) {\n var mod = !test && (bits >> i & 1) == 1;\n\n if (i < 6) {\n this.modules[i][8] = mod;\n } else if (i < 8) {\n this.modules[i + 1][8] = mod;\n } else {\n this.modules[this.moduleCount - 15 + i][8] = mod;\n }\n }\n\n for (var i = 0; i < 15; i++) {\n var mod = !test && (bits >> i & 1) == 1;\n\n if (i < 8) {\n this.modules[8][this.moduleCount - i - 1] = mod;\n } else if (i < 9) {\n this.modules[8][15 - i - 1 + 1] = mod;\n } else {\n this.modules[8][15 - i - 1] = mod;\n }\n }\n\n this.modules[this.moduleCount - 8][8] = !test;\n },\n mapData: function mapData(data, maskPattern) {\n var inc = -1;\n var row = this.moduleCount - 1;\n var bitIndex = 7;\n var byteIndex = 0;\n\n for (var col = this.moduleCount - 1; col > 0; col -= 2) {\n if (col == 6) col--;\n\n while (true) {\n for (var c = 0; c < 2; c++) {\n if (this.modules[row][col - c] == null) {\n var dark = false;\n\n if (byteIndex < data.length) {\n dark = (data[byteIndex] >>> bitIndex & 1) == 1;\n }\n\n var mask = QRUtil.getMask(maskPattern, row, col - c);\n\n if (mask) {\n dark = !dark;\n }\n\n this.modules[row][col - c] = dark;\n bitIndex--;\n\n if (bitIndex == -1) {\n byteIndex++;\n bitIndex = 7;\n }\n }\n }\n\n row += inc;\n\n if (row < 0 || this.moduleCount <= row) {\n row -= inc;\n inc = -inc;\n break;\n }\n }\n }\n }\n };\n QRCodeModel.PAD0 = 0xEC;\n QRCodeModel.PAD1 = 0x11;\n\n QRCodeModel.createData = function (typeNumber, errorCorrectLevel, dataList) {\n var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel);\n var buffer = new QRBitBuffer();\n\n for (var i = 0; i < dataList.length; i++) {\n var data = dataList[i];\n buffer.put(data.mode, 4);\n buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber));\n data.write(buffer);\n }\n\n var totalDataCount = 0;\n\n for (var i = 0; i < rsBlocks.length; i++) {\n totalDataCount += rsBlocks[i].dataCount;\n }\n\n if (buffer.getLengthInBits() > totalDataCount * 8) {\n throw new Error(\"code length overflow. (\" + buffer.getLengthInBits() + \">\" + totalDataCount * 8 + \")\");\n }\n\n if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {\n buffer.put(0, 4);\n }\n\n while (buffer.getLengthInBits() % 8 != 0) {\n buffer.putBit(false);\n }\n\n while (true) {\n if (buffer.getLengthInBits() >= totalDataCount * 8) {\n break;\n }\n\n buffer.put(QRCodeModel.PAD0, 8);\n\n if (buffer.getLengthInBits() >= totalDataCount * 8) {\n break;\n }\n\n buffer.put(QRCodeModel.PAD1, 8);\n }\n\n return QRCodeModel.createBytes(buffer, rsBlocks);\n };\n\n QRCodeModel.createBytes = function (buffer, rsBlocks) {\n var offset = 0;\n var maxDcCount = 0;\n var maxEcCount = 0;\n var dcdata = new Array(rsBlocks.length);\n var ecdata = new Array(rsBlocks.length);\n\n for (var r = 0; r < rsBlocks.length; r++) {\n var dcCount = rsBlocks[r].dataCount;\n var ecCount = rsBlocks[r].totalCount - dcCount;\n maxDcCount = Math.max(maxDcCount, dcCount);\n maxEcCount = Math.max(maxEcCount, ecCount);\n dcdata[r] = new Array(dcCount);\n\n for (var i = 0; i < dcdata[r].length; i++) {\n dcdata[r][i] = 0xff & buffer.buffer[i + offset];\n }\n\n offset += dcCount;\n var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);\n var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);\n var modPoly = rawPoly.mod(rsPoly);\n ecdata[r] = new Array(rsPoly.getLength() - 1);\n\n for (var i = 0; i < ecdata[r].length; i++) {\n var modIndex = i + modPoly.getLength() - ecdata[r].length;\n ecdata[r][i] = modIndex >= 0 ? modPoly.get(modIndex) : 0;\n }\n }\n\n var totalCodeCount = 0;\n\n for (var i = 0; i < rsBlocks.length; i++) {\n totalCodeCount += rsBlocks[i].totalCount;\n }\n\n var data = new Array(totalCodeCount);\n var index = 0;\n\n for (var i = 0; i < maxDcCount; i++) {\n for (var r = 0; r < rsBlocks.length; r++) {\n if (i < dcdata[r].length) {\n data[index++] = dcdata[r][i];\n }\n }\n }\n\n for (var i = 0; i < maxEcCount; i++) {\n for (var r = 0; r < rsBlocks.length; r++) {\n if (i < ecdata[r].length) {\n data[index++] = ecdata[r][i];\n }\n }\n }\n\n return data;\n };\n\n var QRMode = {\n MODE_NUMBER: 1 << 0,\n MODE_ALPHA_NUM: 1 << 1,\n MODE_8BIT_BYTE: 1 << 2,\n MODE_KANJI: 1 << 3\n };\n var QRErrorCorrectLevel = {\n L: 1,\n M: 0,\n Q: 3,\n H: 2\n };\n var QRMaskPattern = {\n PATTERN000: 0,\n PATTERN001: 1,\n PATTERN010: 2,\n PATTERN011: 3,\n PATTERN100: 4,\n PATTERN101: 5,\n PATTERN110: 6,\n PATTERN111: 7\n };\n var QRUtil = {\n PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],\n G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0,\n G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0,\n G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1,\n getBCHTypeInfo: function getBCHTypeInfo(data) {\n var d = data << 10;\n\n while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {\n d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);\n }\n\n return (data << 10 | d) ^ QRUtil.G15_MASK;\n },\n getBCHTypeNumber: function getBCHTypeNumber(data) {\n var d = data << 12;\n\n while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {\n d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);\n }\n\n return data << 12 | d;\n },\n getBCHDigit: function getBCHDigit(data) {\n var digit = 0;\n\n while (data != 0) {\n digit++;\n data >>>= 1;\n }\n\n return digit;\n },\n getPatternPosition: function getPatternPosition(typeNumber) {\n return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];\n },\n getMask: function getMask(maskPattern, i, j) {\n switch (maskPattern) {\n case QRMaskPattern.PATTERN000:\n return (i + j) % 2 == 0;\n\n case QRMaskPattern.PATTERN001:\n return i % 2 == 0;\n\n case QRMaskPattern.PATTERN010:\n return j % 3 == 0;\n\n case QRMaskPattern.PATTERN011:\n return (i + j) % 3 == 0;\n\n case QRMaskPattern.PATTERN100:\n return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;\n\n case QRMaskPattern.PATTERN101:\n return i * j % 2 + i * j % 3 == 0;\n\n case QRMaskPattern.PATTERN110:\n return (i * j % 2 + i * j % 3) % 2 == 0;\n\n case QRMaskPattern.PATTERN111:\n return (i * j % 3 + (i + j) % 2) % 2 == 0;\n\n default:\n throw new Error(\"bad maskPattern:\" + maskPattern);\n }\n },\n getErrorCorrectPolynomial: function getErrorCorrectPolynomial(errorCorrectLength) {\n var a = new QRPolynomial([1], 0);\n\n for (var i = 0; i < errorCorrectLength; i++) {\n a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0));\n }\n\n return a;\n },\n getLengthInBits: function getLengthInBits(mode, type) {\n if (1 <= type && type < 10) {\n switch (mode) {\n case QRMode.MODE_NUMBER:\n return 10;\n\n case QRMode.MODE_ALPHA_NUM:\n return 9;\n\n case QRMode.MODE_8BIT_BYTE:\n return 8;\n\n case QRMode.MODE_KANJI:\n return 8;\n\n default:\n throw new Error(\"mode:\" + mode);\n }\n } else if (type < 27) {\n switch (mode) {\n case QRMode.MODE_NUMBER:\n return 12;\n\n case QRMode.MODE_ALPHA_NUM:\n return 11;\n\n case QRMode.MODE_8BIT_BYTE:\n return 16;\n\n case QRMode.MODE_KANJI:\n return 10;\n\n default:\n throw new Error(\"mode:\" + mode);\n }\n } else if (type < 41) {\n switch (mode) {\n case QRMode.MODE_NUMBER:\n return 14;\n\n case QRMode.MODE_ALPHA_NUM:\n return 13;\n\n case QRMode.MODE_8BIT_BYTE:\n return 16;\n\n case QRMode.MODE_KANJI:\n return 12;\n\n default:\n throw new Error(\"mode:\" + mode);\n }\n } else {\n throw new Error(\"type:\" + type);\n }\n },\n getLostPoint: function getLostPoint(qrCode) {\n var moduleCount = qrCode.getModuleCount();\n var lostPoint = 0;\n\n for (var row = 0; row < moduleCount; row++) {\n for (var col = 0; col < moduleCount; col++) {\n var sameCount = 0;\n var dark = qrCode.isDark(row, col);\n\n for (var r = -1; r <= 1; r++) {\n if (row + r < 0 || moduleCount <= row + r) {\n continue;\n }\n\n for (var c = -1; c <= 1; c++) {\n if (col + c < 0 || moduleCount <= col + c) {\n continue;\n }\n\n if (r == 0 && c == 0) {\n continue;\n }\n\n if (dark == qrCode.isDark(row + r, col + c)) {\n sameCount++;\n }\n }\n }\n\n if (sameCount > 5) {\n lostPoint += 3 + sameCount - 5;\n }\n }\n }\n\n for (var row = 0; row < moduleCount - 1; row++) {\n for (var col = 0; col < moduleCount - 1; col++) {\n var count = 0;\n if (qrCode.isDark(row, col)) count++;\n if (qrCode.isDark(row + 1, col)) count++;\n if (qrCode.isDark(row, col + 1)) count++;\n if (qrCode.isDark(row + 1, col + 1)) count++;\n\n if (count == 0 || count == 4) {\n lostPoint += 3;\n }\n }\n }\n\n for (var row = 0; row < moduleCount; row++) {\n for (var col = 0; col < moduleCount - 6; col++) {\n if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) {\n lostPoint += 40;\n }\n }\n }\n\n for (var col = 0; col < moduleCount; col++) {\n for (var row = 0; row < moduleCount - 6; row++) {\n if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) {\n lostPoint += 40;\n }\n }\n }\n\n var darkCount = 0;\n\n for (var col = 0; col < moduleCount; col++) {\n for (var row = 0; row < moduleCount; row++) {\n if (qrCode.isDark(row, col)) {\n darkCount++;\n }\n }\n }\n\n var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;\n lostPoint += ratio * 10;\n return lostPoint;\n }\n };\n var QRMath = {\n glog: function glog(n) {\n if (n < 1) {\n throw new Error(\"glog(\" + n + \")\");\n }\n\n return QRMath.LOG_TABLE[n];\n },\n gexp: function gexp(n) {\n while (n < 0) {\n n += 255;\n }\n\n while (n >= 256) {\n n -= 255;\n }\n\n return QRMath.EXP_TABLE[n];\n },\n EXP_TABLE: new Array(256),\n LOG_TABLE: new Array(256)\n };\n\n for (var i = 0; i < 8; i++) {\n QRMath.EXP_TABLE[i] = 1 << i;\n }\n\n for (var i = 8; i < 256; i++) {\n QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];\n }\n\n for (var i = 0; i < 255; i++) {\n QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;\n }\n\n function QRPolynomial(num, shift) {\n if (num.length == undefined) {\n throw new Error(num.length + \"/\" + shift);\n }\n\n var offset = 0;\n\n while (offset < num.length && num[offset] == 0) {\n offset++;\n }\n\n this.num = new Array(num.length - offset + shift);\n\n for (var i = 0; i < num.length - offset; i++) {\n this.num[i] = num[i + offset];\n }\n }\n\n QRPolynomial.prototype = {\n get: function get(index) {\n return this.num[index];\n },\n getLength: function getLength() {\n return this.num.length;\n },\n multiply: function multiply(e) {\n var num = new Array(this.getLength() + e.getLength() - 1);\n\n for (var i = 0; i < this.getLength(); i++) {\n for (var j = 0; j < e.getLength(); j++) {\n num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j)));\n }\n }\n\n return new QRPolynomial(num, 0);\n },\n mod: function mod(e) {\n if (this.getLength() - e.getLength() < 0) {\n return this;\n }\n\n var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0));\n var num = new Array(this.getLength());\n\n for (var i = 0; i < this.getLength(); i++) {\n num[i] = this.get(i);\n }\n\n for (var i = 0; i < e.getLength(); i++) {\n num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio);\n }\n\n return new QRPolynomial(num, 0).mod(e);\n }\n };\n\n function QRRSBlock(totalCount, dataCount) {\n this.totalCount = totalCount;\n this.dataCount = dataCount;\n }\n\n QRRSBlock.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]];\n\n QRRSBlock.getRSBlocks = function (typeNumber, errorCorrectLevel) {\n var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);\n\n if (rsBlock == undefined) {\n throw new Error(\"bad rs block @ typeNumber:\" + typeNumber + \"/errorCorrectLevel:\" + errorCorrectLevel);\n }\n\n var length = rsBlock.length / 3;\n var list = [];\n\n for (var i = 0; i < length; i++) {\n var count = rsBlock[i * 3 + 0];\n var totalCount = rsBlock[i * 3 + 1];\n var dataCount = rsBlock[i * 3 + 2];\n\n for (var j = 0; j < count; j++) {\n list.push(new QRRSBlock(totalCount, dataCount));\n }\n }\n\n return list;\n };\n\n QRRSBlock.getRsBlockTable = function (typeNumber, errorCorrectLevel) {\n switch (errorCorrectLevel) {\n case QRErrorCorrectLevel.L:\n return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];\n\n case QRErrorCorrectLevel.M:\n return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];\n\n case QRErrorCorrectLevel.Q:\n return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];\n\n case QRErrorCorrectLevel.H:\n return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];\n\n default:\n return undefined;\n }\n };\n\n function QRBitBuffer() {\n this.buffer = [];\n this.length = 0;\n }\n\n QRBitBuffer.prototype = {\n get: function get(index) {\n var bufIndex = Math.floor(index / 8);\n return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;\n },\n put: function put(num, length) {\n for (var i = 0; i < length; i++) {\n this.putBit((num >>> length - i - 1 & 1) == 1);\n }\n },\n getLengthInBits: function getLengthInBits() {\n return this.length;\n },\n putBit: function putBit(bit) {\n var bufIndex = Math.floor(this.length / 8);\n\n if (this.buffer.length <= bufIndex) {\n this.buffer.push(0);\n }\n\n if (bit) {\n this.buffer[bufIndex] |= 0x80 >>> this.length % 8;\n }\n\n this.length++;\n }\n };\n var QRCodeLimitLength = [[17, 14, 11, 7], [32, 26, 20, 14], [53, 42, 32, 24], [78, 62, 46, 34], [106, 84, 60, 44], [134, 106, 74, 58], [154, 122, 86, 64], [192, 152, 108, 84], [230, 180, 130, 98], [271, 213, 151, 119], [321, 251, 177, 137], [367, 287, 203, 155], [425, 331, 241, 177], [458, 362, 258, 194], [520, 412, 292, 220], [586, 450, 322, 250], [644, 504, 364, 280], [718, 560, 394, 310], [792, 624, 442, 338], [858, 666, 482, 382], [929, 711, 509, 403], [1003, 779, 565, 439], [1091, 857, 611, 461], [1171, 911, 661, 511], [1273, 997, 715, 535], [1367, 1059, 751, 593], [1465, 1125, 805, 625], [1528, 1190, 868, 658], [1628, 1264, 908, 698], [1732, 1370, 982, 742], [1840, 1452, 1030, 790], [1952, 1538, 1112, 842], [2068, 1628, 1168, 898], [2188, 1722, 1228, 958], [2303, 1809, 1283, 983], [2431, 1911, 1351, 1051], [2563, 1989, 1423, 1093], [2699, 2099, 1499, 1139], [2809, 2213, 1579, 1219], [2953, 2331, 1663, 1273]];\n\n function _isSupportCanvas() {\n return typeof CanvasRenderingContext2D != \"undefined\";\n } // android 2.x doesn't support Data-URI spec\n\n\n function _getAndroid() {\n var android = false;\n var sAgent = navigator.userAgent;\n\n if (/android/i.test(sAgent)) {\n // android\n android = true;\n var aMat = sAgent.toString().match(/android ([0-9]\\.[0-9])/i);\n\n if (aMat && aMat[1]) {\n android = parseFloat(aMat[1]);\n }\n }\n\n return android;\n }\n\n var svgDrawer = function () {\n var Drawing = function Drawing(el, htOption) {\n this._el = el;\n this._htOption = htOption;\n };\n\n Drawing.prototype.draw = function (oQRCode) {\n var _htOption = this._htOption;\n var _el = this._el;\n var nCount = oQRCode.getModuleCount();\n var nWidth = Math.floor(_htOption.width / nCount);\n var nHeight = Math.floor(_htOption.height / nCount);\n this.clear();\n\n function makeSVG(tag, attrs) {\n var el = document.createElementNS('http://www.w3.org/2000/svg', tag);\n\n for (var k in attrs) {\n if (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);\n }\n\n return el;\n }\n\n var svg = makeSVG(\"svg\", {\n 'viewBox': '0 0 ' + String(nCount) + \" \" + String(nCount),\n 'width': '100%',\n 'height': '100%',\n 'fill': _htOption.colorLight\n });\n svg.setAttributeNS(\"http://www.w3.org/2000/xmlns/\", \"xmlns:xlink\", \"http://www.w3.org/1999/xlink\");\n\n _el.appendChild(svg);\n\n svg.appendChild(makeSVG(\"rect\", {\n \"fill\": _htOption.colorLight,\n \"width\": \"100%\",\n \"height\": \"100%\"\n }));\n svg.appendChild(makeSVG(\"rect\", {\n \"fill\": _htOption.colorDark,\n \"width\": \"1\",\n \"height\": \"1\",\n \"id\": \"template\"\n }));\n\n for (var row = 0; row < nCount; row++) {\n for (var col = 0; col < nCount; col++) {\n if (oQRCode.isDark(row, col)) {\n var child = makeSVG(\"use\", {\n \"x\": String(row),\n \"y\": String(col)\n });\n child.setAttributeNS(\"http://www.w3.org/1999/xlink\", \"href\", \"#template\");\n svg.appendChild(child);\n }\n }\n }\n };\n\n Drawing.prototype.clear = function () {\n while (this._el.hasChildNodes()) {\n this._el.removeChild(this._el.lastChild);\n }\n };\n\n return Drawing;\n }();\n\n var useSVG = document.documentElement.tagName.toLowerCase() === \"svg\"; // Drawing in DOM by using Table tag\n\n var Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? function () {\n var Drawing = function Drawing(el, htOption) {\n this._el = el;\n this._htOption = htOption;\n };\n /**\n * Draw the QRCode\n * \n * @param {QRCode} oQRCode\n */\n\n\n Drawing.prototype.draw = function (oQRCode) {\n var _htOption = this._htOption;\n var _el = this._el;\n var nCount = oQRCode.getModuleCount();\n var nWidth = Math.floor(_htOption.width / nCount);\n var nHeight = Math.floor(_htOption.height / nCount);\n var aHTML = [''];\n\n for (var row = 0; row < nCount; row++) {\n aHTML.push('');\n\n for (var col = 0; col < nCount; col++) {\n aHTML.push(' | ');\n }\n\n aHTML.push('
');\n }\n\n aHTML.push('
');\n _el.innerHTML = aHTML.join(''); // Fix the margin values as real size.\n\n var elTable = _el.childNodes[0];\n var nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;\n var nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;\n\n if (nLeftMarginTable > 0 && nTopMarginTable > 0) {\n elTable.style.margin = nTopMarginTable + \"px \" + nLeftMarginTable + \"px\";\n }\n };\n /**\n * Clear the QRCode\n */\n\n\n Drawing.prototype.clear = function () {\n this._el.innerHTML = '';\n };\n\n return Drawing;\n }() : function () {\n // Drawing in Canvas\n function _onMakeImage() {\n this._elImage.src = this._elCanvas.toDataURL(\"image/png\");\n\n this._elImage.style.setProperty(\"display\", \"block\", \"important\");\n\n this._elCanvas.style.setProperty(\"display\", \"none\", \"important\");\n } // Android 2.1 bug workaround\n // http://code.google.com/p/android/issues/detail?id=5141\n\n\n if (this._android && this._android <= 2.1) {\n var factor = 1 / window.devicePixelRatio;\n var drawImage = CanvasRenderingContext2D.prototype.drawImage;\n\n CanvasRenderingContext2D.prototype.drawImage = function (image, sx, sy, sw, sh, dx, dy, dw, dh) {\n if (\"nodeName\" in image && /img/i.test(image.nodeName)) {\n for (var i = arguments.length - 1; i >= 1; i--) {\n arguments[i] = arguments[i] * factor;\n }\n } else if (typeof dw == \"undefined\") {\n arguments[1] *= factor;\n arguments[2] *= factor;\n arguments[3] *= factor;\n arguments[4] *= factor;\n }\n\n drawImage.apply(this, arguments);\n };\n }\n /**\n * Check whether the user's browser supports Data URI or not\n * \n * @private\n * @param {Function} fSuccess Occurs if it supports Data URI\n * @param {Function} fFail Occurs if it doesn't support Data URI\n */\n\n\n function _safeSetDataURI(fSuccess, fFail) {\n var self = this;\n self._fFail = fFail;\n self._fSuccess = fSuccess; // Check it just once\n\n if (self._bSupportDataURI === null) {\n var el = document.createElement(\"img\");\n\n var fOnError = function fOnError() {\n self._bSupportDataURI = false;\n\n if (self._fFail) {\n self._fFail.call(self);\n }\n };\n\n var fOnSuccess = function fOnSuccess() {\n self._bSupportDataURI = true;\n\n if (self._fSuccess) {\n self._fSuccess.call(self);\n }\n };\n\n el.onabort = fOnError;\n el.onerror = fOnError;\n el.onload = fOnSuccess;\n el.src = \"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\"; // the Image contains 1px data.\n\n return;\n } else if (self._bSupportDataURI === true && self._fSuccess) {\n self._fSuccess.call(self);\n } else if (self._bSupportDataURI === false && self._fFail) {\n self._fFail.call(self);\n }\n }\n\n ;\n /**\n * Drawing QRCode by using canvas\n * \n * @constructor\n * @param {HTMLElement} el\n * @param {Object} htOption QRCode Options \n */\n\n var Drawing = function Drawing(el, htOption) {\n this._bIsPainted = false;\n this._android = _getAndroid();\n this._htOption = htOption;\n this._elCanvas = document.createElement(\"canvas\");\n this._elCanvas.width = htOption.width;\n this._elCanvas.height = htOption.height;\n el.appendChild(this._elCanvas);\n this._el = el;\n this._oContext = this._elCanvas.getContext(\"2d\");\n this._bIsPainted = false;\n this._elImage = document.createElement(\"img\");\n this._elImage.alt = \"Scan me!\";\n\n this._elImage.style.setProperty(\"display\", \"none\", \"important\");\n\n this._el.appendChild(this._elImage);\n\n this._bSupportDataURI = null;\n };\n /**\n * Draw the QRCode\n * \n * @param {QRCode} oQRCode \n */\n\n\n Drawing.prototype.draw = function (oQRCode) {\n var _elImage = this._elImage;\n var _oContext = this._oContext;\n var _htOption = this._htOption;\n var nCount = oQRCode.getModuleCount();\n var nWidth = _htOption.width / nCount;\n var nHeight = _htOption.height / nCount;\n var nRoundedWidth = Math.round(nWidth);\n var nRoundedHeight = Math.round(nHeight);\n\n _elImage.style.setProperty(\"display\", \"none\", \"important\");\n\n this.clear();\n\n for (var row = 0; row < nCount; row++) {\n for (var col = 0; col < nCount; col++) {\n var bIsDark = oQRCode.isDark(row, col);\n var nLeft = col * nWidth;\n var nTop = row * nHeight;\n _oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\n _oContext.lineWidth = 1;\n _oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\n\n _oContext.fillRect(nLeft, nTop, nWidth, nHeight); // 안티 앨리어싱 방지 처리\n\n\n _oContext.strokeRect(Math.floor(nLeft) + 0.5, Math.floor(nTop) + 0.5, nRoundedWidth, nRoundedHeight);\n\n _oContext.strokeRect(Math.ceil(nLeft) - 0.5, Math.ceil(nTop) - 0.5, nRoundedWidth, nRoundedHeight);\n }\n }\n\n this._bIsPainted = true;\n };\n /**\n * Make the image from Canvas if the browser supports Data URI.\n */\n\n\n Drawing.prototype.makeImage = function () {\n if (this._bIsPainted) {\n _safeSetDataURI.call(this, _onMakeImage);\n }\n };\n /**\n * Return whether the QRCode is painted or not\n * \n * @return {Boolean}\n */\n\n\n Drawing.prototype.isPainted = function () {\n return this._bIsPainted;\n };\n /**\n * Clear the QRCode\n */\n\n\n Drawing.prototype.clear = function () {\n this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);\n\n this._bIsPainted = false;\n };\n /**\n * @private\n * @param {Number} nNumber\n */\n\n\n Drawing.prototype.round = function (nNumber) {\n if (!nNumber) {\n return nNumber;\n }\n\n return Math.floor(nNumber * 1000) / 1000;\n };\n\n return Drawing;\n }();\n /**\n * Get the type by string length\n * \n * @private\n * @param {String} sText\n * @param {Number} nCorrectLevel\n * @return {Number} type\n */\n\n function _getTypeNumber(sText, nCorrectLevel) {\n var nType = 1;\n\n var length = _getUTF8Length(sText);\n\n for (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) {\n var nLimit = 0;\n\n switch (nCorrectLevel) {\n case QRErrorCorrectLevel.L:\n nLimit = QRCodeLimitLength[i][0];\n break;\n\n case QRErrorCorrectLevel.M:\n nLimit = QRCodeLimitLength[i][1];\n break;\n\n case QRErrorCorrectLevel.Q:\n nLimit = QRCodeLimitLength[i][2];\n break;\n\n case QRErrorCorrectLevel.H:\n nLimit = QRCodeLimitLength[i][3];\n break;\n }\n\n if (length <= nLimit) {\n break;\n } else {\n nType++;\n }\n }\n\n if (nType > QRCodeLimitLength.length) {\n throw new Error(\"Too long data\");\n }\n\n return nType;\n }\n\n function _getUTF8Length(sText) {\n var replacedText = encodeURI(sText).toString().replace(/\\%[0-9a-fA-F]{2}/g, 'a');\n return replacedText.length + (replacedText.length != sText ? 3 : 0);\n }\n /**\n * @class QRCode\n * @constructor\n * @example \n * new QRCode(document.getElementById(\"test\"), \"http://jindo.dev.naver.com/collie\");\n *\n * @example\n * var oQRCode = new QRCode(\"test\", {\n * text : \"http://naver.com\",\n * width : 128,\n * height : 128\n * });\n * \n * oQRCode.clear(); // Clear the QRCode.\n * oQRCode.makeCode(\"http://map.naver.com\"); // Re-create the QRCode.\n *\n * @param {HTMLElement|String} el target element or 'id' attribute of element.\n * @param {Object|String} vOption\n * @param {String} vOption.text QRCode link data\n * @param {Number} [vOption.width=256]\n * @param {Number} [vOption.height=256]\n * @param {String} [vOption.colorDark=\"#000000\"]\n * @param {String} [vOption.colorLight=\"#ffffff\"]\n * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H] \n */\n\n\n QRCode = function QRCode(el, vOption) {\n this._htOption = {\n width: 256,\n height: 256,\n typeNumber: 4,\n colorDark: \"#000000\",\n colorLight: \"#ffffff\",\n correctLevel: QRErrorCorrectLevel.H\n };\n\n if (typeof vOption === 'string') {\n vOption = {\n text: vOption\n };\n } // Overwrites options\n\n\n if (vOption) {\n for (var i in vOption) {\n this._htOption[i] = vOption[i];\n }\n }\n\n if (typeof el == \"string\") {\n el = document.getElementById(el);\n }\n\n if (this._htOption.useSVG) {\n Drawing = svgDrawer;\n }\n\n this._android = _getAndroid();\n this._el = el;\n this._oQRCode = null;\n this._oDrawing = new Drawing(this._el, this._htOption);\n\n if (this._htOption.text) {\n this.makeCode(this._htOption.text);\n }\n };\n /**\n * Make the QRCode\n * \n * @param {String} sText link data\n */\n\n\n QRCode.prototype.makeCode = function (sText) {\n this._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);\n\n this._oQRCode.addData(sText);\n\n this._oQRCode.make();\n\n this._el.title = sText;\n\n this._oDrawing.draw(this._oQRCode);\n\n this.makeImage();\n };\n /**\n * Make the Image from Canvas element\n * - It occurs automatically\n * - Android below 3 doesn't support Data-URI spec.\n * \n * @private\n */\n\n\n QRCode.prototype.makeImage = function () {\n if (typeof this._oDrawing.makeImage == \"function\" && (!this._android || this._android >= 3)) {\n this._oDrawing.makeImage();\n }\n };\n /**\n * Clear the QRCode\n */\n\n\n QRCode.prototype.clear = function () {\n this._oDrawing.clear();\n };\n /**\n * @name QRCode.CorrectLevel\n */\n\n\n QRCode.CorrectLevel = QRErrorCorrectLevel;\n})();\n\nif (module && module.exports) {\n module.exports = QRCode;\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar Clipboard = require('clipboard/dist/clipboard.min.js'); // FIXME: workaround for browserify\n\n\nvar VueClipboardConfig = {\n autoSetContainer: false,\n appendToBody: true // This fixes IE, see #50\n\n};\nvar VueClipboard = {\n install: function install(Vue) {\n var globalPrototype = Vue.version.slice(0, 2) === '3.' ? Vue.config.globalProperties : Vue.prototype;\n globalPrototype.$clipboardConfig = VueClipboardConfig;\n\n globalPrototype.$copyText = function (_text, container) {\n return new Promise(function (resolve, reject) {\n var fakeElement = document.createElement('button');\n var clipboard = new Clipboard(fakeElement, {\n text: function text() {\n return _text;\n },\n action: function action() {\n return 'copy';\n },\n container: _typeof(container) === 'object' ? container : document.body\n });\n clipboard.on('success', function (e) {\n clipboard.destroy();\n resolve(e);\n });\n clipboard.on('error', function (e) {\n clipboard.destroy();\n reject(e);\n });\n if (VueClipboardConfig.appendToBody) document.body.appendChild(fakeElement);\n fakeElement.click();\n if (VueClipboardConfig.appendToBody) document.body.removeChild(fakeElement);\n });\n };\n\n Vue.directive('clipboard', {\n bind: function bind(el, binding, vnode) {\n if (binding.arg === 'success') {\n el._vClipboard_success = binding.value;\n } else if (binding.arg === 'error') {\n el._vClipboard_error = binding.value;\n } else {\n var clipboard = new Clipboard(el, {\n text: function text() {\n return binding.value;\n },\n action: function action() {\n return binding.arg === 'cut' ? 'cut' : 'copy';\n },\n container: VueClipboardConfig.autoSetContainer ? el : undefined\n });\n clipboard.on('success', function (e) {\n var callback = el._vClipboard_success;\n callback && callback(e);\n });\n clipboard.on('error', function (e) {\n var callback = el._vClipboard_error;\n callback && callback(e);\n });\n el._vClipboard = clipboard;\n }\n },\n update: function update(el, binding) {\n if (binding.arg === 'success') {\n el._vClipboard_success = binding.value;\n } else if (binding.arg === 'error') {\n el._vClipboard_error = binding.value;\n } else {\n el._vClipboard.text = function () {\n return binding.value;\n };\n\n el._vClipboard.action = function () {\n return binding.arg === 'cut' ? 'cut' : 'copy';\n };\n }\n },\n unbind: function unbind(el, binding) {\n // FIXME: investigate why $element._vClipboard was missing\n if (!el._vClipboard) return;\n\n if (binding.arg === 'success') {\n delete el._vClipboard_success;\n } else if (binding.arg === 'error') {\n delete el._vClipboard_error;\n } else {\n el._vClipboard.destroy();\n\n delete el._vClipboard;\n }\n }\n });\n },\n config: VueClipboardConfig\n};\n\nif ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object') {\n module.exports = VueClipboard;\n} else if (typeof define === 'function' && define.amd) {\n define([], function () {\n return VueClipboard;\n });\n}","var JsBarcode = require('jsbarcode');\n\nvar VueBarcode = {\n render: function render(createElement) {\n return createElement('div', [createElement(this.elementTag, {\n style: {\n display: this.valid ? undefined : 'none'\n },\n 'class': ['vue-barcode-element']\n }), createElement('div', {\n style: {\n display: this.valid ? 'none' : undefined\n }\n }, this.$slots.default)]);\n },\n props: {\n value: [String, Number],\n format: [String],\n width: [String, Number],\n height: [String, Number],\n displayValue: {\n type: [String, Boolean],\n default: true\n },\n text: [String, Number],\n fontOptions: [String],\n font: [String],\n textAlign: [String],\n textPosition: [String],\n textMargin: [String, Number],\n fontSize: [String, Number],\n background: [String],\n lineColor: [String],\n margin: [String, Number],\n marginTop: [String, Number],\n marginBottom: [String, Number],\n marginLeft: [String, Number],\n marginRight: [String, Number],\n flat: [Boolean],\n ean128: [String, Boolean],\n elementTag: {\n type: String,\n default: 'svg',\n validator: function validator(value) {\n return ['canvas', 'svg', 'img'].indexOf(value) !== -1;\n }\n }\n },\n mounted: function mounted() {\n this.$watch('$props', render, {\n deep: true,\n immediate: true\n });\n render.call(this);\n },\n data: function data() {\n return {\n valid: true\n };\n }\n};\n\nfunction render() {\n var that = this;\n var settings = {\n format: this.format,\n width: this.width,\n height: this.height,\n displayValue: this.displayValue,\n text: this.text,\n fontOptions: this.fontOptions,\n font: this.font,\n textAlign: this.textAlign,\n textPosition: this.textPosition,\n textMargin: this.textMargin,\n fontSize: this.fontSize,\n background: this.background,\n lineColor: this.lineColor,\n margin: this.margin,\n marginTop: this.marginTop,\n marginBottom: this.marginBottom,\n marginLeft: this.marginLeft,\n marginRight: this.marginRight,\n flat: this.flat,\n ean128: this.ean128,\n valid: function valid(_valid) {\n that.valid = _valid;\n },\n elementTag: this.elementTag\n };\n removeUndefinedProps(settings);\n JsBarcode(this.$el.querySelector('.vue-barcode-element'), String(this.value), settings);\n}\n\nfunction removeUndefinedProps(obj) {\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop) && obj[prop] === undefined) {\n delete obj[prop];\n }\n }\n}\n\nmodule.exports = VueBarcode;","function _typeof2(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nimport gql from 'graphql-tag';\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof2(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction unwrapExports(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nfunction createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n}\n\nvar index_umd = createCommonjsModule(function (module, exports) {\n (function (global, factory) {\n factory(exports);\n })(commonjsGlobal, function (exports) {\n /* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n /**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset).\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @returns {Function} A new, throttled, function.\n */\n function throttle(delay, noTrailing, callback, debounceMode) {\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel() {\n clearExistingTimeout();\n cancelled = true;\n } // `noTrailing` defaults to falsy.\n\n\n if (typeof noTrailing !== 'boolean') {\n debounceMode = callback;\n callback = noTrailing;\n noTrailing = undefined;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n }\n /* eslint-disable no-undefined */\n\n /**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @returns {Function} A new, debounced function.\n */\n\n\n function debounce(delay, atBegin, callback) {\n return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n }\n\n exports.debounce = debounce;\n exports.throttle = throttle;\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n });\n});\nunwrapExports(index_umd);\nvar utils = createCommonjsModule(function (module, exports) {\n var Globals = exports.Globals = {};\n\n function factory(action) {\n return function (cb, time) {\n return action(time, cb);\n };\n }\n\n exports.throttle = factory(index_umd.throttle);\n exports.debounce = factory(index_umd.debounce);\n\n exports.getMergedDefinition = function (def) {\n return Globals.Vue.util.mergeOptions({}, def);\n };\n\n exports.reapply = function (options, context) {\n while (typeof options === 'function') {\n options = options.call(context);\n }\n\n return options;\n };\n\n exports.omit = function (obj, properties) {\n return Object.entries(obj).filter(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n key = _ref2[0];\n\n return !properties.includes(key);\n }).reduce(function (c, _ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n key = _ref4[0],\n val = _ref4[1];\n\n c[key] = val;\n return c;\n }, {});\n };\n\n exports.addGqlError = function (error) {\n if (error.graphQLErrors && error.graphQLErrors.length) {\n error.gqlError = error.graphQLErrors[0];\n }\n }; // eslint-disable-next-line @typescript-eslint/no-empty-function\n\n\n exports.noop = function () {};\n});\nvar utils_1 = utils.Globals;\nvar utils_2 = utils.throttle;\nvar utils_3 = utils.debounce;\nvar utils_4 = utils.getMergedDefinition;\nvar utils_5 = utils.reapply;\nvar utils_6 = utils.omit;\nvar utils_7 = utils.addGqlError;\nvar utils_8 = utils.noop;\n\nvar SmartApollo = /*#__PURE__*/function () {\n function SmartApollo(vm, key, options) {\n var autostart = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n\n _classCallCheck(this, SmartApollo);\n\n _defineProperty(this, \"type\", null);\n\n _defineProperty(this, \"vueApolloSpecialKeys\", []);\n\n this.vm = vm;\n this.key = key;\n this.initialOptions = options;\n this.options = Object.assign({}, options);\n this._skip = false;\n this._pollInterval = null;\n this._watchers = [];\n this._destroyed = false;\n this.lastApolloOptions = null;\n\n if (autostart) {\n this.autostart();\n }\n }\n\n _createClass(SmartApollo, [{\n key: \"autostart\",\n value: function autostart() {\n var _this = this;\n\n if (typeof this.options.skip === 'function') {\n this._skipWatcher = this.vm.$watch(function () {\n return _this.options.skip.call(_this.vm, _this.vm, _this.key);\n }, this.skipChanged.bind(this), {\n immediate: true,\n deep: this.options.deep\n });\n } else if (!this.options.skip) {\n this.start();\n } else {\n this._skip = true;\n }\n\n if (typeof this.options.pollInterval === 'function') {\n this._pollWatcher = this.vm.$watch(this.options.pollInterval.bind(this.vm), this.pollIntervalChanged.bind(this), {\n immediate: true\n });\n }\n }\n }, {\n key: \"pollIntervalChanged\",\n value: function pollIntervalChanged(value, oldValue) {\n if (value !== oldValue) {\n this.pollInterval = value;\n\n if (value == null) {\n this.stopPolling();\n } else {\n this.startPolling(value);\n }\n }\n }\n }, {\n key: \"skipChanged\",\n value: function skipChanged(value, oldValue) {\n if (value !== oldValue) {\n this.skip = value;\n }\n }\n }, {\n key: \"pollInterval\",\n get: function get() {\n return this._pollInterval;\n },\n set: function set(value) {\n this._pollInterval = value;\n }\n }, {\n key: \"skip\",\n get: function get() {\n return this._skip;\n },\n set: function set(value) {\n if (value) {\n this.stop();\n } else {\n this.start();\n }\n\n this._skip = value;\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n if (!this._skip) {\n this.stop();\n this.start();\n }\n }\n }, {\n key: \"start\",\n value: function start() {\n var _this2 = this;\n\n this.starting = true; // Reactive options\n\n var _loop = function _loop(_i2, _ref2) {\n var prop = _ref2[_i2];\n\n if (typeof _this2.initialOptions[prop] === 'function') {\n var queryCb = _this2.initialOptions[prop].bind(_this2.vm);\n\n _this2.options[prop] = queryCb();\n\n var cb = function cb(query) {\n _this2.options[prop] = query;\n\n _this2.refresh();\n };\n\n if (!_this2.vm.$isServer) {\n cb = _this2.options.throttle ? utils_2(cb, _this2.options.throttle) : cb;\n cb = _this2.options.debounce ? utils_3(cb, _this2.options.debounce) : cb;\n }\n\n _this2._watchers.push(_this2.vm.$watch(queryCb, cb, {\n deep: _this2.options.deep\n }));\n }\n };\n\n for (var _i2 = 0, _ref2 = ['query', 'document', 'context']; _i2 < _ref2.length; _i2++) {\n _loop(_i2, _ref2);\n } // GraphQL Variables\n\n\n if (typeof this.options.variables === 'function') {\n var cb = this.executeApollo.bind(this);\n\n if (!this.vm.$isServer) {\n cb = this.options.throttle ? utils_2(cb, this.options.throttle) : cb;\n cb = this.options.debounce ? utils_3(cb, this.options.debounce) : cb;\n }\n\n this._watchers.push(this.vm.$watch(function () {\n return typeof _this2.options.variables === 'function' ? _this2.options.variables.call(_this2.vm) : _this2.options.variables;\n }, cb, {\n immediate: true,\n deep: this.options.deep\n }));\n } else {\n this.executeApollo(this.options.variables);\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n for (var _i4 = 0, _this$_watchers2 = this._watchers; _i4 < _this$_watchers2.length; _i4++) {\n var unwatch = _this$_watchers2[_i4];\n unwatch();\n }\n\n if (this.sub) {\n this.sub.unsubscribe();\n this.sub = null;\n }\n }\n }, {\n key: \"generateApolloOptions\",\n value: function generateApolloOptions(variables) {\n var apolloOptions = utils_6(this.options, this.vueApolloSpecialKeys);\n apolloOptions.variables = variables;\n this.lastApolloOptions = apolloOptions;\n return apolloOptions;\n }\n }, {\n key: \"executeApollo\",\n value: function executeApollo(variables) {\n this.starting = false;\n }\n }, {\n key: \"nextResult\",\n value: function nextResult(result) {\n var error = result.error;\n if (error) utils_7(error);\n }\n }, {\n key: \"callHandlers\",\n value: function callHandlers(handlers) {\n var catched = false;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n for (var _i6 = 0; _i6 < handlers.length; _i6++) {\n var handler = handlers[_i6];\n\n if (handler) {\n catched = true;\n var result = handler.apply(this.vm, args);\n\n if (typeof result !== 'undefined' && !result) {\n break;\n }\n }\n }\n\n return catched;\n }\n }, {\n key: \"errorHandler\",\n value: function errorHandler() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return this.callHandlers.apply(this, [[this.options.error, this.vm.$apollo.error, this.vm.$apollo.provider.errorHandler]].concat(args));\n }\n }, {\n key: \"catchError\",\n value: function catchError(error) {\n utils_7(error);\n var catched = this.errorHandler(error, this.vm, this.key, this.type, this.lastApolloOptions);\n if (catched) return;\n\n if (error.graphQLErrors && error.graphQLErrors.length !== 0) {\n console.error(\"GraphQL execution errors for \".concat(this.type, \" '\").concat(this.key, \"'\"));\n\n for (var _i8 = 0, _error$graphQLErrors2 = error.graphQLErrors; _i8 < _error$graphQLErrors2.length; _i8++) {\n var e = _error$graphQLErrors2[_i8];\n console.error(e);\n }\n } else if (error.networkError) {\n console.error(\"Error sending the \".concat(this.type, \" '\").concat(this.key, \"'\"), error.networkError);\n } else {\n console.error(\"[vue-apollo] An error has occurred for \".concat(this.type, \" '\").concat(this.key, \"'\"));\n\n if (Array.isArray(error)) {\n var _console;\n\n (_console = console).error.apply(_console, _toConsumableArray(error));\n } else {\n console.error(error);\n }\n }\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n if (this._destroyed) return;\n this._destroyed = true;\n this.stop();\n\n if (this._skipWatcher) {\n this._skipWatcher();\n }\n }\n }]);\n\n return SmartApollo;\n}();\n\nvar VUE_APOLLO_QUERY_KEYWORDS = ['variables', 'watch', 'update', 'result', 'error', 'loadingKey', 'watchLoading', 'skip', 'throttle', 'debounce', 'subscribeToMore', 'prefetch', 'manual'];\n\nvar SmartQuery = /*#__PURE__*/function (_SmartApollo) {\n _inherits(SmartQuery, _SmartApollo);\n\n var _super = _createSuper(SmartQuery);\n\n function SmartQuery(vm, key, options) {\n var _this;\n\n var autostart = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n\n _classCallCheck(this, SmartQuery); // Add reactive data related to the query\n\n\n if (vm.$data.$apolloData && !vm.$data.$apolloData.queries[key]) {\n vm.$set(vm.$data.$apolloData.queries, key, {\n loading: false\n });\n }\n\n _this = _super.call(this, vm, key, options, false);\n\n _defineProperty(_assertThisInitialized(_this), \"type\", 'query');\n\n _defineProperty(_assertThisInitialized(_this), \"vueApolloSpecialKeys\", VUE_APOLLO_QUERY_KEYWORDS);\n\n _defineProperty(_assertThisInitialized(_this), \"_loading\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"_linkedSubscriptions\", []);\n\n if (vm.$isServer) {\n _this.firstRun = new Promise(function (resolve, reject) {\n _this._firstRunResolve = resolve;\n _this._firstRunReject = reject;\n });\n }\n\n if (_this.vm.$isServer) {\n _this.options.fetchPolicy = 'network-only';\n }\n\n if (!options.manual) {\n _this.hasDataField = Object.prototype.hasOwnProperty.call(_this.vm.$data, key);\n\n if (_this.hasDataField) {\n Object.defineProperty(_this.vm.$data.$apolloData.data, key, {\n get: function get() {\n return _this.vm.$data[key];\n },\n enumerable: true,\n configurable: true\n });\n } else {\n Object.defineProperty(_this.vm.$data, key, {\n get: function get() {\n return _this.vm.$data.$apolloData.data[key];\n },\n enumerable: true,\n configurable: true\n });\n }\n }\n\n if (autostart) {\n _this.autostart();\n }\n\n return _this;\n }\n\n _createClass(SmartQuery, [{\n key: \"client\",\n get: function get() {\n return this.vm.$apollo.getClient(this.options);\n }\n }, {\n key: \"loading\",\n get: function get() {\n return this.vm.$data.$apolloData && this.vm.$data.$apolloData.queries[this.key] ? this.vm.$data.$apolloData.queries[this.key].loading : this._loading;\n },\n set: function set(value) {\n if (this._loading !== value) {\n this._loading = value;\n\n if (this.vm.$data.$apolloData && this.vm.$data.$apolloData.queries[this.key]) {\n this.vm.$data.$apolloData.queries[this.key].loading = value;\n this.vm.$data.$apolloData.loading += value ? 1 : -1;\n }\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n _get(_getPrototypeOf(SmartQuery.prototype), \"stop\", this).call(this);\n\n this.loadingDone();\n\n if (this.observer) {\n this.observer.stopPolling();\n this.observer = null;\n }\n }\n }, {\n key: \"generateApolloOptions\",\n value: function generateApolloOptions(variables) {\n var apolloOptions = _get(_getPrototypeOf(SmartQuery.prototype), \"generateApolloOptions\", this).call(this, variables);\n\n if (this.vm.$isServer) {\n // Don't poll on the server, that would run indefinitely\n delete apolloOptions.pollInterval;\n }\n\n return apolloOptions;\n }\n }, {\n key: \"executeApollo\",\n value: function executeApollo(variables) {\n var variablesJson = JSON.stringify(variables);\n\n if (this.sub) {\n if (variablesJson === this.previousVariablesJson) {\n return;\n }\n\n this.sub.unsubscribe(); // Subscribe to more subs\n\n for (var _i2 = 0, _this$_linkedSubscrip2 = this._linkedSubscriptions; _i2 < _this$_linkedSubscrip2.length; _i2++) {\n var sub = _this$_linkedSubscrip2[_i2];\n sub.stop();\n }\n }\n\n this.previousVariablesJson = variablesJson; // Create observer\n\n this.observer = this.vm.$apollo.watchQuery(this.generateApolloOptions(variables));\n this.startQuerySubscription();\n\n if (this.options.fetchPolicy !== 'no-cache' || this.options.notifyOnNetworkStatusChange) {\n var currentResult = this.retrieveCurrentResult();\n\n if (this.options.notifyOnNetworkStatusChange || // Initial call of next result when it's not loading (for Apollo Client 3)\n this.observer.getCurrentResult && !currentResult.loading) {\n this.nextResult(currentResult);\n }\n }\n\n _get(_getPrototypeOf(SmartQuery.prototype), \"executeApollo\", this).call(this, variables); // Subscribe to more subs\n\n\n for (var _i4 = 0, _this$_linkedSubscrip4 = this._linkedSubscriptions; _i4 < _this$_linkedSubscrip4.length; _i4++) {\n var _sub = _this$_linkedSubscrip4[_i4];\n\n _sub.start();\n }\n }\n }, {\n key: \"startQuerySubscription\",\n value: function startQuerySubscription() {\n if (this.sub && !this.sub.closed) return; // Create subscription\n\n this.sub = this.observer.subscribe({\n next: this.nextResult.bind(this),\n error: this.catchError.bind(this)\n });\n }\n /**\n * May update loading state\n */\n\n }, {\n key: \"retrieveCurrentResult\",\n value: function retrieveCurrentResult() {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var currentResult = this.observer.getCurrentResult ? this.observer.getCurrentResult() : this.observer.currentResult();\n\n if (force || currentResult.loading) {\n if (!this.loading) {\n this.applyLoadingModifier(1);\n }\n\n this.loading = true;\n }\n\n return currentResult;\n }\n }, {\n key: \"nextResult\",\n value: function nextResult(result) {\n _get(_getPrototypeOf(SmartQuery.prototype), \"nextResult\", this).call(this, result);\n\n var data = result.data,\n loading = result.loading,\n error = result.error,\n errors = result.errors;\n var anyErrors = errors && errors.length;\n\n if (error || anyErrors) {\n this.firstRunReject(error);\n }\n\n if (!loading) {\n this.loadingDone();\n } // If `errorPolicy` is set to `all`, an error won't be thrown\n // Instead result will have an `errors` array of GraphQL Errors\n // so we need to reconstruct an error object similar to the normal one\n\n\n if (anyErrors) {\n var e = new Error(\"GraphQL error: \".concat(errors.map(function (e) {\n return e.message;\n }).join(' | ')));\n Object.assign(e, {\n graphQLErrors: errors,\n networkError: null\n }); // We skip query catchError logic\n // as we only want to dispatch the error\n\n _get(_getPrototypeOf(SmartQuery.prototype), \"catchError\", this).call(this, e);\n }\n\n if (this.observer.options.errorPolicy === 'none' && (error || anyErrors)) {\n // Don't apply result\n return;\n }\n\n var hasResultCallback = typeof this.options.result === 'function';\n if (data == null) ;else if (!this.options.manual) {\n if (typeof this.options.update === 'function') {\n this.setData(this.options.update.call(this.vm, data));\n } else if (typeof data[this.key] === 'undefined' && Object.keys(data).length) {\n console.error(\"Missing \".concat(this.key, \" attribute on result\"), data);\n } else {\n this.setData(data[this.key]);\n }\n } else if (!hasResultCallback) {\n console.error(\"\".concat(this.key, \" query must have a 'result' hook in manual mode\"));\n }\n\n if (hasResultCallback) {\n this.options.result.call(this.vm, result, this.key);\n }\n }\n }, {\n key: \"setData\",\n value: function setData(value) {\n this.vm.$set(this.hasDataField ? this.vm.$data : this.vm.$data.$apolloData.data, this.key, value);\n }\n }, {\n key: \"catchError\",\n value: function catchError(error) {\n _get(_getPrototypeOf(SmartQuery.prototype), \"catchError\", this).call(this, error);\n\n this.firstRunReject(error);\n this.loadingDone(error);\n this.nextResult(this.observer.getCurrentResult ? this.observer.getCurrentResult() : this.observer.currentResult()); // The observable closes the sub if an error occurs\n\n this.resubscribeToQuery();\n }\n }, {\n key: \"resubscribeToQuery\",\n value: function resubscribeToQuery() {\n var lastError = this.observer.getLastError();\n var lastResult = this.observer.getLastResult();\n this.observer.resetLastResults();\n this.startQuerySubscription();\n Object.assign(this.observer, {\n lastError: lastError,\n lastResult: lastResult\n });\n }\n }, {\n key: \"loadingKey\",\n get: function get() {\n return this.options.loadingKey || this.vm.$apollo.loadingKey;\n }\n }, {\n key: \"watchLoading\",\n value: function watchLoading() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.callHandlers.apply(this, [[this.options.watchLoading, this.vm.$apollo.watchLoading, this.vm.$apollo.provider.watchLoading]].concat(args, [this]));\n }\n }, {\n key: \"applyLoadingModifier\",\n value: function applyLoadingModifier(value) {\n var loadingKey = this.loadingKey;\n\n if (loadingKey && typeof this.vm[loadingKey] === 'number') {\n this.vm[loadingKey] += value;\n }\n\n this.watchLoading(value === 1, value);\n }\n }, {\n key: \"loadingDone\",\n value: function loadingDone() {\n var error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (this.loading) {\n this.applyLoadingModifier(-1);\n }\n\n this.loading = false;\n\n if (!error) {\n this.firstRunResolve();\n }\n }\n }, {\n key: \"fetchMore\",\n value: function fetchMore() {\n var _this2 = this;\n\n if (this.observer) {\n var _this$observer;\n\n this.retrieveCurrentResult(true);\n return (_this$observer = this.observer).fetchMore.apply(_this$observer, arguments).then(function (result) {\n if (!result.loading) {\n _this2.loadingDone();\n }\n\n return result;\n });\n }\n }\n }, {\n key: \"subscribeToMore\",\n value: function subscribeToMore() {\n if (this.observer) {\n var _this$observer2;\n\n return {\n unsubscribe: (_this$observer2 = this.observer).subscribeToMore.apply(_this$observer2, arguments)\n };\n }\n }\n }, {\n key: \"refetch\",\n value: function refetch(variables) {\n var _this3 = this;\n\n variables && (this.options.variables = variables);\n\n if (this.observer) {\n var result = this.observer.refetch(variables).then(function (result) {\n if (!result.loading) {\n _this3.loadingDone();\n }\n\n return result;\n });\n this.retrieveCurrentResult();\n return result;\n }\n }\n }, {\n key: \"setVariables\",\n value: function setVariables(variables, tryFetch) {\n this.options.variables = variables;\n\n if (this.observer) {\n var result = this.observer.setVariables(variables, tryFetch);\n this.retrieveCurrentResult();\n return result;\n }\n }\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n Object.assign(this.options, options);\n\n if (this.observer) {\n var result = this.observer.setOptions(options);\n this.retrieveCurrentResult();\n return result;\n }\n }\n }, {\n key: \"startPolling\",\n value: function startPolling() {\n if (this.observer) {\n var _this$observer3;\n\n return (_this$observer3 = this.observer).startPolling.apply(_this$observer3, arguments);\n }\n }\n }, {\n key: \"stopPolling\",\n value: function stopPolling() {\n if (this.observer) {\n var _this$observer4;\n\n return (_this$observer4 = this.observer).stopPolling.apply(_this$observer4, arguments);\n }\n }\n }, {\n key: \"firstRunResolve\",\n value: function firstRunResolve() {\n if (this._firstRunResolve) {\n this._firstRunResolve();\n\n this._firstRunResolve = null;\n }\n }\n }, {\n key: \"firstRunReject\",\n value: function firstRunReject(error) {\n if (this._firstRunReject) {\n this._firstRunReject(error);\n\n this._firstRunReject = null;\n }\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n _get(_getPrototypeOf(SmartQuery.prototype), \"destroy\", this).call(this);\n\n if (this.loading) {\n this.watchLoading(false, -1);\n }\n\n this.loading = false;\n }\n }]);\n\n return SmartQuery;\n}(SmartApollo);\n\nvar SmartSubscription = /*#__PURE__*/function (_SmartApollo) {\n _inherits(SmartSubscription, _SmartApollo);\n\n var _super = _createSuper(SmartSubscription);\n\n function SmartSubscription() {\n var _this;\n\n _classCallCheck(this, SmartSubscription);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"type\", 'subscription');\n\n _defineProperty(_assertThisInitialized(_this), \"vueApolloSpecialKeys\", ['variables', 'result', 'error', 'throttle', 'debounce', 'linkedQuery']);\n\n return _this;\n }\n\n _createClass(SmartSubscription, [{\n key: \"executeApollo\",\n value: function executeApollo(variables) {\n var variablesJson = JSON.stringify(variables);\n\n if (this.sub) {\n // do nothing if subscription is already running using exactly the same variables\n if (variablesJson === this.previousVariablesJson) {\n return;\n }\n\n this.sub.unsubscribe();\n }\n\n this.previousVariablesJson = variablesJson;\n var apolloOptions = this.generateApolloOptions(variables);\n\n if (typeof apolloOptions.updateQuery === 'function') {\n apolloOptions.updateQuery = apolloOptions.updateQuery.bind(this.vm);\n }\n\n if (this.options.linkedQuery) {\n if (typeof this.options.result === 'function') {\n var rcb = this.options.result.bind(this.vm);\n var ucb = apolloOptions.updateQuery && apolloOptions.updateQuery.bind(this.vm);\n\n apolloOptions.updateQuery = function () {\n rcb.apply(void 0, arguments);\n return ucb && ucb.apply(void 0, arguments);\n };\n }\n\n this.sub = this.options.linkedQuery.subscribeToMore(apolloOptions);\n } else {\n // Create observer\n this.observer = this.vm.$apollo.subscribe(apolloOptions); // Create subscription\n\n this.sub = this.observer.subscribe({\n next: this.nextResult.bind(this),\n error: this.catchError.bind(this)\n });\n }\n\n _get(_getPrototypeOf(SmartSubscription.prototype), \"executeApollo\", this).call(this, variables);\n }\n }, {\n key: \"nextResult\",\n value: function nextResult(data) {\n _get(_getPrototypeOf(SmartSubscription.prototype), \"nextResult\", this).call(this, data);\n\n if (typeof this.options.result === 'function') {\n this.options.result.call(this.vm, data, this.key);\n }\n }\n }]);\n\n return SmartSubscription;\n}(SmartApollo);\n\nvar DollarApollo = /*#__PURE__*/function () {\n function DollarApollo(vm) {\n _classCallCheck(this, DollarApollo);\n\n this._apolloSubscriptions = [];\n this._watchers = [];\n this.vm = vm;\n this.queries = {};\n this.subscriptions = {};\n this.client = undefined;\n this.loadingKey = undefined;\n this.error = undefined;\n }\n\n _createClass(DollarApollo, [{\n key: \"provider\",\n get: function get() {\n return this.vm.$apolloProvider;\n }\n }, {\n key: \"getClient\",\n value: function getClient() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (!options || !options.client) {\n if (_typeof(this.client) === 'object') {\n return this.client;\n }\n\n if (this.client) {\n if (!this.provider.clients) {\n throw new Error('[vue-apollo] Missing \\'clients\\' options in \\'apolloProvider\\'');\n } else {\n var _client = this.provider.clients[this.client];\n\n if (!_client) {\n throw new Error(\"[vue-apollo] Missing client '\".concat(this.client, \"' in 'apolloProvider'\"));\n }\n\n return _client;\n }\n }\n\n return this.provider.defaultClient;\n }\n\n var client = this.provider.clients[options.client];\n\n if (!client) {\n throw new Error(\"[vue-apollo] Missing client '\".concat(options.client, \"' in 'apolloProvider'\"));\n }\n\n return client;\n }\n }, {\n key: \"query\",\n value: function query(options) {\n return this.getClient(options).query(options);\n }\n }, {\n key: \"watchQuery\",\n value: function watchQuery(options) {\n var _this = this;\n\n var observable = this.getClient(options).watchQuery(options);\n\n var _subscribe = observable.subscribe.bind(observable);\n\n observable.subscribe = function (options) {\n var sub = _subscribe(options);\n\n _this._apolloSubscriptions.push(sub);\n\n return sub;\n };\n\n return observable;\n }\n }, {\n key: \"mutate\",\n value: function mutate(options) {\n return this.getClient(options).mutate(options);\n }\n }, {\n key: \"subscribe\",\n value: function subscribe(options) {\n var _this2 = this;\n\n if (!this.vm.$isServer) {\n var observable = this.getClient(options).subscribe(options);\n\n var _subscribe = observable.subscribe.bind(observable);\n\n observable.subscribe = function (options) {\n var sub = _subscribe(options);\n\n _this2._apolloSubscriptions.push(sub);\n\n return sub;\n };\n\n return observable;\n }\n }\n }, {\n key: \"loading\",\n get: function get() {\n return this.vm.$data.$apolloData.loading !== 0;\n }\n }, {\n key: \"data\",\n get: function get() {\n return this.vm.$data.$apolloData.data;\n }\n }, {\n key: \"addSmartQuery\",\n value: function addSmartQuery(key, options) {\n var _this3 = this;\n\n var finalOptions = utils_5(options, this.vm); // Simple query\n\n if (!finalOptions.query) {\n var query = finalOptions;\n finalOptions = {\n query: query\n };\n }\n\n var apollo = this.vm.$options.apollo;\n var defaultOptions = this.provider.defaultOptions;\n var $query;\n\n if (defaultOptions && defaultOptions.$query) {\n $query = defaultOptions.$query;\n }\n\n if (apollo && apollo.$query) {\n $query = _objectSpread2(_objectSpread2({}, $query || {}), apollo.$query);\n }\n\n if ($query) {\n // Also replaces 'undefined' values\n for (var _key in $query) {\n if (typeof finalOptions[_key] === 'undefined') {\n finalOptions[_key] = $query[_key];\n }\n }\n }\n\n var smart = this.queries[key] = new SmartQuery(this.vm, key, finalOptions, false);\n\n if (!this.vm.$isServer || finalOptions.prefetch !== false) {\n smart.autostart();\n }\n\n if (!this.vm.$isServer) {\n var subs = finalOptions.subscribeToMore;\n\n if (subs) {\n if (Array.isArray(subs)) {\n subs.forEach(function (sub, index) {\n _this3.addSmartSubscription(\"\".concat(key).concat(index), _objectSpread2(_objectSpread2({}, sub), {}, {\n linkedQuery: smart\n }));\n });\n } else {\n this.addSmartSubscription(key, _objectSpread2(_objectSpread2({}, subs), {}, {\n linkedQuery: smart\n }));\n }\n }\n }\n\n return smart;\n }\n }, {\n key: \"addSmartSubscription\",\n value: function addSmartSubscription(key, options) {\n if (!this.vm.$isServer) {\n options = utils_5(options, this.vm);\n var smart = this.subscriptions[key] = new SmartSubscription(this.vm, key, options, false);\n smart.autostart();\n\n if (options.linkedQuery) {\n options.linkedQuery._linkedSubscriptions.push(smart);\n }\n\n return smart;\n }\n }\n }, {\n key: \"defineReactiveSetter\",\n value: function defineReactiveSetter(key, func, deep) {\n var _this4 = this;\n\n this._watchers.push(this.vm.$watch(func, function (value) {\n _this4[key] = value;\n }, {\n immediate: true,\n deep: deep\n }));\n } // eslint-disable-next-line accessor-pairs\n\n }, {\n key: \"skipAllQueries\",\n set: function set(value) {\n for (var key in this.queries) {\n this.queries[key].skip = value;\n }\n } // eslint-disable-next-line accessor-pairs\n\n }, {\n key: \"skipAllSubscriptions\",\n set: function set(value) {\n for (var key in this.subscriptions) {\n this.subscriptions[key].skip = value;\n }\n } // eslint-disable-next-line accessor-pairs\n\n }, {\n key: \"skipAll\",\n set: function set(value) {\n this.skipAllQueries = value;\n this.skipAllSubscriptions = value;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n for (var _i2 = 0, _this$_watchers2 = this._watchers; _i2 < _this$_watchers2.length; _i2++) {\n var unwatch = _this$_watchers2[_i2];\n unwatch();\n }\n\n for (var key in this.queries) {\n this.queries[key].destroy();\n }\n\n for (var _key2 in this.subscriptions) {\n this.subscriptions[_key2].destroy();\n }\n\n this._apolloSubscriptions.forEach(function (sub) {\n sub.unsubscribe();\n });\n }\n }]);\n\n return DollarApollo;\n}();\n\nvar ApolloProvider = /*#__PURE__*/function () {\n function ApolloProvider(options) {\n _classCallCheck(this, ApolloProvider);\n\n if (!options) {\n throw new Error('Options argument required');\n }\n\n this.clients = options.clients || {};\n\n if (options.defaultClient) {\n this.clients.defaultClient = this.defaultClient = options.defaultClient;\n }\n\n this.defaultOptions = options.defaultOptions;\n this.watchLoading = options.watchLoading;\n this.errorHandler = options.errorHandler;\n this.prefetch = options.prefetch;\n }\n\n _createClass(ApolloProvider, [{\n key: \"provide\",\n value: function provide() {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '$apolloProvider';\n console.warn('.provide() is deprecated. Use the \\'apolloProvider\\' option instead with the provider object directly.');\n return _defineProperty({}, key, this);\n }\n }]);\n\n return ApolloProvider;\n}();\n\nfunction isDataFilled(data) {\n return data && Object.keys(data).length > 0;\n}\n\nvar CApolloQuery = {\n name: 'ApolloQuery',\n provide: function provide() {\n return {\n getDollarApollo: this.getDollarApollo,\n getApolloQuery: this.getApolloQuery\n };\n },\n props: {\n query: {\n type: [Function, Object],\n required: true\n },\n variables: {\n type: Object,\n \"default\": undefined\n },\n fetchPolicy: {\n type: String,\n \"default\": undefined\n },\n pollInterval: {\n type: Number,\n \"default\": undefined\n },\n notifyOnNetworkStatusChange: {\n type: Boolean,\n \"default\": undefined\n },\n context: {\n type: Object,\n \"default\": undefined\n },\n update: {\n type: Function,\n \"default\": function _default(data) {\n return data;\n }\n },\n skip: {\n type: Boolean,\n \"default\": false\n },\n debounce: {\n type: Number,\n \"default\": 0\n },\n throttle: {\n type: Number,\n \"default\": 0\n },\n clientId: {\n type: String,\n \"default\": undefined\n },\n deep: {\n type: Boolean,\n \"default\": undefined\n },\n tag: {\n type: String,\n \"default\": 'div'\n },\n prefetch: {\n type: Boolean,\n \"default\": true\n },\n options: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n result: {\n data: null,\n loading: false,\n networkStatus: 7,\n error: null\n },\n times: 0\n };\n },\n watch: {\n fetchPolicy: function fetchPolicy(value) {\n this.$apollo.queries.query.setOptions({\n fetchPolicy: value\n });\n },\n pollInterval: function pollInterval(value) {\n this.$apollo.queries.query.setOptions({\n pollInterval: value\n });\n },\n notifyOnNetworkStatusChange: function notifyOnNetworkStatusChange(value) {\n this.$apollo.queries.query.setOptions({\n notifyOnNetworkStatusChange: value\n });\n },\n '$data.$apolloData.loading': function $data$apolloDataLoading(value) {\n this.$emit('loading', !!value);\n }\n },\n apollo: {\n $client: function $client() {\n return this.clientId;\n },\n query: function query() {\n return _objectSpread2(_objectSpread2({\n query: function query() {\n if (typeof this.query === 'function') {\n return this.query(gql);\n }\n\n return this.query;\n },\n variables: function variables() {\n return this.variables;\n },\n fetchPolicy: this.fetchPolicy,\n pollInterval: this.pollInterval,\n debounce: this.debounce,\n throttle: this.throttle,\n notifyOnNetworkStatusChange: this.notifyOnNetworkStatusChange,\n context: function context() {\n return this.context;\n },\n skip: function skip() {\n return this.skip;\n },\n deep: this.deep,\n prefetch: this.prefetch\n }, this.options), {}, {\n manual: true,\n result: function result(_result) {\n var _result2 = _result,\n errors = _result2.errors,\n loading = _result2.loading,\n networkStatus = _result2.networkStatus;\n var _result3 = _result,\n error = _result3.error;\n _result = Object.assign({}, _result);\n\n if (errors && errors.length) {\n error = new Error(\"Apollo errors occurred (\".concat(errors.length, \")\"));\n error.graphQLErrors = errors;\n }\n\n var data = {};\n\n if (loading) {\n Object.assign(data, this.$_previousData, _result.data);\n } else if (error) {\n Object.assign(data, this.$apollo.queries.query.observer.getLastResult() || {}, _result.data);\n } else {\n data = _result.data;\n this.$_previousData = _result.data;\n }\n\n var dataNotEmpty = isDataFilled(data);\n this.result = {\n data: dataNotEmpty ? this.update(data) : undefined,\n fullData: dataNotEmpty ? data : undefined,\n loading: loading,\n error: error,\n networkStatus: networkStatus\n };\n this.times = ++this.$_times;\n this.$emit('result', this.result);\n },\n error: function error(_error) {\n this.result.loading = false;\n this.result.error = _error;\n this.$emit('error', _error);\n }\n });\n }\n },\n created: function created() {\n this.$_times = 0;\n },\n methods: {\n getDollarApollo: function getDollarApollo() {\n return this.$apollo;\n },\n getApolloQuery: function getApolloQuery() {\n return this.$apollo.queries.query;\n }\n },\n render: function render(h) {\n var result = this.$scopedSlots[\"default\"]({\n result: this.result,\n times: this.times,\n query: this.$apollo.queries.query,\n isLoading: this.$apolloData.loading,\n gqlError: this.result && this.result.error && this.result.error.gqlError\n });\n\n if (Array.isArray(result)) {\n result = result.concat(this.$slots[\"default\"]);\n } else {\n result = [result].concat(this.$slots[\"default\"]);\n }\n\n return this.tag ? h(this.tag, result) : result[0];\n }\n};\nvar uid = 0;\nvar CApolloSubscribeToMore = {\n name: 'ApolloSubscribeToMore',\n inject: ['getDollarApollo', 'getApolloQuery'],\n props: {\n document: {\n type: [Function, Object],\n required: true\n },\n variables: {\n type: Object,\n \"default\": undefined\n },\n updateQuery: {\n type: Function,\n \"default\": undefined\n }\n },\n watch: {\n document: 'refresh',\n variables: 'refresh'\n },\n created: function created() {\n this.$_key = \"sub_component_\".concat(uid++);\n },\n mounted: function mounted() {\n this.refresh();\n },\n beforeDestroy: function beforeDestroy() {\n this.destroy();\n },\n methods: {\n destroy: function destroy() {\n if (this.$_sub) {\n this.$_sub.destroy();\n }\n },\n refresh: function refresh() {\n this.destroy();\n var document = this.document;\n\n if (typeof document === 'function') {\n document = document(gql);\n }\n\n this.$_sub = this.getDollarApollo().addSmartSubscription(this.$_key, {\n document: document,\n variables: this.variables,\n updateQuery: this.updateQuery,\n linkedQuery: this.getApolloQuery()\n });\n }\n },\n render: function render(h) {\n return null;\n }\n};\nvar CApolloMutation = {\n props: {\n mutation: {\n type: [Function, Object],\n required: true\n },\n variables: {\n type: Object,\n \"default\": undefined\n },\n optimisticResponse: {\n type: Object,\n \"default\": undefined\n },\n update: {\n type: Function,\n \"default\": undefined\n },\n refetchQueries: {\n type: Function,\n \"default\": undefined\n },\n clientId: {\n type: String,\n \"default\": undefined\n },\n tag: {\n type: String,\n \"default\": 'div'\n },\n context: {\n type: Object,\n \"default\": undefined\n }\n },\n data: function data() {\n return {\n loading: false,\n error: null\n };\n },\n watch: {\n loading: function loading(value) {\n this.$emit('loading', value);\n }\n },\n methods: {\n mutate: function mutate(options) {\n var _this = this;\n\n this.loading = true;\n this.error = null;\n var mutation = this.mutation;\n\n if (typeof mutation === 'function') {\n mutation = mutation(gql);\n }\n\n return this.$apollo.mutate(_objectSpread2({\n mutation: mutation,\n client: this.clientId,\n variables: this.variables,\n optimisticResponse: this.optimisticResponse,\n update: this.update,\n refetchQueries: this.refetchQueries,\n context: this.context\n }, options)).then(function (result) {\n _this.$emit('done', result);\n\n _this.loading = false;\n })[\"catch\"](function (e) {\n utils_7(e);\n _this.error = e;\n\n _this.$emit('error', e);\n\n _this.loading = false;\n });\n }\n },\n render: function render(h) {\n var result = this.$scopedSlots[\"default\"]({\n mutate: this.mutate,\n loading: this.loading,\n error: this.error,\n gqlError: this.error && this.error.gqlError\n });\n\n if (Array.isArray(result)) {\n result = result.concat(this.$slots[\"default\"]);\n } else {\n result = [result].concat(this.$slots[\"default\"]);\n }\n\n return this.tag ? h(this.tag, result) : result[0];\n }\n};\n\nfunction hasProperty(holder, key) {\n return typeof holder !== 'undefined' && Object.prototype.hasOwnProperty.call(holder, key);\n}\n\nfunction initProvider() {\n var options = this.$options; // ApolloProvider injection\n\n var optionValue = options.apolloProvider;\n\n if (optionValue) {\n this.$apolloProvider = typeof optionValue === 'function' ? optionValue() : optionValue;\n } else if (options.parent && options.parent.$apolloProvider) {\n this.$apolloProvider = options.parent.$apolloProvider;\n } else if (options.provide) {\n // TODO remove\n // Temporary retro-compatibility\n var provided = typeof options.provide === 'function' ? options.provide.call(this) : options.provide;\n\n if (provided && provided.$apolloProvider) {\n this.$apolloProvider = provided.$apolloProvider;\n }\n }\n}\n\nfunction proxyData() {\n var _this = this;\n\n this.$_apolloInitData = {};\n var apollo = this.$options.apollo;\n\n if (apollo) {\n var _loop = function _loop(key) {\n if (key.charAt(0) !== '$') {\n var options = apollo[key]; // Property proxy\n\n if (!options.manual && !hasProperty(_this.$options.props, key) && !hasProperty(_this.$options.computed, key) && !hasProperty(_this.$options.methods, key)) {\n Object.defineProperty(_this, key, {\n get: function get() {\n return _this.$data.$apolloData.data[key];\n },\n // For component class constructor\n set: function set(value) {\n return _this.$_apolloInitData[key] = value;\n },\n enumerable: true,\n configurable: true\n });\n }\n }\n }; // watchQuery\n\n\n for (var key in apollo) {\n _loop(key);\n }\n }\n}\n\nfunction launch() {\n var _this2 = this;\n\n var apolloProvider = this.$apolloProvider;\n if (this._apolloLaunched || !apolloProvider) return;\n this._apolloLaunched = true; // Prepare properties\n\n var apollo = this.$options.apollo;\n\n if (apollo) {\n this.$_apolloPromises = [];\n\n if (!apollo.$init) {\n apollo.$init = true; // Default options applied to `apollo` options\n\n if (apolloProvider.defaultOptions) {\n apollo = this.$options.apollo = Object.assign({}, apolloProvider.defaultOptions, apollo);\n }\n }\n\n defineReactiveSetter(this.$apollo, 'skipAll', apollo.$skipAll, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'skipAllQueries', apollo.$skipAllQueries, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'skipAllSubscriptions', apollo.$skipAllSubscriptions, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'client', apollo.$client, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'loadingKey', apollo.$loadingKey, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'error', apollo.$error, apollo.$deep);\n defineReactiveSetter(this.$apollo, 'watchLoading', apollo.$watchLoading, apollo.$deep); // Apollo Data\n\n Object.defineProperty(this, '$apolloData', {\n get: function get() {\n return _this2.$data.$apolloData;\n },\n enumerable: true,\n configurable: true\n }); // watchQuery\n\n for (var key in apollo) {\n if (key.charAt(0) !== '$') {\n var options = apollo[key];\n var smart = this.$apollo.addSmartQuery(key, options);\n\n if (this.$isServer) {\n options = utils_5(options, this);\n\n if (apolloProvider.prefetch !== false && options.prefetch !== false && apollo.$prefetch !== false && !smart.skip) {\n this.$_apolloPromises.push(smart.firstRun);\n }\n }\n }\n }\n\n if (apollo.subscribe) {\n utils_1.Vue.util.warn('vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead.');\n }\n\n if (apollo.$subscribe) {\n for (var _key in apollo.$subscribe) {\n this.$apollo.addSmartSubscription(_key, apollo.$subscribe[_key]);\n }\n }\n }\n}\n\nfunction defineReactiveSetter($apollo, key, value, deep) {\n if (typeof value !== 'undefined') {\n if (typeof value === 'function') {\n $apollo.defineReactiveSetter(key, value, deep);\n } else {\n $apollo[key] = value;\n }\n }\n}\n\nfunction destroy() {\n if (this.$_apollo) {\n this.$_apollo.destroy();\n }\n}\n\nfunction installMixin(Vue, vueVersion) {\n Vue.mixin(_objectSpread2(_objectSpread2(_objectSpread2({}, vueVersion === '1' ? {\n init: initProvider\n } : {}), vueVersion === '2' ? {\n data: function data() {\n return {\n $apolloData: {\n queries: {},\n loading: 0,\n data: this.$_apolloInitData\n }\n };\n },\n beforeCreate: function beforeCreate() {\n initProvider.call(this);\n proxyData.call(this);\n },\n serverPrefetch: function serverPrefetch() {\n var _this3 = this;\n\n if (this.$_apolloPromises) {\n return Promise.all(this.$_apolloPromises).then(function () {\n destroy.call(_this3);\n })[\"catch\"](function (e) {\n destroy.call(_this3);\n return Promise.reject(e);\n });\n }\n }\n } : {}), {}, {\n created: launch,\n destroyed: destroy\n }));\n}\n\nvar keywords = ['$subscribe'];\n\nfunction install(Vue, options) {\n if (install.installed) return;\n install.installed = true;\n utils_1.Vue = Vue;\n var vueVersion = Vue.version.substr(0, Vue.version.indexOf('.')); // Options merging\n\n var merge = Vue.config.optionMergeStrategies.methods;\n\n Vue.config.optionMergeStrategies.apollo = function (toVal, fromVal, vm) {\n if (!toVal) return fromVal;\n if (!fromVal) return toVal;\n var toData = Object.assign({}, utils_6(toVal, keywords), toVal.data);\n var fromData = Object.assign({}, utils_6(fromVal, keywords), fromVal.data);\n var map = {};\n\n for (var i = 0; i < keywords.length; i++) {\n var key = keywords[i];\n map[key] = merge(toVal[key], fromVal[key]);\n }\n\n return Object.assign(map, merge(toData, fromData));\n }; // Lazy creation\n\n\n if (!Object.prototype.hasOwnProperty.call(Vue, '$apollo')) {\n Object.defineProperty(Vue.prototype, '$apollo', {\n get: function get() {\n if (!this.$_apollo) {\n this.$_apollo = new DollarApollo(this);\n }\n\n return this.$_apollo;\n }\n });\n }\n\n installMixin(Vue, vueVersion);\n\n if (vueVersion === '2') {\n Vue.component('ApolloQuery', CApolloQuery);\n Vue.component('ApolloQuery', CApolloQuery);\n Vue.component('ApolloSubscribeToMore', CApolloSubscribeToMore);\n Vue.component('ApolloSubscribeToMore', CApolloSubscribeToMore);\n Vue.component('ApolloMutation', CApolloMutation);\n Vue.component('ApolloMutation', CApolloMutation);\n }\n}\n\nApolloProvider.install = install; // eslint-disable-next-line no-undef\n\nApolloProvider.version = \"3.0.8\"; // Apollo provider\n\nvar ApolloProvider$1 = ApolloProvider; // Components\n\nvar ApolloQuery = CApolloQuery;\nvar ApolloSubscribeToMore = CApolloSubscribeToMore;\nvar ApolloMutation = CApolloMutation; // Auto-install\n\nvar GlobalVue = null;\n\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\n\nif (GlobalVue) {\n GlobalVue.use(ApolloProvider);\n}\n\nexport default ApolloProvider;\nexport { ApolloMutation, ApolloProvider$1 as ApolloProvider, ApolloQuery, ApolloSubscribeToMore, install };","function _typeof2(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nmodule.exports =\n/******/\nfunction (modules) {\n // webpackBootstrap\n\n /******/\n // The module cache\n\n /******/\n var installedModules = {};\n /******/\n\n /******/\n // The require function\n\n /******/\n\n function __webpack_require__(moduleId) {\n /******/\n\n /******/\n // Check if module is in cache\n\n /******/\n if (installedModules[moduleId]) {\n /******/\n return installedModules[moduleId].exports;\n /******/\n }\n /******/\n // Create a new module (and put it into the cache)\n\n /******/\n\n\n var module = installedModules[moduleId] = {\n /******/\n i: moduleId,\n\n /******/\n l: false,\n\n /******/\n exports: {}\n /******/\n\n };\n /******/\n\n /******/\n // Execute the module function\n\n /******/\n\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n\n /******/\n // Flag the module as loaded\n\n /******/\n\n module.l = true;\n /******/\n\n /******/\n // Return the exports of the module\n\n /******/\n\n return module.exports;\n /******/\n }\n /******/\n\n /******/\n\n /******/\n // expose the modules object (__webpack_modules__)\n\n /******/\n\n\n __webpack_require__.m = modules;\n /******/\n\n /******/\n // expose the module cache\n\n /******/\n\n __webpack_require__.c = installedModules;\n /******/\n\n /******/\n // define getter function for harmony exports\n\n /******/\n\n __webpack_require__.d = function (exports, name, getter) {\n /******/\n if (!__webpack_require__.o(exports, name)) {\n /******/\n Object.defineProperty(exports, name, {\n enumerable: true,\n get: getter\n });\n /******/\n }\n /******/\n\n };\n /******/\n\n /******/\n // define __esModule on exports\n\n /******/\n\n\n __webpack_require__.r = function (exports) {\n /******/\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/\n Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n\n /******/\n // create a fake namespace object\n\n /******/\n // mode & 1: value is a module id, require it\n\n /******/\n // mode & 2: merge all properties of value into the ns\n\n /******/\n // mode & 4: return value when already ns object\n\n /******/\n // mode & 8|1: behave like require\n\n /******/\n\n\n __webpack_require__.t = function (value, mode) {\n /******/\n if (mode & 1) value = __webpack_require__(value);\n /******/\n\n if (mode & 8) return value;\n /******/\n\n if (mode & 4 && _typeof2(value) === 'object' && value && value.__esModule) return value;\n /******/\n\n var ns = Object.create(null);\n /******/\n\n __webpack_require__.r(ns);\n /******/\n\n\n Object.defineProperty(ns, 'default', {\n enumerable: true,\n value: value\n });\n /******/\n\n if (mode & 2 && typeof value != 'string') for (var key in value) {\n __webpack_require__.d(ns, key, function (key) {\n return value[key];\n }.bind(null, key));\n }\n /******/\n\n return ns;\n /******/\n };\n /******/\n\n /******/\n // getDefaultExport function for compatibility with non-harmony modules\n\n /******/\n\n\n __webpack_require__.n = function (module) {\n /******/\n var getter = module && module.__esModule ?\n /******/\n function getDefault() {\n return module['default'];\n } :\n /******/\n function getModuleExports() {\n return module;\n };\n /******/\n\n __webpack_require__.d(getter, 'a', getter);\n /******/\n\n\n return getter;\n /******/\n };\n /******/\n\n /******/\n // Object.prototype.hasOwnProperty.call\n\n /******/\n\n\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n\n /******/\n // __webpack_public_path__\n\n /******/\n\n\n __webpack_require__.p = \"\";\n /******/\n\n /******/\n\n /******/\n // Load entry module and return exports\n\n /******/\n\n return __webpack_require__(__webpack_require__.s = \"fae3\");\n /******/\n}\n/************************************************************************/\n\n/******/\n({\n /***/\n \"00ee\":\n /***/\n function ee(module, exports, __webpack_require__) {\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var TO_STRING_TAG = wellKnownSymbol('toStringTag');\n var test = {};\n test[TO_STRING_TAG] = 'z';\n module.exports = String(test) === '[object z]';\n /***/\n },\n\n /***/\n \"0366\":\n /***/\n function _(module, exports, __webpack_require__) {\n var aFunction = __webpack_require__(\"1c0b\"); // optional / simple context binding\n\n\n module.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n\n switch (length) {\n case 0:\n return function () {\n return fn.call(that);\n };\n\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n\n return function () {\n return fn.apply(that, arguments);\n };\n };\n /***/\n\n },\n\n /***/\n \"04d1\":\n /***/\n function d1(module, exports, __webpack_require__) {\n var userAgent = __webpack_require__(\"342f\");\n\n var firefox = userAgent.match(/firefox\\/(\\d+)/i);\n module.exports = !!firefox && +firefox[1];\n /***/\n },\n\n /***/\n \"057f\":\n /***/\n function f(module, exports, __webpack_require__) {\n /* eslint-disable es/no-object-getownpropertynames -- safe */\n var toIndexedObject = __webpack_require__(\"fc6a\");\n\n var $getOwnPropertyNames = __webpack_require__(\"241c\").f;\n\n var toString = {}.toString;\n var windowNames = (typeof window === \"undefined\" ? \"undefined\" : _typeof2(window)) == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];\n\n var getWindowNames = function getWindowNames(it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n }; // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\n\n module.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it));\n };\n /***/\n\n },\n\n /***/\n \"06cf\":\n /***/\n function cf(module, exports, __webpack_require__) {\n var DESCRIPTORS = __webpack_require__(\"83ab\");\n\n var propertyIsEnumerableModule = __webpack_require__(\"d1e7\");\n\n var createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\n var toIndexedObject = __webpack_require__(\"fc6a\");\n\n var toPrimitive = __webpack_require__(\"c04e\");\n\n var has = __webpack_require__(\"5135\");\n\n var IE8_DOM_DEFINE = __webpack_require__(\"0cfb\"); // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n\n\n var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n\n exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) {\n /* empty */\n }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n };\n /***/\n },\n\n /***/\n \"07ac\":\n /***/\n function ac(module, exports, __webpack_require__) {\n var $ = __webpack_require__(\"23e7\");\n\n var $values = __webpack_require__(\"6f53\").values; // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n\n\n $({\n target: 'Object',\n stat: true\n }, {\n values: function values(O) {\n return $values(O);\n }\n });\n /***/\n },\n\n /***/\n \"0b32\":\n /***/\n function b32(module, exports, __webpack_require__) {// extracted by mini-css-extract-plugin\n\n /***/\n },\n\n /***/\n \"0cb2\":\n /***/\n function cb2(module, exports, __webpack_require__) {\n var toObject = __webpack_require__(\"7b0b\");\n\n var floor = Math.floor;\n var replace = ''.replace;\n var SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\n var SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g; // `GetSubstitution` abstract operation\n // https://tc39.es/ecma262/#sec-getsubstitution\n\n module.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n\n return replace.call(replacement, symbols, function (match, ch) {\n var capture;\n\n switch (ch.charAt(0)) {\n case '$':\n return '$';\n\n case '&':\n return matched;\n\n case '`':\n return str.slice(0, position);\n\n case \"'\":\n return str.slice(tailPos);\n\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n\n default:\n // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n\n capture = captures[n - 1];\n }\n\n return capture === undefined ? '' : capture;\n });\n };\n /***/\n\n },\n\n /***/\n \"0cfb\":\n /***/\n function cfb(module, exports, __webpack_require__) {\n var DESCRIPTORS = __webpack_require__(\"83ab\");\n\n var fails = __webpack_require__(\"d039\");\n\n var createElement = __webpack_require__(\"cc12\"); // Thank's IE8 for his funny defineProperty\n\n\n module.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- requied for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function get() {\n return 7;\n }\n }).a != 7;\n });\n /***/\n },\n\n /***/\n \"107c\":\n /***/\n function c(module, exports, __webpack_require__) {\n var fails = __webpack_require__(\"d039\");\n\n module.exports = fails(function () {\n // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError\n var re = RegExp('(?b)', _typeof2('').charAt(5));\n return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc';\n });\n /***/\n },\n\n /***/\n \"14c3\":\n /***/\n function c3(module, exports, __webpack_require__) {\n var classof = __webpack_require__(\"c6b6\");\n\n var regexpExec = __webpack_require__(\"9263\"); // `RegExpExec` abstract operation\n // https://tc39.es/ecma262/#sec-regexpexec\n\n\n module.exports = function (R, S) {\n var exec = R.exec;\n\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n\n if (_typeof2(result) !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n\n return result;\n }\n\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n\n return regexpExec.call(R, S);\n };\n /***/\n\n },\n\n /***/\n \"159b\":\n /***/\n function b(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n var DOMIterables = __webpack_require__(\"fdbc\");\n\n var forEach = __webpack_require__(\"17c2\");\n\n var createNonEnumerableProperty = __webpack_require__(\"9112\");\n\n for (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype; // some Chrome versions have non-configurable methods on DOMTokenList\n\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n }\n /***/\n\n },\n\n /***/\n \"17c2\":\n /***/\n function c2(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $forEach = __webpack_require__(\"b727\").forEach;\n\n var arrayMethodIsStrict = __webpack_require__(\"a640\");\n\n var STRICT_METHOD = arrayMethodIsStrict('forEach'); // `Array.prototype.forEach` method implementation\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n\n module.exports = !STRICT_METHOD ? function forEach(callbackfn\n /* , thisArg */\n ) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); // eslint-disable-next-line es/no-array-prototype-foreach -- safe\n } : [].forEach;\n /***/\n },\n\n /***/\n \"1be4\":\n /***/\n function be4(module, exports, __webpack_require__) {\n var getBuiltIn = __webpack_require__(\"d066\");\n\n module.exports = getBuiltIn('document', 'documentElement');\n /***/\n },\n\n /***/\n \"1c0b\":\n /***/\n function c0b(module, exports) {\n module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n }\n\n return it;\n };\n /***/\n\n },\n\n /***/\n \"1c7e\":\n /***/\n function c7e(module, exports, __webpack_require__) {\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var ITERATOR = wellKnownSymbol('iterator');\n var SAFE_CLOSING = false;\n\n try {\n var called = 0;\n var iteratorWithReturn = {\n next: function next() {\n return {\n done: !!called++\n };\n },\n 'return': function _return() {\n SAFE_CLOSING = true;\n }\n };\n\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n }; // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n\n\n Array.from(iteratorWithReturn, function () {\n throw 2;\n });\n } catch (error) {\n /* empty */\n }\n\n module.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n\n try {\n var object = {};\n\n object[ITERATOR] = function () {\n return {\n next: function next() {\n return {\n done: ITERATION_SUPPORT = true\n };\n }\n };\n };\n\n exec(object);\n } catch (error) {\n /* empty */\n }\n\n return ITERATION_SUPPORT;\n };\n /***/\n\n },\n\n /***/\n \"1c94\":\n /***/\n function c94(module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n /* harmony import */\n\n var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslide_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"4192\");\n /* harmony import */\n\n\n var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslide_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslide_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);\n /* unused harmony reexport * */\n\n /***/\n\n },\n\n /***/\n \"1d80\":\n /***/\n function d80(module, exports) {\n // `RequireObjectCoercible` abstract operation\n // https://tc39.es/ecma262/#sec-requireobjectcoercible\n module.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n };\n /***/\n\n },\n\n /***/\n \"1dde\":\n /***/\n function dde(module, exports, __webpack_require__) {\n var fails = __webpack_require__(\"d039\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var V8_VERSION = __webpack_require__(\"2d00\");\n\n var SPECIES = wellKnownSymbol('species');\n\n module.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n\n constructor[SPECIES] = function () {\n return {\n foo: 1\n };\n };\n\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n };\n /***/\n\n },\n\n /***/\n \"23cb\":\n /***/\n function cb(module, exports, __webpack_require__) {\n var toInteger = __webpack_require__(\"a691\");\n\n var max = Math.max;\n var min = Math.min; // Helper for a popular repeating case of the spec:\n // Let integer be ? ToInteger(index).\n // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\n\n module.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n };\n /***/\n\n },\n\n /***/\n \"23e7\":\n /***/\n function e7(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n var getOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\n\n var createNonEnumerableProperty = __webpack_require__(\"9112\");\n\n var redefine = __webpack_require__(\"6eeb\");\n\n var setGlobal = __webpack_require__(\"ce4e\");\n\n var copyConstructorProperties = __webpack_require__(\"e893\");\n\n var isForced = __webpack_require__(\"94ca\");\n /*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n */\n\n\n module.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n\n if (target) for (key in source) {\n sourceProperty = source[key];\n\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target\n\n if (!FORCED && targetProperty !== undefined) {\n if (_typeof2(sourceProperty) === _typeof2(targetProperty)) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n } // add a flag to not completely full polyfills\n\n\n if (options.sham || targetProperty && targetProperty.sham) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n } // extend global\n\n\n redefine(target, key, sourceProperty, options);\n }\n };\n /***/\n\n },\n\n /***/\n \"241c\":\n /***/\n function c(module, exports, __webpack_require__) {\n var internalObjectKeys = __webpack_require__(\"ca84\");\n\n var enumBugKeys = __webpack_require__(\"7839\");\n\n var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n // eslint-disable-next-line es/no-object-getownpropertynames -- safe\n\n exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n };\n /***/\n\n },\n\n /***/\n \"2532\":\n /***/\n function _(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $ = __webpack_require__(\"23e7\");\n\n var notARegExp = __webpack_require__(\"5a34\");\n\n var requireObjectCoercible = __webpack_require__(\"1d80\");\n\n var correctIsRegExpLogic = __webpack_require__(\"ab13\"); // `String.prototype.includes` method\n // https://tc39.es/ecma262/#sec-string.prototype.includes\n\n\n $({\n target: 'String',\n proto: true,\n forced: !correctIsRegExpLogic('includes')\n }, {\n includes: function includes(searchString\n /* , position = 0 */\n ) {\n return !!~String(requireObjectCoercible(this)).indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);\n }\n });\n /***/\n },\n\n /***/\n \"2a62\":\n /***/\n function a62(module, exports, __webpack_require__) {\n var anObject = __webpack_require__(\"825a\");\n\n module.exports = function (iterator) {\n var returnMethod = iterator['return'];\n\n if (returnMethod !== undefined) {\n return anObject(returnMethod.call(iterator)).value;\n }\n };\n /***/\n\n },\n\n /***/\n \"2d00\":\n /***/\n function d00(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n var userAgent = __webpack_require__(\"342f\");\n\n var process = global.process;\n var versions = process && process.versions;\n var v8 = versions && versions.v8;\n var match, version;\n\n if (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : match[0] + match[1];\n } else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n }\n\n module.exports = version && +version;\n /***/\n },\n\n /***/\n \"342f\":\n /***/\n function f(module, exports, __webpack_require__) {\n var getBuiltIn = __webpack_require__(\"d066\");\n\n module.exports = getBuiltIn('navigator', 'userAgent') || '';\n /***/\n },\n\n /***/\n \"35a1\":\n /***/\n function a1(module, exports, __webpack_require__) {\n var classof = __webpack_require__(\"f5df\");\n\n var Iterators = __webpack_require__(\"3f8c\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var ITERATOR = wellKnownSymbol('iterator');\n\n module.exports = function (it) {\n if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];\n };\n /***/\n\n },\n\n /***/\n \"37e8\":\n /***/\n function e8(module, exports, __webpack_require__) {\n var DESCRIPTORS = __webpack_require__(\"83ab\");\n\n var definePropertyModule = __webpack_require__(\"9bf2\");\n\n var anObject = __webpack_require__(\"825a\");\n\n var objectKeys = __webpack_require__(\"df75\"); // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n // eslint-disable-next-line es/no-object-defineproperties -- safe\n\n\n module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n\n while (length > index) {\n definePropertyModule.f(O, key = keys[index++], Properties[key]);\n }\n\n return O;\n };\n /***/\n },\n\n /***/\n \"3bbe\":\n /***/\n function bbe(module, exports, __webpack_require__) {\n var isObject = __webpack_require__(\"861d\");\n\n module.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n }\n\n return it;\n };\n /***/\n\n },\n\n /***/\n \"3ca3\":\n /***/\n function ca3(module, exports, __webpack_require__) {\n \"use strict\";\n\n var charAt = __webpack_require__(\"6547\").charAt;\n\n var InternalStateModule = __webpack_require__(\"69f3\");\n\n var defineIterator = __webpack_require__(\"7dd0\");\n\n var STRING_ITERATOR = 'String Iterator';\n var setInternalState = InternalStateModule.set;\n var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); // `String.prototype[@@iterator]` method\n // https://tc39.es/ecma262/#sec-string.prototype-@@iterator\n\n defineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n }); // `%StringIteratorPrototype%.next` method\n // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n }, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return {\n value: undefined,\n done: true\n };\n point = charAt(string, index);\n state.index += point.length;\n return {\n value: point,\n done: false\n };\n });\n /***/\n },\n\n /***/\n \"3f8c\":\n /***/\n function f8c(module, exports) {\n module.exports = {};\n /***/\n },\n\n /***/\n \"4192\":\n /***/\n function _(module, exports, __webpack_require__) {// extracted by mini-css-extract-plugin\n\n /***/\n },\n\n /***/\n \"428f\":\n /***/\n function f(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n module.exports = global;\n /***/\n },\n\n /***/\n \"44ad\":\n /***/\n function ad(module, exports, __webpack_require__) {\n var fails = __webpack_require__(\"d039\");\n\n var classof = __webpack_require__(\"c6b6\");\n\n var split = ''.split; // fallback for non-array-like ES3 and non-enumerable old V8 strings\n\n module.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n }) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n } : Object;\n /***/\n },\n\n /***/\n \"44d2\":\n /***/\n function d2(module, exports, __webpack_require__) {\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var create = __webpack_require__(\"7c73\");\n\n var definePropertyModule = __webpack_require__(\"9bf2\");\n\n var UNSCOPABLES = wellKnownSymbol('unscopables');\n var ArrayPrototype = Array.prototype; // Array.prototype[@@unscopables]\n // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\n\n if (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n } // add a key to Array.prototype[@@unscopables]\n\n\n module.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n };\n /***/\n\n },\n\n /***/\n \"44e7\":\n /***/\n function e7(module, exports, __webpack_require__) {\n var isObject = __webpack_require__(\"861d\");\n\n var classof = __webpack_require__(\"c6b6\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var MATCH = wellKnownSymbol('match'); // `IsRegExp` abstract operation\n // https://tc39.es/ecma262/#sec-isregexp\n\n module.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n };\n /***/\n\n },\n\n /***/\n \"4930\":\n /***/\n function _(module, exports, __webpack_require__) {\n /* eslint-disable es/no-symbol -- required for testing */\n var V8_VERSION = __webpack_require__(\"2d00\");\n\n var fails = __webpack_require__(\"d039\"); // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\n\n\n module.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n\n return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n });\n /***/\n },\n\n /***/\n \"4d64\":\n /***/\n function d64(module, exports, __webpack_require__) {\n var toIndexedObject = __webpack_require__(\"fc6a\");\n\n var toLength = __webpack_require__(\"50c4\");\n\n var toAbsoluteIndex = __webpack_require__(\"23cb\"); // `Array.prototype.{ indexOf, includes }` methods implementation\n\n\n var createMethod = function createMethod(IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value; // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check\n\n if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n }\n return !IS_INCLUDES && -1;\n };\n };\n\n module.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n };\n /***/\n },\n\n /***/\n \"4de4\":\n /***/\n function de4(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $ = __webpack_require__(\"23e7\");\n\n var $filter = __webpack_require__(\"b727\").filter;\n\n var arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\n\n var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter'); // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n // with adding support of @@species\n\n $({\n target: 'Array',\n proto: true,\n forced: !HAS_SPECIES_SUPPORT\n }, {\n filter: function filter(callbackfn\n /* , thisArg */\n ) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n });\n /***/\n },\n\n /***/\n \"4df4\":\n /***/\n function df4(module, exports, __webpack_require__) {\n \"use strict\";\n\n var bind = __webpack_require__(\"0366\");\n\n var toObject = __webpack_require__(\"7b0b\");\n\n var callWithSafeIterationClosing = __webpack_require__(\"9bdd\");\n\n var isArrayIteratorMethod = __webpack_require__(\"e95a\");\n\n var toLength = __webpack_require__(\"50c4\");\n\n var createProperty = __webpack_require__(\"8418\");\n\n var getIteratorMethod = __webpack_require__(\"35a1\"); // `Array.from` method implementation\n // https://tc39.es/ecma262/#sec-array.from\n\n\n module.exports = function from(arrayLike\n /* , mapfn = undefined, thisArg = undefined */\n ) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2); // if the target is not iterable or it's an array with the default iterator - use a simple case\n\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n\n for (; !(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n\n for (; length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n\n result.length = index;\n return result;\n };\n /***/\n\n },\n\n /***/\n \"4e82\":\n /***/\n function e82(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $ = __webpack_require__(\"23e7\");\n\n var aFunction = __webpack_require__(\"1c0b\");\n\n var toObject = __webpack_require__(\"7b0b\");\n\n var toLength = __webpack_require__(\"50c4\");\n\n var fails = __webpack_require__(\"d039\");\n\n var internalSort = __webpack_require__(\"addb\");\n\n var arrayMethodIsStrict = __webpack_require__(\"a640\");\n\n var FF = __webpack_require__(\"04d1\");\n\n var IE_OR_EDGE = __webpack_require__(\"d998\");\n\n var V8 = __webpack_require__(\"2d00\");\n\n var WEBKIT = __webpack_require__(\"512c\");\n\n var test = [];\n var nativeSort = test.sort; // IE8-\n\n var FAILS_ON_UNDEFINED = fails(function () {\n test.sort(undefined);\n }); // V8 bug\n\n var FAILS_ON_NULL = fails(function () {\n test.sort(null);\n }); // Old WebKit\n\n var STRICT_METHOD = arrayMethodIsStrict('sort');\n var STABLE_SORT = !fails(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n var result = '';\n var code, chr, value, index; // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66:\n case 69:\n case 70:\n case 72:\n value = 3;\n break;\n\n case 68:\n case 71:\n value = 4;\n break;\n\n default:\n value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({\n k: chr + index,\n v: value\n });\n }\n }\n\n test.sort(function (a, b) {\n return b.v - a.v;\n });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n });\n var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;\n\n var getSortCompare = function getSortCompare(comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return String(x) > String(y) ? 1 : -1;\n };\n }; // `Array.prototype.sort` method\n // https://tc39.es/ecma262/#sec-array.prototype.sort\n\n\n $({\n target: 'Array',\n proto: true,\n forced: FORCED\n }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aFunction(comparefn);\n var array = toObject(this);\n if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);\n var items = [];\n var arrayLength = toLength(array.length);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) items.push(array[index]);\n }\n\n items = internalSort(items, getSortCompare(comparefn));\n itemsLength = items.length;\n index = 0;\n\n while (index < itemsLength) {\n array[index] = items[index++];\n }\n\n while (index < arrayLength) {\n delete array[index++];\n }\n\n return array;\n }\n });\n /***/\n },\n\n /***/\n \"50c4\":\n /***/\n function c4(module, exports, __webpack_require__) {\n var toInteger = __webpack_require__(\"a691\");\n\n var min = Math.min; // `ToLength` abstract operation\n // https://tc39.es/ecma262/#sec-tolength\n\n module.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n };\n /***/\n\n },\n\n /***/\n \"512c\":\n /***/\n function c(module, exports, __webpack_require__) {\n var userAgent = __webpack_require__(\"342f\");\n\n var webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n module.exports = !!webkit && +webkit[1];\n /***/\n },\n\n /***/\n \"5135\":\n /***/\n function _(module, exports, __webpack_require__) {\n var toObject = __webpack_require__(\"7b0b\");\n\n var hasOwnProperty = {}.hasOwnProperty;\n\n module.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty.call(toObject(it), key);\n };\n /***/\n\n },\n\n /***/\n \"5319\":\n /***/\n function _(module, exports, __webpack_require__) {\n \"use strict\";\n\n var fixRegExpWellKnownSymbolLogic = __webpack_require__(\"d784\");\n\n var fails = __webpack_require__(\"d039\");\n\n var anObject = __webpack_require__(\"825a\");\n\n var toLength = __webpack_require__(\"50c4\");\n\n var toInteger = __webpack_require__(\"a691\");\n\n var requireObjectCoercible = __webpack_require__(\"1d80\");\n\n var advanceStringIndex = __webpack_require__(\"8aa5\");\n\n var getSubstitution = __webpack_require__(\"0cb2\");\n\n var regExpExec = __webpack_require__(\"14c3\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var REPLACE = wellKnownSymbol('replace');\n var max = Math.max;\n var min = Math.min;\n\n var maybeToString = function maybeToString(it) {\n return it === undefined ? it : String(it);\n }; // IE <= 11 replaces $0 with the whole match, as if it was $&\n // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\n\n\n var REPLACE_KEEPS_$0 = function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n }(); // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\n\n\n var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n\n return false;\n }();\n\n var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n\n re.exec = function () {\n var result = [];\n result.groups = {\n a: '7'\n };\n return result;\n };\n\n return ''.replace(re, '$') !== '7';\n }); // @@replace logic\n\n fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n return [// `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined ? replacer.call(searchValue, O, replaceValue) : nativeReplace.call(String(O), searchValue, replaceValue);\n }, // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n if (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 && replaceValue.indexOf('$<') === -1) {\n var res = maybeCallNative(nativeReplace, this, string, replaceValue);\n if (res.done) return res.value;\n }\n\n var rx = anObject(this);\n var S = String(string);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n\n var results = [];\n\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = []; // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n\n for (var j = 1; j < result.length; j++) {\n captures.push(maybeToString(result[j]));\n }\n\n var namedCaptures = result.groups;\n\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n\n return accumulatedResult + S.slice(nextSourcePosition);\n }];\n }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n /***/\n },\n\n /***/\n \"5692\":\n /***/\n function _(module, exports, __webpack_require__) {\n var IS_PURE = __webpack_require__(\"c430\");\n\n var store = __webpack_require__(\"c6cd\");\n\n (module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n })('versions', []).push({\n version: '3.15.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 Denis Pushkarev (zloirock.ru)'\n });\n /***/\n },\n\n /***/\n \"56ef\":\n /***/\n function ef(module, exports, __webpack_require__) {\n var getBuiltIn = __webpack_require__(\"d066\");\n\n var getOwnPropertyNamesModule = __webpack_require__(\"241c\");\n\n var getOwnPropertySymbolsModule = __webpack_require__(\"7418\");\n\n var anObject = __webpack_require__(\"825a\"); // all object keys, includes non-enumerable and symbols\n\n\n module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n };\n /***/\n\n },\n\n /***/\n \"5899\":\n /***/\n function _(module, exports) {\n // a string of all valid unicode whitespaces\n module.exports = \"\\t\\n\\x0B\\f\\r \\xA0\\u1680\\u2000\\u2001\\u2002\" + \"\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF\";\n /***/\n },\n\n /***/\n \"58a8\":\n /***/\n function a8(module, exports, __webpack_require__) {\n var requireObjectCoercible = __webpack_require__(\"1d80\");\n\n var whitespaces = __webpack_require__(\"5899\");\n\n var whitespace = '[' + whitespaces + ']';\n var ltrim = RegExp('^' + whitespace + whitespace + '*');\n var rtrim = RegExp(whitespace + whitespace + '*$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\n\n var createMethod = function createMethod(TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n };\n\n module.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n };\n /***/\n },\n\n /***/\n \"5a34\":\n /***/\n function a34(module, exports, __webpack_require__) {\n var isRegExp = __webpack_require__(\"44e7\");\n\n module.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n }\n\n return it;\n };\n /***/\n\n },\n\n /***/\n \"5c6c\":\n /***/\n function c6c(module, exports) {\n module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n };\n /***/\n\n },\n\n /***/\n \"6547\":\n /***/\n function _(module, exports, __webpack_require__) {\n var toInteger = __webpack_require__(\"a691\");\n\n var requireObjectCoercible = __webpack_require__(\"1d80\"); // `String.prototype.{ codePointAt, at }` methods implementation\n\n\n var createMethod = function createMethod(CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? S.charAt(position) : first : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n };\n\n module.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n };\n /***/\n },\n\n /***/\n \"65f0\":\n /***/\n function f0(module, exports, __webpack_require__) {\n var isObject = __webpack_require__(\"861d\");\n\n var isArray = __webpack_require__(\"e8b5\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var SPECIES = wellKnownSymbol('species'); // `ArraySpeciesCreate` abstract operation\n // https://tc39.es/ecma262/#sec-arrayspeciescreate\n\n module.exports = function (originalArray, length) {\n var C;\n\n if (isArray(originalArray)) {\n C = originalArray.constructor; // cross-realm fallback\n\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n }\n\n return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n };\n /***/\n\n },\n\n /***/\n \"682b\":\n /***/\n function b(module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n /* harmony import */\n\n var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslides_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"fe3f\");\n /* harmony import */\n\n\n var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslides_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_vueperslides_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);\n /* unused harmony reexport * */\n\n /***/\n\n },\n\n /***/\n \"69f3\":\n /***/\n function f3(module, exports, __webpack_require__) {\n var NATIVE_WEAK_MAP = __webpack_require__(\"7f9a\");\n\n var global = __webpack_require__(\"da84\");\n\n var isObject = __webpack_require__(\"861d\");\n\n var createNonEnumerableProperty = __webpack_require__(\"9112\");\n\n var objectHas = __webpack_require__(\"5135\");\n\n var shared = __webpack_require__(\"c6cd\");\n\n var sharedKey = __webpack_require__(\"f772\");\n\n var hiddenKeys = __webpack_require__(\"d012\");\n\n var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\n var WeakMap = global.WeakMap;\n var set, get, has;\n\n var enforce = function enforce(it) {\n return has(it) ? get(it) : set(it, {});\n };\n\n var getterFor = function getterFor(TYPE) {\n return function (it) {\n var state;\n\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n }\n\n return state;\n };\n };\n\n if (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n\n set = function set(it, metadata) {\n if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset.call(store, it, metadata);\n return metadata;\n };\n\n get = function get(it) {\n return wmget.call(store, it) || {};\n };\n\n has = function has(it) {\n return wmhas.call(store, it);\n };\n } else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n\n set = function set(it, metadata) {\n if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n\n get = function get(it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n\n has = function has(it) {\n return objectHas(it, STATE);\n };\n }\n\n module.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n };\n /***/\n },\n\n /***/\n \"6eeb\":\n /***/\n function eeb(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n var createNonEnumerableProperty = __webpack_require__(\"9112\");\n\n var has = __webpack_require__(\"5135\");\n\n var setGlobal = __webpack_require__(\"ce4e\");\n\n var inspectSource = __webpack_require__(\"8925\");\n\n var InternalStateModule = __webpack_require__(\"69f3\");\n\n var getInternalState = InternalStateModule.get;\n var enforceInternalState = InternalStateModule.enforce;\n var TEMPLATE = String(String).split('String');\n (module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var state;\n\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) {\n createNonEnumerableProperty(value, 'name', key);\n }\n\n state = enforceInternalState(value);\n\n if (!state.source) {\n state.source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n }\n\n if (O === global) {\n if (simple) O[key] = value;else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n\n if (simple) O[key] = value;else createNonEnumerableProperty(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n })(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n });\n /***/\n },\n\n /***/\n \"6f53\":\n /***/\n function f53(module, exports, __webpack_require__) {\n var DESCRIPTORS = __webpack_require__(\"83ab\");\n\n var objectKeys = __webpack_require__(\"df75\");\n\n var toIndexedObject = __webpack_require__(\"fc6a\");\n\n var propertyIsEnumerable = __webpack_require__(\"d1e7\").f; // `Object.{ entries, values }` methods implementation\n\n\n var createMethod = function createMethod(TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n\n while (length > i) {\n key = keys[i++];\n\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n\n return result;\n };\n };\n\n module.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n };\n /***/\n },\n\n /***/\n \"7156\":\n /***/\n function _(module, exports, __webpack_require__) {\n var isObject = __webpack_require__(\"861d\");\n\n var setPrototypeOf = __webpack_require__(\"d2bb\"); // makes subclassing work correct for wrapped built-ins\n\n\n module.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if ( // it can work only with native `setPrototypeOf`\n setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n typeof (NewTarget = dummy.constructor) == 'function' && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n };\n /***/\n\n },\n\n /***/\n \"7418\":\n /***/\n function _(module, exports) {\n // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\n exports.f = Object.getOwnPropertySymbols;\n /***/\n },\n\n /***/\n \"746f\":\n /***/\n function f(module, exports, __webpack_require__) {\n var path = __webpack_require__(\"428f\");\n\n var has = __webpack_require__(\"5135\");\n\n var wrappedWellKnownSymbolModule = __webpack_require__(\"e538\");\n\n var defineProperty = __webpack_require__(\"9bf2\").f;\n\n module.exports = function (NAME) {\n var _Symbol = path.Symbol || (path.Symbol = {});\n\n if (!has(_Symbol, NAME)) defineProperty(_Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n };\n /***/\n\n },\n\n /***/\n \"7839\":\n /***/\n function _(module, exports) {\n // IE8- don't enum bug keys\n module.exports = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];\n /***/\n },\n\n /***/\n \"7b0b\":\n /***/\n function b0b(module, exports, __webpack_require__) {\n var requireObjectCoercible = __webpack_require__(\"1d80\"); // `ToObject` abstract operation\n // https://tc39.es/ecma262/#sec-toobject\n\n\n module.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n };\n /***/\n\n },\n\n /***/\n \"7c73\":\n /***/\n function c73(module, exports, __webpack_require__) {\n var anObject = __webpack_require__(\"825a\");\n\n var defineProperties = __webpack_require__(\"37e8\");\n\n var enumBugKeys = __webpack_require__(\"7839\");\n\n var hiddenKeys = __webpack_require__(\"d012\");\n\n var html = __webpack_require__(\"1be4\");\n\n var documentCreateElement = __webpack_require__(\"cc12\");\n\n var sharedKey = __webpack_require__(\"f772\");\n\n var GT = '>';\n var LT = '<';\n var PROTOTYPE = 'prototype';\n var SCRIPT = 'script';\n var IE_PROTO = sharedKey('IE_PROTO');\n\n var EmptyConstructor = function EmptyConstructor() {\n /* empty */\n };\n\n var scriptTag = function scriptTag(content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype\n\n\n var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX(activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n\n return temp;\n }; // Create object with fake `null` prototype: use iframe Object with cleared prototype\n\n\n var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame() {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475\n\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n }; // Check for document.domain and active x support\n // No need to use active x approach when document.domain is not set\n // see https://github.com/es-shims/es5-shim/issues/150\n // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n // avoid IE GC bug\n\n\n var activeXDocument;\n\n var _NullProtoObject = function NullProtoObject() {\n try {\n /* global ActiveXObject -- old IE */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) {\n /* ignore */\n }\n\n _NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n\n while (length--) {\n delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n }\n\n return _NullProtoObject();\n };\n\n hiddenKeys[IE_PROTO] = true; // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n\n module.exports = Object.create || function create(O, Properties) {\n var result;\n\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null; // add \"__proto__\" for Object.getPrototypeOf polyfill\n\n result[IE_PROTO] = O;\n } else result = _NullProtoObject();\n\n return Properties === undefined ? result : defineProperties(result, Properties);\n };\n /***/\n\n },\n\n /***/\n \"7db0\":\n /***/\n function db0(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $ = __webpack_require__(\"23e7\");\n\n var $find = __webpack_require__(\"b727\").find;\n\n var addToUnscopables = __webpack_require__(\"44d2\");\n\n var FIND = 'find';\n var SKIPS_HOLES = true; // Shouldn't skip holes\n\n if (FIND in []) Array(1)[FIND](function () {\n SKIPS_HOLES = false;\n }); // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n\n $({\n target: 'Array',\n proto: true,\n forced: SKIPS_HOLES\n }, {\n find: function find(callbackfn\n /* , that = undefined */\n ) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\n\n addToUnscopables(FIND);\n /***/\n },\n\n /***/\n \"7dd0\":\n /***/\n function dd0(module, exports, __webpack_require__) {\n \"use strict\";\n\n var $ = __webpack_require__(\"23e7\");\n\n var createIteratorConstructor = __webpack_require__(\"9ed3\");\n\n var getPrototypeOf = __webpack_require__(\"e163\");\n\n var setPrototypeOf = __webpack_require__(\"d2bb\");\n\n var setToStringTag = __webpack_require__(\"d44e\");\n\n var createNonEnumerableProperty = __webpack_require__(\"9112\");\n\n var redefine = __webpack_require__(\"6eeb\");\n\n var wellKnownSymbol = __webpack_require__(\"b622\");\n\n var IS_PURE = __webpack_require__(\"c430\");\n\n var Iterators = __webpack_require__(\"3f8c\");\n\n var IteratorsCore = __webpack_require__(\"ae93\");\n\n var IteratorPrototype = IteratorsCore.IteratorPrototype;\n var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\n var ITERATOR = wellKnownSymbol('iterator');\n var KEYS = 'keys';\n var VALUES = 'values';\n var ENTRIES = 'entries';\n\n var returnThis = function returnThis() {\n return this;\n };\n\n module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function getIterationMethod(KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n\n switch (KIND) {\n case KEYS:\n return function keys() {\n return new IteratorConstructor(this, KIND);\n };\n\n case VALUES:\n return function values() {\n return new IteratorConstructor(this, KIND);\n };\n\n case ENTRIES:\n return function entries() {\n return new IteratorConstructor(this, KIND);\n };\n }\n\n return function () {\n return new IteratorConstructor(this);\n };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY; // fix native\n\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n } // Set @@toStringTag to native iterators\n\n\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n } // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n\n\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n\n defaultIterator = function values() {\n return nativeIterator.call(this);\n };\n } // define iterator\n\n\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n\n Iterators[NAME] = defaultIterator; // export additional methods\n\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({\n target: NAME,\n proto: true,\n forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME\n }, methods);\n }\n\n return methods;\n };\n /***/\n\n },\n\n /***/\n \"7f9a\":\n /***/\n function f9a(module, exports, __webpack_require__) {\n var global = __webpack_require__(\"da84\");\n\n var inspectSource = __webpack_require__(\"8925\");\n\n var WeakMap = global.WeakMap;\n module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n /***/\n },\n\n /***/\n \"81d5\":\n /***/\n function d5(module, exports, __webpack_require__) {\n \"use strict\";\n\n var toObject = __webpack_require__(\"7b0b\");\n\n var toAbsoluteIndex = __webpack_require__(\"23cb\");\n\n var toLength = __webpack_require__(\"50c4\"); // `Array.prototype.fill` method implementation\n // https://tc39.es/ecma262/#sec-array.prototype.fill\n\n\n module.exports = function fill(value\n /* , start = 0, end = @length */\n ) {\n var O = toObject(this);\n var length = toLength(O.length);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n\n while (endPos > index) {\n O[index++] = value;\n }\n\n return O;\n };\n /***/\n\n },\n\n /***/\n \"825a\":\n /***/\n function a(module, exports, __webpack_require__) {\n var isObject = __webpack_require__(\"861d\");\n\n module.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n }\n\n return it;\n };\n /***/\n\n },\n\n /***/\n \"83ab\":\n /***/\n function ab(module, exports, __webpack_require__) {\n var fails = __webpack_require__(\"d039\"); // Detect IE8's incomplete defineProperty implementation\n\n\n module.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, {\n get: function get() {\n return 7;\n }\n })[1] != 7;\n });\n /***/\n },\n\n /***/\n \"8418\":\n /***/\n function _(module, exports, __webpack_require__) {\n \"use strict\";\n\n var toPrimitive = __webpack_require__(\"c04e\");\n\n var definePropertyModule = __webpack_require__(\"9bf2\");\n\n var createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\n module.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value;\n };\n /***/\n\n },\n\n /***/\n \"857a\":\n /***/\n function a(module, exports, __webpack_require__) {\n var requireObjectCoercible = __webpack_require__(\"1d80\");\n\n var quot = /\"/g; // `CreateHTML` abstract operation\n // https://tc39.es/ecma262/#sec-createhtml\n\n module.exports = function (string, tag, attribute, value) {\n var S = String(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '' + tag + '>';\n };\n /***/\n\n },\n\n /***/\n \"861d\":\n /***/\n function d(module, exports) {\n module.exports = function (it) {\n return _typeof2(it) === 'object' ? it !== null : typeof it === 'function';\n };\n /***/\n\n },\n\n /***/\n \"8875\":\n /***/\n function _(module, exports, __webpack_require__) {\n var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // addapted from the document.currentScript polyfill by Adam Miller\n // MIT license\n // source: https://github.com/amiller-gh/currentScript-polyfill\n // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n\n (function (root, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n })(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript() {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript'); // for chrome\n\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript;\n } // for other browsers with native support for currentScript\n\n\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript;\n } // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n\n\n try {\n throw new Error();\n } catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = stackDetails && stackDetails[1] || false,\n line = stackDetails && stackDetails[2] || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*\n\n","import { render, staticRenderFns } from \"./copy_to_clipboard.vue?vue&type=template&id=0b19c4ea&\"\nimport script from \"./copy_to_clipboard.vue?vue&type=script&lang=js&\"\nexport * from \"./copy_to_clipboard.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('button',{class:_vm.btnClass,on:{\"click\":_vm.copy}},[_vm._v(_vm._s(_vm.label))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n {{localDate}}\n \n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./date.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./date.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./date.vue?vue&type=template&id=fe4861fc&\"\nimport script from \"./date.vue?vue&type=script&lang=js&\"\nexport * from \"./date.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._v(\"\\n \"+_vm._s(_vm.localDate)+\"\\n\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./waiter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./waiter.vue?vue&type=script&lang=js&\"","\n \n \n \n \n \n {{text}}\n \n \n\n\n\n","import { render, staticRenderFns } from \"./waiter.vue?vue&type=template&id=a8e18a3c&\"\nimport script from \"./waiter.vue?vue&type=script&lang=js&\"\nexport * from \"./waiter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{on:{\"click\":_vm.click}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSlot),expression:\"showSlot\"}]},[_vm._t(\"default\")],2),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showSlot),expression:\"!showSlot\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\",class:_vm.iconClass}),_vm._v(\" \"),_c('span',{class:_vm.textClass},[_vm._v(_vm._s(_vm.text))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./select_account.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./select_account.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n
\n \n
\n
\n
\n\n\n","import { render, staticRenderFns } from \"./select_account.vue?vue&type=template&id=63d6ac18&\"\nimport script from \"./select_account.vue?vue&type=script&lang=js&\"\nexport * from \"./select_account.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('p',{staticClass:\"mt-25\"},[_c('label',[_c('input',{staticClass:\"with-gap\",attrs:{\"name\":\"group1\",\"type\":\"radio\",\"checked\":\"\"},on:{\"change\":function($event){_vm.selected='business'}}}),_vm._v(\" \"),_vm._m(0)])]),_vm._v(\" \"),_c('p',{staticClass:\"mt-25\"},[_c('label',[_c('input',{staticClass:\"with-gap\",attrs:{\"name\":\"group1\",\"type\":\"radio\"},on:{\"change\":function($event){_vm.selected='client'}}}),_vm._v(\" \"),_vm._m(1)])]),_vm._v(\" \"),_c('div',[_c('div',{staticClass:\"mt-50\"},[_c('a',{staticClass:\"btn wide-btn rounded-btn\",attrs:{\"href\":_vm.path}},[_vm._v(\"Next\")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('span',{staticClass:\"bold-font grey-text text-darken-2\"},[_vm._v(\"Business account\")]),_vm._v(\" \"),_c('p',{staticClass:\"small-font close-lines grey-text text-darken-1\",staticStyle:{\"margin-top\":\"0px\"}},[_vm._v(\"\\n A contactless way to accept payments. Zero fees,\"),_c('br'),_vm._v(\"\\n hardware or set up costs for your business.\\n \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('span',{staticClass:\"bold-font grey-text text-darken-2\"},[_vm._v(\"Personal account\")]),_vm._v(\" \"),_c('p',{staticClass:\"small-font close-lines grey-text text-darken-1\",staticStyle:{\"margin-top\":\"0px\"}},[_vm._v(\"\\n A safe, contactless way to make payments.\"),_c('br'),_vm._v(\"\\n Signing up is fast and free.\\n \")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./client_qr_scanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./client_qr_scanner.vue?vue&type=script&lang=js&\"","\n \n
\n \n Align QR code within frame to scan
\n ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.
\n Error: {{errorMessage}}
\n\n \n\n \n Scanned WRONG QR-code. Unable to process payment!\n
\n\n
\n BACK\n\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./client_qr_scanner.vue?vue&type=template&id=ed62eade&\"\nimport script from \"./client_qr_scanner.vue?vue&type=script&lang=js&\"\nexport * from \"./client_qr_scanner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./client_qr_scanner.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('svg',{staticClass:\"on-video mt-25\",attrs:{\"width\":\"300\",\"height\":\"300\"}},[_c('polyline',{attrs:{\"points\":\"60 0 0 0 0 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 0 170 0\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 0 300 0 300 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 240 0 300 60 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 300 170 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 300 300 300 300 240\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 130 0 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"300 130 300 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"20 150 280 150\",\"stroke\":\"red\",\"stroke-width\":\"3\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.3\"}},[_c('animate',{attrs:{\"attributeType\":\"XML\",\"attributeName\":\"stroke-opacity\",\"values\":\"0;0.2;0.5;0.7;0.5;0\",\"dur\":\"2s\",\"repeatCount\":\"indefinite\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"on-video mt-10\"},[_vm._v(\"Align QR code within frame to scan\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isCromeOniOS),expression:\"isCromeOniOS\"}],staticClass:\"on-video mt-10\"},[_vm._v(\"ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage),expression:\"errorMessage\"}],staticClass:\"on-video mt-10 red-text\"},[_vm._v(\"Error: \"+_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('qrcode-stream',{staticClass:\"fullscreen\",attrs:{\"camera\":\"auto\",\"track\":_vm.repaint},on:{\"decode\":_vm.codeScanned,\"init\":_vm.onInit}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showError),expression:\"showError\"}],staticClass:\"on-video\"},[_vm._v(\"\\n Scanned WRONG QR-code. Unable to process payment!\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"btn on-video\",attrs:{\"href\":\"/\"}},[_vm._v(\"BACK\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./profile_cable_plug.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./profile_cable_plug.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./profile_cable_plug.vue?vue&type=template&id=2508ea1e&\"\nimport script from \"./profile_cable_plug.vue?vue&type=script&lang=js&\"\nexport * from \"./profile_cable_plug.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./balance.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./balance.vue?vue&type=script&lang=js&\"","\n \n \n {{value | currency}}
\n \n Pending: \n {{pendingAmount | currency}}\n \n Collect your money\n \n Withdrawing ...\n \n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./balance.vue?vue&type=template&id=d37aad58&\"\nimport script from \"./balance.vue?vue&type=script&lang=js&\"\nexport * from \"./balance.vue?vue&type=script&lang=js&\"\nimport style0 from \"./balance.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[(_vm.value != null)?_c('span',[_c('span',{staticClass:\"bold-text show-balance flow-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.value)))]),_c('br'),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pendingAmount > 0),expression:\"pendingAmount > 0\"}]},[_c('i',{staticClass:\"far fa-clock\"}),_vm._v(\" Pending: \\n \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.pendingAmount)))])]),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.withdrawing && _vm.value > 0 && false),expression:\"!withdrawing && value > 0 && false\"}],attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.withdrawBalance.apply(null, arguments)}}},[_vm._v(\"Collect your money\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.withdrawing),expression:\"withdrawing\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Withdrawing ...\\n \")])]):_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text show-balance\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./balance_rewards.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./balance_rewards.vue?vue&type=script&lang=js&\"","\n \n \n {{value | currency}}\n \n
\n \n {{pendingAmount | currency}}\n \n \n \n Redeem\n \n
\n \n
\n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./balance_rewards.vue?vue&type=template&id=43845aef&\"\nimport script from \"./balance_rewards.vue?vue&type=script&lang=js&\"\nexport * from \"./balance_rewards.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[(_vm.value != null)?_c('span',[_c('span',{staticClass:\"bold-text show-balance flow-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.value)))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pendingAmount > 0),expression:\"pendingAmount > 0\"}]},[_c('br'),_vm._v(\" \"),_c('i',{staticClass:\"far fa-clock\"}),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.pendingAmount)))])]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value > 0),expression:\"value > 0\"}]},[_c('a',{staticClass:\"waves-effect waves-light btn-small\",attrs:{\"href\":\"/balance_reward_withdraw\"}},[_vm._v(\"\\n Redeem\\n \")]),_vm._v(\" \"),_c('br')]),_vm._v(\" \"),_c('br')]):_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text show-balance\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./dob_picker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./dob_picker.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
{{ errors.first('day') }}
\n
{{ errors.first('year') }}
\n
{{ errors.first('month') }}
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./dob_picker.vue?vue&type=template&id=1bdb8114&\"\nimport script from \"./dob_picker.vue?vue&type=script&lang=js&\"\nexport * from \"./dob_picker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s5\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.monthSelected),expression:\"monthSelected\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"browser-default\",attrs:{\"name\":\"month\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.monthSelected=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.monthes),function(month){return _c('option',{domProps:{\"value\":month.value}},[_vm._v(_vm._s(month.name))])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"col s3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.day),expression:\"day\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric|min_value:1|max_value:31'),expression:\"'required|numeric|min_value:1|max_value:31'\"}],attrs:{\"placeholder\":\"Day\",\"name\":\"day\",\"type\":\"number\"},domProps:{\"value\":(_vm.day)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.day=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.year),expression:\"year\"},{name:\"validate\",rawName:\"v-validate\",value:('required|digits:4|min_value:1920|max_value:2005'),expression:\"'required|digits:4|min_value:1920|max_value:2005'\"}],attrs:{\"placeholder\":\"Year\",\"name\":\"year\",\"type\":\"number\"},domProps:{\"value\":(_vm.year)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.year=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('day')))]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('year')))]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('month')))]),_vm._v(\" \"),_c('input',{attrs:{\"name\":_vm.name,\"hidden\":\"\"},domProps:{\"value\":_vm.dobVal}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./auto_print.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./auto_print.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./auto_print.vue?vue&type=template&id=341fdae0&\"\nimport script from \"./auto_print.vue?vue&type=script&lang=js&\"\nexport * from \"./auto_print.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress_bar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress_bar.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n \n
\n Step 1
Registration\n
\n \n
\n Step 2
Verify identity\n
\n \n
\n Step 3
Add bank\n
\n
\n Step 4
Add Money\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./progress_bar.vue?vue&type=template&id=45e5f890&scoped=true&\"\nimport script from \"./progress_bar.vue?vue&type=script&lang=js&\"\nexport * from \"./progress_bar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./progress_bar.vue?vue&type=style&index=0&id=45e5f890&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"45e5f890\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.step)?_c('div',[_c('div',{staticClass:\"progress-bar\"},[_c('div',{staticClass:\"progress-track\"}),_vm._v(\" \"),_c('div',{ref:\"step1\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 1\")]),_c('br'),_vm._v(\" Registration\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step2\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 2\")]),_c('br'),_vm._v(\" Verify identity\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step3\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 3\")]),_c('br'),_vm._v(\" Add bank\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step4\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 4\")]),_c('br'),_vm._v(\" Add Money\\n \")])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./merchant_progress_bar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./merchant_progress_bar.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n \n
\n Step 1
Registration\n
\n \n
\n Step 2
Verifying business\n
\n \n
\n Step 3
Verifying major shareholder identity\n
\n \n
\n Step 4
Add bank\n
\n\n
\n Step 5
Upload docs\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./merchant_progress_bar.vue?vue&type=template&id=4e71721b&scoped=true&\"\nimport script from \"./merchant_progress_bar.vue?vue&type=script&lang=js&\"\nexport * from \"./merchant_progress_bar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./merchant_progress_bar.vue?vue&type=style&index=0&id=4e71721b&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e71721b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.step)?_c('div',[_c('div',{staticClass:\"progress-bar\"},[_c('div',{staticClass:\"progress-track\"}),_vm._v(\" \"),_c('div',{ref:\"step1\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 1\")]),_c('br'),_vm._v(\" Registration\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step2\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 2\")]),_c('br'),_vm._v(\" Verifying business\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step3\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 3\")]),_c('br'),_vm._v(\" Verifying major shareholder identity\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step4\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 4\")]),_c('br'),_vm._v(\" Add bank\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step5\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 5\")]),_c('br'),_vm._v(\" Upload docs\\n \")])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./unverified_progress_bar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./unverified_progress_bar.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n\n
\n Step 1
Registration\n
\n \n
\n Step 2
Set password\n
\n \n
\n Step 3
Add bank\n
\n
\n
\n\n\n\n\n","import { render, staticRenderFns } from \"./unverified_progress_bar.vue?vue&type=template&id=7d2aabb3&scoped=true&\"\nimport script from \"./unverified_progress_bar.vue?vue&type=script&lang=js&\"\nexport * from \"./unverified_progress_bar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./unverified_progress_bar.vue?vue&type=style&index=0&id=7d2aabb3&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7d2aabb3\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.step)?_c('div',[_c('div',{staticClass:\"progress-bar\"},[_c('div',{staticClass:\"progress-track\"}),_vm._v(\" \"),_c('div',{ref:\"step1\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 1\")]),_c('br'),_vm._v(\" Registration\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step2\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 2\")]),_c('br'),_vm._v(\" Set password\\n \")]),_vm._v(\" \"),_c('div',{ref:\"step3\",staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step 3\")]),_c('br'),_vm._v(\" Add bank\\n \")])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./notifications.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./notifications.vue?vue&type=script&lang=js&\"","\n \n {{count}}\n
\n\n\n\n","import { render, staticRenderFns } from \"./notifications.vue?vue&type=template&id=409eede6&\"\nimport script from \"./notifications.vue?vue&type=script&lang=js&\"\nexport * from \"./notifications.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.count > 0),expression:\"count > 0\"}],staticClass:\"red badge new\"},[_vm._v(_vm._s(_vm.count))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./ebt_transaction_poster.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./ebt_transaction_poster.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./ebt_transaction_poster.vue?vue&type=template&id=78b72716&\"\nimport script from \"./ebt_transaction_poster.vue?vue&type=script&lang=js&\"\nexport * from \"./ebt_transaction_poster.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('form',{ref:\"ebtForm\",attrs:{\"name\":\"ebtForm\",\"action\":_vm.pinPadPath,\"method\":\"POST\"}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"AccuLanguage\",\"value\":\"“en-US”\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.AccuId),expression:\"AccuId\"}],attrs:{\"type\":\"hidden\",\"name\":\"AccuId\"},domProps:{\"value\":(_vm.AccuId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.AccuId=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tranId),expression:\"tranId\"}],attrs:{\"type\":\"hidden\",\"name\":\"tranId\"},domProps:{\"value\":(_vm.tranId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.tranId=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.ebtCardTokenId),expression:\"ebtCardTokenId\"}],attrs:{\"type\":\"hidden\",\"name\":\"tempCardId\"},domProps:{\"value\":(_vm.ebtCardTokenId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.ebtCardTokenId=$event.target.value}}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"AccuReturnURL\"},domProps:{\"value\":_vm.returnUrl}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"redirectUrl\"},domProps:{\"value\":_vm.redirect}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"clientQid\"},domProps:{\"value\":_vm.clientQid}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"merchantQid\"},domProps:{\"value\":_vm.merchantQid}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"subtype\"},domProps:{\"value\":_vm.subtype}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"amount\"},domProps:{\"value\":_vm.amount}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"note\"},domProps:{\"value\":_vm.note}}),_vm._v(\" \"),_c('span',{staticClass:\"btn-large Xpay-btn\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.submit}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.submitDisabled),expression:\"submitDisabled\"}],staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.submitDisabled),expression:\"!submitDisabled\"}]},[_vm._v(\"Pay with EBT/\"+_vm._s(_vm.subtype))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_fields.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_fields.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n \n \n\n The Amount field must be 0.01 or more.\n
\n
\n \n \n
\n\n
\n \n
\n
\n \n
\n You are unable to pay this transaction!
\n No compatible funding source\n \n
Pay\n
\n \n \n
\n \n\n
\n
\n \n\n
\n\n
\n \n Add a tip (optional)\n \n {{percent}}% (${{tipAmountForPercent(percent)}}) | Remove\n \n \n \n \n \n Use preset tip\n \n
\n
\n
\n
15%
\n ${{tipAmountForPercent(15)}}\n
\n
\n
\n
\n
20%
\n ${{tipAmountForPercent(20)}}\n
\n
\n
\n
\n
25%
\n ${{tipAmountForPercent(25)}}\n
\n
\n
\n
CUSTOM TIP\n
\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./pay_fields.vue?vue&type=template&id=201065e0&scoped=true&\"\nimport script from \"./pay_fields.vue?vue&type=script&lang=js&\"\nexport * from \"./pay_fields.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"201065e0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":_vm.amountName,\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(_vm.amountName)),expression:\"errors.first(amountName)\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be 0.01 or more.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Note\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":_vm.noteName,\"placeholder\":\"Transaction details ...\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedFundingSource),expression:\"selectedFundingSource\"}],attrs:{\"type\":\"hidden\",\"name\":_vm.selectedFundingSourceName},domProps:{\"value\":(_vm.selectedFundingSource)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.selectedFundingSource=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"col s12 mt-25\"},[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.fundingSource.type == 'notAvailable'),expression:\"fundingSource.type == 'notAvailable'\"}],staticClass:\"card-panel\"},[_c('h3',{staticClass:\"red-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle\"}),_c('br'),_vm._v(\"\\n You are unable to pay this transaction!\")]),_vm._v(\"\\n No compatible funding source\\n \")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:([\"balance\", \"ach\"].includes(_vm.fundingSource.type)),expression:\"[\\\"balance\\\", \\\"ach\\\"].includes(fundingSource.type)\"}],staticClass:\"btn-large pay-btn\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.submitForm}},[_vm._v(\"Pay\")]),_vm._v(\" \"),(_vm.fundingSource.type == \"ebt\")?_c('ebt-transaction-poster',{staticClass:\"right\",attrs:{\"pinPadPath\":_vm.pinPadPath,\"returnUrl\":_vm.returnUrl,\"merchantQid\":_vm.merchantQid,\"clientQid\":_vm.clientQid,\"amount\":_vm.amount,\"note\":_vm.note,\"redirect\":_vm.redirect,\"subtype\":_vm.fundingSource.subtype,\"ebtCardTokenId\":_vm.fundingSource.id}}):_vm._e(),_vm._v(\" \"),_c('pay-by-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.fundingSource.type ==\"cc\"),expression:\"fundingSource.type ==\\\"cc\\\"\"}],attrs:{\"merchantQid\":_vm.merchantQid,\"amount\":_vm.amount,\"note\":_vm.note,\"subtype\":_vm.fundingSource.subtype,\"tipPercent\":_vm.percent,\"tipAmount\":_vm.tipAmountForPercent(_vm.percent),\"cardId\":_vm.fundingSource.id}})],1)])]),_vm._v(\" \"),_c('section',[_c('funding-source-picker',{attrs:{\"client-qid\":_vm.clientQid,\"merchant-qid\":_vm.merchantQid},model:{value:(_vm.fundingSource),callback:function ($$v) {_vm.fundingSource=$$v},expression:\"fundingSource\"}})],1),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTip && _vm.localSubmit),expression:\"showTip && localSubmit\"}]},[_c('center',{staticClass:\"large-font bold-text grey-text\"},[_vm._v(\"\\n Add a tip (optional)\\n \"),(_vm.tipAmountForPercent(_vm.percent) > 0)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.percent)+\"% ($\"+_vm._s(_vm.tipAmountForPercent(_vm.percent))+\") | \"),_c('a',{on:{\"click\":_vm.resetTip}},[_vm._v(\"Remove\")])]):_vm._e()]),_vm._v(\" \"),_c('label',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isHidden),expression:\"!isHidden\"}]},[_vm._v(\"Tip, USD\")]),_vm._v(\" \"),_c('input',{attrs:{\"name\":_vm.tipAmountName,\"hidden\":_vm.isHidden,\"step\":\"0.01\",\"type\":\"number\"},domProps:{\"value\":_vm.tipAmountForPercent(_vm.percent)},on:{\"input\":_vm.manualChanged}}),_vm._v(\" \"),_c('input',{attrs:{\"name\":_vm.tipPercentName,\"hidden\":\"\"},domProps:{\"value\":_vm.percent}}),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isHidden),expression:\"!isHidden\"}]},[_c('span',{staticClass:\"mt-10 btn grey lighten-4 grey-text text-darken-3\",attrs:{\"href\":\"\"},on:{\"click\":function($event){_vm.isHidden = !_vm.isHidden}}},[_vm._v(\"Use preset tip\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isHidden),expression:\"isHidden\"}]},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s4\"},[_c('div',{staticClass:\"card-panel pointer\",class:{\"emerald-back\": _vm.percent == 15},on:{\"click\":function($event){_vm.percent=15}}},[_c('div',{staticClass:\"big-font bold-text center\"},[_vm._v(\"15%\")]),_vm._v(\"\\n $\"+_vm._s(_vm.tipAmountForPercent(15))+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s4\"},[_c('div',{staticClass:\"card-panel pointer\",class:{\"emerald-back\": _vm.percent == 20},on:{\"click\":function($event){_vm.percent=20}}},[_c('div',{staticClass:\"big-font bold-text center\"},[_vm._v(\"20%\")]),_vm._v(\"\\n $\"+_vm._s(_vm.tipAmountForPercent(20))+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s4\"},[_c('div',{staticClass:\"card-panel pointer\",class:{\"emerald-back\": _vm.percent == 25},on:{\"click\":function($event){_vm.percent=25}}},[_c('div',{staticClass:\"big-font bold-text center\"},[_vm._v(\"25%\")]),_vm._v(\"\\n $\"+_vm._s(_vm.tipAmountForPercent(25))+\"\\n \")])])]),_vm._v(\" \"),_c('center',[_c('span',{staticClass:\"btn grey lighten-4 grey-text text-darken-3\",on:{\"click\":function($event){_vm.isHidden = !_vm.isHidden}}},[_vm._v(\"CUSTOM TIP\")])]),_c('br'),_c('br')],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_by_card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_by_card.vue?vue&type=script&lang=js&\"","\n \n Pay with {{subtype}}\n
\n\n\n\n","import { render, staticRenderFns } from \"./pay_by_card.vue?vue&type=template&id=5222704e&\"\nimport script from \"./pay_by_card.vue?vue&type=script&lang=js&\"\nexport * from \"./pay_by_card.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('span',{staticClass:\"btn-large pay-btn\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.submit}},[_vm._v(\"Pay with \"+_vm._s(_vm.subtype))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./email.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./email.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./email.vue?vue&type=template&id=6bd5855e&scoped=true&\"\nimport script from \"./email.vue?vue&type=script&lang=js&\"\nexport * from \"./email.vue?vue&type=script&lang=js&\"\nimport style0 from \"./email.vue?vue&type=style&index=0&id=6bd5855e&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6bd5855e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('transition',{attrs:{\"name\":\"bounce\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}]},[_c('h3',[_c('b',[_vm._v(\"Welcome to iWallet!\")])]),_vm._v(\" \"),_c('div',{staticClass:\"large-font\"},[_c('label',[_vm._v(\"First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"first_name\",\"name\":\"firstName\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"last_name\",\"name\":\"lastName\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Email\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"},{name:\"validate\",rawName:\"v-validate\",value:('required|email'),expression:\"'required|email'\"}],attrs:{\"placeholder\":\"email@example.com\",\"autofocus\":\"true\",\"autocomplete\":\"email\",\"name\":\"email\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"email\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",on:{\"click\":_vm.send}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Get link to free $25\\n \")])])])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.success),expression:\"success\"}]},[_c('h3',[_c('b',[_vm._v(\"Email Sent!\")])]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large\",attrs:{\"href\":\"/r/277954\"}},[_vm._v(\"Sign up and get $25 bonus\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./after_free_payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./after_free_payment.vue?vue&type=script&lang=js&\"","\n \n
\n\n \n \n Payment Successful
\n \n $0.00\n \n
\n \n Cashback 20% \n \n will be applied after signup
\n
\n for each transaction\n \n Order total: ${{amount}} paid by iWallet to
\n \n {{merchant}}\n \n
\n\n \n Auth code: {{authCode}} | \n {{timeNow}}\n
\n \n \n Would you like a $10 reward deposited to your bank account?\n
\n \n \n
\n\n \n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"","\n \n
\n Send payment
\n \n Pay for: {{subjectText}}\n
\n\n \n Free promo, just click PAY \n
\n\n \n
\n \n \n
\n\n
\n
Receiver:
{{merchant}}
\n
\n
\n\n \n\n \n \n\n
\n \n
\n Hey!
You already paid this merchant!
\n\n \n Signup to get $10 bonus and receive 20% cash back for each transaction\n
\n\n Sign up and get $10 bonus\n \n \n\n
\n \n \n A text message with a 4-digit verification code was just sent to\n {{email}}
\n
\n \n Wrong email? Edit\n
\n \n \n \n \n {{errors.first(\"code\")}}\n\n \n
\n\n \n
\n \n\n
\n Processing...\n \n\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./after_free_payment.vue?vue&type=template&id=a357c034&\"\nimport script from \"./after_free_payment.vue?vue&type=script&lang=js&\"\nexport * from \"./after_free_payment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container mt-50\"},[_c('center',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showEmail),expression:\"!showEmail\"}]},[_c('i',{staticClass:\"fas fa-check-circle fa-2x emerald\"}),_vm._v(\" \"),_c('div',{staticClass:\"large-font\"},[_c('b',[_vm._v(\"Payment Successful\")])]),_vm._v(\" \"),_c('span',{staticClass:\"big-font\"},[_c('b',[_vm._v(\"$0.00\")])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"emerald\"},[_vm._v(\"\\n Cashback 20% \\n \")]),_vm._v(\"\\n will be applied after signup\"),_c('br'),_vm._v(\" \"),_c('emojify',{attrs:{\"text\":\"😎\"}}),_vm._v(\" \"),_c('br'),_vm._v(\"\\n for each transaction\\n \"),_c('div',{staticClass:\"mt-25\"},[_vm._v(\"\\n Order total: $\"+_vm._s(_vm.amount)+\" paid by iWallet to\"),_c('br'),_vm._v(\" \"),_c('b',{staticClass:\"large-font\"},[_vm._v(\"\\n \"+_vm._s(_vm.merchant)+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"grey-text\"},[_vm._v(\"\\n Auth code: \"+_vm._s(_vm.authCode)+\" | \\n \"+_vm._s(_vm.timeNow)+\"\\n \")])],1),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('b',{staticClass:\"red-text\"},[_vm._v(\"Would you like a $10 reward deposited to your bank account?\")])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6\"},[_c('a',{staticClass:\"btn\",attrs:{\"href\":_vm.signupPath}},[_vm._v(\"Yes\")])])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./new.vue?vue&type=template&id=75434c85&scoped=true&\"\nimport script from \"./new.vue?vue&type=script&lang=js&\"\nexport * from \"./new.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75434c85\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm && !_vm.cookie),expression:\"showForm && !cookie\"}]},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"small-font grey-text\",staticStyle:{\"margin-top\":\"-15px\"}},[_vm._v(\"\\n Pay for: \"+_vm._s(_vm.subjectText)+\"\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showFreePayementNotice),expression:\"showFreePayementNotice\"}],staticClass:\"red-text\"},[_vm._v(\"\\n Free promo, just click PAY \"),_c('emojify',{attrs:{\"text\":'\\ud83d\\ude0e'}})],1),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\",on:{\"click\":_vm.amountClick}},[_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amountName\",\"value\":\"0.00\",\"step\":\"0.01\",\"type\":\"number\",\"disabled\":true}}),_vm._v(\" \"),_c('label',[_vm._v(\"Amount, USD\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6\"},[_c('p',[_vm._v(\"Receiver:\"),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(_vm._s(_vm.merchant))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"large-font\"},[_c('div',{staticClass:\"input-fields\"},[_c('label',{attrs:{\"for\":\"first_name\"}},[_vm._v(\"First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"placeholder\":\"Name...\",\"id\":\"first_name\",\"autofocus\":\"true\",\"autocomplete\":\"first_name\",\"name\":\"firstName\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"input-fields\"},[_c('label',{attrs:{\"for\":\"last_name\"}},[_vm._v(\"Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"placeholder\":\"Last name...\",\"autocomplete\":\"last_name\",\"name\":\"lastName\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"input-fields\"},[_c('label',{attrs:{\"for\":\"email\"}},[_vm._v(\"Email\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"},{name:\"validate\",rawName:\"v-validate\",value:('required|email'),expression:\"'required|email'\"}],attrs:{\"placeholder\":\"email@example.com\",\"type\":\"email\",\"autocomplete\":\"email\",\"name\":\"email\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"email\")))])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s12\"},[_c('span',{staticClass:\"btn-large right\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.submitForm}},[_vm._v(\"Pay\")])])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.cookie),expression:\"cookie\"}],staticClass:\"mt-25\"},[_c('center',[_c('emojify',{attrs:{\"text\":'\\ud83d\\ude0e',\"className\":\"emo-100\"}}),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"Hey!\"),_c('br'),_vm._v(\" You already paid this merchant!\")]),_vm._v(\" \"),_c('p',{staticClass:\"large-font\"},[_vm._v(\"\\n Signup to get \"),_c('b',{staticClass:\"emerald\"},[_vm._v(\"$10\")]),_vm._v(\" bonus and receive \"),_c('b',{staticClass:\"emerald\"},[_vm._v(\"20%\")]),_vm._v(\" cash back for each transaction\\n \")]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large mt-50\",attrs:{\"href\":\"/unverified_signup/new\"}},[_vm._v(\"Sign up and get $10 bonus\")])],1)],1),_vm._v(\" \"),(_vm.showVerificationCodeForm)?_c('section',{staticClass:\"mt-25\"},[_c('center',[_c('div',{staticClass:\"large-font\"},[_vm._v(\"\\n A text message with a 4-digit verification code was just sent to\\n \"),_c('b',[_vm._v(_vm._s(_vm.email))]),_c('br')]),_vm._v(\" \"),_c('div',[_vm._v(\"\\n Wrong email? \"),_c('span',{staticClass:\"btn-flat\",on:{\"click\":_vm.editEmail}},[_vm._v(\"Edit\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Enter the code\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.codeFromUser),expression:\"codeFromUser\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"number\",\"placeholder\":\"1234\",\"autofocus\":\"true\",\"name\":\"code\"},domProps:{\"value\":(_vm.codeFromUser)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.codeFromUser=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"code\")),expression:\"errors.first(\\\"code\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"code\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.verifyCode}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Send code\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSkip),expression:\"showSkip\"}],staticClass:\"btn mt-25 red\",staticStyle:{\"margin-lef\":\"10px\"},on:{\"click\":_vm.skip}},[_vm._v(\"\\n skip\\n \")])])],1):_vm._e(),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]),_vm._v(\" \"),_c('after-free-payment',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showForm && !_vm.showVerificationCodeForm && !_vm.showPending),expression:\"!showForm && !showVerificationCodeForm && !showPending\"}],attrs:{\"merchant\":_vm.merchant,\"amount\":_vm.amount,\"emailId\":_vm.emailId,\"authCode\":_vm.authCode}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h3',[_c('b',[_vm._v(\"Send payment\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./free_badges.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./free_badges.vue?vue&type=script&lang=js&\"","\n \n
\n \n Collect {{totalForReward}} stamps and get free sandwich\n
\n \n
\n 
\n \n \n Congrats! \n
\n You've got all stamps!\n
\n
\n
\n Or follow magic link for signup!\n
\n
\n \n
\n
\n Free Sandwich paid successfully!\n \n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./phone_after_free_payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./phone_after_free_payment.vue?vue&type=script&lang=js&\"","\n \n
\n\n \n \n Payment Successful
\n \n $0.00\n \n \n Order total paid by iWallet to
\n \n {{merchant}}\n \n
\n \n \n\n Sign up and get $100 bonus\n\n \n
\n\n \n\n","import { render, staticRenderFns } from \"./free_badges.vue?vue&type=template&id=7c64a385&\"\nimport script from \"./free_badges.vue?vue&type=script&lang=js&\"\nexport * from \"./free_badges.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-25\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showLoyaltyAfterpayment),expression:\"!showLoyaltyAfterpayment\"}]},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showButton),expression:\"!showButton\"}],staticClass:\"bold-text emerald\"},[_vm._v(\"\\n Collect \"+_vm._s(_vm.totalForReward)+\" stamps and get free sandwich\\n \")]),_vm._v(\" \"),(_vm.haveStamps || _vm.totalForReward)?_c('center',[_vm._l((parseInt(_vm.calcHaveStamps)),function(stamp){return _c('span',{key:stamp},[_c('img',{staticClass:\"responsive-img\",attrs:{\"src\":\"/reward.png\"}})])}),_vm._v(\" \"),_vm._l((_vm.leftToWin),function(s){return _c('span',[_c('img',{attrs:{\"src\":\"/reward-grey.png\"}})])}),_c('br')],2):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showButton),expression:\"showButton\"}]},[_vm._v(\"\\n Congrats! \\n \"),_c('emojify',{attrs:{\"text\":'\\ud83d\\ude0e'}}),_vm._v(\" \\n You've got all stamps!\\n \"),_c('button',{staticClass:\"btn mt-5\",attrs:{\"disabled\":_vm.disableButton},on:{\"click\":_vm.buy}},[_vm._v(\"\\n Get FREE sandwich\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_vm._m(0)],1)],1),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLoyaltyAfterpayment),expression:\"showLoyaltyAfterpayment\"}],staticClass:\"emerald\"},[_c('emojify',{attrs:{\"text\":'\\ud83c\\udf54',\"className\":\"emo-100\"}}),_c('br'),_vm._v(\"\\n Free Sandwich paid successfully!\\n \")],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-10\"},[_c('b',[_vm._v(\"Or follow magic link for signup!\")])])}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./phone_after_free_payment.vue?vue&type=template&id=9d8a6d52&\"\nimport script from \"./phone_after_free_payment.vue?vue&type=script&lang=js&\"\nexport * from \"./phone_after_free_payment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container mt-10\"},[_c('center',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showEmail),expression:\"!showEmail\"}]},[_c('i',{staticClass:\"fas fa-check-circle fa-2x emerald\"}),_vm._v(\" \"),_c('div',{staticClass:\"large-font\"},[_c('b',[_vm._v(\"Payment Successful\")])]),_vm._v(\" \"),_c('span',{staticClass:\"big-font\"},[_c('b',[_vm._v(\"$0.00\")])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-5\"},[_vm._v(\"\\n Order total paid by iWallet to\"),_c('br'),_vm._v(\" \"),_c('b',{staticClass:\"large-font\"},[_vm._v(\"\\n \"+_vm._s(_vm.merchant)+\"\\n \")])])]),_vm._v(\" \"),_c('free-badges',{attrs:{\"phone-id\":_vm.phoneId,\"qid\":_vm.qid}}),_vm._v(\" \"),_c('a',{staticClass:\"btn-large mt-10\",attrs:{\"href\":\"/r/277954\"}},[_vm._v(\"Sign up and get $100 bonus\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_with_phone.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_with_phone.vue?vue&type=script&lang=js&\"","\n \n
\n\n
\n\n
\n Processing...\n \n\n
\n\n
\n\n\n","import { render, staticRenderFns } from \"./new_with_phone.vue?vue&type=template&id=d05803ea&\"\nimport script from \"./new_with_phone.vue?vue&type=script&lang=js&\"\nexport * from \"./new_with_phone.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showPhoneForm)?_c('section',{staticClass:\"large-font mt-25\"},[_c('center',[_c('div',{staticClass:\"big-font\"},[_vm._v(\"Please enter your phone to get \"+_vm._s(_vm.subjectText))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Phone\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"tel\",\"placeholder\":\"(373) 112-1122\",\"autofocus\":\"true\",\"autocomplete\":\"phone\",\"name\":\"phone\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"phone\")),expression:\"errors.first(\\\"phone\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"phone\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",on:{\"click\":_vm.sendPhone}},[_vm._v(\"\\n Get \"+_vm._s(_vm.subjectText)+\"\\n \")])])],1):_vm._e(),_vm._v(\" \"),(_vm.showVerificationForm)?_c('section',{staticClass:\"mt-25\"},[_c('center',[_c('div',{staticClass:\"large-font\"},[_vm._v(\"\\n A text message with a 3-digit verification code was just sent to\\n \"),_c('b',[_vm._v(_vm._s(_vm.formattedPhone))])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Enter the code\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.codeFromUser),expression:\"codeFromUser\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"number\",\"placeholder\":\"123\",\"autofocus\":\"true\",\"name\":\"code\"},domProps:{\"value\":(_vm.codeFromUser)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.codeFromUser=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"code\")),expression:\"errors.first(\\\"code\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"code\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.verifyCode}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Send code\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.already_skipped),expression:\"!already_skipped\"}],staticClass:\"btn mt-25 red\",staticStyle:{\"margin-lef\":\"10px\"},on:{\"click\":_vm.doItLater}},[_vm._v(\"\\n do it later\\n \")])])],1):_vm._e(),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]),_vm._v(\" \"),(_vm.showAfterPayment)?_c('after-free-payment',{attrs:{\"merchant\":_vm.merchant,\"qid\":_vm.qid,\"amount\":_vm.amount,\"phoneId\":_vm.phoneId,\"authCode\":_vm.authCode}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_with_email.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_with_email.vue?vue&type=script&lang=js&\"","\n \n\n\n","import { render, staticRenderFns } from \"./new_with_email.vue?vue&type=template&id=0e61c082&\"\nimport script from \"./new_with_email.vue?vue&type=script&lang=js&\"\nexport * from \"./new_with_email.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showPhoneForm)?_c('section',{staticClass:\"large-font mt-25\"},[_c('center',[_c('div',{staticClass:\"big-font\"},[_vm._v(\"Please fill in the form to get \"+_vm._s(_vm.subjectText))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Email\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"},{name:\"validate\",rawName:\"v-validate\",value:('required|email'),expression:\"'required|email'\"}],attrs:{\"type\":\"email\",\"placeholder\":\"abc@example.com\",\"autofocus\":\"true\",\"autocomplete\":\"email\",\"name\":\"phone\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"phone\")),expression:\"errors.first(\\\"phone\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"email\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"type\":\"text\",\"autocomplete\":\"first_name\",\"name\":\"phone\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"firstName\")),expression:\"errors.first(\\\"firstName\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"type\":\"text\",\"autocomplete\":\"last_name\",\"name\":\"phone\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"lastName\")),expression:\"errors.first(\\\"lastName\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",on:{\"click\":_vm.sendPhone}},[_vm._v(\"\\n Get \"+_vm._s(_vm.subjectText)+\"\\n \")])])],1):_vm._e(),_vm._v(\" \"),(_vm.showAfterPayment)?_c('after-free-payment',{attrs:{\"merchant\":_vm.merchant,\"qid\":_vm.qid,\"amount\":_vm.amount,\"phoneId\":_vm.phoneId,\"authCode\":_vm.authCode}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./unverified_from_free_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./unverified_from_free_pay.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./unverified_from_free_pay.vue?vue&type=template&id=0bcbde26&\"\nimport script from \"./unverified_from_free_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./unverified_from_free_pay.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-50\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.emailId),expression:\"emailId\"}]},[_c('center',[_c('img',{attrs:{\"src\":\"/assets/logo_horiz_110px.png\"}})]),_vm._v(\" \"),_c('h3',[_vm._v(\"Welcome to iWallet!\")]),_vm._v(\" \"),_c('div',{staticClass:\"btn-large\",attrs:{\"disabled\":!_vm.agreed || _vm.processing},on:{\"click\":_vm.signup}},[(!_vm.processing)?_c('span',[_vm._v(\"\\n Sign up\\n \")]):_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \\n processing ...\\n \")])]),_c('br'),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('p',[_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.agreed),expression:\"agreed\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.agreed)?_vm._i(_vm.agreed,null)>-1:(_vm.agreed)},on:{\"change\":function($event){var $$a=_vm.agreed,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.agreed=$$a.concat([$$v]))}else{$$i>-1&&(_vm.agreed=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.agreed=$$c}}}}),_vm._v(\" \"),_c('span',[_vm._v(\"Agree\")])])]),_vm._v(\" \"),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.agreed),expression:\"!agreed\"}],staticClass:\"red-text\"},[_vm._v(\"\\n * Please agree with terms of service\\n \")])],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-10\"},[_vm._v(\"\\n By signing up you agree to iWallet's \\n \"),_c('a',{attrs:{\"href\":\"https://iwallet.com/terms-of-service\",\"target\":\"_blank\"}},[_vm._v(\"Terms of service\")]),_vm._v(\" \\n and \\n \"),_c('a',{attrs:{\"href\":\"https://iwallet.com/privacy-policy\",\"target\":\"_blank\"}},[_vm._v(\"Privacy policy\")]),_vm._v(\", \\n as well as our partner Dwolla's \\n \"),_c('a',{attrs:{\"href\":\"https://www.dwolla.com/legal/tos/\",\"target\":\"_blank\"}},[_vm._v(\"Terms of service\")]),_vm._v(\" \\n and \\n \"),_c('a',{attrs:{\"href\":\"https://www.dwolla.com/legal/privacy/\",\"target\":\"_blank\"}},[_vm._v(\"Privacy Policy\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./scanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./scanner.vue?vue&type=script&lang=js&\"","\n \n
\n \n Align QR code within frame to scan
\n ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.
\n Error: {{errorMessage}}
\n\n \n\n \n Scanned WRONG QR-code. Unable to process payment!\n
\n\n
\n HOME\n\n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./scanner.vue?vue&type=template&id=695a2606&\"\nimport script from \"./scanner.vue?vue&type=script&lang=js&\"\nexport * from \"./scanner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./scanner.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('svg',{staticClass:\"on-video mt-25\",attrs:{\"width\":\"300\",\"height\":\"300\"}},[_c('polyline',{attrs:{\"points\":\"60 0 0 0 0 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 0 170 0\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 0 300 0 300 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 240 0 300 60 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 300 170 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 300 300 300 300 240\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 130 0 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"300 130 300 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"20 150 280 150\",\"stroke\":\"red\",\"stroke-width\":\"3\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.3\"}},[_c('animate',{attrs:{\"attributeType\":\"XML\",\"attributeName\":\"stroke-opacity\",\"values\":\"0;0.2;0.5;0.7;0.5;0\",\"dur\":\"2s\",\"repeatCount\":\"indefinite\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"on-video mt-10\"},[_vm._v(\"Align QR code within frame to scan\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isCromeOniOS),expression:\"isCromeOniOS\"}],staticClass:\"on-video mt-10\"},[_vm._v(\"ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage),expression:\"errorMessage\"}],staticClass:\"on-video mt-10 red-text\"},[_vm._v(\"Error: \"+_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('qrcode-stream',{staticClass:\"fullscreen\",attrs:{\"camera\":\"auto\",\"track\":_vm.repaint},on:{\"decode\":_vm.codeScanned,\"init\":_vm.onInit}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showError),expression:\"showError\"}],staticClass:\"on-video\"},[_vm._v(\"\\n Scanned WRONG QR-code. Unable to process payment!\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"btn on-video\",attrs:{\"href\":\"https://iwallet.com\"}},[_vm._v(\"HOME\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty_progress.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty_progress.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n 
\n Automatic {{rewardPercent}}% off when you spend ${{minAmount}} or more {{leftToWin}} time(s)\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./loyalty_progress.vue?vue&type=template&id=3468dc7a&\"\nimport script from \"./loyalty_progress.vue?vue&type=script&lang=js&\"\nexport * from \"./loyalty_progress.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.readyForReward && _vm.loyaltyActive),expression:\"!readyForReward && loyaltyActive\"}]},[_c('div',{staticClass:\"mt-10\"},[_c('center',[_vm._l((parseInt(_vm.haveStamps)),function(stamp){return _c('span',{key:stamp},[_c('img',{staticClass:\"responsive-img\",attrs:{\"src\":\"/reward.png\"}})])}),_vm._v(\" \"),_vm._l((_vm.leftToWin),function(s){return _c('span',[_c('img',{attrs:{\"src\":\"/reward-grey.png\"}})])}),_c('br'),_vm._v(\"\\n Automatic \"+_vm._s(_vm.rewardPercent)+\"% off when you spend $\"+_vm._s(_vm.minAmount)+\" or more \"+_vm._s(_vm.leftToWin)+\" time(s)\\n \")],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty_reward.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty_reward.vue?vue&type=script&lang=js&\"","\n \n
\n 
\n \n {{rewardPercent}}% discount will be applied for this transaction\n \n
\n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./loyalty_reward.vue?vue&type=template&id=4e75969c&scoped=true&\"\nimport script from \"./loyalty_reward.vue?vue&type=script&lang=js&\"\nexport * from \"./loyalty_reward.vue?vue&type=script&lang=js&\"\nimport style0 from \"./loyalty_reward.vue?vue&type=style&index=0&id=4e75969c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e75969c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.readyForReward),expression:\"readyForReward\"}],staticClass:\"card-panel\"},[_c('center',[_c('img',{attrs:{\"src\":\"/reward-win.png\"}}),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"reward-win\"},[_vm._v(\"\\n \"+_vm._s(_vm.rewardPercent)+\"% discount will be applied for this transaction\\n \")]),_vm._v(\" \"),_c('br')])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./skip_this_step_wrapper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./skip_this_step_wrapper.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n","import { render, staticRenderFns } from \"./skip_this_step_wrapper.vue?vue&type=template&id=523ec206&\"\nimport script from \"./skip_this_step_wrapper.vue?vue&type=script&lang=js&\"\nexport * from \"./skip_this_step_wrapper.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('div',[_vm._t(\"default\")],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./reports.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./reports.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n\n
Download CSV\n\n
\n \n \n Initiated | \n Paid | \n ID | \n Auth Code | \n Account | \n Type | \n Payment Source | \n Note | \n Invoice # | \n Net Amount, $ | \n Fee, $ | \n Total Charged, $ | \n Job total, $ | \n Tip, $ | \n State | \n
\n \n \n \n {{transaction.attributes.show_initiated_at}} | \n {{transaction.attributes.show_paid_at}} | \n {{transaction.attributes.id}} | \n {{transaction.attributes.auth_code}} | \n {{transaction.attributes.business_name}} | \n {{transaction.attributes.human_readable_type}} | \n {{transaction.attributes.source_on_api}} | \n {{transaction.attributes.note}} | \n {{transaction.attributes.invoice}} | \n {{(transaction.attributes.surcharge_eligible ? transaction.attributes.amount : transaction.attributes.gross_amount) | currency }} | \n {{transaction.attributes.fee | currency}} | \n {{(transaction.attributes.surcharge_eligible ? transaction.attributes.gross_amount : transaction.attributes.amount) | currency }} | \n {{transaction.attributes.job_total | currency }} | \n {{transaction.attributes.tip_amount | currency }} | \n {{transaction.attributes.show_state}} | \n
\n \n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./reports.vue?vue&type=template&id=254a3172&\"\nimport script from \"./reports.vue?vue&type=script&lang=js&\"\nexport * from \"./reports.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s12 m3\"},[_c('label',[_vm._v(\"Period\")]),_c('br'),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.period),expression:\"period\"}],staticClass:\"browser-default mt-10\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.period=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"today\"}},[_vm._v(\"Today\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"yesterday\"}},[_vm._v(\"Yesterday\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"this_week\"}},[_vm._v(\"This week\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"last_week\"}},[_vm._v(\"Last week\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"this_month\"}},[_vm._v(\"This month\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"last_month\"}},[_vm._v(\"Last month\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"custom\"}},[_vm._v(\"Custom\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m2\"},[_c('label',[_vm._v(\"From Date\")]),_c('br'),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.start_date),expression:\"start_date\",modifiers:{\"lazy\":true}}],staticClass:\"datepicker\",attrs:{\"name\":\"start_date\"},domProps:{\"value\":(_vm.start_date)},on:{\"change\":[function($event){_vm.start_date=$event.target.value},_vm.changeEvent]}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m2\"},[_c('label',[_vm._v(\"To Date\")]),_c('br'),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.end_date),expression:\"end_date\",modifiers:{\"lazy\":true}}],staticClass:\"datepicker\",attrs:{\"name\":\"end_date\"},domProps:{\"value\":(_vm.end_date)},on:{\"change\":function($event){_vm.end_date=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m3\"},[_c('label',[_vm._v(\"Filter\")]),_c('br'),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filter),expression:\"filter\"}],staticClass:\"browser-default mt-10\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.filter=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.getReport]}},[_c('option',{attrs:{\"value\":\"all\"}},[_vm._v(\"Cards & Checks\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"overall\"}},[_vm._v(\"Cards & Checks (With non paid)\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"cards\"}},[_vm._v(\"Cards\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"checks\"}},[_vm._v(\"Checks\")])])])]),_vm._v(\" \"),_c('a',{staticClass:\"btn mt-5\",attrs:{\"href\":_vm.csvLink,\"target\":\"_blank\"}},[_vm._v(\"Download CSV\")]),_vm._v(\" \"),_c('table',{staticClass:\"table striped\"},[_vm._m(0),_vm._v(\" \"),_c('tbody',_vm._l((_vm.transactions),function(transaction){return _c('tr',[_c('td',[_vm._v(_vm._s(transaction.attributes.show_initiated_at))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.show_paid_at))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.id))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.auth_code))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.business_name))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.human_readable_type))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.source_on_api))]),_vm._v(\" \"),_c('td',{class:transaction.attributes.amount_color},[_vm._v(_vm._s(transaction.attributes.note))]),_vm._v(\" \"),_c('td',{class:transaction.attributes.amount_color},[_vm._v(_vm._s(transaction.attributes.invoice))]),_vm._v(\" \"),_c('td',{class:transaction.attributes.amount_color},[_vm._v(_vm._s(_vm._f(\"currency\")((transaction.attributes.surcharge_eligible ? transaction.attributes.amount : transaction.attributes.gross_amount))))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm._f(\"currency\")(transaction.attributes.fee)))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm._f(\"currency\")((transaction.attributes.surcharge_eligible ? transaction.attributes.gross_amount : transaction.attributes.amount))))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm._f(\"currency\")(transaction.attributes.job_total)))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm._f(\"currency\")(transaction.attributes.tip_amount)))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(transaction.attributes.show_state))])])}),0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Initiated\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Paid\")]),_vm._v(\" \"),_c('th',[_vm._v(\"ID\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Auth Code\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Account\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Type\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Payment Source\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Note\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Invoice #\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Net Amount, $\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Fee, $\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Total Charged, $\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Job total, $\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Tip, $\")]),_vm._v(\" \"),_c('th',[_vm._v(\"State\")])])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_balance.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_balance.vue?vue&type=script&lang=js&\"","\n \n
\n \n Loading ...\n \n
\n Total balance: ${{totalBalance}}, Available for withdraw: ${{availableBalance}}
\n
{{failureMessage}}
\n
{{errorMessage}}
\n\n
\n
\n
\n \n \n\n
\n
\n Withdraw\n
\n
\n
\n The Amount is required field with value in range 0.01 - {{availableBalance}}\n \n\n
\n * NOTE: Available for withdraw balance may be less then total Balance in following cases:
\n
\n - You didn't make any payments to merchants - by our terms of service rewards non refundable until at least one payment to merchant will be processes
\n - Your load balance transaction had been made less then 72 hours ago. Please wait this time.
\n - Check our Terms of Service for more info here
\n
\n
\n
\n
\n
\n\n\n","import { render, staticRenderFns } from \"./withdraw_balance.vue?vue&type=template&id=944a0028&\"\nimport script from \"./withdraw_balance.vue?vue&type=script&lang=js&\"\nexport * from \"./withdraw_balance.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading ...\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading),expression:\"!loading\"}]},[_vm._v(\"\\n Total balance: $\"+_vm._s(_vm.totalBalance)+\", Available for withdraw: $\"+_vm._s(_vm.availableBalance)),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.failureMessage))]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.availableBalance > 0),expression:\"availableBalance > 0\"}],staticClass:\"mt-25\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Withdraw amound, USD (Max $\"+_vm._s(_vm.availableBalance)+\")\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:((\"min_value:0.01|max_value:\" + _vm.availableBalance + \"|required\")),expression:\"`min_value:0.01|max_value:${availableBalance}|required`\"}],staticClass:\"inputText\",attrs:{\"type\":\"number\",\"name\":\"amountName\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s6\"},[_c('span',{staticClass:\"btn-large pointer\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.withdraw}},[_vm._v(\"Withdraw\")])])]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amountName\")),expression:\"errors.first(\\\"amountName\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"\\n The Amount is required field with value in range 0.01 - \"+_vm._s(_vm.availableBalance)+\"\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.availableBalance != _vm.totalBalance),expression:\"availableBalance != totalBalance\"}],staticClass:\"grey-text mt-50 small-font\"},[_vm._v(\"\\n * NOTE: Available for withdraw balance may be less then total Balance in following cases:\"),_c('br'),_vm._v(\" \"),_vm._m(0)])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',[_c('li',[_vm._v(\"You didn't make any payments to merchants - by our terms of service rewards non refundable until at least one payment to merchant will be processes\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Your load balance transaction had been made less then 72 hours ago. Please wait this time.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Check our Terms of Service for more info \"),_c('a',{attrs:{\"href\":\"https://iwallet.com/terms_of_service.html\"}},[_vm._v(\"here\")])])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_reward_balance.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_reward_balance.vue?vue&type=script&lang=js&\"","\n \n
\n \n Loading ...\n \n
\n
Reward Balance: {{totalBalance}}
\n\n Pending amount: \n ${{pendingAmount}}\n\n
\n \n Nothing to withdraw...\n
\n \n
\n * Withdrawal to available balance will be processed immediately and amount \n ${{totalBalance}} will be available for payments right away.\n \n \n
\n\n\n","import { render, staticRenderFns } from \"./withdraw_reward_balance.vue?vue&type=template&id=ba59efe4&\"\nimport script from \"./withdraw_reward_balance.vue?vue&type=script&lang=js&\"\nexport * from \"./withdraw_reward_balance.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading ...\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading),expression:\"!loading\"}]},[_c('h4',[_vm._v(\"Reward Balance: \"),_c('b',[_vm._v(_vm._s(_vm.totalBalance))])]),_vm._v(\" \"),_c('i',{staticClass:\"far fa-clock\"}),_vm._v(\" Pending amount: \\n \"),_c('span',{staticClass:\"red-text\"},[_vm._v(\"$\"+_vm._s(_vm.pendingAmount))]),_vm._v(\" \"),_c('br'),_c('br'),_vm._v(\" \"),(_vm.totalBalance > 0)?_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.withdraw}},[_vm._v(\"\\n Redeem $\"+_vm._s(_vm.totalBalance)+\" *\\n \")]):_c('span',[_vm._v(\"Nothing to withdraw...\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.totalBalance > 0),expression:\"totalBalance > 0\"}],staticClass:\"grey-text\"},[_c('br'),_vm._v(\"\\n * Withdrawal to available balance will be processed immediately and amount \\n $\"+_vm._s(_vm.totalBalance)+\" will be available for payments right away.\\n \")])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_money.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_money.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n\n\n","import { render, staticRenderFns } from \"./add_money.vue?vue&type=template&id=0572f2cb&\"\nimport script from \"./add_money.vue?vue&type=script&lang=js&\"\nexport * from \"./add_money.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m3\"},[_c('div',{staticClass:\"input-filed\"},[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedValue),expression:\"selectedValue\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.amounts),function(amount){return _c('option',{domProps:{\"value\":amount[1]}},[_vm._v(_vm._s(amount[0]))])}),0)])])]),_vm._v(\" \"),_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.buttonDisabled},on:{\"click\":_vm.submitForm}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.buttonDisabled),expression:\"!buttonDisabled\"}]},[_vm._v(\"\\n Add $\"+_vm._s(_vm.selectedValue)+\".00\\n \")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.buttonDisabled),expression:\"buttonDisabled\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" Processing ... \\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n Answer following questions\n (\n {{ `Left time: ${timeObj.m}:${timeObj.s}` }}\n Run out of time!\n ):\n
\n
\n
\n
{{question.text}}\n
\n
\n
\n\n {{answer.text}}\n
\n
\n
\n
\n \n \n
* Answer please all question above\n \n
\n
\n
\n
\n \n Preparing questions ...\n \n \n
\n
\n
\n Verification Questions
\n
\n Answer the following 4 verification questions within 2 minutes:
\n \n \n \n
\n
\n {{waitingMessage}}\n \n \n
\n\n\n\n","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./kba.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./kba.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./kba.vue?vue&type=template&id=73bb1ccc&scoped=true&\"\nimport script from \"./kba.vue?vue&type=script&lang=js&\"\nexport * from \"./kba.vue?vue&type=script&lang=js&\"\nimport style0 from \"./kba.vue?vue&type=style&index=0&id=73bb1ccc&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"73bb1ccc\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.preScreen && !_vm.showWaitingMessage)?_c('div',[(_vm.sessionId)?_c('div',[_c('div',{staticClass:\"mt-25\"},[_c('b',[_vm._v(\"Answer following questions\")]),_vm._v(\"\\n (\"),_c('countdown',{staticClass:\"red-text\",attrs:{\"end-time\":new Date().getTime() + 120000},on:{\"finish\":_vm.outOfTime},scopedSlots:_vm._u([{key:\"process\",fn:function(ref){\nvar timeObj = ref.timeObj;\nreturn _c('span',{},[_vm._v(_vm._s((\"Left time: \" + (timeObj.m) + \":\" + (timeObj.s))))])}}],null,false,3097880644)},[_vm._v(\" \"),_c('span',{staticClass:\"red-text\",attrs:{\"slot\":\"finish\"},slot:\"finish\"},[_vm._v(\"Run out of time!\")])]),_vm._v(\"):\\n \")],1),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_vm._l((_vm.questions),function(question){return _c('div',{staticClass:\"card-panel\"},[_c('b',[_vm._v(_vm._s(question.text))]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},_vm._l((question.answers),function(answer){return _c('div',{staticClass:\"col s12 m5 waves-effect waves-light hoverable\",class:[_vm.isSelected(question.id, answer.id) ? 'selected' : 'question'],on:{\"click\":function($event){return _vm.answerClick(question.id, answer.id)}}},[_vm._v(\"\\n\\n \"+_vm._s(answer.text)+\"\\n \")])}),0)])}),_vm._v(\" \"),_c('div',{attrs:{\"disabled\":\"selectedLength != questions.length\"}},[_c('button',{staticClass:\"btn v-align\",attrs:{\"disabled\":_vm.selectedLength != _vm.questions.length},on:{\"click\":_vm.submitAnswers}},[_vm._v(\"Submit\")]),_vm._v(\" \"),(_vm.selectedLength != _vm.questions.length)?_c('small',{staticClass:\"red-text\"},[_c('br'),_vm._v(\"* Answer please all question above\\n \")]):_vm._e()])],2):_c('div',{staticClass:\"mt-25\"},[_c('center',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\"\\n Preparing questions ...\\n \")])],1)]):_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showWaitingMessage),expression:\"!showWaitingMessage\"}],staticClass:\"card-panel\"},[_c('center',[_c('h3',{staticClass:\"emerald\"},[_c('b',[_c('i',{staticClass:\"fas fa-exclamation-triangle emerald\"}),_vm._v(\" Verification Questions\")])]),_vm._v(\" \"),_c('hr'),_vm._v(\"\\n Answer the following 4 verification questions within 2 minutes:\"),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn mt-25\",on:{\"click\":_vm.continuePressed}},[_vm._v(\"Continue\")])])],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showWaitingMessage),expression:\"showWaitingMessage\"}],staticClass:\"mt-25\"},[_c('center',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"+_vm._s(_vm.waitingMessage)+\"\\n \")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_details.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_details.vue?vue&type=script&lang=js&\"","\n \n
Waiting for payment approval: {{amount | currency}}
\n\n
\n \n A transaction has NOT been approved yet.\n
\n \n Text message has been sent to cardholder\n
\n \n Ask the cardholder to approve the transaction using a link on their\n phone\n
\n\n
\n
\n OK\n \n \n \n \n
\n\n\n","import { render, staticRenderFns } from \"./payment_details.vue?vue&type=template&id=4b8b7010&\"\nimport script from \"./payment_details.vue?vue&type=script&lang=js&\"\nexport * from \"./payment_details.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"center\"},[_c('h3',{staticClass:\"mt-50\"},[_vm._v(\"Waiting for payment approval: \"+_vm._s(_vm._f(\"currency\")(_vm.amount)))]),_vm._v(\" \"),_vm._m(0)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"red-text mt-50\"},[_c('div',[_vm._v(\"\\n A transaction has NOT been approved yet.\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_vm._v(\"\\n Text message has been sent to cardholder\\n \")]),_vm._v(\" \"),_c('div',{},[_vm._v(\"\\n Ask the cardholder to approve the transaction using a link on their\\n phone\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"btn-large wide-btn mt-50\",attrs:{\"href\":\"/merchant/manual_charges\"}},[_vm._v(\"OK\")])])}]\n\nexport { render, staticRenderFns }","\n \n
\n \n\n \n 0\" class=\"grey-text mt-10\">\n
Non cash adjustment: {{feeAmount | currency}}\n \n \n\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./charge_generic_card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./charge_generic_card.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./charge_generic_card.vue?vue&type=template&id=4ff471ce&\"\nimport script from \"./charge_generic_card.vue?vue&type=script&lang=js&\"\nexport * from \"./charge_generic_card.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPaymentDetails),expression:\"!showPaymentDetails\"}],staticClass:\"mt-25\"},[_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"type\":\"number\",\"pattern\":\"\\\\d*\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),(_vm.smsFlow)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputPhone),expression:\"inputPhone\"}],attrs:{\"name\":\"phone\",\"placeholder\":\"Phone (required)\"},domProps:{\"value\":(_vm.inputPhone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.inputPhone=$event.target.value}}}):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\",\"placeholder\":\"Note (optional)\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],attrs:{\"name\":\"invoice\",\"placeholder\":_vm.invoiceLabel},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}})])]),_vm._v(\" \"),_c('button',{staticClass:\"mt-25 waves-effect waves-green btn-large wide-btn\",attrs:{\"disabled\":!_vm.amount || _vm.processing,\"name\":\"repeatSale\"},on:{\"click\":_vm.submitHandler}},[(_vm.processing)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing...\\n \")]):_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.submitLabel)),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm._f(\"currency\")(_vm.grossAmount)))])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.feeAmount > 0),expression:\"feeAmount > 0\"}],staticClass:\"grey-text mt-10\"},[_c('center',[_vm._v(\"Non cash adjustment: \"+_vm._s(_vm._f(\"currency\")(_vm.feeAmount)))])],1)]),_vm._v(\" \"),_c('payment-details',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPaymentDetails),expression:\"showPaymentDetails\"}],attrs:{\"amount\":_vm.transactionAmount,\"id\":_vm.transactionId}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./adyen_tos_viewer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./adyen_tos_viewer.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./adyen_tos_viewer.vue?vue&type=template&id=4b0f2c8a&\"\nimport script from \"./adyen_tos_viewer.vue?vue&type=script&lang=js&\"\nexport * from \"./adyen_tos_viewer.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{attrs:{\"id\":\"test\"}})])}]\n\nexport { render, staticRenderFns }","\n \n 0\">{{badges.disputes}}\n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./disputes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./disputes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./disputes.vue?vue&type=template&id=4607bfbd&\"\nimport script from \"./disputes.vue?vue&type=script&lang=js&\"\nexport * from \"./disputes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.badges.disputes > 0),expression:\"badges.disputes > 0\"}],staticClass:\"red badge new\"},[_vm._v(_vm._s(_vm.badges.disputes))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_items.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_items.vue?vue&type=script&lang=js&\"","\n \n
\n
\n {{ item.amount | currency }} \n {{ item.invoice ? 'Invoice: ' + item.invoice : '' }} \n {{ item.note | truncate(10, '...') }}\n
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./show_items.vue?vue&type=template&id=2d736bcf&scoped=true&\"\nimport script from \"./show_items.vue?vue&type=script&lang=js&\"\nexport * from \"./show_items.vue?vue&type=script&lang=js&\"\nimport style0 from \"./show_items.vue?vue&type=style&index=0&id=2d736bcf&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2d736bcf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.items),function(item,index){return _c('div',{key:index,staticClass:\"flex items-center justify-between py-2 border-b\"},[_c('div',{staticClass:\"flex items-center\"},[_c('b',{staticClass:\"bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(item.amount)))]),_vm._v(\" \"),_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(item.invoice ? 'Invoice: ' + item.invoice : ''))]),_vm._v(\" \"),_c('span',{staticClass:\"ml-4\"},[_vm._v(_vm._s(_vm._f(\"truncate\")(item.note,10, '...')))])]),_vm._v(\" \"),_c('i',{staticClass:\"fas fa-times red-text cursor-pointer\",on:{\"click\":function($event){return _vm.removeItem(index)}}})])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./items.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./items.vue?vue&type=script&lang=js&\"","\n \n
\n
\n\n
\n
\n
\n \n
\n
\n \n Adding {{amount | currency}} item ...\n
\n
\n
\n
\n
\n
{{calculatedTotalAmount | currency}}
\n
\n
\n
\n
\n
\n\n\n","import { render, staticRenderFns } from \"./items.vue?vue&type=template&id=2bc8c076&\"\nimport script from \"./items.vue?vue&type=script&lang=js&\"\nexport * from \"./items.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"id\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"number\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"invoice\",\"id\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice\"}},[_vm._v(_vm._s(_vm.invoiceLabel))])]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoiceCfm),expression:\"invoiceCfm\"},{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice && _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice && invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoiceCfm)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoiceCfm=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e()]),_vm._v(\" \"),(!_vm.processing)?_c('div',[_c('button',{staticClass:\"btn\",on:{\"click\":_vm.addItem}},[_vm._v(\"Add Item\")]),_c('br'),_c('br'),_vm._v(\" \"),(_vm.showCheckout)?_c('button',{staticClass:\"btn\",on:{\"click\":_vm.close}},[_vm._v(\"\\n checkout \\n\\n \"),_c('i',{staticClass:\"fas fa-arrow-right\"})]):_vm._e()]):_c('div',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Adding \"+_vm._s(_vm._f(\"currency\")(_vm.amount))+\" item ...\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('div',{staticClass:\"card-panel\"},[_c('show-items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated}}),_vm._v(\" \"),_c('div',{staticClass:\"bold-font big-font emerald right\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.calculatedTotalAmount)))]),_vm._v(\" \"),_c('br'),_c('br')],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_photo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_photo.vue?vue&type=script&lang=js&\"","\n \n
\n\n
0 ? null : amount\"\n :invoice-label=\"invoiceLabel\"\n :require-invoice-confirmation=\"requireInvoiceConfirmation\"\n @close=\"showItemForm=false\">\n\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./check_by_photo.vue?vue&type=template&id=1f6b7250&\"\nimport script from \"./check_by_photo.vue?vue&type=script&lang=js&\"\nexport * from \"./check_by_photo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_by_photo.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.showItemForm)?_c('section',[_c('form',{ref:\"form\",attrs:{\"enctype\":\"multipart/form-data\",\"novalidate\":\"\"}},[_c('div',{staticClass:\"row\"},[(_vm.items.length == 0)?_c('div',[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.51|required'),expression:\"'min_value:0.51|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"number\",\"inputmode\":\"decimal\",\"pattern\":\"\\\\d*\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be 0.51 or more.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Note (optional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(_vm._s(_vm.invoiceLabel))]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"invoice\",\"type\":\"text\",\"id\":\"invoice\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}})]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.items.length > 0)?_c('div',[_c('div',{staticClass:\"col s12 m6\"},[_c('span',{staticClass:\"items-amount-check bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.amount)))])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('show-items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated}})],1)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Phone (optional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],attrs:{\"name\":\"phone\",\"type\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6 right\"},[_c('a',{staticClass:\"btn btn-small outlined-btn right mt-10\",on:{\"click\":function($event){_vm.showItemForm=true}}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\"\\n\\n Add Item\\n \")])])]),_vm._v(\" \"),_c('image-uploader',{attrs:{\"debug\":1,\"maxWidth\":900,\"quality\":0.8,\"autoRotate\":true,\"outputFormat\":\"blob\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImage,\"onUpload\":_vm.startImageResize}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"fileInput\"},slot:\"upload-label\"},[_c('div',{staticClass:\"btn-large wide-btn\",attrs:{\"disabled\":_vm.disabled}},[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasImage ? 'Replace' : 'Check'))])])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSubmitButton),expression:\"showSubmitButton\"}],staticClass:\"grey-text small-font center\"},[_c('img',{staticClass:\"mt-10\",attrs:{\"src\":_vm.src,\"alt\":\"Check image\",\"height\":\"90px\"}}),_vm._v(\" \"),_c('div',{staticClass:\"btn-large wide-btn mt-10\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.submit}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',[_vm._v(\"Processing...\")])]):_c('span',[_vm._v(\"\\n Submit\\n \")])])])],1)]):_vm._e(),_vm._v(\" \"),(_vm.showItemForm)?_c('items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated,\"set-invoice\":_vm.invoice,\"set-note\":_vm.note,\"set-amount\":_vm.items.length > 0 ? null : _vm.amount,\"invoice-label\":_vm.invoiceLabel,\"require-invoice-confirmation\":_vm.requireInvoiceConfirmation},on:{\"close\":function($event){_vm.showItemForm=false}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_double_photo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_double_photo.vue?vue&type=script&lang=js&\"","\n \n\n\n\n\n","import { render, staticRenderFns } from \"./check_by_double_photo.vue?vue&type=template&id=26da0d91&\"\nimport script from \"./check_by_double_photo.vue?vue&type=script&lang=js&\"\nexport * from \"./check_by_double_photo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_by_double_photo.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('form',{ref:\"form\",attrs:{\"enctype\":\"multipart/form-data\",\"novalidate\":\"\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.51|required'),expression:\"'min_value:0.51|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"number\",\"inputmode\":\"decimal\",\"pattern\":\"\\\\d*\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be 0.51 or more.\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Phone (optional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],attrs:{\"name\":\"phone\",\"type\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Note (optional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(_vm._s(_vm.invoiceLabel))]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],attrs:{\"name\":\"invoice\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}})])]),_vm._v(\" \"),_c('image-uploader',{attrs:{\"id\":\"frontImage\",\"debug\":2,\"maxWidth\":900,\"quality\":0.8,\"autoRotate\":true,\"outputFormat\":\"blob\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasFrontImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImageFront,\"onUpload\":_vm.startImageResize}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"frontImage\"},slot:\"upload-label\"},[_c('div',{staticClass:\"btn-large wide-btn\",attrs:{\"disabled\":_vm.disabled}},[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasFrontImage ? 'Replace front side' : 'Check front'))])])])]),_vm._v(\" \"),_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.srcFront),expression:\"srcFront\"}],staticClass:\"mt-10\",attrs:{\"src\":_vm.srcFront,\"alt\":\"Check front image\",\"height\":\"90px\"}}),_vm._v(\" \"),_c('image-uploader',{staticClass:\"mt-25\",attrs:{\"id\":\"backImage\",\"debug\":2,\"maxWidth\":900,\"quality\":0.8,\"autoRotate\":true,\"outputFormat\":\"blob\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasBackImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImageBack,\"onUpload\":_vm.startImageResize}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"backImage\"},slot:\"upload-label\"},[_c('div',{staticClass:\"btn-large wide-btn\",attrs:{\"disabled\":_vm.disabled}},[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasBackImage ? 'Replace back side' : 'Check Back'))])])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSubmitButton),expression:\"showSubmitButton\"}],staticClass:\"grey-text small-font center\"},[_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.srcBack),expression:\"srcBack\"}],staticClass:\"mt-10\",attrs:{\"src\":_vm.srcBack,\"alt\":\"Check back image\",\"height\":\"90px\"}}),_vm._v(\" \"),_c('div',{staticClass:\"btn-large wide-btn mt-10\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.submit}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',[_vm._v(\"Processing...\")])]):_c('span',[_vm._v(\"\\n Submit\\n \")])])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n\n
\n\n
\n Recurring schedule:
\n \n
\n \n
\n
\n Every:\n \n {{placeholders.frequency}}\n
\n
\n \n \n
\n
\n \n {{item[1]}}\n
\n\n \n Charge {{amount | currency}} {{recurringString}}, starting on {{startDate}}\n
\n\n \n {{recurringStringError}}\n
\n \n\n
\n
\n Processing...\n \n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_payment_event.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new_payment_event.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./new_payment_event.vue?vue&type=template&id=1d00b6b1&scoped=true&\"\nimport script from \"./new_payment_event.vue?vue&type=script&lang=js&\"\nexport * from \"./new_payment_event.vue?vue&type=script&lang=js&\"\nimport style0 from \"./new_payment_event.vue?vue&type=style&index=0&id=1d00b6b1&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1d00b6b1\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.51|required'),expression:\"'min_value:0.51|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"id\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"number\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"id\":\"note\",\"name\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-credit-card prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.number),expression:\"number\"}],attrs:{\"id\":\"number\",\"name\":\"number\",\"type\":\"number\"},domProps:{\"value\":(_vm.number)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.number=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"number\"}},[_vm._v(\"Card number\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s4 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.expMonth),expression:\"expMonth\"}],attrs:{\"id\":\"month\",\"name\":\"month\",\"type\":\"number\",\"maxlength\":\"2\",\"required\":\"true\"},domProps:{\"value\":(_vm.expMonth)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.expMonth=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"month\"}},[_vm._v(\"Exp Month\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s4 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.expYear),expression:\"expYear\"}],attrs:{\"id\":\"year\",\"name\":\"year\",\"type\":\"number\",\"maxlength\":\"4\"},domProps:{\"value\":(_vm.expYear)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.expYear=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"year\"}},[_vm._v(\"Exp Year\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s4 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.verificationNumber),expression:\"verificationNumber\"}],attrs:{\"id\":\"cvv\",\"name\":\"cvv\",\"type\":\"number\"},domProps:{\"value\":(_vm.verificationNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.verificationNumber=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"cvv\"}},[_vm._v(\"CVV\")])])]),_vm._v(\" \"),_c('section',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"bold-font\"},[_vm._v(\"Recurring schedule: \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m4 mt-10\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.frequency),expression:\"frequency\"}],staticClass:\"browser-default\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.frequency=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},function($event){_vm.on=[]}]}},[_c('option',{attrs:{\"value\":\"weekly\"}},[_vm._v(\"Weekly\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"monthly\"}},[_vm._v(\"Monthly\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"yearly\"}},[_vm._v(\"Yearly\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m4 mt-10\"},[_vm._v(\"\\n Every:\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.each),expression:\"each\"}],staticStyle:{\"width\":\"30px\",\"margin-top\":\"-30px\",\"margin-left\":\"10px\"},attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.each)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.each=$event.target.value}}}),_vm._v(\"\\n \"+_vm._s(_vm.placeholders.frequency)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m4 mt-10 input-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.startDate),expression:\"startDate\",modifiers:{\"lazy\":true}}],staticClass:\"datepickerX\",attrs:{\"name\":\"start-date\",\"type\":\"date\"},domProps:{\"value\":(_vm.startDate)},on:{\"change\":function($event){_vm.startDate=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"start-date\"}},[_vm._v(\"Start date\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"center\"},_vm._l((_vm.placeholders.on),function(item){return _c('span',{staticClass:\"on\",class:_vm.activeOn(item[0]),on:{\"click\":function($event){return _vm.addOn(item[0])}}},[_vm._v(_vm._s(item[1]))])}),0),_vm._v(\" \"),(!_vm.recurringStringError)?_c('div',{staticClass:\"center emerald mt-10\"},[_vm._v(\"\\n Charge \"+_vm._s(_vm._f(\"currency\")(_vm.amount))+\" \"+_vm._s(_vm.recurringString)+\", starting on \"+_vm._s(_vm.startDate)+\"\\n \")]):_c('div',{staticClass:\"center red-text mt-10\"},[_vm._v(\"\\n \"+_vm._s(_vm.recurringStringError)+\"\\n \")])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn-large wide-btn mt-50\",attrs:{\"disabled\":_vm.disableSubmit},on:{\"click\":_vm.charge}},[_vm._v(\"\\n Schedule\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]})]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./sub_acc_download_app.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./sub_acc_download_app.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n Successfully voided
\n Next
\n \n\n
\n Download iWallet Business app now:\n \n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./sub_acc_download_app.vue?vue&type=template&id=2d897c02&\"\nimport script from \"./sub_acc_download_app.vue?vue&type=script&lang=js&\"\nexport * from \"./sub_acc_download_app.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSuccess),expression:\"showSuccess\"}]},[_c('i',{staticClass:\"fas fa-check-circle fa-3x emerald mt-50\"}),_vm._v(\" \"),_c('div',{staticClass:\"large-font bold-font grey-text text-darken-3 mt-10\"},[_c('b',[_vm._v(\"Successfully voided\")])]),_vm._v(\" \"),_c('div',{staticClass:\"btn btn-large mt-50\",on:{\"click\":_vm.click}},[_vm._v(\"Next\")])]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showSuccess),expression:\"!showSuccess\"}],staticClass:\"big-font\"},[_vm._v(\"\\n Download iWallet Business app now:\\n \"),_c('section',{staticClass:\"mt-25\"},[_c('a',{attrs:{\"href\":\"https://apps.apple.com/us/app/iwallet-business/id1488129902\"}},[_c('img',{attrs:{\"width\":\"280\",\"src\":\"https://iwallet.com/images/apple_store_icon.png\",\"alt\":\"iOS App\"}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{attrs:{\"href\":\"https://play.google.com/store/apps/details?id=com.iwallet.android_business\"}},[_c('img',{attrs:{\"width\":\"280\",\"src\":\"https://iwallet.com/images/google_pay_icon.png\",\"alt\":\"Android App\"}})])])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n Repeat sale
\n Payment Source: {{card}}
\n \n\n \n 0\" class=\"grey-text mt-10\">\n
Non cash adjustment: {{feeAmount | currency}}\n \n \n\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./charge_card_on_file.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./charge_card_on_file.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./charge_card_on_file.vue?vue&type=template&id=86ebcb96&scoped=true&\"\nimport script from \"./charge_card_on_file.vue?vue&type=script&lang=js&\"\nexport * from \"./charge_card_on_file.vue?vue&type=script&lang=js&\"\nimport style0 from \"./charge_card_on_file.vue?vue&type=style&index=0&id=86ebcb96&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"86ebcb96\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPaymentDetails),expression:\"!showPaymentDetails\"}],staticClass:\"mt-25\"},[_c('h3',{staticClass:\"bold-font\"},[_vm._v(\"Repeat sale\")]),_vm._v(\"\\n Payment Source: \"),_c('span',{staticClass:\"bold-font\"},[_vm._v(_vm._s(_vm.card))]),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"type\":\"number\",\"pattern\":\"\\\\d*\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),(_vm.smsFlow)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputPhone),expression:\"inputPhone\"}],attrs:{\"name\":\"phone\",\"placeholder\":\"Phone (required)\"},domProps:{\"value\":(_vm.inputPhone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.inputPhone=$event.target.value}}}):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\",\"placeholder\":\"Note (optional)\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],attrs:{\"name\":\"invoice\",\"placeholder\":_vm.invoiceLabel},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}})])]),_vm._v(\" \"),_c('button',{staticClass:\"mt-25 waves-effect waves-green btn-large wide-btn\",attrs:{\"disabled\":!_vm.amount || _vm.processing,\"name\":\"repeatSale\"},on:{\"click\":_vm.submitHandler}},[(_vm.processing)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing...\\n \")]):_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.submitLabel)),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm._f(\"currency\")(_vm.grossAmount)))])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.feeAmount > 0),expression:\"feeAmount > 0\"}],staticClass:\"grey-text mt-10\"},[_c('center',[_vm._v(\"Non cash adjustment: \"+_vm._s(_vm._f(\"currency\")(_vm.feeAmount)))])],1)]),_vm._v(\" \"),_c('payment-details',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPaymentDetails),expression:\"showPaymentDetails\"}],attrs:{\"amount\":_vm.transactionAmount,\"id\":_vm.transactionId}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./today_stat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./today_stat.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Today’s sales
(incl tips): \n
{{totalSales | currency}}
\n
\n All subs sales
(incl sub-accounts): \n
{{todayOverallSales | currency}}
\n
\n
\n Next batch
: \n
{{nextBatchAmount | currency}}
\n
\n
\n
\n My tips today: \n
{{tips | currency}}
\n
\n
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./today_stat.vue?vue&type=template&id=293d6f2c&\"\nimport script from \"./today_stat.vue?vue&type=script&lang=js&\"\nexport * from \"./today_stat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./today_stat.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.tips != null)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 old-text how-balance low-text\"},[_c('div',{staticClass:\"mt-15\"},[_vm._v(\"\\n Today’s sales\"),_c('span',{staticClass:\"hide-on-med-and-up\"},[_vm._v(\" (incl tips)\")]),_vm._v(\": \\n \"),_c('div',{staticClass:\"right old-text how-balance low-text emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.totalSales)))]),_c('br'),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.todayOverallSales != _vm.totalSales),expression:\"todayOverallSales != totalSales\"}]},[_vm._v(\"\\n All subs sales\"),_c('span',{staticClass:\"hide-on-med-and-up\"},[_vm._v(\" (incl sub-accounts)\")]),_vm._v(\": \\n \"),_c('div',{staticClass:\"old-text how-balance low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.todayOverallSales)))])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.nextBatchAmount != null),expression:\"nextBatchAmount != null\"}]},[_vm._v(\"\\n Next batch\"),_c('span',{staticClass:\"hide-on-med-and-up\"}),_vm._v(\": \\n \"),_c('div',{staticClass:\"old-text how-balance low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.nextBatchAmount)))]),_c('br')])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTips),expression:\"showTips\"}]},[_vm._v(\"\\n My tips today: \\n \"),_c('div',{staticClass:\"old-text how-balance low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.tips)))])])])]):_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text show-balance\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n YST\n TDY\n WTD\n MTD\n YTD\n PW\n LY\n
\n
\n
\n
\n Own sales
(incl tips): \n
{{stat.sales.totalSales | currency}}
\n
\n All subs sales
(incl sub-accounts): \n
{{stat.sales.overallSales | currency}}
\n
\n Card sales: \n
{{stat.sales.totalCardSalesAcrossAllAccounts | currency}}
\n
\n Check sales: \n
{{stat.sales.totalCheckSalesAcrossAllAccounts | currency}}
\n
\n
\n
\n My tips: \n
{{stat.cardTips | currency}}
\n
\n All subs tips:\n
{{stat.allSubsTips | currency}}
\n
\n
\n
\n Votes:\n
\n {{stat.sales.upVotes}} {{stat.sales.downVotes}} \n
\n
\n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./home_stat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./home_stat.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./home_stat.vue?vue&type=template&id=4f950ce9&scoped=true&\"\nimport script from \"./home_stat.vue?vue&type=script&lang=js&\"\nexport * from \"./home_stat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./home_stat.vue?vue&type=style&index=0&id=4f950ce9&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4f950ce9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"center\"},[_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'YST'},on:{\"click\":function($event){_vm.filter = 'YST'}}},[_vm._v(\"YST\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'TODAY'},on:{\"click\":function($event){_vm.filter = 'TODAY'}}},[_vm._v(\"TDY\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'WTD'},on:{\"click\":function($event){_vm.filter = 'WTD'}}},[_vm._v(\"WTD\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'MTD'},on:{\"click\":function($event){_vm.filter = 'MTD'}}},[_vm._v(\"MTD\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'YTD'},on:{\"click\":function($event){_vm.filter = 'YTD'}}},[_vm._v(\"YTD\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'PW'},on:{\"click\":function($event){_vm.filter = 'PW'}}},[_vm._v(\"PW\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn-range\",class:{'active-btn': _vm.filter == 'LY'},on:{\"click\":function($event){_vm.filter = 'LY'}}},[_vm._v(\"LY\")])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 old-text how-balance low-text\"},[_c('div',{staticClass:\"mt-15\"},[_vm._v(\"\\n Own sales\"),_c('span',{staticClass:\"hide-on-med-and-up\"},[_vm._v(\" (incl tips)\")]),_vm._v(\": \\n \"),(!_vm.$apollo.loading)?_c('div',{staticClass:\"right old-text how-balance low-text emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.sales.totalSales)))]):_vm._e(),_c('br'),_vm._v(\" \"),(!_vm.$apollo.loading)?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.stat.sales.overallSales != _vm.stat.sales.totalSales),expression:\"stat.sales.overallSales != stat.sales.totalSales\"}]},[_vm._v(\"\\n All subs sales\"),_c('span',{staticClass:\"hide-on-med-and-up\"},[_vm._v(\" (incl sub-accounts)\")]),_vm._v(\": \\n \"),_c('div',{staticClass:\"old-text low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.sales.overallSales)))]),_vm._v(\" \"),_c('br'),_vm._v(\"\\n Card sales: \\n \"),_c('div',{staticClass:\"old-text low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.sales.totalCardSalesAcrossAllAccounts)))]),_vm._v(\" \"),_c('br'),_vm._v(\"\\n Check sales: \\n \"),_c('div',{staticClass:\"old-text low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.sales.totalCheckSalesAcrossAllAccounts)))])]):_vm._e()]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTips),expression:\"showTips\"}]},[_vm._v(\"\\n My tips: \\n \"),(!_vm.$apollo.loading)?_c('div',{staticClass:\"old-text how-balance low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.cardTips)))]):_vm._e(),_vm._v(\" \"),(!_vm.$apollo.loading && _vm.stat.allSubsTips > 0)?_c('div',[_vm._v(\"\\n All subs tips:\\n \"),(!_vm.$apollo.loading)?_c('div',{staticClass:\"old-text how-balance low-text right emerald bold-font\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.stat.allSubsTips)))]):_vm._e()]):_vm._e()]),_vm._v(\" \"),_c('div',[_vm._v(\"\\n Votes:\\n \"),(!_vm.$apollo.loading)?_c('div',{staticClass:\"right old-text how-balance low-text emerald bold-font\"},[_vm._v(\"\\n \"+_vm._s(_vm.stat.sales.upVotes)+\" \"),_c('i',{staticClass:\"far fa-thumbs-up grey-text\"}),_vm._v(\" \"+_vm._s(_vm.stat.sales.downVotes)+\" \"),_c('i',{staticClass:\"far fa-thumbs-down grey-text\"})]):_vm._e(),_c('br')])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_check_images.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_check_images.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./show_check_images.vue?vue&type=template&id=37c05457&\"\nimport script from \"./show_check_images.vue?vue&type=script&lang=js&\"\nexport * from \"./show_check_images.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"waves-effect waves-light btn modal-trigger\",attrs:{\"href\":'#' + _vm.modalId},on:{\"click\":_vm.loadImages}},[_vm._v(\"Show image\")]),_vm._v(\" \"),_c('div',{staticClass:\"modal\",attrs:{\"id\":_vm.modalId}},[_c('div',{staticClass:\"modal-content\"},[(_vm.showImages)?_c('img',{attrs:{\"src\":'data:image/jpeg;base64,' + _vm.image_front,\"width\":\"100%\"}}):_vm._e(),_vm._v(\" \"),(_vm.showImages && _vm.image_back)?_c('img',{attrs:{\"src\":'data:image/jpeg;base64,' + _vm.image_back,\"width\":\"100%\"}}):_vm._e()]),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-footer\"},[_c('a',{staticClass:\"modal-close waves-effect waves-green btn-flat\",attrs:{\"href\":\"\"}},[_vm._v(\"Close\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_signature.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_signature.vue?vue&type=script&lang=js&\"","\n \n
\n\n
![]()
\n
\n\n\n\n","import { render, staticRenderFns } from \"./show_signature.vue?vue&type=template&id=54766488&\"\nimport script from \"./show_signature.vue?vue&type=script&lang=js&\"\nexport * from \"./show_signature.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showImages),expression:\"!showImages\"}],staticClass:\"btn\",on:{\"click\":function($event){_vm.showImages = !_vm.showImages}}},[_c('i',{staticClass:\"far fa-eye\"}),_vm._v(\" Show signature\\n \")]),_vm._v(\" \"),(_vm.showImages)?_c('img',{attrs:{\"src\":_vm.signatureLink,\"width\":\"100%\"}}):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n\n
\n \n Loading...\n
\n\n
![]()
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_bad_check_images.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_bad_check_images.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./show_bad_check_images.vue?vue&type=template&id=5f73d141&scoped=true&\"\nimport script from \"./show_bad_check_images.vue?vue&type=script&lang=js&\"\nexport * from \"./show_bad_check_images.vue?vue&type=script&lang=js&\"\nimport style0 from \"./show_bad_check_images.vue?vue&type=style&index=0&id=5f73d141&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f73d141\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.badCheckImagesPresent)?_c('div',[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showImages),expression:\"!showImages\"}],staticClass:\"btn\",on:{\"click\":_vm.loadImages}},[_c('i',{staticClass:\"far fa-eye\"}),_vm._v(\" Show banks bad check image\\n \")]),_vm._v(\" \"),(_vm.$apollo.loading)?_c('div',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading...\\n \")]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.images),function(item){return (_vm.showImages)?_c('img',{staticClass:\"mt-10\",attrs:{\"src\":'data:image/jpeg;base64,' + item.image,\"width\":\"100%\"}}):_vm._e()})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./manual_charge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./manual_charge.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n \n \n Must be $0.01 or more\n\n \n
\n
\n \n
\n
\n\n \n
\n {{errorMessage}}
\n\n \n
Allow tipping for this transaction\n
\n \n
\n
\n\n \n\n \n \n
\n
\n Processing...\n \n\n \n
\n \n Are you sure that this transaction is for {{groupLocation}}?\n
\n\n \n \n \n
\n \n\n \n
\n \n Are you sure that this transaction is for {{groupLocation}}?\n
\n\n \n \n \n
\n \n \n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./manual_charge.vue?vue&type=template&id=54f1ff85&\"\nimport script from \"./manual_charge.vue?vue&type=script&lang=js&\"\nexport * from \"./manual_charge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./manual_charge.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showNonEsignForm && !_vm.showPaymentDetails && !_vm.showLocationConfirmation && !_vm.showLocationConfirmationNonEsign),expression:\"!showNonEsignForm && !showPaymentDetails && !showLocationConfirmation && !showLocationConfirmationNonEsign\"}],staticClass:\"main-form\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"Must be $0.01 or more\")]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('vue-tel-input',{attrs:{\"wrapperClasses\":\"customPhoneInput\",\"placeholder\":\"Cardholder phone number\"},on:{\"validate\":_vm.phoneValidate},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"invoice\",\"id\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice\"}},[_vm._v(_vm._s(_vm.invoiceLabel))])]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])])]),_vm._v(\" \"),_c('div',{ref:\"card\"}),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_c('br'),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTips),expression:\"showTips\"}]},[_c('span',{staticClass:\"grey-text\"},[_vm._v(\"Allow tipping for this transaction\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.perTransactionTips),expression:\"perTransactionTips\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.perTransactionTips)?_vm._i(_vm.perTransactionTips,null)>-1:(_vm.perTransactionTips)},on:{\"change\":function($event){var $$a=_vm.perTransactionTips,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.perTransactionTips=$$a.concat([$$v]))}else{$$i>-1&&(_vm.perTransactionTips=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.perTransactionTips=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn-large wide-btn mt-10\",attrs:{\"disabled\":_vm.disableSignupBtn || !_vm.phoneIsValid},on:{\"click\":_vm.requestEsign}},[_vm._v(\"\\n Request E-Sign\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm._f(\"currency\")(_vm.amount)))])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"mt-10 btn wide-btn grey lighten-4 grey-text text-darken-3\",attrs:{\"disabled\":_vm.disableSignupBtn || !_vm.phoneIsValid},on:{\"click\":_vm.requestSkipEsign}},[_vm._v(\"\\n Skip e-sign\\n \")])]),_vm._v(\" \"),(_vm.showNonEsignForm && !_vm.showPending && !_vm.showPaymentDetails)?_c('section',{staticClass:\"nonEsign-form mt-10\"},[_c('center',[_c('h3',[_vm._v(\"Skip E-signature\")]),_vm._v(\" \"),_c('span',{staticClass:\"red-text bold-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle red-text\"}),_vm._v(\" WARNING!\")]),_c('br'),_vm._v(\" \\n I understand the higher risk of no signature transaction and certify that the cardholder is aware of the extra credit card processing fees\\n \"),_c('br')]),_vm._v(\" \"),_c('label',[_vm._v(\"Cardholder First name (required)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"first_name\",\"name\":\"firstName\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Cardholder Last name (required)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"last_name\",\"name\":\"lastName\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Staff First name (required)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.staffFirstName),expression:\"staffFirstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"first_name\",\"name\":\"staffFirstName\"},domProps:{\"value\":(_vm.staffFirstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.staffFirstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))]),_vm._v(\" \"),_c('label',[_vm._v(\"Staff Last name (required)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.staffLastName),expression:\"staffLastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"last_name\",\"name\":\"staffLastName\"},domProps:{\"value\":(_vm.staffLastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.staffLastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large wide-btn\",on:{\"click\":function($event){return _vm.charge(_vm.resultHandlerNonEsign)}}},[_vm._v(\"Charge $\"+_vm._s(_vm.amount))]),_vm._v(\" \"),_c('button',{staticClass:\"mt-10 btn wide-btn grey lighten-4 grey-text text-darken-3\",on:{\"click\":function($event){_vm.showNonEsignForm = false}}},[_vm._v(\"Back\")])],1):_vm._e(),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending && !_vm.showPaymentDetails),expression:\"showPending && !showPaymentDetails\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLocationConfirmation && !_vm.showPending),expression:\"showLocationConfirmation && !showPending\"}]},[_c('h3',{staticClass:\"emerald\"},[_vm._v(\"\\n Are you sure that this transaction is for \"+_vm._s(_vm.groupLocation)+\"?\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('button',{staticClass:\"btn btn-large outlined-btn\",on:{\"click\":function($event){_vm.showLocationConfirmation=false}}},[_vm._v(\"No\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large\",staticStyle:{\"margin-left\":\"20px\"},on:{\"click\":function($event){return _vm.charge(_vm.resultHandler)}}},[_vm._v(\"Yes\")])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLocationConfirmationNonEsign && !_vm.showPending),expression:\"showLocationConfirmationNonEsign && !showPending\"}]},[_c('h3',{staticClass:\"emerald\"},[_vm._v(\"\\n Are you sure that this transaction is for \"+_vm._s(_vm.groupLocation)+\"?\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('button',{staticClass:\"btn btn-large outlined-btn\",on:{\"click\":function($event){_vm.showLocationConfirmationNonEsign=false}}},[_vm._v(\"No\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large\",staticStyle:{\"margin-left\":\"20px\"},on:{\"click\":function($event){_vm.showNonEsignForm = true; _vm.showLocationConfirmationNonEsign=false}}},[_vm._v(\"Yes\")])])]),_vm._v(\" \"),_c('payment-details',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPaymentDetails),expression:\"showPaymentDetails\"}],attrs:{\"amount\":_vm.transactionAmount,\"id\":_vm.transactionId}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./direct_charge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./direct_charge.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n {{errorMessage}}
\n {{processingErrorMessage}}
\n\n \n \n \n\n \n \n
\n Processing...\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./direct_charge.vue?vue&type=template&id=2ab74623&scoped=true&\"\nimport script from \"./direct_charge.vue?vue&type=script&lang=js&\"\nexport * from \"./direct_charge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./direct_charge.vue?vue&type=style&index=0&id=2ab74623&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2ab74623\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"main-form\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"invoice\",\"id\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice\"}},[_vm._v(_vm._s(_vm.invoiceLabel))])]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])])]),_vm._v(\" \"),_c('div',{ref:\"card\"}),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.processingErrorMessage))]),_c('br'),_vm._v(\" \"),_c('center',[(_vm.showTips)?_c('section',{staticClass:\"mt-10\"},[_c('tips',{attrs:{\"qid\":_vm.qid,\"tips-updated\":_vm.tipsUpdated}})],1):_vm._e()]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn-large wide-btn mt-50\",attrs:{\"disabled\":_vm.disableSignupBtn || !_vm.phoneIsValid},on:{\"click\":_vm.charge}},[_vm._v(\"\\n charge\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm.withTipAmount))])])],1),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./card_element.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./card_element.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./card_element.vue?vue&type=template&id=b87d072e&\"\nimport script from \"./card_element.vue?vue&type=script&lang=js&\"\nexport * from \"./card_element.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"red-text text-darken-3\"},[_vm._v(_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('div',[_c('card-input',{attrs:{\"submit\":_vm.submit,\"reset-token\":_vm.resetToken}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n\n 0\">\n
\n
\n {{amount | currency}}\n
\n
\n \n
\n
\n
\n\n \n\n \n\n \n {{errorMessage}}
\n {{processingErrorMessage}}
\n
\n\n \n \n \n\n \n\n 0\">\n Gross amount: {{grossAmount | currency}} | \n Non-cash adj: {{feeAmount | currency}}\n
\n \n
\n Processing...\n \n\n
0 ? null : amount\"\n :invoice-label=\"invoiceLabel\"\n :require-invoice-confirmation=\"requireInvoiceConfirmation\"\n @close=\"showItemForm=false\">\n\n \n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./direct_charge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./direct_charge.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./direct_charge.vue?vue&type=template&id=e911aa2e&scoped=true&\"\nimport script from \"./direct_charge.vue?vue&type=script&lang=js&\"\nexport * from \"./direct_charge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./direct_charge.vue?vue&type=style&index=0&id=e911aa2e&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e911aa2e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showItemForm),expression:\"!showItemForm\"}],staticClass:\"main-form\"},[(_vm.items.length == 0)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0|required'),expression:\"'min_value:0|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"id\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"note\",\"id\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice\"}},[_vm._v(_vm._s(_vm.invoiceLabel))])]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.items.length > 0),expression:\"items.length > 0\"}]},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('span',{staticClass:\"items-amount bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.amount)))])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('show-items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated}})],1)])]),_vm._v(\" \"),_c('card-element',{model:{value:(_vm.cardToken),callback:function ($$v) {_vm.cardToken=$$v},expression:\"cardToken\"}}),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn btn-small outlined-btn\",on:{\"click\":function($event){_vm.showItemForm=true}}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\"\\n\\n Add Item\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.processingErrorMessage))]),_c('br')]),_vm._v(\" \"),_c('center',[(_vm.showTips)?_c('section',{staticClass:\"mt-10\"},[_c('tips',{attrs:{\"qid\":_vm.qid,\"tips-updated\":_vm.tipsUpdated}})],1):_vm._e()]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn-large wide-btn mt-50\",attrs:{\"disabled\":_vm.disableSignupBtn || !_vm.phoneIsValid || !_vm.submittable},on:{\"click\":_vm.charge}},[_vm._v(\"\\n charge\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm.withTipAmount))])]),_vm._v(\" \"),(_vm.feeAmount > 0)?_c('div',{staticClass:\"center grey-text mt-5\"},[_vm._v(\"\\n Gross amount: \"),_c('b',[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.grossAmount)))]),_vm._v(\" | \\n Non-cash adj: \"),_c('b',[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.feeAmount)))])]):_vm._e()],1),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]),_vm._v(\" \"),(_vm.showItemForm)?_c('items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated,\"set-invoice\":_vm.invoice,\"set-note\":_vm.note,\"set-amount\":_vm.items.length > 0 ? null : _vm.amount,\"invoice-label\":_vm.invoiceLabel,\"require-invoice-confirmation\":_vm.requireInvoiceConfirmation},on:{\"close\":function($event){_vm.showItemForm=false}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n
\n \n \n {{errors.first(\"amount\")}}\n\n \n
\n
0\">\n
\n {{amount | currency}}\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n\n \n {{errorMessage}}
\n {{processingErrorMessage}}
\n
\n\n \n
\n
\n
Allow tipping for this transaction\n
\n \n
\n
\n
\n
\n \n
\n
\n\n \n 0\">\n Gross amount: {{grossAmount | currency}} | \n Non-cash adj: {{feeAmount | currency}}\n
\n \n
\n Processing...\n \n\n
\n\n
0 ? null : amount\"\n :invoice-label=\"invoiceLabel\"\n :require-invoice-confirmation=\"requireInvoiceConfirmation\"\n @close=\"showItemForm=false\">\n\n \n\n \n
\n \n Are you sure that this transaction is for {{groupLocation}}?\n
\n\n \n \n \n
\n \n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./remote_charge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./remote_charge.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./remote_charge.vue?vue&type=template&id=7c641a66&scoped=true&\"\nimport script from \"./remote_charge.vue?vue&type=script&lang=js&\"\nexport * from \"./remote_charge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./remote_charge.vue?vue&type=style&index=0&id=7c641a66&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7c641a66\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPaymentDetails && !_vm.showLocationConfirmation && !_vm.showItemForm),expression:\"!showPaymentDetails && !showLocationConfirmation && !showItemForm\"}],staticClass:\"main-form\"},[_c('div',{staticClass:\"row\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.items.length == 0),expression:\"items.length == 0\"}],staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0|required'),expression:\"'min_value:0|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.items.length > 0),expression:\"items.length > 0\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('span',{staticClass:\"items-amount bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.amount)))])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('show-items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('vue-tel-input',{attrs:{\"wrapperClasses\":\"customPhoneInput\",\"placeholder\":\"Cardholder phone number\"},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}})],1),_vm._v(\" \"),(_vm.items.length == 0)?_c('div',[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"note\",\"id\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice\"}},[_vm._v(_vm._s(_vm.invoiceLabel))])]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])])]):_vm._e()]),_vm._v(\" \"),_c('card-element',{model:{value:(_vm.cardToken),callback:function ($$v) {_vm.cardToken=$$v},expression:\"cardToken\"}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage || _vm.processingErrorMessage),expression:\"errorMessage || processingErrorMessage\"}]},[_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.processingErrorMessage))]),_c('br')]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTips),expression:\"showTips\"}]},[_c('span',{staticClass:\"grey-text\"},[_vm._v(\"Allow tipping for this transaction\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.perTransactionTips),expression:\"perTransactionTips\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.perTransactionTips)?_vm._i(_vm.perTransactionTips,null)>-1:(_vm.perTransactionTips)},on:{\"change\":function($event){var $$a=_vm.perTransactionTips,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.perTransactionTips=$$a.concat([$$v]))}else{$$i>-1&&(_vm.perTransactionTips=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.perTransactionTips=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn btn-small outlined-btn right\",on:{\"click\":function($event){_vm.showItemForm=true}}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\"\\n\\n Add Item\\n \")])])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn-large wide-btn mt-10\",attrs:{\"disabled\":_vm.disableSignupBtn || !_vm.phoneIsValid || !_vm.submittable},on:{\"click\":_vm.requestEsign}},[_vm._v(\"\\n charge\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" for \"+_vm._s(_vm._f(\"currency\")(_vm.amount)))])]),_vm._v(\" \"),(_vm.feeAmount > 0)?_c('div',{staticClass:\"center grey-text\"},[_vm._v(\"\\n Gross amount: \"),_c('b',[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.grossAmount)))]),_vm._v(\" | \\n Non-cash adj: \"),_c('b',[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.feeAmount)))])]):_vm._e()],1),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending && !_vm.showPaymentDetails),expression:\"showPending && !showPaymentDetails\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]),_vm._v(\" \"),_c('payment-details',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPaymentDetails),expression:\"showPaymentDetails\"}],attrs:{\"amount\":_vm.transactionAmount,\"id\":_vm.transactionId}}),_vm._v(\" \"),(_vm.showItemForm)?_c('items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated,\"set-invoice\":_vm.invoice,\"set-note\":_vm.note,\"set-amount\":_vm.items.length > 0 ? null : _vm.amount,\"invoice-label\":_vm.invoiceLabel,\"require-invoice-confirmation\":_vm.requireInvoiceConfirmation},on:{\"close\":function($event){_vm.showItemForm=false}}}):_vm._e(),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLocationConfirmation && !_vm.showPending),expression:\"showLocationConfirmation && !showPending\"}]},[_c('h3',{staticClass:\"emerald\"},[_vm._v(\"\\n Are you sure that this transaction is for \"+_vm._s(_vm.groupLocation)+\"?\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('button',{staticClass:\"btn btn-large outlined-btn\",on:{\"click\":function($event){_vm.showLocationConfirmation=false}}},[_vm._v(\"No\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large\",staticStyle:{\"margin-left\":\"20px\"},on:{\"click\":_vm.charge}},[_vm._v(\"Yes\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal_charge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal_charge.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
{{errorMessage}}\n
\n
\n
\n \n Reader Connected\n \n
\n
\n Processing...\n \n
\n\n\n","import { render, staticRenderFns } from \"./terminal_charge.vue?vue&type=template&id=26163ee6&\"\nimport script from \"./terminal_charge.vue?vue&type=script&lang=js&\"\nexport * from \"./terminal_charge.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.5|max_value:10000|required'),expression:\"'min_value:0.5|max_value:10000|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"autofocus\":\"\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],staticClass:\"validate\",attrs:{\"id\":\"phone\",\"type\":\"tel\",\"name\":\"phone\",\"autocomplete\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"phone\")),expression:\"errors.first(\\\"phone\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"phone\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"phone\"}},[_vm._v(\"Phone\")])])]),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))]),_c('br'),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending && _vm.connectedReader),expression:\"!showPending && connectedReader\"}],staticClass:\"btn-large wide-btn mt-25\",attrs:{\"disabled\":_vm.disableSignupBtn},on:{\"click\":_vm.charge}},[_vm._v(\"Charge \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\"$\"+_vm._s(_vm.amount))])]),_vm._v(\" \"),(!_vm.connectedReader)?_c('button',{staticClass:\"btn-flat wide-btn mt-25\",on:{\"click\":_vm.connectReader}},[_vm._v(\"Connect reader\")]):_c('center',{staticClass:\"mt-25\"},[_c('i',{staticClass:\"fas fa-circle emerald\"}),_vm._v(\"\\n Reader Connected\\n \")])],1),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPending),expression:\"showPending\"}],staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
Change amount\n \n\n
\n
\n
Request an amount change
\n
Warning: it takes up to 3 - 5 weeks and no other changes will be allowed during that period\n
The current check amount is {{oldAmount | currency}} - what should the new amount be?
\n
\n
\n \n
\n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./request_change_amount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./request_change_amount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./request_change_amount.vue?vue&type=template&id=6b510d19&\"\nimport script from \"./request_change_amount.vue?vue&type=script&lang=js&\"\nexport * from \"./request_change_amount.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"btn outlined-btn modal-trigger\",attrs:{\"href\":\"#modal1\"}},[_vm._v(\"Change amount\")]),_vm._v(\" \"),_c('div',{ref:\"modal\",staticClass:\"modal\",attrs:{\"id\":\"modal1\"}},[_c('div',{staticClass:\"modal-content\"},[_c('h4',{staticClass:\"bold-font\"},[_vm._v(\"Request an amount change\")]),_vm._v(\" \"),_c('b',{staticClass:\"bold-font red-text\"},[_vm._v(\"Warning: it takes up to 3 - 5 weeks and no other changes will be allowed during that period\")]),_vm._v(\" \"),_c('p',[_vm._v(\"The current check amount is \"+_vm._s(_vm._f(\"currency\")(_vm.oldAmount))+\" - what should the new amount be?\")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],staticClass:\"inputText\",attrs:{\"type\":\"number\",\"pattern\":\"\\\\d*\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"modal-footer\"},[_c('a',{staticClass:\"modal-close waves-effect waves-green btn-flat\",attrs:{\"href\":\"#!\"}},[_vm._v(\"Cancel\")]),_vm._v(\" \"),_c('button',{staticClass:\"waves-effect waves-green btn\",attrs:{\"disabled\":!_vm.amount},on:{\"click\":_vm.submit}},[_vm._v(\"Submit\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./resend_sms.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./resend_sms.vue?vue&type=script&lang=js&\"","\n \n
\n Re-send signature capture
\n \n \n Loading ...\n \n \n \n
\n
\n \n
\n
\n
\n
\n \n\n \n Signature capture successfully sent!
\n\n OK\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./resend_sms.vue?vue&type=template&id=78b27aa1&\"\nimport script from \"./resend_sms.vue?vue&type=script&lang=js&\"\nexport * from \"./resend_sms.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('h3',[_vm._v(\"Re-send signature capture\")]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading ...\\n \")]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading && !_vm.success),expression:\"!loading && !success\"}]},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('div',{staticClass:\"input-field col s12 m6 center\"},[_c('vue-tel-input',{attrs:{\"autofocus\":true,\"wrapperClasses\":\"customPhoneInput\",\"placeholder\":\"Cardholder phone number\"},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}})],1),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",attrs:{\"disabled\":_vm.sendDisabled},on:{\"click\":_vm.resend}},[_vm._v(\"\\n Re-send\\n \")])])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.success),expression:\"success\"}],staticClass:\"emerald center\"},[_c('h3',{staticClass:\"emerald\"},[_vm._v(\"Signature capture successfully sent!\")]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large mt-50\",attrs:{\"href\":\"/\"}},[_vm._v(\"OK\")])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./override_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./override_button.vue?vue&type=script&lang=js&\"","\n \n\n\n","import { render, staticRenderFns } from \"./override_button.vue?vue&type=template&id=24eed392&\"\nimport script from \"./override_button.vue?vue&type=script&lang=js&\"\nexport * from \"./override_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"btn wide-btn modal-trigger\",attrs:{\"href\":'#' + _vm.modalId}},[_vm._v(\"Skip signature\")]),_vm._v(\" \"),_c('div',{staticClass:\"modal\",attrs:{\"id\":_vm.modalId}},[_c('div',{staticClass:\"modal-content\"},[_c('section',{staticClass:\"nonEsign-form mt-10\"},[_c('center',[_c('h3',[_vm._v(\"Skip E-signature\")]),_vm._v(\" \"),_c('span',{staticClass:\"red-text bold-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle red-text\"}),_vm._v(\" WARNING!\")]),_c('br'),_vm._v(\" \\n I understand the higher risk of no signature transaction and certify that the cardholder is aware of the extra credit card processing fees\\n \"),_c('br')]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Cardholder First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"first_name\",\"name\":\"firstName\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Cardholder Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"last_name\",\"name\":\"lastName\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Staff First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.staffFirstName),expression:\"staffFirstName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"first_name\",\"name\":\"staffFirstName\"},domProps:{\"value\":(_vm.staffFirstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.staffFirstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"firstName\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Staff Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.staffLastName),expression:\"staffLastName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"autocomplete\":\"last_name\",\"name\":\"staffLastName\"},domProps:{\"value\":(_vm.staffLastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.staffLastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"lastName\")))])])])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.submit}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing ...\\n \")]):_c('span',[_vm._v(\"Skip signature\")])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n Receipt\n \n\n
\n
\n \n
\n
\n \n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_receipt_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_receipt_button.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./send_receipt_button.vue?vue&type=template&id=1ea79b3b&\"\nimport script from \"./send_receipt_button.vue?vue&type=script&lang=js&\"\nexport * from \"./send_receipt_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-panel\"},[_c('center',{staticClass:\"emerald\"},[_vm._v(\"\\n Receipt\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s9\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.contact),expression:\"contact\"}],attrs:{\"placeholder\":\"Phone / email\"},domProps:{\"value\":(_vm.contact)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.contact=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s3\"},[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.send}},[_c('i',{staticClass:\"far fa-paper-plane\"})])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cancel_pending_transaction.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cancel_pending_transaction.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n","import { render, staticRenderFns } from \"./cancel_pending_transaction.vue?vue&type=template&id=0a0c6e7e&\"\nimport script from \"./cancel_pending_transaction.vue?vue&type=script&lang=js&\"\nexport * from \"./cancel_pending_transaction.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.show),expression:\"show\"}],staticClass:\"btn red\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./reverse_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./reverse_button.vue?vue&type=script&lang=js&\"","\n \n
reverse refund\n\n \n
\n
\n
Reverse Refund
\n
\n Initial transaction of {{amount}} \n was refunded and this action will reverse that {{amount}} refund.
\n
Would you like to proceed?
\n \n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./reverse_button.vue?vue&type=template&id=1c5e9065&\"\nimport script from \"./reverse_button.vue?vue&type=script&lang=js&\"\nexport * from \"./reverse_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"waves-effect waves-light btn modal-trigger grey lighten-4 grey-text text-darken-3\",attrs:{\"href\":\"#modal1\"}},[_vm._v(\"reverse refund\")]),_vm._v(\" \"),_c('div',{ref:\"modal\",staticClass:\"modal\",attrs:{\"id\":\"modal1\"}},[_c('div',{staticClass:\"modal-content\"},[_c('h3',[_vm._v(\"Reverse Refund\")]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Initial transaction of \"+_vm._s(_vm.amount)+\" \\n was refunded and this action will reverse that \"+_vm._s(_vm.amount)+\" refund.\"),_c('br')]),_c('div',{staticClass:\"mt-10 bold-text\"},[_vm._v(\"Would you like to proceed?\")]),_vm._v(\" \"),_c('p')]),_vm._v(\" \"),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn grey lighten-4 grey-text text-darken-3\",attrs:{\"data-target\":\"modal1\"},on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn\",attrs:{\"data-target\":\"modal1\"},on:{\"click\":_vm.reverse}},[_vm._v(\"yes\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./void_check_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./void_check_button.vue?vue&type=script&lang=js&\"","\n \n \n
Void\n\n \n
\n
\n
\n
\n
Voiding a transaction is irreversible
\n
Please be aware that once a transaction is voided, it cannot be undone. Make sure you have reviewed the details carefully before proceeding with the void action.
\n
\n
\n
\n
\n \n
\n
\n\n\n\n\n","import { render, staticRenderFns } from \"./void_check_button.vue?vue&type=template&id=3cf782e1&\"\nimport script from \"./void_check_button.vue?vue&type=script&lang=js&\"\nexport * from \"./void_check_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* custom blocks */\nimport block0 from \"./void_check_button.vue?vue&type=custom&index=0&blockType=styles\"\nif (typeof block0 === 'function') block0(component)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"waves-effect waves-light btn modal-trigger\",attrs:{\"href\":\"#modal_void\"}},[_vm._v(\"Void\")]),_vm._v(\" \"),_c('div',{staticClass:\"modal\",attrs:{\"id\":\"modal_void\"}},[_c('div',{staticClass:\"modal-content\"},[_vm._m(0),_vm._v(\" \"),_c('label',[_vm._v(\"Note:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.voidCheck}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Voiding...\\n \")]):_c('span',[_vm._v(\"\\n Void\\n \")])]),_vm._v(\" \"),_c('a',{staticClass:\"modal-close waves-effect waves-green btn-flat\",attrs:{\"href\":\"#!\"}},[_vm._v(\"Cancel\")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle fa-3x grey-text\"}),_vm._v(\" \"),_c('h3',{staticClass:\"bold-font emerald\"},[_vm._v(\"Voiding a transaction is irreversible\")]),_vm._v(\" \"),_c('p',{staticClass:\"grey-text\"},[_vm._v(\"Please be aware that once a transaction is voided, it cannot be undone. Make sure you have reviewed the details carefully before proceeding with the void action.\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./sub_account_picker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./sub_account_picker.vue?vue&type=script&lang=js&\"","\n \n \n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./sub_account_picker.vue?vue&type=template&id=e95581e6&\"\nimport script from \"./sub_account_picker.vue?vue&type=script&lang=js&\"\nexport * from \"./sub_account_picker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-field\"},[_c('label',[_vm._v(\"Filter by the sub account\")]),_vm._v(\" \"),_c('input',{ref:\"autocomplete\",attrs:{\"type\":\"text\",\"name\":\"user_name\",\"placeholder\":\"name...\"}}),_vm._v(\" \"),_c('input',{ref:\"userId\",attrs:{\"type\":\"hidden\",\"name\":\"user_id\"}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
Add Item\n\n
\n
\n
Transaction amount: {{transactionAmount | currency}}
\n
\n
\n
\n Unallocated Amount:
{{unallocatedAmount | currency}}\n
0\">\n \n Allocate\n \n
\n
\n \n
Save items\n\n
\n \n Processing ...\n
\n
\n * Please allocate the remaining amount among items to enable the 'Save items' button\n
\n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_items.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_items.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add_items.vue?vue&type=template&id=0f6ba585&scoped=true&\"\nimport script from \"./add_items.vue?vue&type=script&lang=js&\"\nexport * from \"./add_items.vue?vue&type=script&lang=js&\"\nimport style0 from \"./add_items.vue?vue&type=style&index=0&id=0f6ba585&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0f6ba585\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"waves-effect waves-light btn modal-trigger\",attrs:{\"href\":\"#modal_add_items\"}},[_vm._v(\"Add Item\")]),_vm._v(\" \"),_c('div',{staticClass:\"modal mt-25\",staticStyle:{\"max-height\":\"90vh\"},attrs:{\"id\":\"modal_add_items\"}},[_c('div',{staticClass:\"modal-content\"},[_c('h3',{staticClass:\"grey-text text-darken-2\"},[_vm._v(\"Transaction amount: \"),_c('span',{staticClass:\"bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.transactionAmount)))])]),_vm._v(\" \"),_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"determinate\",style:('width: ' + _vm.progress + '%')})]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.disableSave),expression:\"disableSave\"}],staticClass:\"grey-text text-darken-2\"},[_c('i',{staticClass:\"fas fa-chart-pie\"}),_vm._v(\"\\n Unallocated Amount: \"),_c('span',{staticClass:\"bold-font red-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.unallocatedAmount)))]),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.items.length > 0),expression:\"items.length > 0\"}],attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.allocate.apply(null, arguments)}}},[_c('i',{staticClass:\"fas fa-arrows-alt-v\"}),_vm._v(\"\\n Allocate\\n \")])]),_vm._v(\" \"),_c('items',{attrs:{\"items-updated\":_vm.itemsUpdated,\"items\":_vm.items,\"set-amount\":_vm.amount,\"invoice-label\":_vm.invoiceLabel,\"require-invoice-confirmation\":_vm.requireInvoiceConfirmation,\"show-checkout\":false}}),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.processing),expression:\"!processing\"}],staticClass:\"btn btn-large\",attrs:{\"disabled\":_vm.disableSave},on:{\"click\":_vm.submit}},[_vm._v(\"Save items\")]),_c('br'),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processing),expression:\"processing\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing ...\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.disableSave),expression:\"disableSave\"}],staticClass:\"small-font grey-text\"},[_vm._v(\"\\n * Please allocate the remaining amount among items to enable the 'Save items' button\\n \")])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./onboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./onboard.vue?vue&type=script&lang=js&\"","\n \n
\n

\n
{{buttonLabel}}\n
\n\n
\n \n Processing...\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./onboard.vue?vue&type=template&id=02771f78&scoped=true&\"\nimport script from \"./onboard.vue?vue&type=script&lang=js&\"\nexport * from \"./onboard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./onboard.vue?vue&type=style&index=0&id=02771f78&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"02771f78\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.disabled)?_c('div',{staticClass:\"paypal-signup-button-contents\",on:{\"click\":_vm.startOnboarding}},[_c('img',{staticClass:\"paypal-logo\",attrs:{\"src\":\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAyNCAzMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4gbWVldCIgeG1sbnM9Imh0dHA6JiN4MkY7JiN4MkY7d3d3LnczLm9yZyYjeDJGOzIwMDAmI3gyRjtzdmciPjxwYXRoIGZpbGw9IiMwMDljZGUiIG9wYWNpdHk9IjEiIGQ9Ik0gMjAuOTI0IDcuMTU3IEMgMjEuMjA0IDUuMDU3IDIwLjkyNCAzLjY1NyAxOS44MDEgMi4zNTcgQyAxOC41ODMgMC45NTcgMTYuNDMgMC4yNTcgMTMuNzE2IDAuMjU3IEwgNS43NTggMC4yNTcgQyA1LjI5IDAuMjU3IDQuNzI5IDAuNzU3IDQuNjM0IDEuMjU3IEwgMS4zNTggMjMuNDU3IEMgMS4zNTggMjMuODU3IDEuNjM5IDI0LjM1NyAyLjEwNyAyNC4zNTcgTCA2Ljk3NSAyNC4zNTcgTCA2LjY5NCAyNi41NTcgQyA2LjYgMjYuOTU3IDYuODgxIDI3LjI1NyA3LjI1NSAyNy4yNTcgTCAxMS4zNzUgMjcuMjU3IEMgMTEuODQ0IDI3LjI1NyAxMi4zMTEgMjYuOTU3IDEyLjQwNSAyNi40NTcgTCAxMi40MDUgMjYuMTU3IEwgMTMuMjQ3IDIwLjk1NyBMIDEzLjI0NyAyMC43NTcgQyAxMy4zNDEgMjAuMjU3IDEzLjgwOSAxOS44NTcgMTQuMjc3IDE5Ljg1NyBMIDE0Ljg0IDE5Ljg1NyBDIDE4Ljg2NCAxOS44NTcgMjEuOTU0IDE4LjE1NyAyMi44OSAxMy4xNTcgQyAyMy4zNTggMTEuMDU3IDIzLjE3MiA5LjM1NyAyMi4wNDggOC4xNTcgQyAyMS43NjcgNy43NTcgMjEuMjk4IDcuNDU3IDIwLjkyNCA3LjE1NyBMIDIwLjkyNCA3LjE1NyI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMTIxNjkiIG9wYWNpdHk9IjEiIGQ9Ik0gMjAuOTI0IDcuMTU3IEMgMjEuMjA0IDUuMDU3IDIwLjkyNCAzLjY1NyAxOS44MDEgMi4zNTcgQyAxOC41ODMgMC45NTcgMTYuNDMgMC4yNTcgMTMuNzE2IDAuMjU3IEwgNS43NTggMC4yNTcgQyA1LjI5IDAuMjU3IDQuNzI5IDAuNzU3IDQuNjM0IDEuMjU3IEwgMS4zNTggMjMuNDU3IEMgMS4zNTggMjMuODU3IDEuNjM5IDI0LjM1NyAyLjEwNyAyNC4zNTcgTCA2Ljk3NSAyNC4zNTcgTCA4LjI4NiAxNi4wNTcgTCA4LjE5MiAxNi4zNTcgQyA4LjI4NiAxNS43NTcgOC43NTQgMTUuMzU3IDkuMzE1IDE1LjM1NyBMIDExLjY1NSAxNS4zNTcgQyAxNi4yNDMgMTUuMzU3IDE5LjgwMSAxMy4zNTcgMjAuOTI0IDcuNzU3IEMgMjAuODMxIDcuNDU3IDIwLjkyNCA3LjM1NyAyMC45MjQgNy4xNTciPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBvcGFjaXR5PSIxIiBkPSJNIDkuNTA0IDcuMTU3IEMgOS41OTYgNi44NTcgOS43ODQgNi41NTcgMTAuMDY1IDYuMzU3IEMgMTAuMjUxIDYuMzU3IDEwLjM0NSA2LjI1NyAxMC41MzIgNi4yNTcgTCAxNi43MTEgNi4yNTcgQyAxNy40NjEgNi4yNTcgMTguMjA4IDYuMzU3IDE4Ljc3MiA2LjQ1NyBDIDE4Ljk1OCA2LjQ1NyAxOS4xNDYgNi40NTcgMTkuMzMzIDYuNTU3IEMgMTkuNTIgNi42NTcgMTkuNzA3IDYuNjU3IDE5LjgwMSA2Ljc1NyBDIDE5Ljg5NCA2Ljc1NyAxOS45ODcgNi43NTcgMjAuMDgyIDYuNzU3IEMgMjAuMzYyIDYuODU3IDIwLjY0MyA3LjA1NyAyMC45MjQgNy4xNTcgQyAyMS4yMDQgNS4wNTcgMjAuOTI0IDMuNjU3IDE5LjgwMSAyLjI1NyBDIDE4LjY3NyAwLjg1NyAxNi41MjUgMC4yNTcgMTMuODA5IDAuMjU3IEwgNS43NTggMC4yNTcgQyA1LjI5IDAuMjU3IDQuNzI5IDAuNjU3IDQuNjM0IDEuMjU3IEwgMS4zNTggMjMuNDU3IEMgMS4zNTggMjMuODU3IDEuNjM5IDI0LjM1NyAyLjEwNyAyNC4zNTcgTCA2Ljk3NSAyNC4zNTcgTCA4LjI4NiAxNi4wNTcgTCA5LjUwNCA3LjE1NyBaIj48L3BhdGg+PC9zdmc+\"}}),_vm._v(\" \"),_c('span',{staticStyle:{\"padding-left\":\"5px\"}},[_vm._v(_vm._s(_vm.buttonLabel))])]):_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing...\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n\n
\n Processing...\n \n\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./create_card_on_file.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./create_card_on_file.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create_card_on_file.vue?vue&type=template&id=886c5b6c&\"\nimport script from \"./create_card_on_file.vue?vue&type=script&lang=js&\"\nexport * from \"./create_card_on_file.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-user prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"}],attrs:{\"name\":\"first_name\",\"id\":\"first_name\",\"type\":\"text\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"first_name\")),expression:\"errors.first(\\\"first_name\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"first_name\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"first_name\"}},[_vm._v(\"First Name (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-user prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"}],attrs:{\"name\":\"last_name\",\"id\":\"last_name\",\"type\":\"text\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"last_name\")),expression:\"errors.first(\\\"last_name\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"last_name\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"last_name\"}},[_vm._v(\"Last Name (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-building prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.company),expression:\"company\"}],attrs:{\"name\":\"company\",\"id\":\"company\",\"type\":\"text\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.company)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.company=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"company\"}},[_vm._v(\"Company (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-phone prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],attrs:{\"name\":\"phone\",\"id\":\"phone\",\"type\":\"text\",\"inputmode\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"phone\"}},[_vm._v(\"Phone (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-envelope prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"},{name:\"validate\",rawName:\"v-validate\",value:('email'),expression:\"'email'\"}],attrs:{\"name\":\"email\",\"id\":\"email\",\"type\":\"email\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"email\")),expression:\"errors.first(\\\"email\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"email\")))]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"email\"}},[_vm._v(\"Email (Optional)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-sticky-note prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],ref:\"note\",attrs:{\"name\":\"note\",\"id\":\"note\",\"type\":\"text\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"note\"}},[_vm._v(\"Note (Optional)\")])])]),_vm._v(\" \"),_c('card-element',{model:{value:(_vm.cardToken),callback:function ($$v) {_vm.cardToken=$$v},expression:\"cardToken\"}}),_vm._v(\" \"),(_vm.pending)?_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]):_c('button',{staticClass:\"btn-large wide-btn mt-50\",attrs:{\"disabled\":!_vm.cardToken},on:{\"click\":_vm.createCardOnFile}},[_c('i',{staticClass:\"fas fa-lock\"}),_vm._v(\" \\n Securely Store Card\\n \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./banner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./banner.vue?vue&type=script&lang=js&\"","\n \n \n \n \n \n

\n
\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./banner.vue?vue&type=template&id=2e1fc3dc&\"\nimport script from \"./banner.vue?vue&type=script&lang=js&\"\nexport * from \"./banner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./banner.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"src\":\"https://iwallet.com/b/image1.jpg\"},on:{\"load\":function($event){return _vm.loadSuccess(1)}}}),_vm._v(\" \"),_c('vueper-slides',{attrs:{\"bullets-outside\":true,\"arrows\":false}},_vm._l((_vm.slides),function(slide,i){return _c('vueper-slide',{key:i,attrs:{\"image\":slide.image}})}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_check.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_check.vue?vue&type=script&lang=js&\"","\n \n
\n Send a check
\n \n\n \n
\n \n \n\n The Amount field must be 0.01 or more.\n
\n
\n
\n \n Sending a check from account: {{maskedAccount}}\n
\n \n \n\n
\n \n \n Check Successfully Sent
\n\n Ok\n\n\n \n \n
\n\n\n","import { render, staticRenderFns } from \"./send_check.vue?vue&type=template&id=3ae23338&\"\nimport script from \"./send_check.vue?vue&type=script&lang=js&\"\nexport * from \"./send_check.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}]},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Payee phone (to receive a check by SMS)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Payee name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.payeeName),expression:\"payeeName\"}],domProps:{\"value\":(_vm.payeeName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.payeeName=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Check amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amountName\",\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amountName\")),expression:\"errors.first(\\\"amountName\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be 0.01 or more.\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount && _vm.payeeName),expression:\"amount && payeeName\"}],staticClass:\"col s6\"},[_c('a',{staticClass:\"btn right outlined-btn\",attrs:{\"href\":_vm.previewPath,\"target\":\"_blank\"}},[_vm._v(\"\\n preview\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"center grey-text\"},[_vm._v(\"\\n Sending a check from account: \"+_vm._s(_vm.maskedAccount)+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn wide-btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.sendCheck}},[_vm._v(\"\\n Send a check\\n \")])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showForm),expression:\"!showForm\"}]},[_c('center',[_c('i',{staticClass:\"fas fa-check-circle fa-3x emerald mt-25\"}),_vm._v(\" \"),_c('div',{staticClass:\"large-font bold-font mt-25\"},[_c('b',[_vm._v(\"Check Successfully Sent\")])]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large mt-50\",attrs:{\"href\":\"/\"}},[_vm._v(\"Ok\")])])],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h3',{staticClass:\"center bold-font\"},[_c('b',[_vm._v(\"Send a check\")])])}]\n\nexport { render, staticRenderFns }","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar defer = function defer() {\n var state = false; // Resolved or not\n\n var callbacks = [];\n\n var resolve = function resolve(val) {\n if (state) {\n return;\n }\n\n state = true;\n\n for (var i = 0, len = callbacks.length; i < len; i++) {\n callbacks[i](val);\n }\n };\n\n var then = function then(cb) {\n if (!state) {\n callbacks.push(cb);\n return;\n }\n\n cb();\n };\n\n var deferred = {\n resolved: function resolved() {\n return state;\n },\n resolve: resolve,\n promise: {\n then: then\n }\n };\n return deferred;\n};\n\nvar ownProp = Object.prototype.hasOwnProperty;\n\nfunction createRecaptcha() {\n var deferred = defer();\n return {\n notify: function notify() {\n deferred.resolve();\n },\n wait: function wait() {\n return deferred.promise;\n },\n render: function render(ele, options, cb) {\n this.wait().then(function () {\n cb(window.grecaptcha.render(ele, options));\n });\n },\n reset: function reset(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.reset(widgetId);\n });\n },\n execute: function execute(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.execute(widgetId);\n });\n },\n checkRecaptchaLoad: function checkRecaptchaLoad() {\n if (ownProp.call(window, 'grecaptcha') && ownProp.call(window.grecaptcha, 'render')) {\n this.notify();\n }\n },\n assertLoaded: function assertLoaded() {\n if (!deferred.resolved()) {\n throw new Error('ReCAPTCHA has not been loaded');\n }\n }\n };\n}\n\nvar recaptcha = createRecaptcha();\n\nif (typeof window !== 'undefined') {\n window.vueRecaptchaApiLoaded = recaptcha.notify;\n}\n\nvar VueRecaptcha = {\n name: 'VueRecaptcha',\n props: {\n sitekey: {\n type: String,\n required: true\n },\n theme: {\n type: String\n },\n badge: {\n type: String\n },\n type: {\n type: String\n },\n size: {\n type: String\n },\n tabindex: {\n type: String\n },\n loadRecaptchaScript: {\n type: Boolean,\n \"default\": false\n },\n recaptchaScriptId: {\n type: String,\n \"default\": '__RECAPTCHA_SCRIPT'\n },\n recaptchaHost: {\n type: String,\n \"default\": 'www.google.com'\n },\n language: {\n type: String,\n \"default\": ''\n }\n },\n beforeMount: function beforeMount() {\n if (this.loadRecaptchaScript) {\n if (!document.getElementById(this.recaptchaScriptId)) {\n // Note: vueRecaptchaApiLoaded load callback name is per the latest documentation\n var script = document.createElement('script');\n script.id = this.recaptchaScriptId;\n script.src = \"https://\" + this.recaptchaHost + \"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl=\" + this.language;\n script.async = true;\n script.defer = true;\n document.head.appendChild(script);\n }\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n recaptcha.checkRecaptchaLoad();\n\n var opts = _extends({}, this.$props, {\n callback: this.emitVerify,\n 'expired-callback': this.emitExpired,\n 'error-callback': this.emitError\n });\n\n var container = this.$slots[\"default\"] ? this.$el.children[0] : this.$el;\n recaptcha.render(container, opts, function (id) {\n _this.$widgetId = id;\n\n _this.$emit('render', id);\n });\n },\n methods: {\n reset: function reset() {\n recaptcha.reset(this.$widgetId);\n },\n execute: function execute() {\n recaptcha.execute(this.$widgetId);\n },\n emitVerify: function emitVerify(response) {\n this.$emit('verify', response);\n },\n emitExpired: function emitExpired() {\n this.$emit('expired');\n },\n emitError: function emitError() {\n this.$emit('error');\n }\n },\n render: function render(h) {\n return h('div', {}, this.$slots[\"default\"]);\n }\n};\nexport default VueRecaptcha;","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_image.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_by_image.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Submitted successfully
\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./check_by_image.vue?vue&type=template&id=aeda4f34&scoped=true&\"\nimport script from \"./check_by_image.vue?vue&type=script&lang=js&\"\nexport * from \"./check_by_image.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_by_image.vue?vue&type=style&index=0&id=aeda4f34&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"aeda4f34\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.submitSucceed),expression:\"!submitSucceed\"}]},[_c('vue-recaptcha',{ref:\"recaptcha\",attrs:{\"sitekey\":_vm.sitekey,\"loadRecaptchaScript\":true,\"size\":\"invisible\"},on:{\"verify\":_vm.submit,\"expired\":_vm.onCaptchaExpired}}),_vm._v(\" \"),_c('form',{ref:\"form\",attrs:{\"enctype\":\"multipart/form-data\",\"novalidate\":\"\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.51|required'),expression:\"'min_value:0.51|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be 0.51 or more.\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Your Phone (required)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],attrs:{\"name\":\"phone\",\"type\":\"tel\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Note (optional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})])]),_vm._v(\" \"),_c('image-uploader',{attrs:{\"debug\":1,\"maxWidth\":900,\"quality\":0.8,\"autoRotate\":true,\"outputFormat\":\"blob\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImage,\"onUpload\":_vm.startImageResize}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"fileInput\"},slot:\"upload-label\"},[_c('div',{staticClass:\"btn-large wide-btn\",attrs:{\"disabled\":_vm.disabled}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',[_vm._v(\"Processing...\")])]):_c('span',[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasImage ? 'Replace' : 'Check'))])])])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.disabled && _vm.src),expression:\"!disabled && src\"}],staticClass:\"grey-text small-font center\"},[_c('img',{staticClass:\"mt-10\",attrs:{\"src\":_vm.src,\"alt\":\"Check image\",\"height\":\"90px\"}}),_vm._v(\" \"),_c('div',{staticClass:\"btn-large wide-btn mt-10\",on:{\"click\":_vm.checkCaptcha}},[_vm._v(\"Re-submit\")])])],1)],1),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.submitSucceed),expression:\"submitSucceed\"}],staticClass:\"center\"},[_c('i',{staticClass:\"fas fa-check-circle fa-4x emerald\"}),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"Submitted successfully\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./feedback_hub.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./feedback_hub.vue?vue&type=script&lang=js&\"","\n \n \n
\n {{$t(\"vote.howDidWeDoToday\")}}
\n \n \n \n\n \n
\n\n \n
\n \n \n {{$t(\"vote.redirecting\")}}\n
\n\n \n\n \n\n \n
\n \n \n \n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./feedback_hub.vue?vue&type=template&id=1421b544&scoped=true&\"\nimport script from \"./feedback_hub.vue?vue&type=script&lang=js&\"\nexport * from \"./feedback_hub.vue?vue&type=script&lang=js&\"\nimport style0 from \"./feedback_hub.vue?vue&type=style&index=0&id=1421b544&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1421b544\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showFeedbackHub),expression:\"showFeedbackHub\"}],staticClass:\"center\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.voted && _vm.showVote && _vm.notFinished),expression:\"!voted && showVote && notFinished\"}]},[_c('h3',{staticClass:\"bold-font\"},[_vm._v(_vm._s(_vm.$t(\"vote.howDidWeDoToday\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large wide-btn mt-25 vote-btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":function($event){return _vm.vote(true)}}},[_c('i',{staticClass:\"far fa-thumbs-up fa-flip-horizontal mt-25 icon-text\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large wide-btn mt-25 vote-btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":function($event){return _vm.vote(false)}}},[_c('i',{staticClass:\"far fa-thumbs-down mt-25 icon-text\"})])]),_vm._v(\" \"),((_vm.voted || !_vm.showVote) && !_vm.url)?_vm._t(\"header\"):_vm._e(),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.voted || (!_vm.showVote && _vm.showReview)) && _vm.showReview && _vm.url && _vm.notFinished),expression:\"(voted || (!showVote && showReview)) && showReview && url && notFinished\"}]},[(_vm.redirecting)?_c('div',{staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n \"+_vm._s(_vm.$t(\"vote.redirecting\"))+\"\\n \")]):_c('div',[_c('h3',[_vm._v(_vm._s(_vm.$t(\"vote.leaveReview\")))]),_vm._v(\" \"),_c('a',{staticClass:\"mt-10 btn btn-large wide-btn vote-btn\",attrs:{\"href\":_vm.url},on:{\"click\":_vm.redirect}},[_c('div',{staticClass:\"big-font mt-25\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"vote.yes\")))])])]),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('a',{on:{\"click\":function($event){_vm.notFinished = false}}},[_vm._v(_vm._s(_vm.$t(\"vote.no\")))]),_c('br')])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.voted && _vm.showDownVoteForm),expression:\"voted && showDownVoteForm\"}]},[(_vm.answer)?_c('label',[_vm._v(_vm._s(_vm.$t(\"vote.whatTheGoodReason\")))]):_c('label',[_vm._v(_vm._s(_vm.$t(\"vote.whatTheBadReason\")))]),_vm._v(\" \"),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedbackText),expression:\"feedbackText\"}],domProps:{\"value\":(_vm.feedbackText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.feedbackText=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.submitFeedback}},[_vm._v(_vm._s(_vm.$t(\"vote.shareFeedback\")))])])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {defineStore} from 'pinia'\n\nexport const useCardsBillStore = defineStore('cardsBill', {\n state: () => (\n { \n showCCBtn: true,\n grossAmount: 0,\n amountNumber: 0,\n feeAmount: 0,\n tipAmount: 0,\n tipAmountFormatted: null,\n withTipAmount: null,\n selectedTip: 0,\n tipCustomAmount: 0,\n cardToken: null,\n errorMessage: null,\n showPending: false,\n allowPayByCardInput: true,\n disableSubmit: true,\n loadingStripeJS: false,\n resubmitFlow: false,\n allowSignAutosubmit: false,\n signatureImage: null,\n merchantQid: null,\n httpService: null\n }),\n actions: {\n async updateAmounts() {\n const response = await this.httpService.get(\"/api/v1/vue/gross_calculations\", {\n params: {\n amount: this.amountNumber,\n tip_percent: this.selectedTip,\n tip_custom_amount: this.tipCustomAmount,\n qid: this.merchantQid\n }\n });\n\n this.grossAmount = response.body.gross_amount;\n this.feeAmount = response.body.fee;\n this.withTipAmount = response.body.amount_with_tip;\n this.tipAmount = response.body.tip_amount;\n this.tipAmountFormatted = response.body.tip_amount_formatted;\n }\n }\n})\n","\n \n \n \n\n
\n\n\n","import mod from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tips_block.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tips_block.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tips_block.vue?vue&type=template&id=21b72597&\"\nimport script from \"./tips_block.vue?vue&type=script&lang=js&\"\nexport * from \"./tips_block.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showTips)?_c('section',{staticClass:\"mt-10 grey-text center\"},[_c('tips',{attrs:{\"qid\":_vm.merchantQid,\"tips-updated\":_vm.tipsUpdated}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n {{$t(\"sendBill.payWithCard\")}}\n
\n
\n \n
\n \n \n {{errorMessage}}\n \n
\n\n
\n \n
\n \n {{$t(\"sendBill.pleaseSignHere\")}}\n \n\n \n \n X __________________________
\n 3\">\n {{$t(\"sendBill.agreePayAboveAmountFirst\")}} {{$t(\"sendBill.agreePayAboveAmountUrl\")}} {{$t(\"sendBill.agreePayAboveAmountLast\")}}\n \n \n {{$t(\"sendBill.agreePayAboveAmount\")}}\n \n \n \n
\n\n \n \n {{$t(\"sendBill.grossAmount\")}}: {{grossAmount}} | \n {{$t(\"sendBill.nonCashAdj\")}}: {{feeAmount}}\n
\n \n
\n \n\n
\n {{$t(\"sendBill.processing\")}}\n \n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cc_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cc_pay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./cc_pay.vue?vue&type=template&id=f1c57e68&scoped=true&\"\nimport script from \"./cc_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./cc_pay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./cc_pay.vue?vue&type=style&index=0&id=f1c57e68&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f1c57e68\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showCCBtn)?_c('div',{staticClass:\"btn-large wide-btn rounded-btn mt-50\",on:{\"click\":_vm.pay}},[_c('span',{staticStyle:{\"margin-right\":\"10px\"}},[_vm._v(_vm._s(_vm.$t(\"sendBill.payWithCard\")))])]):_c('section',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showManualForm),expression:\"showManualForm\"}],staticClass:\"col s12 mt-10\"},[_c('section',{staticClass:\"card-container\"},[_c('label',[_vm._v(_vm._s(_vm.$t(\"sendBill.fillInCardDetails\"))+\":\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amountNumber),expression:\"amountNumber\"}],ref:\"card\",staticClass:\"card-input\"}),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))])]),_vm._v(\" \"),(_vm.showTips)?_c('section',{staticClass:\"mt-10 grey-text center\"},[_c('tips',{attrs:{\"qid\":_vm.merchantQid,\"tips-updated\":_vm.tipsUpdated}})],1):_vm._e(),_vm._v(\" \"),_c('section',[_c('div',{staticClass:\"card-panel mt-10\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.errorMessage),expression:\"!errorMessage\"}]},[_c('center',{staticClass:\"grey-text\",staticStyle:{\"font-size\":\"1.8em\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.pleaseSignHere\"))+\"\\n \")]),_vm._v(\" \"),_c('vue-signature-pad',{ref:\"signaturePad\",attrs:{\"width\":\"100%\",\"height\":\"27vh\",\"options\":{ onBegin: _vm.onBegin }}}),_vm._v(\" \"),_c('span',{staticClass:\"grey-text\"},[_vm._v(\"\\n X __________________________\"),_c('br'),_vm._v(\" \"),(_vm.policyUrl.length > 3)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountFirst\"))+\" \"),_c('a',{attrs:{\"href\":_vm.policyUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountUrl\")))]),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountLast\"))+\"\\n \")]):_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmount\"))+\"\\n \")])])],1)]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending && _vm.showManualForm),expression:\"!showPending && showManualForm\"}],staticClass:\"btn-large wide-btn mt-5\",attrs:{\"disabled\":_vm.disableSignupBtn || _vm.disableSubmit},on:{\"click\":function($event){return _vm.charge(_vm.resultHandler)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.pay\"))),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amountNumber),expression:\"amountNumber\"}]},[_vm._v(\" \"+_vm._s(_vm.withTipAmount))])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.feeAmount != 0),expression:\"feeAmount != 0\"}],staticClass:\"grey-text mt-5 center\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.grossAmount\"))+\": \"),_c('b',[_vm._v(_vm._s(_vm.grossAmount))]),_vm._v(\" | \\n \"),_c('i',{staticClass:\"far fa-credit-card\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.nonCashAdj\"))+\": \"),_c('b',[_vm._v(_vm._s(_vm.feeAmount))])])])])]),_vm._v(\" \"),(_vm.showPending)?_c('center',{staticClass:\"grey-text mt-5\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.processing\"))+\"\\n \")]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n \n\n \n \n {{$t(\"sendBill.grossAmount\")}}: {{grossAmount}} | \n {{$t(\"sendBill.nonCashAdj\")}}: {{feeAmount}}\n
\n \n\n
\n {{$t(\"sendBill.withTipAmount\")}} {{withTipAmount}}
\n \n
\n\n\n","import mod from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./submit_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./submit_button.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./submit_button.vue?vue&type=template&id=b69072aa&\"\nimport script from \"./submit_button.vue?vue&type=script&lang=js&\"\nexport * from \"./submit_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.allowSignAutosubmit),expression:\"!allowSignAutosubmit\"}]},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending && _vm.allowPayByCardInput),expression:\"!showPending && allowPayByCardInput\"}],staticClass:\"btn-large wide-btn mt-5\",attrs:{\"disabled\":!_vm.cardToken || _vm.disableSubmit},on:{\"click\":_vm.charge}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.pay\"))),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amountNumber),expression:\"amountNumber\"}]},[_vm._v(\" \"+_vm._s(_vm.withTipAmount))])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.feeAmount != 0),expression:\"feeAmount != 0\"}],staticClass:\"grey-text mt-5 center\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.grossAmount\"))+\": \"),_c('b',[_vm._v(_vm._s(_vm.grossAmount))]),_vm._v(\" | \\n \"),_c('i',{staticClass:\"far fa-credit-card\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.nonCashAdj\"))+\": \"),_c('b',[_vm._v(_vm._s(_vm.feeAmount))])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.allowSignAutosubmit && _vm.showTips),expression:\"allowSignAutosubmit && showTips\"}],staticClass:\"center\"},[_c('h3',{staticClass:\"bold-font emerald\"},[_vm._v(_vm._s(_vm.$t(\"sendBill.withTipAmount\"))+\" \"+_vm._s(_vm.withTipAmount))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n
\n\n
\n
\n\n\n","import mod from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./apple_google_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./apple_google_pay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./apple_google_pay.vue?vue&type=template&id=4cd55ff6&\"\nimport script from \"./apple_google_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./apple_google_pay.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.allowAppleGooglePay && !_vm.allowPayByCardInput),expression:\"allowAppleGooglePay && !allowPayByCardInput\"}],staticClass:\"mt-10\",attrs:{\"id\":\"payment-request-button\"}}),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending && !_vm.allowPayByCardInput),expression:\"!showPending && !allowPayByCardInput\"}],staticClass:\"btn-large wide-btn outlined-btn mt-5\",on:{\"click\":_vm.selectManualInput}},[_c('i',{staticClass:\"far fa-credit-card\"}),_vm._v(\" \\n Debit or Credit card\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n {{pleaseSignHere}}\n \n\n
\n \n
\n
\n 3\">\n {{$t(\"sendBill.agreePayAboveAmountFirst\")}} {{$t(\"sendBill.agreePayAboveAmountUrl\")}} {{$t(\"sendBill.agreePayAboveAmountLast\")}}\n \n \n {{$t(\"sendBill.agreePayAboveAmount\")}}\n \n \n
\n\n\n","import mod from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./signature_pad.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./signature_pad.vue?vue&type=script&lang=js&\"","\n \n
\n {{$t(\"sendBill.payWithCard\")}}\n
\n
\n \n
\n {{$t(\"sendBill.loading\")}}\n \n \n\n \n
\n\n
\n \n \n\n {{errorMessage}}\n \n\n \n
\n \n \n
\n \n\n
\n
\n
\n \n\n
\n {{$t(\"sendBill.processing\")}}\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./signature_pad.vue?vue&type=template&id=4752b702&\"\nimport script from \"./signature_pad.vue?vue&type=script&lang=js&\"\nexport * from \"./signature_pad.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',{staticClass:\"grey-text text-darken-3\",staticStyle:{\"font-size\":\"1.2em\"}},[_vm._v(\"\\n \"+_vm._s(_vm.pleaseSignHere)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"card grey lighten-2\"},[_c('vue-signature-pad',{ref:\"signaturePad\",attrs:{\"width\":\"100%\",\"height\":\"21vh\",\"options\":{ onBegin: _vm.onBegin, onEnd: _vm.onEnd }}})],1),_vm._v(\" \"),_c('span',{staticClass:\"grey-text\"},[(_vm.policyUrl.length > 3)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountFirst\"))+\" \"),_c('a',{attrs:{\"href\":_vm.policyUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountUrl\")))]),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmountLast\"))+\"\\n \")]):_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.agreePayAboveAmount\"))+\"\\n \")])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cc_generic_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cc_generic_pay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./cc_generic_pay.vue?vue&type=template&id=2e7c8006&scoped=true&\"\nimport script from \"./cc_generic_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./cc_generic_pay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./cc_generic_pay.vue?vue&type=style&index=0&id=2e7c8006&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2e7c8006\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showCCBtn && !_vm.showOnePaymentOptionForm)?_c('div',{staticClass:\"btn-large wide-btn rounded-btn mt-50\",on:{\"click\":_vm.pay}},[_c('span',{staticStyle:{\"margin-right\":\"10px\"}},[_vm._v(_vm._s(_vm.$t(\"sendBill.payWithCard\")))])]):_c('section',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loadingStripeJS),expression:\"loadingStripeJS\"}]},[_c('center',{staticClass:\"grey-text mt-5\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.loading\"))+\"\\n \")])],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loadingStripeJS),expression:\"!loadingStripeJS\"}],staticClass:\"col s12 mt-10\"},[_c('tips-block',_vm._b({},'tips-block',_vm.$props,false)),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.allowPayByCardInput && !_vm.cardToken) || (_vm.resubmitFlow && !_vm.showPending)),expression:\"(allowPayByCardInput && !cardToken) || (resubmitFlow && !showPending)\"}],staticClass:\"card-container mt-25\"},[_c('center',[_c('label',[_vm._v(_vm._s(_vm.$t(\"sendBill.fillInCardDetails\"))+\":\")])]),_vm._v(\" \"),_c('card-element',{staticClass:\"mt-25\",attrs:{\"qid\":_vm.merchantQid},model:{value:(_vm.cardToken),callback:function ($$v) {_vm.cardToken=$$v},expression:\"cardToken\"}}),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))])],1),_vm._v(\" \"),_c('center',[(_vm.allowPayByCardInput && !_vm.errorMessage && _vm.cardToken && !_vm.resubmitFlow)?_c('div',{staticClass:\"mt-10 signature\"},[_c('signature-pad',{attrs:{\"policy-url\":_vm.policyUrl,\"allow-sign-autosubmit\":_vm.allowSignAutosubmit},on:{\"onBegin\":_vm.onBegin}})],1):_vm._e()]),_vm._v(\" \"),(_vm.cardToken || _vm.resubmitFlow)?_c('submit-button',_vm._b({},'submit-button',_vm.$props,false)):_vm._e(),_vm._v(\" \"),(_vm.canAppleGooglePay)?_c('apple-google-pay',_vm._b({},'apple-google-pay',_vm.$props,false)):_vm._e()],1)]),_vm._v(\" \"),(_vm.showPending)?_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.processing\"))+\"\\n \")]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./klarna_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./klarna_pay.vue?vue&type=script&lang=js&\"","\n \n
\n {{$t(\"sendBill.buyNowPayLaterButton\")}}\n
\n
\n \n \n {{$t(\"sendBill.loading\")}}\n
\n \n \n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./klarna_pay.vue?vue&type=template&id=55583c44&scoped=true&\"\nimport script from \"./klarna_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./klarna_pay.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"55583c44\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showBtn)?_c('div',{staticClass:\"btn-large wide-btn rounded-btn mt-25\",on:{\"click\":_vm.pay}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.buyNowPayLaterButton\"))+\"\\n \")]):_c('section',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"grey-text center mt-10\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n \"+_vm._s(_vm.$t(\"sendBill.loading\"))+\"\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amountNumber),expression:\"amountNumber\"}],ref:\"card\",staticClass:\"mt-10\"}),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading),expression:\"!loading\"}],staticClass:\"btn-large wide-btn mt-5\",attrs:{\"disabled\":_vm.pending},on:{\"click\":_vm.payKlarna}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.pay\"))),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amountNumber),expression:\"amountNumber\"}]},[_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(_vm.amountNumber)))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_pay.vue?vue&type=script&lang=js&\"","\n \n
\n \n\n \n {{$t(\"sendBill.processing\")}}\n
\n \n
\n
\n {{$t(\"sendBill.submittedSuccessfully\")}}
\n\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./check_pay.vue?vue&type=template&id=aedd1c9c&scoped=true&\"\nimport script from \"./check_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./check_pay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_pay.vue?vue&type=style&index=0&id=aedd1c9c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"aedd1c9c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.submitSucceed)?_c('section',[_c('form',{ref:\"form\",attrs:{\"enctype\":\"multipart/form-data\",\"novalidate\":\"\"}},[_c('image-uploader',{attrs:{\"debug\":0,\"maxWidth\":900,\"quality\":0.8,\"autoRotate\":true,\"outputFormat\":\"blob\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImage,\"onUpload\":_vm.startImageResize}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"fileInput\"},slot:\"upload-label\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.readyForSubmit),expression:\"!readyForSubmit\"}],staticClass:\"btn-large wide-btn rounded-btn mt-25\"},[_c('span',[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasImage ? _vm.$t(\"sendBill.replace\") : _vm.$t(\"sendBill.checkByPhoto\")))])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"center\"},[_c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.src),expression:\"src\"}],staticClass:\"mt-10 responsive-img\",attrs:{\"src\":_vm.src,\"alt\":\"Check image\"}})]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.src && !_vm.waitingResponse),expression:\"src && !waitingResponse\"}],staticClass:\"grey-text small-font center\"},[_c('div',{staticClass:\"red-text text-darken-3 large-font bold-font\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle\"}),_vm._v(\" \\n \"+_vm._s(_vm.$t(\"sendBill.pleaseConfirmCheckAmount\", {amount: _vm.amount}))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"btn-large wide-btn mt-25\",on:{\"click\":_vm.submit}},[_c('i',{staticClass:\"fas fa-check\"}),_vm._v(\" \\n \"+_vm._s(_vm.$t(\"sendBill.confirmCheckAmountAndSubmit\", {amount: _vm.amount}))+\"\\n \")])])],1),_vm._v(\" \"),(_vm.waitingResponse)?_c('div',{staticClass:\"center mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.processing\"))+\"\\n \")]):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.submitSucceed),expression:\"submitSucceed\"}],staticClass:\"center\"},[_c('i',{staticClass:\"fas fa-check-circle fa-4x emerald\"}),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(_vm._s(_vm.$t(\"sendBill.submittedSuccessfully\")))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n {{$t(\"sendBill.processing\")}}\n \n \n
\n
\n\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./paypal_pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./paypal_pay.vue?vue&type=script&lang=js&\"","\n \n
\n
\n {{$t(\"sendBill.payment\")}}: {{amount}}
\n\n \n
\n {{$t(\"sendBill.to\")}}: {{merchantName}}\n
\n\n
Invoice: {{invoice}}
\n
\n \n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n\n
\n\n {{$t(\"sendBill.noPaymentMethod\")}}\n
\n
\n
\n
{{$t(\"sendBill.couldNotProcess\")}}
\n \n
\n {{$t(\"sendBill.changeLanguage\")}}
\n \n
\n
\n\n\n\n","// Copyright (c) 2005 Tom Wu\n// All Rights Reserved.\n// See \"LICENSE\" for details.\n\n// Basic JavaScript BN library - subset useful for RSA encryption.\n\nimport {cbit, int2char, lbit, op_and, op_andnot, op_or, op_xor} from \"./util\";\nimport {SecureRandom} from \"./rng\";\n// Bits per digit\nlet dbits;\n\n// JavaScript engine analysis\nconst canary = 0xdeadbeefcafe;\nconst j_lm = ((canary & 0xffffff) == 0xefcafe);\n\n\n//#region\nconst lowprimes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997];\nconst lplim = (1 << 26) / lowprimes[lowprimes.length - 1];\n//#endregion\n\n// (public) Constructor\nexport class BigInteger {\n constructor(a:number|number[]|string, b?:number|SecureRandom, c?:number|SecureRandom) {\n if (a != null) {\n if (\"number\" == typeof a) {\n this.fromNumber(a, b, c);\n } else if (b == null && \"string\" != typeof a) {\n this.fromString(a, 256);\n } else {\n this.fromString(a, b as number);\n }\n }\n }\n\n //#region PUBLIC\n\n // BigInteger.prototype.toString = bnToString;\n // (public) return string representation in given radix\n public toString(b:number):string {\n if (this.s < 0) {\n return \"-\" + this.negate().toString(b);\n }\n let k;\n if (b == 16) {\n k = 4;\n } else if (b == 8) {\n k = 3;\n } else if (b == 2) {\n k = 1;\n } else if (b == 32) {\n k = 5;\n } else if (b == 4) {\n k = 2;\n } else {\n return this.toRadix(b);\n }\n const km = (1 << k) - 1;\n let d;\n let m = false;\n let r = \"\";\n let i = this.t;\n let p = this.DB - (i * this.DB) % k;\n if (i-- > 0) {\n if (p < this.DB && (d = this[i] >> p) > 0) {\n m = true;\n r = int2char(d);\n }\n while (i >= 0) {\n if (p < k) {\n d = (this[i] & ((1 << p) - 1)) << (k - p);\n d |= this[--i] >> (p += this.DB - k);\n } else {\n d = (this[i] >> (p -= k)) & km;\n if (p <= 0) {\n p += this.DB;\n --i;\n }\n }\n if (d > 0) {\n m = true;\n }\n if (m) {\n r += int2char(d);\n }\n }\n }\n return m ? r : \"0\";\n }\n\n\n // BigInteger.prototype.negate = bnNegate;\n // (public) -this\n protected negate():BigInteger {\n const r = nbi();\n BigInteger.ZERO.subTo(this, r);\n return r;\n }\n\n\n // BigInteger.prototype.abs = bnAbs;\n // (public) |this|\n public abs() {\n return (this.s < 0) ? this.negate() : this;\n }\n\n\n // BigInteger.prototype.compareTo = bnCompareTo;\n // (public) return + if this > a, - if this < a, 0 if equal\n public compareTo(a:BigInteger):number {\n let r = this.s - a.s;\n if (r != 0) {\n return r;\n }\n let i = this.t;\n r = i - a.t;\n if (r != 0) {\n return (this.s < 0) ? -r : r;\n }\n while (--i >= 0) {\n if ((r = this[i] - a[i]) != 0) {\n return r;\n }\n }\n return 0;\n }\n\n\n // BigInteger.prototype.bitLength = bnBitLength;\n // (public) return the number of bits in \"this\"\n public bitLength() {\n if (this.t <= 0) {\n return 0;\n }\n return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ (this.s & this.DM));\n }\n\n\n // BigInteger.prototype.mod = bnMod;\n // (public) this mod a\n public mod(a:BigInteger):BigInteger {\n const r = nbi();\n this.abs().divRemTo(a, null, r);\n if (this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) {\n a.subTo(r, r);\n }\n return r;\n }\n\n\n // BigInteger.prototype.modPowInt = bnModPowInt;\n // (public) this^e % m, 0 <= e < 2^32\n public modPowInt(e:number, m:BigInteger):BigInteger {\n let z;\n if (e < 256 || m.isEven()) {\n z = new Classic(m);\n } else {\n z = new Montgomery(m);\n }\n return this.exp(e, z);\n }\n\n\n // BigInteger.prototype.clone = bnClone;\n // (public)\n protected clone():BigInteger {\n const r = nbi();\n this.copyTo(r);\n return r;\n }\n\n\n // BigInteger.prototype.intValue = bnIntValue;\n // (public) return value as integer\n protected intValue() {\n if (this.s < 0) {\n if (this.t == 1) {\n return this[0] - this.DV;\n } else if (this.t == 0) {\n return -1;\n }\n } else if (this.t == 1) {\n return this[0];\n } else if (this.t == 0) {\n return 0;\n }\n // assumes 16 < DB < 32\n return ((this[1] & ((1 << (32 - this.DB)) - 1)) << this.DB) | this[0];\n }\n\n\n // BigInteger.prototype.byteValue = bnByteValue;\n // (public) return value as byte\n protected byteValue() {\n return (this.t == 0) ? this.s : (this[0] << 24) >> 24;\n }\n\n\n // BigInteger.prototype.shortValue = bnShortValue;\n // (public) return value as short (assumes DB>=16)\n protected shortValue() {\n return (this.t == 0) ? this.s : (this[0] << 16) >> 16;\n }\n\n\n // BigInteger.prototype.signum = bnSigNum;\n // (public) 0 if this == 0, 1 if this > 0\n protected signum() {\n if (this.s < 0) {\n return -1;\n } else if (this.t <= 0 || (this.t == 1 && this[0] <= 0)) {\n return 0;\n } else {\n return 1;\n }\n }\n\n\n // BigInteger.prototype.toByteArray = bnToByteArray;\n // (public) convert to bigendian byte array\n public toByteArray():number[] {\n let i = this.t;\n const r = [];\n r[0] = this.s;\n let p = this.DB - (i * this.DB) % 8;\n let d;\n let k = 0;\n if (i-- > 0) {\n if (p < this.DB && (d = this[i] >> p) != (this.s & this.DM) >> p) {\n r[k++] = d | (this.s << (this.DB - p));\n }\n while (i >= 0) {\n if (p < 8) {\n d = (this[i] & ((1 << p) - 1)) << (8 - p);\n d |= this[--i] >> (p += this.DB - 8);\n } else {\n d = (this[i] >> (p -= 8)) & 0xff;\n if (p <= 0) {\n p += this.DB;\n --i;\n }\n }\n if ((d & 0x80) != 0) {\n d |= -256;\n }\n if (k == 0 && (this.s & 0x80) != (d & 0x80)) {\n ++k;\n }\n if (k > 0 || d != this.s) {\n r[k++] = d;\n }\n }\n }\n return r;\n }\n\n\n // BigInteger.prototype.equals = bnEquals;\n protected equals(a:BigInteger):boolean {\n return (this.compareTo(a) == 0);\n }\n\n\n // BigInteger.prototype.min = bnMin;\n protected min(a:BigInteger):BigInteger {\n return (this.compareTo(a) < 0) ? this : a;\n }\n\n\n // BigInteger.prototype.max = bnMax;\n protected max(a:BigInteger):BigInteger {\n return (this.compareTo(a) > 0) ? this : a;\n }\n\n\n // BigInteger.prototype.and = bnAnd;\n protected and(a:BigInteger):BigInteger {\n const r = nbi();\n this.bitwiseTo(a, op_and, r);\n return r;\n }\n\n\n // BigInteger.prototype.or = bnOr;\n protected or(a:BigInteger):BigInteger {\n const r = nbi();\n this.bitwiseTo(a, op_or, r);\n return r;\n }\n\n\n // BigInteger.prototype.xor = bnXor;\n protected xor(a:BigInteger):BigInteger {\n const r = nbi();\n this.bitwiseTo(a, op_xor, r);\n return r;\n }\n\n\n // BigInteger.prototype.andNot = bnAndNot;\n protected andNot(a:BigInteger):BigInteger {\n const r = nbi();\n this.bitwiseTo(a, op_andnot, r);\n return r;\n }\n\n\n // BigInteger.prototype.not = bnNot;\n // (public) ~this\n protected not():BigInteger {\n const r = nbi();\n for (let i = 0; i < this.t; ++i) {\n r[i] = this.DM & ~this[i];\n }\n r.t = this.t;\n r.s = ~this.s;\n return r;\n }\n\n\n // BigInteger.prototype.shiftLeft = bnShiftLeft;\n // (public) this << n\n protected shiftLeft(n:number) {\n const r = nbi();\n if (n < 0) {\n this.rShiftTo(-n, r);\n } else {\n this.lShiftTo(n, r);\n }\n return r;\n }\n\n\n // BigInteger.prototype.shiftRight = bnShiftRight;\n // (public) this >> n\n protected shiftRight(n:number) {\n const r = nbi();\n if (n < 0) {\n this.lShiftTo(-n, r);\n } else {\n this.rShiftTo(n, r);\n }\n return r;\n }\n\n\n // BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;\n // (public) returns index of lowest 1-bit (or -1 if none)\n protected getLowestSetBit() {\n for (let i = 0; i < this.t; ++i) {\n if (this[i] != 0) {\n return i * this.DB + lbit(this[i]);\n }\n }\n if (this.s < 0) {\n return this.t * this.DB;\n }\n return -1;\n }\n\n\n // BigInteger.prototype.bitCount = bnBitCount;\n // (public) return number of set bits\n protected bitCount() {\n let r = 0;\n const x = this.s & this.DM;\n for (let i = 0; i < this.t; ++i) {\n r += cbit(this[i] ^ x);\n }\n return r;\n }\n\n\n // BigInteger.prototype.testBit = bnTestBit;\n // (public) true iff nth bit is set\n protected testBit(n:number) {\n const j = Math.floor(n / this.DB);\n if (j >= this.t) {\n return (this.s != 0);\n }\n return ((this[j] & (1 << (n % this.DB))) != 0);\n }\n\n\n // BigInteger.prototype.setBit = bnSetBit;\n // (public) this | (1< 1) {\n const g2 = nbi();\n z.sqrTo(g[1], g2);\n while (n <= km) {\n g[n] = nbi();\n z.mulTo(g2, g[n - 2], g[n]);\n n += 2;\n }\n }\n\n let j = e.t - 1;\n let w;\n let is1 = true;\n let r2 = nbi();\n let t;\n i = nbits(e[j]) - 1;\n while (j >= 0) {\n if (i >= k1) {\n w = (e[j] >> (i - k1)) & km;\n } else {\n w = (e[j] & ((1 << (i + 1)) - 1)) << (k1 - i);\n if (j > 0) {\n w |= e[j - 1] >> (this.DB + i - k1);\n }\n }\n\n n = k;\n while ((w & 1) == 0) {\n w >>= 1;\n --n;\n }\n if ((i -= n) < 0) {\n i += this.DB;\n --j;\n }\n if (is1) {\t// ret == 1, don't bother squaring or multiplying it\n g[w].copyTo(r);\n is1 = false;\n } else {\n while (n > 1) {\n z.sqrTo(r, r2);\n z.sqrTo(r2, r);\n n -= 2;\n }\n if (n > 0) {\n z.sqrTo(r, r2);\n } else {\n t = r;\n r = r2;\n r2 = t;\n }\n z.mulTo(r2, g[w], r);\n }\n\n while (j >= 0 && (e[j] & (1 << i)) == 0) {\n z.sqrTo(r, r2);\n t = r;\n r = r2;\n r2 = t;\n if (--i < 0) {\n i = this.DB - 1;\n --j;\n }\n }\n }\n return z.revert(r);\n }\n\n\n // BigInteger.prototype.modInverse = bnModInverse;\n // (public) 1/this % m (HAC 14.61)\n public modInverse(m:BigInteger) {\n const ac = m.isEven();\n if ((this.isEven() && ac) || m.signum() == 0) {\n return BigInteger.ZERO;\n }\n const u = m.clone();\n const v = this.clone();\n const a = nbv(1);\n const b = nbv(0);\n const c = nbv(0);\n const d = nbv(1);\n while (u.signum() != 0) {\n while (u.isEven()) {\n u.rShiftTo(1, u);\n if (ac) {\n if (!a.isEven() || !b.isEven()) {\n a.addTo(this, a);\n b.subTo(m, b);\n }\n a.rShiftTo(1, a);\n } else if (!b.isEven()) {\n b.subTo(m, b);\n }\n b.rShiftTo(1, b);\n }\n while (v.isEven()) {\n v.rShiftTo(1, v);\n if (ac) {\n if (!c.isEven() || !d.isEven()) {\n c.addTo(this, c);\n d.subTo(m, d);\n }\n c.rShiftTo(1, c);\n } else if (!d.isEven()) {\n d.subTo(m, d);\n }\n d.rShiftTo(1, d);\n }\n if (u.compareTo(v) >= 0) {\n u.subTo(v, u);\n if (ac) {\n a.subTo(c, a);\n }\n b.subTo(d, b);\n } else {\n v.subTo(u, v);\n if (ac) { c.subTo(a, c); }\n d.subTo(b, d);\n }\n }\n if (v.compareTo(BigInteger.ONE) != 0) {\n return BigInteger.ZERO;\n }\n if (d.compareTo(m) >= 0) {\n return d.subtract(m);\n }\n if (d.signum() < 0) {\n d.addTo(m, d);\n } else {\n return d;\n }\n if (d.signum() < 0) {\n return d.add(m);\n } else {\n return d;\n }\n }\n\n\n // BigInteger.prototype.pow = bnPow;\n // (public) this^e\n protected pow(e:number) {\n return this.exp(e, new NullExp());\n }\n\n\n // BigInteger.prototype.gcd = bnGCD;\n // (public) gcd(this,a) (HAC 14.54)\n public gcd(a:BigInteger) {\n let x = (this.s < 0) ? this.negate() : this.clone();\n let y = (a.s < 0) ? a.negate() : a.clone();\n if (x.compareTo(y) < 0) {\n const t = x;\n x = y;\n y = t;\n }\n let i = x.getLowestSetBit();\n let g = y.getLowestSetBit();\n if (g < 0) {\n return x;\n }\n if (i < g) {\n g = i;\n }\n if (g > 0) {\n x.rShiftTo(g, x);\n y.rShiftTo(g, y);\n }\n while (x.signum() > 0) {\n if ((i = x.getLowestSetBit()) > 0) {\n x.rShiftTo(i, x);\n }\n if ((i = y.getLowestSetBit()) > 0) {\n y.rShiftTo(i, y);\n }\n if (x.compareTo(y) >= 0) {\n x.subTo(y, x);\n x.rShiftTo(1, x);\n } else {\n y.subTo(x, y);\n y.rShiftTo(1, y);\n }\n }\n if (g > 0) {\n y.lShiftTo(g, y);\n }\n return y;\n }\n\n\n // BigInteger.prototype.isProbablePrime = bnIsProbablePrime;\n // (public) test primality with certainty >= 1-.5^t\n public isProbablePrime(t:number) {\n let i;\n const x = this.abs();\n if (x.t == 1 && x[0] <= lowprimes[lowprimes.length - 1]) {\n for (i = 0; i < lowprimes.length; ++i) {\n if (x[0] == lowprimes[i]) {\n return true;\n }\n }\n return false;\n }\n if (x.isEven()) {\n return false;\n }\n i = 1;\n while (i < lowprimes.length) {\n let m = lowprimes[i];\n let j = i + 1;\n while (j < lowprimes.length && m < lplim) {\n m *= lowprimes[j++];\n }\n m = x.modInt(m);\n while (i < j) {\n if (m % lowprimes[i++] == 0) {\n return false;\n }\n }\n }\n return x.millerRabin(t);\n }\n\n\n //#endregion PUBLIC\n\n //#region PROTECTED\n\n // BigInteger.prototype.copyTo = bnpCopyTo;\n // (protected) copy this to r\n public copyTo(r:BigInteger) {\n for (let i = this.t - 1; i >= 0; --i) {\n r[i] = this[i];\n }\n r.t = this.t;\n r.s = this.s;\n }\n\n\n // BigInteger.prototype.fromInt = bnpFromInt;\n // (protected) set from integer value x, -DV <= x < DV\n public fromInt(x:number) {\n this.t = 1;\n this.s = (x < 0) ? -1 : 0;\n if (x > 0) {\n this[0] = x;\n } else if (x < -1) {\n this[0] = x + this.DV;\n } else {\n this.t = 0;\n }\n }\n\n\n // BigInteger.prototype.fromString = bnpFromString;\n // (protected) set from string and radix\n protected fromString(s:string|number[], b:number) {\n let k;\n if (b == 16) {\n k = 4;\n } else if (b == 8) {\n k = 3;\n } else if (b == 256) {\n k = 8;\n /* byte array */\n } else if (b == 2) {\n k = 1;\n } else if (b == 32) {\n k = 5;\n } else if (b == 4) {\n k = 2;\n } else {\n this.fromRadix(s as string, b);\n return;\n }\n this.t = 0;\n this.s = 0;\n let i = s.length;\n let mi = false;\n let sh = 0;\n while (--i >= 0) {\n const x = (k == 8) ? (+s[i]) & 0xff : intAt(s as string, i);\n if (x < 0) {\n if ((s as string).charAt(i) == \"-\") {\n mi = true;\n }\n continue;\n }\n mi = false;\n if (sh == 0) {\n this[this.t++] = x;\n } else if (sh + k > this.DB) {\n this[this.t - 1] |= (x & ((1 << (this.DB - sh)) - 1)) << sh;\n this[this.t++] = (x >> (this.DB - sh));\n } else {\n this[this.t - 1] |= x << sh;\n }\n sh += k;\n if (sh >= this.DB) {\n sh -= this.DB;\n }\n }\n if (k == 8 && ((+s[0]) & 0x80) != 0) {\n this.s = -1;\n if (sh > 0) {\n this[this.t - 1] |= ((1 << (this.DB - sh)) - 1) << sh;\n }\n }\n this.clamp();\n if (mi) {\n BigInteger.ZERO.subTo(this, this);\n }\n }\n\n\n // BigInteger.prototype.clamp = bnpClamp;\n // (protected) clamp off excess high words\n public clamp() {\n const c = this.s & this.DM;\n while (this.t > 0 && this[this.t - 1] == c) {\n --this.t;\n }\n }\n\n\n // BigInteger.prototype.dlShiftTo = bnpDLShiftTo;\n // (protected) r = this << n*DB\n public dlShiftTo(n:number, r:BigInteger) {\n let i;\n for (i = this.t - 1; i >= 0; --i) {\n r[i + n] = this[i];\n }\n for (i = n - 1; i >= 0; --i) {\n r[i] = 0;\n }\n r.t = this.t + n;\n r.s = this.s;\n }\n\n\n // BigInteger.prototype.drShiftTo = bnpDRShiftTo;\n // (protected) r = this >> n*DB\n public drShiftTo(n:number, r:BigInteger) {\n for (let i = n; i < this.t; ++i) {\n r[i - n] = this[i];\n }\n r.t = Math.max(this.t - n, 0);\n r.s = this.s;\n }\n\n\n // BigInteger.prototype.lShiftTo = bnpLShiftTo;\n // (protected) r = this << n\n protected lShiftTo(n:number, r:BigInteger) {\n const bs = n % this.DB;\n const cbs = this.DB - bs;\n const bm = (1 << cbs) - 1;\n const ds = Math.floor(n / this.DB);\n let c = (this.s << bs) & this.DM;\n\n for (let i = this.t - 1; i >= 0; --i) {\n r[i + ds + 1] = (this[i] >> cbs) | c;\n c = (this[i] & bm) << bs;\n }\n for (let i = ds - 1; i >= 0; --i) {\n r[i] = 0;\n }\n r[ds] = c;\n r.t = this.t + ds + 1;\n r.s = this.s;\n r.clamp();\n }\n\n\n // BigInteger.prototype.rShiftTo = bnpRShiftTo;\n // (protected) r = this >> n\n protected rShiftTo(n:number, r:BigInteger) {\n r.s = this.s;\n const ds = Math.floor(n / this.DB);\n if (ds >= this.t) {\n r.t = 0;\n return;\n }\n const bs = n % this.DB;\n const cbs = this.DB - bs;\n const bm = (1 << bs) - 1;\n r[0] = this[ds] >> bs;\n for (let i = ds + 1; i < this.t; ++i) {\n r[i - ds - 1] |= (this[i] & bm) << cbs;\n r[i - ds] = this[i] >> bs;\n }\n if (bs > 0) {\n r[this.t - ds - 1] |= (this.s & bm) << cbs;\n }\n r.t = this.t - ds;\n r.clamp();\n }\n\n\n // BigInteger.prototype.subTo = bnpSubTo;\n // (protected) r = this - a\n public subTo(a:BigInteger, r:BigInteger) {\n let i = 0;\n let c = 0;\n const m = Math.min(a.t, this.t);\n while (i < m) {\n c += this[i] - a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n if (a.t < this.t) {\n c -= a.s;\n while (i < this.t) {\n c += this[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += this.s;\n } else {\n c += this.s;\n while (i < a.t) {\n c -= a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c -= a.s;\n }\n r.s = (c < 0) ? -1 : 0;\n if (c < -1) {\n r[i++] = this.DV + c;\n } else if (c > 0) {\n r[i++] = c;\n }\n r.t = i;\n r.clamp();\n }\n\n\n // BigInteger.prototype.multiplyTo = bnpMultiplyTo;\n // (protected) r = this * a, r != this,a (HAC 14.12)\n // \"this\" should be the larger one if appropriate.\n public multiplyTo(a:BigInteger, r:BigInteger) {\n const x = this.abs();\n const y = a.abs();\n let i = x.t;\n r.t = i + y.t;\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = 0; i < y.t; ++i) {\n r[i + x.t] = x.am(0, y[i], r, i, 0, x.t);\n }\n r.s = 0;\n r.clamp();\n if (this.s != a.s) {\n BigInteger.ZERO.subTo(r, r);\n }\n }\n\n\n // BigInteger.prototype.squareTo = bnpSquareTo;\n // (protected) r = this^2, r != this (HAC 14.16)\n public squareTo(r:BigInteger) {\n const x = this.abs();\n let i = r.t = 2 * x.t;\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = 0; i < x.t - 1; ++i) {\n const c = x.am(i, x[i], r, 2 * i, 0, 1);\n if ((r[i + x.t] += x.am(i + 1, 2 * x[i], r, 2 * i + 1, c, x.t - i - 1)) >= x.DV) {\n r[i + x.t] -= x.DV;\n r[i + x.t + 1] = 1;\n }\n }\n if (r.t > 0) {\n r[r.t - 1] += x.am(i, x[i], r, 2 * i, 0, 1);\n }\n r.s = 0;\n r.clamp();\n }\n\n\n // BigInteger.prototype.divRemTo = bnpDivRemTo;\n // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)\n // r != q, this != m. q or r may be null.\n public divRemTo(m:BigInteger, q:BigInteger, r:BigInteger) {\n const pm = m.abs();\n if (pm.t <= 0) {\n return;\n }\n const pt = this.abs();\n if (pt.t < pm.t) {\n if (q != null) {\n q.fromInt(0);\n }\n if (r != null) {\n this.copyTo(r);\n }\n return;\n }\n if (r == null) {\n r = nbi();\n }\n const y = nbi();\n const ts = this.s;\n const ms = m.s;\n const nsh = this.DB - nbits(pm[pm.t - 1]);\t// normalize modulus\n if (nsh > 0) {\n pm.lShiftTo(nsh, y);\n pt.lShiftTo(nsh, r);\n } else {\n pm.copyTo(y);\n pt.copyTo(r);\n }\n const ys = y.t;\n const y0 = y[ys - 1];\n if (y0 == 0) {\n return;\n }\n const yt = y0 * (1 << this.F1) + ((ys > 1) ? y[ys - 2] >> this.F2 : 0);\n const d1 = this.FV / yt;\n const d2 = (1 << this.F1) / yt;\n const e = 1 << this.F2;\n let i = r.t;\n let j = i - ys;\n const t = (q == null) ? nbi() : q;\n y.dlShiftTo(j, t);\n if (r.compareTo(t) >= 0) {\n r[r.t++] = 1;\n r.subTo(t, r);\n }\n BigInteger.ONE.dlShiftTo(ys, t);\n t.subTo(y, y);\t// \"negative\" y so we can replace sub with am later\n while (y.t < ys) {\n y[y.t++] = 0;\n }\n while (--j >= 0) {\n // Estimate quotient digit\n let qd = (r[--i] == y0) ? this.DM : Math.floor(r[i] * d1 + (r[i - 1] + e) * d2);\n if ((r[i] += y.am(0, qd, r, j, 0, ys)) < qd) {\t// Try it out\n y.dlShiftTo(j, t);\n r.subTo(t, r);\n while (r[i] < --qd) {\n r.subTo(t, r);\n }\n }\n }\n if (q != null) {\n r.drShiftTo(ys, q);\n if (ts != ms) {\n BigInteger.ZERO.subTo(q, q);\n }\n }\n r.t = ys;\n r.clamp();\n if (nsh > 0) {\n r.rShiftTo(nsh, r);\n }\t// Denormalize remainder\n if (ts < 0) {\n BigInteger.ZERO.subTo(r, r);\n }\n }\n\n\n // BigInteger.prototype.invDigit = bnpInvDigit;\n // (protected) return \"-1/this % 2^DB\"; useful for Mont. reduction\n // justification:\n // xy == 1 (mod m)\n // xy = 1+km\n // xy(2-xy) = (1+km)(1-km)\n // x[y(2-xy)] = 1-k^2m^2\n // x[y(2-xy)] == 1 (mod m^2)\n // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2\n // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.\n // JS multiply \"overflows\" differently from C/C++, so care is needed here.\n public invDigit():number {\n if (this.t < 1) {\n return 0;\n }\n const x = this[0];\n if ((x & 1) == 0) {\n return 0;\n }\n let y = x & 3;\t\t// y == 1/x mod 2^2\n y = (y * (2 - (x & 0xf) * y)) & 0xf;\t// y == 1/x mod 2^4\n y = (y * (2 - (x & 0xff) * y)) & 0xff;\t// y == 1/x mod 2^8\n y = (y * (2 - (((x & 0xffff) * y) & 0xffff))) & 0xffff;\t// y == 1/x mod 2^16\n // last step - calculate inverse mod DV directly;\n // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints\n y = (y * (2 - x * y % this.DV)) % this.DV;\t\t// y == 1/x mod 2^dbits\n // we really want the negative inverse, and -DV < y < DV\n return (y > 0) ? this.DV - y : -y;\n }\n\n\n // BigInteger.prototype.isEven = bnpIsEven;\n // (protected) true iff this is even\n protected isEven() {\n return ((this.t > 0) ? (this[0] & 1) : this.s) == 0;\n }\n\n\n // BigInteger.prototype.exp = bnpExp;\n // (protected) this^e, e < 2^32, doing sqr and mul with \"r\" (HAC 14.79)\n protected exp(e:number, z:IReduction) {\n if (e > 0xffffffff || e < 1) {\n return BigInteger.ONE;\n }\n let r = nbi();\n let r2 = nbi();\n const g = z.convert(this);\n let i = nbits(e) - 1;\n g.copyTo(r);\n while (--i >= 0) {\n z.sqrTo(r, r2);\n if ((e & (1 << i)) > 0) {\n z.mulTo(r2, g, r);\n } else {\n const t = r;\n r = r2;\n r2 = t;\n }\n }\n return z.revert(r);\n }\n\n\n // BigInteger.prototype.chunkSize = bnpChunkSize;\n // (protected) return x s.t. r^x < DV\n protected chunkSize(r:number) {\n return Math.floor(Math.LN2 * this.DB / Math.log(r));\n }\n\n\n // BigInteger.prototype.toRadix = bnpToRadix;\n // (protected) convert to radix string\n protected toRadix(b:number) {\n if (b == null) {\n b = 10;\n }\n if (this.signum() == 0 || b < 2 || b > 36) {\n return \"0\";\n }\n const cs = this.chunkSize(b);\n const a = Math.pow(b, cs);\n const d = nbv(a);\n const y = nbi();\n const z = nbi();\n let r = \"\";\n this.divRemTo(d, y, z);\n while (y.signum() > 0) {\n r = (a + z.intValue()).toString(b).substr(1) + r;\n y.divRemTo(d, y, z);\n }\n return z.intValue().toString(b) + r;\n }\n\n\n // BigInteger.prototype.fromRadix = bnpFromRadix;\n // (protected) convert from radix string\n public fromRadix(s:string, b:number) {\n this.fromInt(0);\n if (b == null) {\n b = 10;\n }\n const cs = this.chunkSize(b);\n const d = Math.pow(b, cs);\n let mi = false;\n let j = 0;\n let w = 0;\n for (let i = 0; i < s.length; ++i) {\n const x = intAt(s, i);\n if (x < 0) {\n if (s.charAt(i) == \"-\" && this.signum() == 0) {\n mi = true;\n }\n continue;\n }\n w = b * w + x;\n if (++j >= cs) {\n this.dMultiply(d);\n this.dAddOffset(w, 0);\n j = 0;\n w = 0;\n }\n }\n if (j > 0) {\n this.dMultiply(Math.pow(b, j));\n this.dAddOffset(w, 0);\n }\n if (mi) {\n BigInteger.ZERO.subTo(this, this);\n }\n }\n\n\n // BigInteger.prototype.fromNumber = bnpFromNumber;\n // (protected) alternate constructor\n protected fromNumber(a:number, b:number|SecureRandom, c?:number|SecureRandom) {\n if (\"number\" == typeof b) {\n // new BigInteger(int,int,RNG)\n if (a < 2) {\n this.fromInt(1);\n } else {\n this.fromNumber(a, c);\n if (!this.testBit(a - 1)) {\n // force MSB set\n this.bitwiseTo(BigInteger.ONE.shiftLeft(a - 1), op_or, this);\n }\n if (this.isEven()) {\n this.dAddOffset(1, 0);\n } // force odd\n while (!this.isProbablePrime(b)) {\n this.dAddOffset(2, 0);\n if (this.bitLength() > a) {\n this.subTo(BigInteger.ONE.shiftLeft(a - 1), this);\n }\n }\n }\n } else {\n // new BigInteger(int,RNG)\n const x:number[] = [];\n const t = a & 7;\n x.length = (a >> 3) + 1;\n b.nextBytes(x);\n if (t > 0) {\n x[0] &= ((1 << t) - 1);\n } else {\n x[0] = 0;\n }\n this.fromString(x, 256);\n }\n }\n\n\n // BigInteger.prototype.bitwiseTo = bnpBitwiseTo;\n // (protected) r = this op a (bitwise)\n protected bitwiseTo(a:BigInteger, op:(a:number, b:number) => number, r:BigInteger) {\n let i;\n let f;\n const m = Math.min(a.t, this.t);\n for (i = 0; i < m; ++i) {\n r[i] = op(this[i], a[i]);\n }\n if (a.t < this.t) {\n f = a.s & this.DM;\n for (i = m; i < this.t; ++i) {\n r[i] = op(this[i], f);\n }\n r.t = this.t;\n } else {\n f = this.s & this.DM;\n for (i = m; i < a.t; ++i) {\n r[i] = op(f, a[i]);\n }\n r.t = a.t;\n }\n r.s = op(this.s, a.s);\n r.clamp();\n }\n\n\n // BigInteger.prototype.changeBit = bnpChangeBit;\n // (protected) this op (1< number) {\n const r = BigInteger.ONE.shiftLeft(n);\n this.bitwiseTo(r, op, r);\n return r;\n }\n\n\n // BigInteger.prototype.addTo = bnpAddTo;\n // (protected) r = this + a\n protected addTo(a:BigInteger, r:BigInteger) {\n let i = 0;\n let c = 0;\n const m = Math.min(a.t, this.t);\n while (i < m) {\n c += this[i] + a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n if (a.t < this.t) {\n c += a.s;\n while (i < this.t) {\n c += this[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += this.s;\n } else {\n c += this.s;\n while (i < a.t) {\n c += a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += a.s;\n }\n r.s = (c < 0) ? -1 : 0;\n if (c > 0) {\n r[i++] = c;\n } else if (c < -1) {\n r[i++] = this.DV + c;\n }\n r.t = i;\n r.clamp();\n }\n\n\n // BigInteger.prototype.dMultiply = bnpDMultiply;\n // (protected) this *= n, this >= 0, 1 < n < DV\n protected dMultiply(n:number) {\n this[this.t] = this.am(0, n - 1, this, 0, 0, this.t);\n ++this.t;\n this.clamp();\n }\n\n\n // BigInteger.prototype.dAddOffset = bnpDAddOffset;\n // (protected) this += n << w words, this >= 0\n public dAddOffset(n:number, w:number) {\n if (n == 0) {\n return;\n }\n while (this.t <= w) {\n this[this.t++] = 0;\n }\n this[w] += n;\n while (this[w] >= this.DV) {\n this[w] -= this.DV;\n if (++w >= this.t) {\n this[this.t++] = 0;\n }\n ++this[w];\n }\n }\n\n\n // BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;\n // (protected) r = lower n words of \"this * a\", a.t <= n\n // \"this\" should be the larger one if appropriate.\n public multiplyLowerTo(a:BigInteger, n:number, r:BigInteger) {\n let i = Math.min(this.t + a.t, n);\n r.s = 0; // assumes a,this >= 0\n r.t = i;\n while (i > 0) {\n r[--i] = 0;\n }\n for (const j = r.t - this.t; i < j; ++i) {\n r[i + this.t] = this.am(0, a[i], r, i, 0, this.t);\n }\n for (const j = Math.min(a.t, n); i < j; ++i) {\n this.am(0, a[i], r, i, 0, n - i);\n }\n r.clamp();\n }\n\n\n // BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;\n // (protected) r = \"this * a\" without lower n words, n > 0\n // \"this\" should be the larger one if appropriate.\n public multiplyUpperTo(a:BigInteger, n:number, r:BigInteger) {\n --n;\n let i = r.t = this.t + a.t - n;\n r.s = 0; // assumes a,this >= 0\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = Math.max(n - this.t, 0); i < a.t; ++i) {\n r[this.t + i - n] = this.am(n - i, a[i], r, 0, 0, this.t + i - n);\n }\n r.clamp();\n r.drShiftTo(1, r);\n }\n\n\n // BigInteger.prototype.modInt = bnpModInt;\n // (protected) this % n, n < 2^26\n protected modInt(n:number) {\n if (n <= 0) {\n return 0;\n }\n const d = this.DV % n;\n let r = (this.s < 0) ? n - 1 : 0;\n if (this.t > 0) {\n if (d == 0) {\n r = this[0] % n;\n } else {\n for (let i = this.t - 1; i >= 0; --i) {\n r = (d * r + this[i]) % n;\n }\n }\n }\n return r;\n }\n\n\n // BigInteger.prototype.millerRabin = bnpMillerRabin;\n // (protected) true if probably prime (HAC 4.24, Miller-Rabin)\n protected millerRabin(t:number) {\n const n1 = this.subtract(BigInteger.ONE);\n const k = n1.getLowestSetBit();\n if (k <= 0) {\n return false;\n }\n const r = n1.shiftRight(k);\n t = (t + 1) >> 1;\n if (t > lowprimes.length) {\n t = lowprimes.length;\n }\n const a = nbi();\n for (let i = 0; i < t; ++i) {\n // Pick bases at random, instead of starting at 2\n a.fromInt(lowprimes[Math.floor(Math.random() * lowprimes.length)]);\n let y = a.modPow(r, this);\n if (y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {\n let j = 1;\n while (j++ < k && y.compareTo(n1) != 0) {\n y = y.modPowInt(2, this);\n if (y.compareTo(BigInteger.ONE) == 0) {\n return false;\n }\n }\n if (y.compareTo(n1) != 0) {\n return false;\n }\n }\n }\n return true;\n }\n\n // BigInteger.prototype.square = bnSquare;\n // (public) this^2\n protected square() {\n const r = nbi();\n this.squareTo(r);\n return r;\n }\n\n //#region ASYNC\n\n // Public API method\n public gcda(a:BigInteger, callback:(x:BigInteger) => void) {\n let x = (this.s < 0) ? this.negate() : this.clone();\n let y = (a.s < 0) ? a.negate() : a.clone();\n if (x.compareTo(y) < 0) {\n const t = x;\n x = y;\n y = t;\n }\n let i = x.getLowestSetBit();\n let g = y.getLowestSetBit();\n if (g < 0) {\n callback(x);\n return;\n }\n if (i < g) { g = i; }\n if (g > 0) {\n x.rShiftTo(g, x);\n y.rShiftTo(g, y);\n }\n // Workhorse of the algorithm, gets called 200 - 800 times per 512 bit keygen.\n const gcda1 = function () {\n if ((i = x.getLowestSetBit()) > 0) { x.rShiftTo(i, x); }\n if ((i = y.getLowestSetBit()) > 0) { y.rShiftTo(i, y); }\n if (x.compareTo(y) >= 0) {\n x.subTo(y, x);\n x.rShiftTo(1, x);\n } else {\n y.subTo(x, y);\n y.rShiftTo(1, y);\n }\n if (!(x.signum() > 0)) {\n if (g > 0) { y.lShiftTo(g, y); }\n setTimeout(function () {callback(y); }, 0); // escape\n } else {\n setTimeout(gcda1, 0);\n }\n };\n setTimeout(gcda1, 10);\n }\n\n // (protected) alternate constructor\n public fromNumberAsync(a:number, b:number|SecureRandom, c:number|SecureRandom, callback:() => void) {\n if (\"number\" == typeof b) {\n if (a < 2) {\n this.fromInt(1);\n } else {\n this.fromNumber(a, c);\n if (!this.testBit(a - 1)) {\n this.bitwiseTo(BigInteger.ONE.shiftLeft(a - 1), op_or, this);\n }\n if (this.isEven()) {\n this.dAddOffset(1, 0);\n }\n const bnp = this;\n const bnpfn1 = function () {\n bnp.dAddOffset(2, 0);\n if (bnp.bitLength() > a) { bnp.subTo(BigInteger.ONE.shiftLeft(a - 1), bnp); }\n if (bnp.isProbablePrime(b)) {\n setTimeout(function () {callback(); }, 0); // escape\n } else {\n setTimeout(bnpfn1, 0);\n }\n };\n setTimeout(bnpfn1, 0);\n }\n } else {\n const x:number[] = [];\n const t = a & 7;\n x.length = (a >> 3) + 1;\n b.nextBytes(x);\n if (t > 0) { x[0] &= ((1 << t) - 1); } else { x[0] = 0; }\n this.fromString(x, 256);\n }\n }\n\n //#endregion ASYNC\n\n //#endregion PROTECTED\n\n //#region FIELDS\n\n public s:number;\n public t:number;\n\n\n public DB:number;\n public DM:number;\n public DV:number;\n\n public FV:number;\n public F1:number;\n public F2:number;\n\n public am:(i:number, x:number, w:BigInteger, j:number, c:number, n:number) => number;\n\n [index:number]:number;\n\n public static ONE:BigInteger;\n public static ZERO:BigInteger;\n\n //#endregion FIELDS\n}\n\n//#region REDUCERS\n\n//#region NullExp\n\nclass NullExp {\n constructor() {\n\n }\n\n // NullExp.prototype.convert = nNop;\n public convert(x:BigInteger) {\n return x;\n }\n\n\n // NullExp.prototype.revert = nNop;\n public revert(x:BigInteger) {\n return x;\n }\n\n\n // NullExp.prototype.mulTo = nMulTo;\n public mulTo(x:BigInteger, y:BigInteger, r:BigInteger) {\n x.multiplyTo(y, r);\n }\n\n\n // NullExp.prototype.sqrTo = nSqrTo;\n public sqrTo(x:BigInteger, r:BigInteger) {\n x.squareTo(r);\n }\n}\n\n//#endregion NullExp\n\n//#region Classic\n\nexport interface IReduction {\n convert(x:BigInteger):BigInteger;\n\n revert(x:BigInteger):BigInteger;\n\n // reduce?(x:BigInteger):void;\n\n mulTo(x:BigInteger, y:BigInteger, r:BigInteger):void;\n\n sqrTo(x:BigInteger, r:BigInteger):void;\n}\n\n// Modular reduction using \"classic\" algorithm\nclass Classic implements IReduction {\n constructor(protected m:BigInteger) {\n }\n\n // Classic.prototype.convert = cConvert;\n public convert(x:BigInteger) {\n if (x.s < 0 || x.compareTo(this.m) >= 0) {\n return x.mod(this.m);\n } else {\n return x;\n }\n }\n\n\n // Classic.prototype.revert = cRevert;\n public revert(x:BigInteger) {\n return x;\n }\n\n\n // Classic.prototype.reduce = cReduce;\n public reduce(x:BigInteger) {\n x.divRemTo(this.m, null, x);\n }\n\n\n // Classic.prototype.mulTo = cMulTo;\n public mulTo(x:BigInteger, y:BigInteger, r:BigInteger) {\n x.multiplyTo(y, r);\n this.reduce(r);\n }\n\n\n // Classic.prototype.sqrTo = cSqrTo;\n public sqrTo(x:BigInteger, r:BigInteger) {\n x.squareTo(r);\n this.reduce(r);\n }\n}\n\n//#endregion\n\n//#region Montgomery\n\n// Montgomery reduction\nclass Montgomery implements IReduction {\n constructor(protected m:BigInteger) {\n this.mp = m.invDigit();\n this.mpl = this.mp & 0x7fff;\n this.mph = this.mp >> 15;\n this.um = (1 << (m.DB - 15)) - 1;\n this.mt2 = 2 * m.t;\n }\n\n protected mp:number;\n protected mpl:number;\n protected mph:number;\n protected um:number;\n protected mt2:number;\n\n // Montgomery.prototype.convert = montConvert;\n // xR mod m\n public convert(x:BigInteger) {\n const r = nbi();\n x.abs().dlShiftTo(this.m.t, r);\n r.divRemTo(this.m, null, r);\n if (x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) {\n this.m.subTo(r, r);\n }\n return r;\n }\n\n // Montgomery.prototype.revert = montRevert;\n // x/R mod m\n public revert(x:BigInteger) {\n const r = nbi();\n x.copyTo(r);\n this.reduce(r);\n return r;\n }\n\n // Montgomery.prototype.reduce = montReduce;\n // x = x/R mod m (HAC 14.32)\n public reduce(x:BigInteger) {\n while (x.t <= this.mt2) {\n // pad x so am has enough room later\n x[x.t++] = 0;\n }\n for (let i = 0; i < this.m.t; ++i) {\n // faster way of calculating u0 = x[i]*mp mod DV\n let j = x[i] & 0x7fff;\n const u0 = (j * this.mpl + (((j * this.mph + (x[i] >> 15) * this.mpl) & this.um) << 15)) & x.DM;\n // use am to combine the multiply-shift-add into one call\n j = i + this.m.t;\n x[j] += this.m.am(0, u0, x, i, 0, this.m.t);\n // propagate carry\n while (x[j] >= x.DV) {\n x[j] -= x.DV;\n x[++j]++;\n }\n }\n x.clamp();\n x.drShiftTo(this.m.t, x);\n if (x.compareTo(this.m) >= 0) {\n x.subTo(this.m, x);\n }\n }\n\n\n // Montgomery.prototype.mulTo = montMulTo;\n // r = \"xy/R mod m\"; x,y != r\n public mulTo(x:BigInteger, y:BigInteger, r:BigInteger) {\n x.multiplyTo(y, r);\n this.reduce(r);\n }\n\n\n // Montgomery.prototype.sqrTo = montSqrTo;\n // r = \"x^2/R mod m\"; x != r\n public sqrTo(x:BigInteger, r:BigInteger) {\n x.squareTo(r);\n this.reduce(r);\n }\n\n}\n\n//#endregion Montgomery\n\n\n//#region Barrett\n\n// Barrett modular reduction\nclass Barrett implements IReduction {\n constructor(protected m:BigInteger) {\n // setup Barrett\n this.r2 = nbi();\n this.q3 = nbi();\n BigInteger.ONE.dlShiftTo(2 * m.t, this.r2);\n this.mu = this.r2.divide(m);\n }\n\n protected r2:BigInteger;\n protected q3:BigInteger;\n protected mu:BigInteger;\n\n // Barrett.prototype.convert = barrettConvert;\n public convert(x:BigInteger) {\n if (x.s < 0 || x.t > 2 * this.m.t) {\n return x.mod(this.m);\n } else if (x.compareTo(this.m) < 0) {\n return x;\n } else {\n const r = nbi();\n x.copyTo(r);\n this.reduce(r);\n return r;\n }\n }\n\n // Barrett.prototype.revert = barrettRevert;\n public revert(x:BigInteger) {\n return x;\n }\n\n // Barrett.prototype.reduce = barrettReduce;\n // x = x mod m (HAC 14.42)\n public reduce(x:BigInteger) {\n x.drShiftTo(this.m.t - 1, this.r2);\n if (x.t > this.m.t + 1) {\n x.t = this.m.t + 1;\n x.clamp();\n }\n this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3);\n this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2);\n while (x.compareTo(this.r2) < 0) {\n x.dAddOffset(1, this.m.t + 1);\n }\n x.subTo(this.r2, x);\n while (x.compareTo(this.m) >= 0) {\n x.subTo(this.m, x);\n }\n }\n\n\n // Barrett.prototype.mulTo = barrettMulTo;\n // r = x*y mod m; x,y != r\n public mulTo(x:BigInteger, y:BigInteger, r:BigInteger) {\n x.multiplyTo(y, r);\n this.reduce(r);\n }\n\n\n // Barrett.prototype.sqrTo = barrettSqrTo;\n // r = x^2 mod m; x != r\n public sqrTo(x:BigInteger, r:BigInteger) {\n x.squareTo(r);\n this.reduce(r);\n }\n}\n\n//#endregion\n\n//#endregion REDUCERS\n\n// return new, unset BigInteger\nexport function nbi() { return new BigInteger(null); }\n\nexport function parseBigInt(str:string, r:number) {\n return new BigInteger(str, r);\n}\n\n// am: Compute w_j += (x*this_i), propagate carries,\n// c is initial carry, returns final carry.\n// c < 3*dvalue, x < 2*dvalue, this_i < dvalue\n// We need to select the fastest one that works in this environment.\n\n// am1: use a single mult and divide to get the high bits,\n// max digit bits should be 26 because\n// max internal value = 2*dvalue^2-2*dvalue (< 2^53)\nfunction am1(i:number, x:number, w:BigInteger, j:number, c:number, n:number) {\n while (--n >= 0) {\n const v = x * this[i++] + w[j] + c;\n c = Math.floor(v / 0x4000000);\n w[j++] = v & 0x3ffffff;\n }\n return c;\n}\n// am2 avoids a big mult-and-extract completely.\n// Max digit bits should be <= 30 because we do bitwise ops\n// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)\nfunction am2(i:number, x:number, w:BigInteger, j:number, c:number, n:number) {\n const xl = x & 0x7fff;\n const xh = x >> 15;\n while (--n >= 0) {\n let l = this[i] & 0x7fff;\n const h = this[i++] >> 15;\n const m = xh * l + h * xl;\n l = xl * l + ((m & 0x7fff) << 15) + w[j] + (c & 0x3fffffff);\n c = (l >>> 30) + (m >>> 15) + xh * h + (c >>> 30);\n w[j++] = l & 0x3fffffff;\n }\n return c;\n}\n// Alternately, set max digit bits to 28 since some\n// browsers slow down when dealing with 32-bit numbers.\nfunction am3(i:number, x:number, w:BigInteger, j:number, c:number, n:number) {\n const xl = x & 0x3fff;\n const xh = x >> 14;\n while (--n >= 0) {\n let l = this[i] & 0x3fff;\n const h = this[i++] >> 14;\n const m = xh * l + h * xl;\n l = xl * l + ((m & 0x3fff) << 14) + w[j] + c;\n c = (l >> 28) + (m >> 14) + xh * h;\n w[j++] = l & 0xfffffff;\n }\n return c;\n}\n\nif (j_lm && (navigator.appName == \"Microsoft Internet Explorer\")) {\n BigInteger.prototype.am = am2;\n dbits = 30;\n} else if (j_lm && (navigator.appName != \"Netscape\")) {\n BigInteger.prototype.am = am1;\n dbits = 26;\n} else { // Mozilla/Netscape seems to prefer am3\n BigInteger.prototype.am = am3;\n dbits = 28;\n}\n\nBigInteger.prototype.DB = dbits;\nBigInteger.prototype.DM = ((1 << dbits) - 1);\nBigInteger.prototype.DV = (1 << dbits);\n\nconst BI_FP = 52;\nBigInteger.prototype.FV = Math.pow(2, BI_FP);\nBigInteger.prototype.F1 = BI_FP - dbits;\nBigInteger.prototype.F2 = 2 * dbits - BI_FP;\n\n// Digit conversions\nconst BI_RC:number[] = [];\nlet rr;\nlet vv;\nrr = \"0\".charCodeAt(0);\nfor (vv = 0; vv <= 9; ++vv) {\n BI_RC[rr++] = vv;\n}\nrr = \"a\".charCodeAt(0);\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\nrr = \"A\".charCodeAt(0);\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\n\n\nexport function intAt(s:string, i:number) {\n const c = BI_RC[s.charCodeAt(i)];\n return (c == null) ? -1 : c;\n}\n\n\n// return bigint initialized to value\nexport function nbv(i:number) {\n const r = nbi();\n r.fromInt(i);\n return r;\n}\n\n// returns bit length of the integer x\nexport function nbits(x:number) {\n let r = 1;\n let t;\n if ((t = x >>> 16) != 0) {\n x = t;\n r += 16;\n }\n if ((t = x >> 8) != 0) {\n x = t;\n r += 8;\n }\n if ((t = x >> 4) != 0) {\n x = t;\n r += 4;\n }\n if ((t = x >> 2) != 0) {\n x = t;\n r += 2;\n }\n if ((t = x >> 1) != 0) {\n x = t;\n r += 1;\n }\n return r;\n}\n\n// \"constants\"\nBigInteger.ZERO = nbv(0);\nBigInteger.ONE = nbv(1);\n","import { render, staticRenderFns } from \"./paypal_pay.vue?vue&type=template&id=ea1ddbaa&\"\nimport script from \"./paypal_pay.vue?vue&type=script&lang=js&\"\nexport * from \"./paypal_pay.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.processing)?_c('div',[_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"sendBill.processing\"))+\"\\n \")])],1):_c('div',{staticClass:\"mt-25\",attrs:{\"id\":\"paypal-button-container\"}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./base.vue?vue&type=template&id=5c67c598&\"\nimport script from \"./base.vue?vue&type=script&lang=js&\"\nexport * from \"./base.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isProcessible)?_c('div',[_c('center',[_c('h3',{staticClass:\"bold-font mt-5\"},[_vm._v(_vm._s(_vm.$t(\"sendBill.payment\"))+\": \"+_vm._s(_vm.amount))]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.cardToken),expression:\"!cardToken\"}]},[_c('div',{staticClass:\"large-font mt-5\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.to\"))+\": \"+_vm._s(_vm.merchantName)+\"\\n \")]),_vm._v(\" \"),(_vm.invoice)?_c('div',{staticClass:\"grey-text\"},[_vm._v(\"Invoice: \"+_vm._s(_vm.invoice))]):_vm._e()])]),_vm._v(\" \"),(_vm.allowed('cc') && _vm.available('cc') && _vm.genericFlow)?_c('div',[_c('cc-generic-pay',_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(!(_vm.selectedCheck || _vm.selectedKlarna || _vm.selectedPaypal)),expression:\"!(selectedCheck || selectedKlarna || selectedPaypal)\"}],attrs:{\"show-one-payment-option-form\":_vm.showOnePaymentOptionForm(),\"can-apple-google-pay\":_vm.available('apple_google_pay')},model:{value:(_vm.selectedCC),callback:function ($$v) {_vm.selectedCC=$$v},expression:\"selectedCC\"}},'cc-generic-pay',_vm.$props,false))],1):_vm._e(),_vm._v(\" \"),(_vm.allowed('cc') && _vm.available('cc') && !_vm.genericFlow)?_c('div',[_c('cc-pay',_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(!(_vm.selectedCheck || _vm.selectedKlarna || _vm.selectedPaypal)),expression:\"!(selectedCheck || selectedKlarna || selectedPaypal)\"}],model:{value:(_vm.selectedCC),callback:function ($$v) {_vm.selectedCC=$$v},expression:\"selectedCC\"}},'cc-pay',_vm.$props,false))],1):_vm._e(),_vm._v(\" \"),(_vm.allowed('klarna') && _vm.available('klarna'))?_c('div',[_c('klarna-pay',_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(!(_vm.selectedCC || _vm.selectedCheck || _vm.selectedPaypal)),expression:\"!(selectedCC || selectedCheck || selectedPaypal)\"}],model:{value:(_vm.selectedKlarna),callback:function ($$v) {_vm.selectedKlarna=$$v},expression:\"selectedKlarna\"}},'klarna-pay',_vm.$props,false))],1):_vm._e(),_vm._v(\" \"),(_vm.allowed('check') && _vm.available('check'))?_c('div',[_c('check-pay',_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(!(_vm.selectedCC || _vm.selectedKlarna || _vm.selectedPaypal)),expression:\"!(selectedCC || selectedKlarna || selectedPaypal)\"}],model:{value:(_vm.selectedCheck),callback:function ($$v) {_vm.selectedCheck=$$v},expression:\"selectedCheck\"}},'check-pay',_vm.$props,false))],1):_vm._e(),_vm._v(\" \"),(_vm.allowed('paypal') && _vm.available('paypal') && _vm.paypalMerchantId)?_c('div',[_c('paypal-pay',_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(!(_vm.selectedCC || _vm.selectedCheck || _vm.selectedKlarna)),expression:\"!(selectedCC || selectedCheck || selectedKlarna)\"}],model:{value:(_vm.selectedPaypal),callback:function ($$v) {_vm.selectedPaypal=$$v},expression:\"selectedPaypal\"}},'paypal-pay',_vm.$props,false))],1):_vm._e(),_vm._v(\" \"),((!_vm.allowed('cc') || !_vm.available('cc')) &&\n (!_vm.allowed('check') || !_vm.available('check')) &&\n (!_vm.allowed('paypal') || !_vm.available('paypal')))?_c('div',{staticClass:\"center red-text\"},[_vm._v(\"\\n\\n \"+_vm._s(_vm.$t(\"sendBill.noPaymentMethod\"))+\"\\n \")]):_vm._e()],1):_c('div',[_c('h3',{staticClass:\"center red-text\"},[_vm._v(_vm._s(_vm.$t(\"sendBill.couldNotProcess\")))])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.cardToken),expression:\"!cardToken\"}],staticClass:\"switch center mt-25\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"sendBill.changeLanguage\"))),_c('br'),_vm._v(\" \"),_c('label',[_vm._v(\"\\n Español\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.english),expression:\"english\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.english)?_vm._i(_vm.english,null)>-1:(_vm.english)},on:{\"change\":[function($event){var $$a=_vm.english,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.english=$$a.concat([$$v]))}else{$$i>-1&&(_vm.english=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.english=$$c}},_vm.changeLocale]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n English\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./verify_phone.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./verify_phone.vue?vue&type=script&lang=js&\"","\n \n
\n\n
\n \n \n A text message with a 4-digit verification code was just sent to
\n {{formattedPhone}}\n
\n \n \n
\n
\n
{{errors.first(\"code\")}}\n\n
\n\n
\n
\n \n
\n\n\n","import { render, staticRenderFns } from \"./verify_phone.vue?vue&type=template&id=efde27de&\"\nimport script from \"./verify_phone.vue?vue&type=script&lang=js&\"\nexport * from \"./verify_phone.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showPhoneForm)?_c('section',{staticClass:\"large-font mt-25\"},[_c('center',[_c('div',{staticClass:\"big-font\"},[_vm._v(\"Please enter your phone\")])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Phone\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"type\":\"tel\",\"placeholder\":\"(373) 112-1122\",\"autofocus\":\"true\",\"autocomplete\":\"phone\",\"name\":\"phone\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"phone\")),expression:\"errors.first(\\\"phone\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"phone\")))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",on:{\"click\":_vm.sendPhone}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Verify\\n \")])])],1):_vm._e(),_vm._v(\" \"),(!_vm.showPhoneForm)?_c('section',{staticClass:\"mt-25\"},[_c('center',[_c('div',{staticClass:\"large-font\"},[_vm._v(\"\\n A text message with a 4-digit verification code was just sent to\"),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(_vm._s(_vm.formattedPhone))])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Enter the code\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.codeFromUser),expression:\"codeFromUser\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"number\",\"placeholder\":\"1234\",\"autofocus\":\"true\",\"name\":\"code\"},domProps:{\"value\":(_vm.codeFromUser)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.codeFromUser=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"code\")),expression:\"errors.first(\\\"code\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"code\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.verifyCode}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Verify code\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_vm._v(\"\\n Didn't receive SMS? \"),_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.requestNewCode.apply(null, arguments)}}},[_vm._v(\"Request new code\")])])])],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./verify_email.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./verify_email.vue?vue&type=script&lang=js&\"","\n \n\n\n\n","import { render, staticRenderFns } from \"./verify_email.vue?vue&type=template&id=50d1b9f2&\"\nimport script from \"./verify_email.vue?vue&type=script&lang=js&\"\nexport * from \"./verify_email.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"mt-25\"},[_c('center',[_c('div',{staticClass:\"large-font\"},[_vm._v(\"\\n A text message with a 4-digit verification code was just sent to\"),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(_vm._s(_vm.email))])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('label',[_vm._v(\"Enter the code\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.codeFromUser),expression:\"codeFromUser\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"number\",\"placeholder\":\"1234\",\"autofocus\":\"true\",\"name\":\"code\"},domProps:{\"value\":(_vm.codeFromUser)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.codeFromUser=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"code\")),expression:\"errors.first(\\\"code\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"code\")))]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.verifyCode}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Verify code\\n \")])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./setup_profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./setup_profile.vue?vue&type=script&lang=js&\"","\n \n \n \n Setting up account. Please wait\n \n\n \n Unable setup account:
\n \n {{errorMessage}}\n \n \n \n Refresh\n \n\n
\n\n\n","import { render, staticRenderFns } from \"./setup_profile.vue?vue&type=template&id=172623de&\"\nimport script from \"./setup_profile.vue?vue&type=script&lang=js&\"\nexport * from \"./setup_profile.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPendingSetup),expression:\"showPendingSetup\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Setting up account. Please wait\\n \")]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPendingSetup),expression:\"!showPendingSetup\"}],staticClass:\"red-text\"},[_vm._v(\"\\n Unable setup account: \"),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")])]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showButton),expression:\"showButton\"}],staticClass:\"btn-large\",on:{\"click\":_vm.refresh}},[_c('i',{staticClass:\"fas fa-sync\"}),_vm._v(\" Refresh\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./setup_profile_by_button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./setup_profile_by_button.vue?vue&type=script&lang=js&\"","\n \n \n Connect bank account\n \n \n \n Setting up account. Please wait\n \n\n \n Unable setup account:
\n \n {{errorMessage}}\n \n \n\n
\n\n\n\n","import { render, staticRenderFns } from \"./setup_profile_by_button.vue?vue&type=template&id=5925ede7&\"\nimport script from \"./setup_profile_by_button.vue?vue&type=script&lang=js&\"\nexport * from \"./setup_profile_by_button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showButton),expression:\"showButton\"}],staticClass:\"btn-large\",on:{\"click\":_vm.setupAccount}},[_vm._v(\" Connect bank account\\n \")]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPendingSetup),expression:\"showPendingSetup\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Setting up account. Please wait\\n \")]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage && !_vm.showPendingSetup),expression:\"errorMessage && !showPendingSetup\"}],staticClass:\"red-text\"},[_vm._v(\"\\n Unable setup account: \"),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./switch_to_ios_app.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./switch_to_ios_app.vue?vue&type=script&lang=js&\"","\n \n
\n\n\n","import { render, staticRenderFns } from \"./switch_to_ios_app.vue?vue&type=template&id=17828476&\"\nimport script from \"./switch_to_ios_app.vue?vue&type=script&lang=js&\"\nexport * from \"./switch_to_ios_app.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_qr.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_qr.vue?vue&type=script&lang=js&\"","\n \n
Pay to merchant
\n\n
\n\n
\n \n {{ `Left time: ${timeObj.m}:${timeObj.s}` }}\n Run out of time!\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./payment_qr.vue?vue&type=template&id=da071602&\"\nimport script from \"./payment_qr.vue?vue&type=script&lang=js&\"\nexport * from \"./payment_qr.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(\"Pay to merchant\")]),_vm._v(\" \"),(_vm.paymentQr)?_c('section',[(_vm.paymentQr)?_c('qr-code',{staticClass:\"mt-25\",attrs:{\"size\":180,\"text\":_vm.paymentQr}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('countdown',{ref:\"countdown\",staticClass:\"red-text\",attrs:{\"left-time\":_vm.endTime,\"autoStart\":false},on:{\"finish\":_vm.getPaymentQr},scopedSlots:_vm._u([{key:\"process\",fn:function(ref){\nvar timeObj = ref.timeObj;\nreturn _c('span',{},[_vm._v(_vm._s((\"Left time: \" + (timeObj.m) + \":\" + (timeObj.s))))])}}])},[_vm._v(\" \"),_c('span',{staticClass:\"red-text\",attrs:{\"slot\":\"finish\"},slot:\"finish\"},[_vm._v(\"Run out of time!\")])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./receive_money_qr.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./receive_money_qr.vue?vue&type=script&lang=js&\"","\n \n
Receive Money
\n\n
\n \n\n
\n \n Unable to render bar code\n \n
\n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./my_qrs.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./my_qrs.vue?vue&type=script&lang=js&\"","\n \n
\n Receive Money\n Pay to merchant\n\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./receive_money_qr.vue?vue&type=template&id=c5321c58&\"\nimport script from \"./receive_money_qr.vue?vue&type=script&lang=js&\"\nexport * from \"./receive_money_qr.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(\"Receive Money\")]),_vm._v(\" \"),_c('qr-code',{staticClass:\"mt-25\",attrs:{\"size\":180,\"text\":_vm.qid}}),_vm._v(\" \"),_c('div',[_c('vue-barcode',{attrs:{\"value\":\"1000000000asdasd00\",\"format\":\"CODE128\",\"height\":\"80\",\"width\":\"1\",\"display-value\":false}},[_vm._v(\"\\n Unable to render bar code\\n \")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./my_qrs.vue?vue&type=template&id=0882a370&\"\nimport script from \"./my_qrs.vue?vue&type=script&lang=js&\"\nexport * from \"./my_qrs.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('span',{class:_vm.cssClass(\"receiveMoneyQr\"),on:{\"click\":function($event){_vm.currentTab=\"receiveMoneyQr\"}}},[_vm._v(\"Receive Money\")]),_vm._v(\" \"),_c('span',{class:_vm.cssClass(\"paymentQr\"),on:{\"click\":function($event){_vm.currentTab=\"paymentQr\"}}},[_vm._v(\"Pay to merchant\")]),_vm._v(\" \"),_c(_vm.currentTab,{tag:\"component\",attrs:{\"qid\":_vm.qid,\"user-id\":_vm.userId}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./master_report_download.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./master_report_download.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n
\n
\n \n Download CSV\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./master_report_download.vue?vue&type=template&id=17da6370&\"\nimport script from \"./master_report_download.vue?vue&type=script&lang=js&\"\nexport * from \"./master_report_download.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-25 row\"},[_c('div',{staticClass:\"col s6\"},[_c('label',[_vm._v(\"Select the Range\")]),_vm._v(\" \"),_c('div',{staticClass:\"input-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.range),expression:\"range\"}],staticClass:\"browser-default\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.range=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"this_week\"}},[_vm._v(\"This Week\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"last_week\"}},[_vm._v(\"Last Week\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"this_month\"}},[_vm._v(\"Month To Date\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"last_month\"}},[_vm._v(\"Last Month\")])])]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large\",attrs:{\"href\":_vm.path,\"target\":\"_blank\"}},[_c('i',{staticClass:\"fas fa-download\"}),_vm._v(\" \\n Download CSV\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./routing_input.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./routing_input.vue?vue&type=script&lang=js&\"","\n \n
\n \n {{bankName}}\n \n \n Bank not detected\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./routing_input.vue?vue&type=template&id=66817e5e&\"\nimport script from \"./routing_input.vue?vue&type=script&lang=js&\"\nexport * from \"./routing_input.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.routingNumber),expression:\"routingNumber\"}],attrs:{\"type\":\"number\",\"pattern\":\"\\\\d*\",\"name\":_vm.name},domProps:{\"value\":(_vm.routingNumber)},on:{\"keyup\":_vm.handleBlur,\"input\":function($event){if($event.target.composing){ return; }_vm.routingNumber=$event.target.value}}}),_c('br'),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.bankName),expression:\"bankName\"}],staticClass:\"grey-text text-darken-3\"},[_c('small',[_c('i',{staticClass:\"fas fa-university\"}),_vm._v(\" \"+_vm._s(_vm.bankName))])]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.routingNumber && !_vm.bankName),expression:\"routingNumber && !bankName\"}],staticClass:\"red-text\"},[_vm._v(\"\\n Bank not detected\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_image_uploader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_image_uploader.vue?vue&type=script&lang=js&\"","\n \n
\n
\n\n\n \n \n
![]()
\n\n
\n\n\n\n","import { render, staticRenderFns } from \"./check_image_uploader.vue?vue&type=template&id=c23c8802&\"\nimport script from \"./check_image_uploader.vue?vue&type=script&lang=js&\"\nexport * from \"./check_image_uploader.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.image),expression:\"image\"}],attrs:{\"name\":_vm.name,\"type\":\"hidden\"},domProps:{\"value\":(_vm.image)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.image=$event.target.value}}}),_vm._v(\" \"),_c('image-uploader',{attrs:{\"debug\":1,\"maxWidth\":800,\"quality\":0.7,\"autoRotate\":true,\"outputFormat\":\"string\",\"preview\":false,\"className\":['file-upload', { 'fileinput--loaded' : _vm.hasImage }],\"capture\":false,\"accept\":\"image/*\",\"doNotResize\":\"['gif', 'svg']\",\"onUpload\":\"startImageResize\",\"onComplete\":\"endImageResize\"},on:{\"input\":_vm.setImage}},[_c('label',{attrs:{\"slot\":\"upload-label\",\"for\":\"fileInput\"},slot:\"upload-label\"},[_c('div',{staticClass:\"btn-small\",attrs:{\"disabled\":_vm.disabled}},[(_vm.disabled)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',[_vm._v(\"Processing...\")])]):_c('span',[_c('i',{staticClass:\"fas fa-camera\"}),_vm._v(\" \"),_c('span',{staticClass:\"upload-caption\"},[_vm._v(_vm._s(_vm.hasImage ? 'Replace' : 'Check'))])])])])]),_vm._v(\" \"),(_vm.image)?_c('img',{staticClass:\"mt-25\",attrs:{\"src\":_vm.image,\"width\":\"100%\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_image_preview.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_image_preview.vue?vue&type=script&lang=js&\"","\n \n
\n
![]()
\n
\n\n
Rotate Clockwise
\n
\n\n\n\n\n","import { render, staticRenderFns } from \"./check_image_preview.vue?vue&type=template&id=42da76be&\"\nimport script from \"./check_image_preview.vue?vue&type=script&lang=js&\"\nexport * from \"./check_image_preview.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_image_preview.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('img',{ref:\"image\",staticClass:\"fit-to-screen\",style:(_vm.imageStyle),attrs:{\"src\":_vm.src},on:{\"mousedown\":_vm.startDrag}})]),_vm._v(\" \"),_c('div',{staticClass:\"btn\",on:{\"click\":_vm.rotateClockwise}},[_vm._v(\"Rotate Clockwise\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./button.vue?vue&type=template&id=92a14286&\"\nvar script = {}\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a',{staticClass:\"modal-trigger\",attrs:{\"href\":\"#modal1\"}},[_vm._v(\"Assign new QR code\")]),_vm._v(\" \"),_c('div',{staticClass:\"modal mt-25\",attrs:{\"id\":\"modal1\"}},[_c('div',{staticClass:\"modal-content\"},[_c('center',[_c('b',[_vm._v(\"You are going to assign new QR!\")]),_vm._v(\" \"),_c('p',{staticClass:\"mt-25\"},[_vm._v(\"\\n We will send One time password to iWallet administrator. Please contact support to verify this action\\n \")])])],1),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-footer\"},[_c('a',{staticClass:\"modal-close waves-effect waves-green btn\",attrs:{\"href\":\"/merchant/assign_qrs/new\"}},[_vm._v(\"Agree\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./scanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./scanner.vue?vue&type=script&lang=js&\"","\n \n
\n \n Align QR code within frame to scan
\n ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.
\n Error: {{errorMessage}}
\n\n \n\n \n Scanned WRONG QR-code\n
\n\n
\n BACK\n\n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./scanner.vue?vue&type=template&id=75513e55&\"\nimport script from \"./scanner.vue?vue&type=script&lang=js&\"\nexport * from \"./scanner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./scanner.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('svg',{staticClass:\"on-video mt-25\",attrs:{\"width\":\"300\",\"height\":\"300\"}},[_c('polyline',{attrs:{\"points\":\"60 0 0 0 0 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 0 170 0\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 0 300 0 300 60\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 240 0 300 60 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"130 300 170 300\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"240 300 300 300 300 240\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"0 130 0 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"300 130 300 170\",\"stroke\":_vm.color,\"stroke-width\":\"15\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.5\"}}),_vm._v(\" \"),_c('polyline',{attrs:{\"points\":\"20 150 280 150\",\"stroke\":\"red\",\"stroke-width\":\"3\",\"stroke-linecap\":\"butt\",\"fill\":\"none\",\"stroke-linejoin\":\"miter\",\"stroke-opacity\":\"0.3\"}},[_c('animate',{attrs:{\"attributeType\":\"XML\",\"attributeName\":\"stroke-opacity\",\"values\":\"0;0.2;0.5;0.7;0.5;0\",\"dur\":\"2s\",\"repeatCount\":\"indefinite\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"on-video mt-10\"},[_vm._v(\"Align QR code within frame to scan\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isCromeOniOS),expression:\"isCromeOniOS\"}],staticClass:\"on-video mt-10\"},[_vm._v(\"ATTENTION!!! Chrome browser has limited access to camera on Apple devices. Please use Safari browser instead.\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage),expression:\"errorMessage\"}],staticClass:\"on-video mt-10 red-text\"},[_vm._v(\"Error: \"+_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('qrcode-stream',{staticClass:\"fullscreen\",attrs:{\"camera\":\"auto\",\"track\":_vm.repaint},on:{\"decode\":_vm.codeScanned,\"init\":_vm.onInit}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showError),expression:\"showError\"}],staticClass:\"on-video\"},[_vm._v(\"\\n Scanned WRONG QR-code\\n \")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"btn on-video\",attrs:{\"href\":\"/\"}},[_vm._v(\"BACK\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n
QR Successfully assigned
\n Ok\n \n \n
\n Assigning QR: {{QR}}
\n Verification code sent to administrator.
\n \n
\n \n \n
\n
\n \n \n\n\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./base.vue?vue&type=template&id=ada9d6d2&\"\nimport script from \"./base.vue?vue&type=script&lang=js&\"\nexport * from \"./base.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-25\"},[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSuccess),expression:\"showSuccess\"}]},[_c('h3',[_c('i',{staticClass:\"fas fa-check-circle fa-2x emerald\"}),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_vm._v(\"QR Successfully assigned\")]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large mt-25\",attrs:{\"href\":\"/\"}},[_vm._v(\"Ok\")])])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showScanner && !_vm.showSuccess),expression:\"!showScanner && !showSuccess\"}]},[_vm._v(\"\\n Assigning QR: \"),_c('b',[_vm._v(_vm._s(_vm.QR))]),_c('br'),_vm._v(\"\\n Verification code sent to administrator.\"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6 m3\"},[_c('label',[_vm._v(\"Verification code\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.code),expression:\"code\"}],attrs:{\"type\":\"number\",\"autofocus\":\"\"},domProps:{\"value\":(_vm.code)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.code=$event.target.value}}})])]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large pay-btn\",attrs:{\"disabled\":!_vm.code && !_vm.disableSubmit},on:{\"click\":_vm.submitCode}},[_vm._v(\"Submit\")])]),_vm._v(\" \"),_c('re-assign-qr-scanner',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showScanner),expression:\"showScanner\"}],on:{\"change\":_vm.gotQR},model:{value:(_vm.QR),callback:function ($$v) {_vm.QR=$$v},expression:\"QR\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_payment_link.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_payment_link.vue?vue&type=script&lang=js&\"","\n\n \n \n
\n \n Send Payment Link\n \n\n \n
\n
\n
\n Send Payment Link \n
\n \n
\n
\n\n Your payment link:
\n {{paymentLink}}\n \n \n\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./send_payment_link.vue?vue&type=template&id=3f7c7685&\"\nimport script from \"./send_payment_link.vue?vue&type=script&lang=js&\"\nexport * from \"./send_payment_link.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{ref:\"tabs\",staticClass:\"modal\",attrs:{\"id\":\"modal1\"}},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"center container small-font\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"},{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.paymentLink),expression:\"paymentLink\",arg:\"copy\"}],staticClass:\"hide-on-small-only\"},[_vm._v(\"\\n\\n Your payment link:\"),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.paymentLink)+\"\\n \"),_vm._m(2)]),_vm._v(\" \"),_c('button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"},{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.paymentLink),expression:\"paymentLink\",arg:\"copy\"}],staticClass:\"btn-flat hide-on-med-and-up\"},[_c('i',{staticClass:\"far fa-copy\"}),_vm._v(\" COPY LINK TO CLIPBOARD\\n \")]),_vm._v(\" \"),_c('section',{staticClass:\"contianer mt-10\"},[_c('vue-tel-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.usePhone),expression:\"usePhone\"}],attrs:{\"onlyCountries\":['US'],\"wrapperClasses\":\"customPhoneInput\",\"placeholder\":\"Cardholder's phone number\"},on:{\"validate\":_vm.phoneValidate},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.usePhone),expression:\"!usePhone\"},{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"}],attrs:{\"type\":\"email\",\"placeholder\":\"Cardholder's email\"},domProps:{\"value\":(_vm.email)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.email=$event.target.value},_vm.validateEmail]}})],1),_vm._v(\" \"),_c('section',{staticClass:\"mt-10\"},[_c('a',{staticClass:\"btn-large btn-flat grey-text\",on:{\"click\":_vm.changeInput}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.usePhone),expression:\"usePhone\"}],staticClass:\"far fa-envelope grey-text\"}),_vm._v(\" \"),_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.usePhone),expression:\"!usePhone\"}],staticClass:\"fas fa-sms grey-text\"}),_vm._v(\" \\n \"+_vm._s(_vm.useLabel)+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"modal-close waves-effect waves-green btn-large\",attrs:{\"disabled\":_vm.sendDisabled,\"href\":\"#!\"},on:{\"click\":_vm.send}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Send\\n \")])]),_vm._v(\" \"),_c('br'),_c('br')])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{staticClass:\"waves-effect waves-light btn-large modal-trigger\",attrs:{\"href\":\"#modal1\"}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \\n Send Payment Link\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-content\"},[_c('h3',[_vm._v(\"\\n Send Payment Link \\n \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',[_c('i',{staticClass:\"far fa-copy\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./link_order.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./link_order.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n \n
\n\n
\n
\n \n \n\n The Amount field must be greater than 0.5\n
\n\n
\n {{amount | currency}}\n
\n
\n\n
\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
Payment link has
been sent
\n
Payment has NOT been received yet
\n
\n
\n
Done\n
\n
\n\n \n
\n \n Are you sure that this transaction is for {{groupLocation}}?\n
\n\n \n \n \n
\n \n\n
\n Processing...\n \n\n
0 ? null : amount\"\n :invoice-label=\"invoiceLabel\"\n :require-invoice-confirmation=\"requireInvoiceConfirmation\"\n @close=\"showItemForm=false\">\n\n \n
\n\n\n\n","import { render, staticRenderFns } from \"./link_order.vue?vue&type=template&id=bf858fb4&scoped=true&\"\nimport script from \"./link_order.vue?vue&type=script&lang=js&\"\nexport * from \"./link_order.vue?vue&type=script&lang=js&\"\nimport style0 from \"./link_order.vue?vue&type=style&index=0&id=bf858fb4&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bf858fb4\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.showForm && !_vm.showLocationConfirmation && !_vm.showPending && !_vm.showItemForm)?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Email or Phone\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.contact),expression:\"contact\"}],domProps:{\"value\":(_vm.contact)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.contact=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[(!_vm.controledByItems)?_c('div',[_c('label',[_vm._v(\"Amount, USD\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0|required'),expression:\"'min_value:0|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"inputmode\":\"decimal\",\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The Amount field must be greater than 0.5\")])]):_c('div',[_c('span',{staticClass:\"items-amount bold-font emerald\"},[_vm._v(_vm._s(_vm._f(\"currency\")(_vm.amount)))])])]),_vm._v(\" \"),(!_vm.controledByItems)?_c('div',[_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(_vm._s(_vm.invoiceLabel))]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invoice),expression:\"invoice\"}],ref:\"invoice\",attrs:{\"name\":\"invoice\",\"type\":\"text\"},domProps:{\"value\":(_vm.invoice)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.invoice=$event.target.value}}})]),_vm._v(\" \"),(_vm.requireInvoiceConfirmation)?_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-file-invoice prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: _vm.invoice.length > 0, confirmed: 'invoice'}),expression:\"{required: invoice.length > 0, confirmed: 'invoice'}\"}],attrs:{\"name\":\"invoice-cfm\",\"id\":\"invoice-cfm\",\"type\":\"text\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"invoice-cfm\"}},[_vm._v(\"Invoice (confirmation)\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('invoice-cfm')),expression:\"errors.has('invoice-cfm')\"}],staticClass:\"red-text\"},[_vm._v(\"Invoice numbers do not match\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m6\"},[_c('label',[_vm._v(\"Note (will be shared with the client)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.note),expression:\"note\"}],attrs:{\"name\":\"note\"},domProps:{\"value\":(_vm.note)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.note=$event.target.value}}})])]):_vm._e()]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.controledByItems),expression:\"controledByItems\"}]},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('show-items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('div',{staticClass:\"file-field input-field\"},[_c('div',{staticClass:\"btn-small outlined-btn\"},[_c('span',[_vm._v(\"Attach PDF\")]),_vm._v(\" \"),_c('input',{ref:\"file\",attrs:{\"type\":\"file\",\"placeholder\":\"optional\"},on:{\"change\":_vm.assignFile}})]),_vm._v(\" \"),_c('div',{staticClass:\"file-path-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.attachmentName),expression:\"attachmentName\"}],staticClass:\"file-path validate\",attrs:{\"type\":\"text\",\"placeholder\":\"(optional)\"},domProps:{\"value\":(_vm.attachmentName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.attachmentName=$event.target.value}}})])])])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending),expression:\"!showPending\"}],staticClass:\"btn btn-small outlined-btn right\",on:{\"click\":function($event){_vm.showItemForm=true}}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\"\\n\\n Add Item\\n \")]),_vm._v(\" \"),_c('br'),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.canReceiveCc),expression:\"canReceiveCc\"}],staticClass:\"col s6 m3 mt-10\",attrs:{\"width\":\"100px\"}},[_c('label',[_vm._v(\"Allow Credit Card\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.cc),expression:\"cc\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.cc)?_vm._i(_vm.cc,null)>-1:(_vm.cc)},on:{\"change\":function($event){var $$a=_vm.cc,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.cc=$$a.concat([$$v]))}else{$$i>-1&&(_vm.cc=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.cc=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.canReceiveCheck),expression:\"canReceiveCheck\"}],staticClass:\"col s6 m3 mt-10\"},[_c('label',[_vm._v(\"Allow Check\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.check),expression:\"check\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.check)?_vm._i(_vm.check,null)>-1:(_vm.check)},on:{\"change\":function($event){var $$a=_vm.check,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.check=$$a.concat([$$v]))}else{$$i>-1&&(_vm.check=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.check=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(false && _vm.canReceivePaypal),expression:\"false && canReceivePaypal\"}],staticClass:\"col s6 m3 mt-10\",attrs:{\"width\":\"100px\"}},[_c('label',[_vm._v(\"Allow PayPal\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.paypal),expression:\"paypal\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.paypal)?_vm._i(_vm.paypal,null)>-1:(_vm.paypal)},on:{\"change\":function($event){var $$a=_vm.paypal,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.paypal=$$a.concat([$$v]))}else{$$i>-1&&(_vm.paypal=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.paypal=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.canReceiveKlarna),expression:\"canReceiveKlarna\"}],staticClass:\"col s6 m3 mt-10\",attrs:{\"width\":\"100px\"}},[_c('label',[_vm._v(\"Allow Klarna pay\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.klarna),expression:\"klarna\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.klarna)?_vm._i(_vm.klarna,null)>-1:(_vm.klarna)},on:{\"change\":function($event){var $$a=_vm.klarna,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.klarna=$$a.concat([$$v]))}else{$$i>-1&&(_vm.klarna=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.klarna=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tipSettings),expression:\"tipSettings\"}],staticClass:\"col s6 m3 mt-10\"},[_c('label',{staticClass:\"grey-text\"},[_vm._v(\"Allow tipping\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tips),expression:\"tips\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.tips)?_vm._i(_vm.tips,null)>-1:(_vm.tips)},on:{\"change\":function($event){var $$a=_vm.tips,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.tips=$$a.concat([$$v]))}else{$$i>-1&&(_vm.tips=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.tips=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large wide-btn mt-25\",attrs:{\"disabled\":_vm.disableSubmitBtn},on:{\"click\":_vm.checkLocationBeforeSendLink}},[_c('i',{staticClass:\"far fa-paper-plane\"}),_vm._v(\" \"),_c('span',{staticClass:\"ml-10\"},[_vm._v(\"Send a bill\")])]),_vm._v(\" \"),_c('label',[_vm._v(\"Your maximum per transaction limit is $10,000.00. For bills over $10,000.00, please break the amount down into multiple transactions\")])]):_vm._e(),_vm._v(\" \"),(!_vm.showForm && !_vm.showLocationConfirmation)?_c('div',{staticClass:\"container mt-25 center\"},[_c('i',{staticClass:\"fas fa-check-circle fa-2x emerald\"}),_c('br'),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(\"Payment has NOT been received yet\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-50\"},[_c('button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"},{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.link),expression:\"link\",arg:\"copy\"}],staticClass:\"btn-large wide-btn outlined-btn rounded-btn mt-10\"},[_vm._v(\"\\n\\n COPY LINK TO CLIPBOARD\\n \")]),_vm._v(\" \"),_c('a',{staticClass:\"btn-large wide-btn rounded-btn mt-10\",attrs:{\"href\":\"/\"}},[_vm._v(\"Done\")])])]):_vm._e(),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLocationConfirmation && !_vm.showPending),expression:\"showLocationConfirmation && !showPending\"}]},[_c('h3',{staticClass:\"emerald\"},[_vm._v(\"\\n Are you sure that this transaction is for \"+_vm._s(_vm.groupLocation)+\"?\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('button',{staticClass:\"btn btn-large outlined-btn\",on:{\"click\":function($event){_vm.showLocationConfirmation=false}}},[_vm._v(\"No\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-large\",staticStyle:{\"margin-left\":\"20px\"},on:{\"click\":_vm.sendLink}},[_vm._v(\"Yes\")])])]),_vm._v(\" \"),(_vm.showPending)?_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.showItemForm)?_c('items',{attrs:{\"items\":_vm.items,\"items-updated\":_vm.itemsUpdated,\"set-invoice\":_vm.invoice,\"set-note\":_vm.note,\"set-amount\":_vm.items.length > 0 ? null : _vm.amount,\"invoice-label\":_vm.invoiceLabel,\"require-invoice-confirmation\":_vm.requireInvoiceConfirmation},on:{\"close\":function($event){_vm.showItemForm=false}}}):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h3',[_vm._v(\"Payment link has\"),_c('br'),_vm._v(\"been sent\")])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=dcbd020c&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.processing},on:{\"click\":_vm.create}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.processing),expression:\"!processing\"}],staticClass:\"fas fa-plus\"}),_vm._v(\" \"),_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processing),expression:\"processing\"}],staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\"\\n Add Link\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./change_state.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./change_state.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./change_state.vue?vue&type=template&id=728b7b5e&\"\nimport script from \"./change_state.vue?vue&type=script&lang=js&\"\nexport * from \"./change_state.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{staticClass:\"btn-small\",attrs:{\"disabled\":_vm.processing},on:{\"click\":_vm.create}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processing),expression:\"processing\"}],staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\"\\n \"+_vm._s(_vm.label)+\"\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./main.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./main.vue?vue&type=script&lang=js&\"","\n \n
\n \n Loading ...\n \n \n \n\n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./main.vue?vue&type=template&id=4febafcc&\"\nimport script from \"./main.vue?vue&type=script&lang=js&\"\nexport * from \"./main.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading ...\\n \")]),_vm._v(\" \"),(!_vm.billSplit && !_vm.loading)?_c('bill-split-new',{on:{\"created\":_vm.created}}):_vm._e(),_vm._v(\" \"),(!_vm.loading && _vm.billSplit)?_c('bill-split-active',_vm._b({on:{\"refresh\":_vm.getBillSplit}},'bill-split-active',_vm.billSplitProps,false)):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"","\n \n
Let's Split the bill!
\n\n
\n
\n
\n
{{ errors.first('qty') }}
\n
\n\n
\n
\n
\n
{{ errors.first('amount') }}
\n
\n\n
\n\n
\n You are going to split the bill with {{qty}} persons. With payment of \n ${{perParticipant}} per each person.\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./new.vue?vue&type=template&id=49252159&\"\nimport script from \"./new.vue?vue&type=script&lang=js&\"\nexport * from \"./new.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(\"Let's Split the bill!\")]),_vm._v(\" \"),_c('div',[_c('label',[_vm._v(\"Quantity of participants (including you)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.qty),expression:\"qty\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:2|numeric|required'),expression:\"'min_value:2|numeric|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"qty\",\"step\":\"1\",\"type\":\"number\"},domProps:{\"value\":(_vm.qty)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.qty=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('qty')))])]),_vm._v(\" \"),_c('div',[_c('label',[_vm._v(\"Bill amount\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"step\":\"0.01\",\"type\":\"number\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('amount')))])]),_vm._v(\" \"),_c('button',{staticClass:\"btn mt-25\",attrs:{\"disabled\":_vm.btnDisable},on:{\"click\":_vm.submit}},[_vm._v(\"\\n Submit\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_vm._v(\"\\n You are going to split the bill with \"+_vm._s(_vm.qty)+\" persons. With payment of \\n $\"+_vm._s(_vm.perParticipant)+\" per each person.\\n \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./active.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./active.vue?vue&type=script&lang=js&\"","\n \n
\n Scan to Pay ${{amount_for_pay}}
\n \n Split the bill ${{amount}} with {{qty}} participants\n \n \n \n\n
\n \n \n\n
\n Participants {{participants.length}} of {{qty}}\n\n \n {{index + 1}}. {{user.attributes.first_name}} {{user.attributes.last_name}}\n
\n\n \n
\n \n
\n\n\n\n\n","import { render, staticRenderFns } from \"./active.vue?vue&type=template&id=6c080fbc&\"\nimport script from \"./active.vue?vue&type=script&lang=js&\"\nexport * from \"./active.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('h3',[_vm._v(\"Scan to Pay $\"+_vm._s(_vm.amount_for_pay))]),_vm._v(\" \"),_c('b',{staticClass:\"grey-text text-darken-3\"},[_vm._v(\"\\n Split the bill $\"+_vm._s(_vm.amount)+\" with \"+_vm._s(_vm.qty)+\" participants\\n \")]),_vm._v(\" \"),_c('qr-code',{staticClass:\"mt-25\",attrs:{\"size\":280,\"text\":_vm.qrLink}}),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",attrs:{\"disabled\":_vm.refreshing},on:{\"click\":_vm.refresh}},[_c('i',{staticClass:\"fas fa-sync\",class:{'fa-spin': _vm.refreshing}}),_vm._v(\" Refresh\\n \")]),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn red mt-25\",on:{\"click\":_vm.stop}},[_c('i',{staticClass:\"far fa-stop-circle\"}),_vm._v(\" Stop\\n \")])],1),_vm._v(\" \"),_c('section',{staticClass:\"mt-25\"},[_c('em',[_c('b',[_vm._v(\"Participants \"+_vm._s(_vm.participants.length)+\" of \"+_vm._s(_vm.qty))])]),_vm._v(\" \"),_vm._l((_vm.participants),function(user,index){return _c('div',[_vm._v(\"\\n \"+_vm._s(index + 1)+\". \"+_vm._s(user.attributes.first_name)+\" \"+_vm._s(user.attributes.last_name)+\"\\n \")])})],2),_vm._v(\" \"),_c('center',{staticClass:\"mt-10\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay.vue?vue&type=script&lang=js&\"","\n \n
Pay ${{attributes.amount_for_pay}} as a bill split
\n You are going to split the bill of ${{attributes.amount}} with {{attributes.qty}} participants\n
\n \n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./pay.vue?vue&type=template&id=bd3e83d0&\"\nimport script from \"./pay.vue?vue&type=script&lang=js&\"\nexport * from \"./pay.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(\"Pay $\"+_vm._s(_vm.attributes.amount_for_pay)+\" as a bill split\")]),_vm._v(\"\\n You are going to split the bill of $\"+_vm._s(_vm.attributes.amount)+\" with \"+_vm._s(_vm.attributes.qty)+\" participants\\n \"),_c('div',{staticClass:\"mt-50\"},[_c('button',{staticClass:\"btn-large\",attrs:{\"disabled\":_vm.btnDisable},on:{\"click\":_vm.pay}},[_vm._v(\"\\n \\n Pay $\"+_vm._s(_vm.attributes.amount_for_pay)+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./after_payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./after_payment.vue?vue&type=script&lang=js&\"","\n \n
\n
Payment Successful
\n
\n
{{ type.replace(/[0-9]/g,'') }} ${{ cardAmount }} Gift Card
\n
{{cardNumber}}
\n
\n
\n
\n
\n Congrats! \n you got {{percentDiscount}}% off \n \n Amount paid: ${{ amount }}\n
\n
\n\n
\n\n
\n\n\n\n","import { render, staticRenderFns } from \"./after_payment.vue?vue&type=template&id=6d968c7f&\"\nimport script from \"./after_payment.vue?vue&type=script&lang=js&\"\nexport * from \"./after_payment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('i',{staticClass:\"fas fa-check-circle fa-2x emerald\"}),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"card-panel container\"},[(_vm.type)?_c('h3',[_vm._v(_vm._s(_vm.type.replace(/[0-9]/g,''))+\" $\"+_vm._s(_vm.cardAmount)+\" Gift Card\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"large-font\"},[_c('b',[_vm._v(_vm._s(_vm.cardNumber))])]),_vm._v(\" \"),_c('button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"},{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.cardNumber),expression:\"cardNumber\",arg:\"copy\"}],staticClass:\"btn\"},[_c('i',{staticClass:\"far fa-copy\"}),_vm._v(\" Copy Gift Card\\n \")])]),_vm._v(\" \"),_c('br'),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(\"\\n Congrats! \"),_c('emojify',{attrs:{\"text\":\"🎊\"}}),_vm._v(\"\\n you got \"+_vm._s(_vm.percentDiscount)+\"% off \"),_c('emojify',{attrs:{\"text\":\"😎\"}})],1),_vm._v(\"\\n Amount paid: $\"+_vm._s(_vm.amount)+\"\\n \"),_c('div',{staticClass:\"container grey-text\"},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.usageNotice)}})]),_vm._v(\" \"),_c('br'),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn-large\",on:{\"click\":_vm.goHome}},[_vm._v(\"ok\")])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"large-font\"},[_c('b',[_vm._v(\"Payment Successful\")])])}]\n\nexport { render, staticRenderFns }","\n \n
\n \n for {{type.replace(/[0-9]/g,'').toUpperCase()}}
\n Card amount: ${{cardAmount}}
\n \n Congrats! \n you got {{percentDiscount}}% off \n \n Amount to pay: ${{amount}}
\n
\n \n {{errorMessage}}\n
\n \n \n
\n * limit ${{buyingLimit}} per person per week\n
\n \n\n \n \n
\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./new.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./new.vue?vue&type=template&id=73887417&\"\nimport script from \"./new.vue?vue&type=script&lang=js&\"\nexport * from \"./new.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showAfterPayment),expression:\"!showAfterPayment\"}]},[_c('b',[_vm._v(\"for \"+_vm._s(_vm.type.replace(/[0-9]/g,'').toUpperCase()))]),_c('br'),_vm._v(\"\\n Card amount: $\"+_vm._s(_vm.cardAmount)),_c('br'),_vm._v(\" \"),_c('b',[_vm._v(\"\\n Congrats! \"),_c('emojify',{attrs:{\"text\":\"🎊\"}}),_vm._v(\"\\n you got \"+_vm._s(_vm.percentDiscount)+\"% off \"),_c('emojify',{attrs:{\"text\":\"😎\"}})],1),_vm._v(\" \"),_c('h3',[_vm._v(\"Amount to pay: $\"+_vm._s(_vm.amount))]),_vm._v(\" \"),_c('br'),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large\",attrs:{\"disabled\":_vm.blockPaymentButton},on:{\"click\":_vm.pay}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.blockPaymentButton),expression:\"blockPaymentButton\"}],staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.blockPaymentButton),expression:\"blockPaymentButton\"}]},[_vm._v(\"Processing...\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.blockPaymentButton),expression:\"!blockPaymentButton\"}]},[_vm._v(\"Pay $\"+_vm._s(_vm.amount))])]),_vm._v(\" \"),_c('div',{staticClass:\"grey-text\"},[_c('br'),_c('br'),_vm._v(\"\\n * limit $\"+_vm._s(_vm.buyingLimit)+\" per person per week\\n \")])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAfterPayment),expression:\"showAfterPayment\"}]},[_c('after-payment',{attrs:{\"cardAmount\":_vm.paidCardAmount,\"amount\":_vm.paidAmount,\"type\":_vm.cardType,\"cardNumber\":_vm.cardNumber,\"percentDiscount\":_vm.percentDiscount,\"usageNotice\":_vm.usageNotice}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","const BI_RM = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\nexport function int2char(n:number) {\n return BI_RM.charAt(n);\n}\n\n//#region BIT_OPERATIONS\n\n// (public) this & a\nexport function op_and(x:number, y:number):number {\n return x & y;\n}\n\n\n// (public) this | a\nexport function op_or(x:number, y:number):number {\n return x | y;\n}\n\n// (public) this ^ a\nexport function op_xor(x:number, y:number):number {\n return x ^ y;\n}\n\n\n// (public) this & ~a\nexport function op_andnot(x:number, y:number):number {\n return x & ~y;\n}\n\n// return index of lowest 1-bit in x, x < 2^31\nexport function lbit(x:number) {\n if (x == 0) {\n return -1;\n }\n let r = 0;\n if ((x & 0xffff) == 0) {\n x >>= 16;\n r += 16;\n }\n if ((x & 0xff) == 0) {\n x >>= 8;\n r += 8;\n }\n if ((x & 0xf) == 0) {\n x >>= 4;\n r += 4;\n }\n if ((x & 3) == 0) {\n x >>= 2;\n r += 2;\n }\n if ((x & 1) == 0) {\n ++r;\n }\n return r;\n}\n\n// return number of 1 bits in x\nexport function cbit(x:number) {\n let r = 0;\n while (x != 0) {\n x &= x - 1;\n ++r;\n }\n return r;\n}\n\n//#endregion BIT_OPERATIONS\n","// prng4.js - uses Arcfour as a PRNG\n\nexport class Arcfour {\n constructor() {\n this.i = 0;\n this.j = 0;\n this.S = [];\n }\n\n // Arcfour.prototype.init = ARC4init;\n // Initialize arcfour context from key, an array of ints, each from [0..255]\n public init(key:number[]) {\n let i;\n let j;\n let t;\n for (i = 0; i < 256; ++i) {\n this.S[i] = i;\n }\n j = 0;\n for (i = 0; i < 256; ++i) {\n j = (j + this.S[i] + key[i % key.length]) & 255;\n t = this.S[i];\n this.S[i] = this.S[j];\n this.S[j] = t;\n }\n this.i = 0;\n this.j = 0;\n }\n\n // Arcfour.prototype.next = ARC4next;\n public next() {\n let t;\n this.i = (this.i + 1) & 255;\n this.j = (this.j + this.S[this.i]) & 255;\n t = this.S[this.i];\n this.S[this.i] = this.S[this.j];\n this.S[this.j] = t;\n return this.S[(t + this.S[this.i]) & 255];\n }\n\n private i:number;\n private j:number;\n private S:number[];\n}\n\n\n// Plug in your RNG constructor here\nexport function prng_newstate() {\n return new Arcfour();\n}\n\n// Pool size must be a multiple of 4 and greater than 32.\n// An array of bytes the size of the pool will be passed to init()\nexport let rng_psize = 256;\n","// Random number generator - requires a PRNG backend, e.g. prng4.js\nimport {Arcfour, prng_newstate, rng_psize} from \"./prng4\";\n\nlet rng_state:Arcfour;\nlet rng_pool:number[] = null;\nlet rng_pptr:number;\n\n// Initialize the pool with junk if needed.\nif (rng_pool == null) {\n rng_pool = [];\n rng_pptr = 0;\n let t;\n if (window.crypto && window.crypto.getRandomValues) {\n // Extract entropy (2048 bits) from RNG if available\n const z = new Uint32Array(256);\n window.crypto.getRandomValues(z);\n for (t = 0; t < z.length; ++t) {\n rng_pool[rng_pptr++] = z[t] & 255;\n }\n }\n\n // Use mouse events for entropy, if we do not have enough entropy by the time\n // we need it, entropy will be generated by Math.random.\n const onMouseMoveListener = function (ev:Event & {x:number; y:number; }) {\n this.count = this.count || 0;\n if (this.count >= 256 || rng_pptr >= rng_psize) {\n if (window.removeEventListener) {\n window.removeEventListener(\"mousemove\", onMouseMoveListener, false);\n } else if ((window as any).detachEvent) {\n (window as any).detachEvent(\"onmousemove\", onMouseMoveListener);\n }\n return;\n }\n try {\n const mouseCoordinates = ev.x + ev.y;\n rng_pool[rng_pptr++] = mouseCoordinates & 255;\n this.count += 1;\n } catch (e) {\n // Sometimes Firefox will deny permission to access event properties for some reason. Ignore.\n }\n };\n if (window.addEventListener) {\n window.addEventListener(\"mousemove\", onMouseMoveListener, false);\n } else if ((window as any).attachEvent) {\n (window as any).attachEvent(\"onmousemove\", onMouseMoveListener);\n }\n\n}\n\nfunction rng_get_byte() {\n if (rng_state == null) {\n rng_state = prng_newstate();\n // At this point, we may not have collected enough entropy. If not, fall back to Math.random\n while (rng_pptr < rng_psize) {\n const random = Math.floor(65536 * Math.random());\n rng_pool[rng_pptr++] = random & 255;\n }\n rng_state.init(rng_pool);\n for (rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr) {\n rng_pool[rng_pptr] = 0;\n }\n rng_pptr = 0;\n }\n // TODO: allow reseeding after first request\n return rng_state.next();\n}\n\n\nexport class SecureRandom {\n\n public nextBytes(ba:number[]) {\n for (let i = 0; i < ba.length; ++i) {\n ba[i] = rng_get_byte();\n }\n }\n}\n","// Depends on jsbn.js and rng.js\n\n// Version 1.1: support utf-8 encoding in pkcs1pad2\n\n// convert a (hex) string to a bignum object\n\nimport {BigInteger, nbi, parseBigInt} from \"./jsbn\";\nimport {SecureRandom} from \"./rng\";\n\n\nexport function linebrk(s,n) {\n var ret = \"\";\n var i = 0;\n while(i + n < s.length) {\n ret += s.substring(i,i+n) + \"\\n\";\n i += n;\n }\n return ret + s.substring(i,s.length);\n}\n\n// function byte2Hex(b) {\n// if(b < 0x10)\n// return \"0\" + b.toString(16);\n// else\n// return b.toString(16);\n// }\n\nfunction pkcs1pad1(s:string, n:number) {\n if (n < s.length + 22) {\n console.error(\"Message too long for RSA\");\n return null;\n }\n const len = n - s.length - 6;\n let filler = \"\";\n for (let f = 0; f < len; f += 2) {\n filler += \"ff\";\n }\n const m = \"0001\" + filler + \"00\" + s;\n return parseBigInt(m, 16);\n}\n\n// PKCS#1 (type 2, random) pad input string s to n bytes, and return a bigint\nfunction pkcs1pad2(s:string, n:number) {\n if (n < s.length + 11) { // TODO: fix for utf-8\n\n console.error(\"Message too long for RSA\");\n return null;\n }\n const ba = [];\n let i = s.length - 1;\n while (i >= 0 && n > 0) {\n const c = s.charCodeAt(i--);\n if (c < 128) { // encode using utf-8\n ba[--n] = c;\n } else if ((c > 127) && (c < 2048)) {\n ba[--n] = (c & 63) | 128;\n ba[--n] = (c >> 6) | 192;\n } else {\n ba[--n] = (c & 63) | 128;\n ba[--n] = ((c >> 6) & 63) | 128;\n ba[--n] = (c >> 12) | 224;\n }\n }\n ba[--n] = 0;\n const rng = new SecureRandom();\n const x = [];\n while (n > 2) { // random non-zero pad\n x[0] = 0;\n while (x[0] == 0) {\n rng.nextBytes(x);\n }\n ba[--n] = x[0];\n }\n ba[--n] = 2;\n ba[--n] = 0;\n return new BigInteger(ba);\n}\n\n// \"empty\" RSA key constructor\nexport class RSAKey {\n constructor() {\n this.n = null;\n this.e = 0;\n this.d = null;\n this.p = null;\n this.q = null;\n this.dmp1 = null;\n this.dmq1 = null;\n this.coeff = null;\n }\n\n //#region PROTECTED\n // protected\n // RSAKey.prototype.doPublic = RSADoPublic;\n // Perform raw public operation on \"x\": return x^e (mod n)\n public doPublic(x:BigInteger) {\n return x.modPowInt(this.e, this.n);\n }\n\n\n // RSAKey.prototype.doPrivate = RSADoPrivate;\n // Perform raw private operation on \"x\": return x^d (mod n)\n public doPrivate(x:BigInteger) {\n if (this.p == null || this.q == null) {\n return x.modPow(this.d, this.n);\n }\n\n // TODO: re-calculate any missing CRT params\n let xp = x.mod(this.p).modPow(this.dmp1, this.p);\n const xq = x.mod(this.q).modPow(this.dmq1, this.q);\n\n while (xp.compareTo(xq) < 0) {\n xp = xp.add(this.p);\n }\n return xp.subtract(xq).multiply(this.coeff).mod(this.p).multiply(this.q).add(xq);\n }\n\n //#endregion PROTECTED\n\n //#region PUBLIC\n\n // RSAKey.prototype.setPublic = RSASetPublic;\n // Set the public key fields N and e from hex strings\n public setPublic(N:string, E:string) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = parseBigInt(N, 16);\n this.e = parseInt(E, 16);\n } else {\n console.error(\"Invalid RSA public key\");\n }\n }\n\n\n // RSAKey.prototype.encrypt = RSAEncrypt;\n // Return the PKCS#1 RSA encryption of \"text\" as an even-length hex string\n public encrypt(text:string) {\n const m = pkcs1pad2(text, (this.n.bitLength() + 7) >> 3);\n\n if (m == null) {\n return null;\n }\n const c = this.doPublic(m);\n if (c == null) {\n return null;\n }\n const h = c.toString(16);\n if ((h.length & 1) == 0) {\n return h;\n } else {\n return \"0\" + h;\n }\n }\n\n\n // RSAKey.prototype.setPrivate = RSASetPrivate;\n // Set the private key fields N, e, and d from hex strings\n public setPrivate(N:string, E:string, D:string) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = parseBigInt(N, 16);\n this.e = parseInt(E, 16);\n this.d = parseBigInt(D, 16);\n } else {\n console.error(\"Invalid RSA private key\");\n }\n }\n\n\n // RSAKey.prototype.setPrivateEx = RSASetPrivateEx;\n // Set the private key fields N, e, d and CRT params from hex strings\n public setPrivateEx(N:string, E:string, D:string, P:string, Q:string, DP:string, DQ:string, C:string) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = parseBigInt(N, 16);\n this.e = parseInt(E, 16);\n this.d = parseBigInt(D, 16);\n this.p = parseBigInt(P, 16);\n this.q = parseBigInt(Q, 16);\n this.dmp1 = parseBigInt(DP, 16);\n this.dmq1 = parseBigInt(DQ, 16);\n this.coeff = parseBigInt(C, 16);\n } else {\n console.error(\"Invalid RSA private key\");\n }\n }\n\n\n // RSAKey.prototype.generate = RSAGenerate;\n // Generate a new random private key B bits long, using public expt E\n public generate(B:number, E:string) {\n const rng = new SecureRandom();\n const qs = B >> 1;\n this.e = parseInt(E, 16);\n const ee = new BigInteger(E, 16);\n for (;;) {\n for (;;) {\n this.p = new BigInteger(B - qs, 1, rng);\n if (this.p.subtract(BigInteger.ONE).gcd(ee).compareTo(BigInteger.ONE) == 0 && this.p.isProbablePrime(10)) { break; }\n }\n for (;;) {\n this.q = new BigInteger(qs, 1, rng);\n if (this.q.subtract(BigInteger.ONE).gcd(ee).compareTo(BigInteger.ONE) == 0 && this.q.isProbablePrime(10)) { break; }\n }\n if (this.p.compareTo(this.q) <= 0) {\n const t = this.p;\n this.p = this.q;\n this.q = t;\n }\n const p1 = this.p.subtract(BigInteger.ONE);\n const q1 = this.q.subtract(BigInteger.ONE);\n const phi = p1.multiply(q1);\n if (phi.gcd(ee).compareTo(BigInteger.ONE) == 0) {\n this.n = this.p.multiply(this.q);\n this.d = ee.modInverse(phi);\n this.dmp1 = this.d.mod(p1);\n this.dmq1 = this.d.mod(q1);\n this.coeff = this.q.modInverse(this.p);\n break;\n }\n }\n }\n\n // RSAKey.prototype.decrypt = RSADecrypt;\n // Return the PKCS#1 RSA decryption of \"ctext\".\n // \"ctext\" is an even-length hex string and the output is a plain string.\n public decrypt(ctext:string) {\n const c = parseBigInt(ctext, 16);\n const m = this.doPrivate(c);\n if (m == null) { return null; }\n return pkcs1unpad2(m, (this.n.bitLength() + 7) >> 3);\n }\n\n // Generate a new random private key B bits long, using public expt E\n public generateAsync(B:number, E:string, callback:() => void) {\n const rng = new SecureRandom();\n const qs = B >> 1;\n this.e = parseInt(E, 16);\n const ee = new BigInteger(E, 16);\n const rsa = this;\n // These functions have non-descript names because they were originally for(;;) loops.\n // I don't know about cryptography to give them better names than loop1-4.\n const loop1 = function () {\n const loop4 = function () {\n if (rsa.p.compareTo(rsa.q) <= 0) {\n const t = rsa.p;\n rsa.p = rsa.q;\n rsa.q = t;\n }\n const p1 = rsa.p.subtract(BigInteger.ONE);\n const q1 = rsa.q.subtract(BigInteger.ONE);\n const phi = p1.multiply(q1);\n if (phi.gcd(ee).compareTo(BigInteger.ONE) == 0) {\n rsa.n = rsa.p.multiply(rsa.q);\n rsa.d = ee.modInverse(phi);\n rsa.dmp1 = rsa.d.mod(p1);\n rsa.dmq1 = rsa.d.mod(q1);\n rsa.coeff = rsa.q.modInverse(rsa.p);\n setTimeout(function () {callback(); }, 0); // escape\n } else {\n setTimeout(loop1, 0);\n }\n };\n const loop3 = function () {\n rsa.q = nbi();\n rsa.q.fromNumberAsync(qs, 1, rng, function () {\n rsa.q.subtract(BigInteger.ONE).gcda(ee, function (r) {\n if (r.compareTo(BigInteger.ONE) == 0 && rsa.q.isProbablePrime(10)) {\n setTimeout(loop4, 0);\n } else {\n setTimeout(loop3, 0);\n }\n });\n });\n };\n const loop2 = function () {\n rsa.p = nbi();\n rsa.p.fromNumberAsync(B - qs, 1, rng, function () {\n rsa.p.subtract(BigInteger.ONE).gcda(ee, function (r) {\n if (r.compareTo(BigInteger.ONE) == 0 && rsa.p.isProbablePrime(10)) {\n setTimeout(loop3, 0);\n } else {\n setTimeout(loop2, 0);\n }\n });\n });\n };\n setTimeout(loop2, 0);\n };\n setTimeout(loop1, 0);\n }\n\n public sign(text:string, digestMethod:(str:string) => string, digestName:string):string {\n const header = getDigestHeader(digestName);\n const digest = header + digestMethod(text).toString();\n const m = pkcs1pad1(digest, this.n.bitLength() / 4);\n if (m == null) {\n return null;\n }\n const c = this.doPrivate(m);\n if (c == null) {\n return null;\n }\n const h = c.toString(16);\n if ((h.length & 1) == 0) {\n return h;\n } else {\n return \"0\" + h;\n }\n }\n\n public verify(text:string, signature:string, digestMethod:(str:string) => string):boolean {\n const c = parseBigInt(signature, 16);\n const m = this.doPublic(c);\n if (m == null) {\n return null;\n }\n const unpadded = m.toString(16).replace(/^1f+00/, \"\");\n const digest = removeDigestHeader(unpadded);\n return digest == digestMethod(text).toString();\n }\n\n //#endregion PUBLIC\n\n protected n:BigInteger;\n protected e:number;\n protected d:BigInteger;\n protected p:BigInteger;\n protected q:BigInteger;\n protected dmp1:BigInteger;\n protected dmq1:BigInteger;\n protected coeff:BigInteger;\n\n}\n\n\n// Undo PKCS#1 (type 2, random) padding and, if valid, return the plaintext\nfunction pkcs1unpad2(d:BigInteger, n:number):string {\n const b = d.toByteArray();\n let i = 0;\n while (i < b.length && b[i] == 0) { ++i; }\n if (b.length - i != n - 1 || b[i] != 2) {\n return null;\n }\n ++i;\n while (b[i] != 0) {\n if (++i >= b.length) { return null; }\n }\n let ret = \"\";\n while (++i < b.length) {\n const c = b[i] & 255;\n if (c < 128) { // utf-8 decode\n ret += String.fromCharCode(c);\n } else if ((c > 191) && (c < 224)) {\n ret += String.fromCharCode(((c & 31) << 6) | (b[i + 1] & 63));\n ++i;\n } else {\n ret += String.fromCharCode(((c & 15) << 12) | ((b[i + 1] & 63) << 6) | (b[i + 2] & 63));\n i += 2;\n }\n }\n return ret;\n}\n\n// https://tools.ietf.org/html/rfc3447#page-43\nconst DIGEST_HEADERS:{ [name:string]:string } = {\n md2: \"3020300c06082a864886f70d020205000410\",\n md5: \"3020300c06082a864886f70d020505000410\",\n sha1: \"3021300906052b0e03021a05000414\",\n sha224: \"302d300d06096086480165030402040500041c\",\n sha256: \"3031300d060960864801650304020105000420\",\n sha384: \"3041300d060960864801650304020205000430\",\n sha512: \"3051300d060960864801650304020305000440\",\n ripemd160: \"3021300906052b2403020105000414\",\n};\n\nfunction getDigestHeader(name:string):string {\n return DIGEST_HEADERS[name] || \"\";\n}\n\nfunction removeDigestHeader(str:string):string {\n for (const name in DIGEST_HEADERS) {\n if (DIGEST_HEADERS.hasOwnProperty(name)) {\n const header = DIGEST_HEADERS[name];\n const len = header.length;\n if (str.substr(0, len) == header) {\n return str.substr(len);\n }\n }\n }\n return str;\n}\n\n\n// Return the PKCS#1 RSA encryption of \"text\" as a Base64-encoded string\n// function RSAEncryptB64(text) {\n// var h = this.encrypt(text);\n// if(h) return hex2b64(h); else return null;\n// }\n\n\n// public\n\n// RSAKey.prototype.encrypt_b64 = RSAEncryptB64;\n","import {int2char} from \"./util\";\n\nconst b64map = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\nconst b64pad = \"=\";\n\nexport function hex2b64(h:string) {\n let i;\n let c;\n let ret = \"\";\n for (i = 0; i + 3 <= h.length; i += 3) {\n c = parseInt(h.substring(i, i + 3), 16);\n ret += b64map.charAt(c >> 6) + b64map.charAt(c & 63);\n }\n if (i + 1 == h.length) {\n c = parseInt(h.substring(i, i + 1), 16);\n ret += b64map.charAt(c << 2);\n } else if (i + 2 == h.length) {\n c = parseInt(h.substring(i, i + 2), 16);\n ret += b64map.charAt(c >> 2) + b64map.charAt((c & 3) << 4);\n }\n while ((ret.length & 3) > 0) {\n ret += b64pad;\n }\n return ret;\n}\n\n// convert a base64 string to hex\nexport function b64tohex(s:string) {\n let ret = \"\";\n let i;\n let k = 0; // b64 state, 0-3\n let slop = 0;\n for (i = 0; i < s.length; ++i) {\n if (s.charAt(i) == b64pad) {\n break;\n }\n const v = b64map.indexOf(s.charAt(i));\n if (v < 0) {\n continue;\n }\n if (k == 0) {\n ret += int2char(v >> 2);\n slop = v & 3;\n k = 1;\n } else if (k == 1) {\n ret += int2char((slop << 2) | (v >> 4));\n slop = v & 0xf;\n k = 2;\n } else if (k == 2) {\n ret += int2char(slop);\n ret += int2char(v >> 2);\n slop = v & 3;\n k = 3;\n } else {\n ret += int2char((slop << 2) | (v >> 4));\n ret += int2char(v & 0xf);\n k = 0;\n }\n }\n if (k == 1) {\n ret += int2char(slop << 2);\n }\n return ret;\n}\n\n// convert a base64 string to a byte/number array\nexport function b64toBA(s:string) {\n // piggyback on b64tohex for now, optimize later\n const h = b64tohex(s);\n let i;\n const a = [];\n for (i = 0; 2 * i < h.length; ++i) {\n a[i] = parseInt(h.substring(2 * i, 2 * i + 2), 16);\n }\n return a;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.state=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changed]}},[_c('option',{attrs:{\"value\":\"AL\"}},[_vm._v(\"Alabama\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"AK\"}},[_vm._v(\"Alaska\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"AZ\"}},[_vm._v(\"Arizona\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"AR\"}},[_vm._v(\"Arkansas\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"CA\"}},[_vm._v(\"California\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"CO\"}},[_vm._v(\"Colorado\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"CT\"}},[_vm._v(\"Connecticut\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"DE\"}},[_vm._v(\"Delaware\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"DC\"}},[_vm._v(\"District Of Columbia\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"FL\"}},[_vm._v(\"Florida\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"GA\"}},[_vm._v(\"Georgia\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"HI\"}},[_vm._v(\"Hawaii\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"ID\"}},[_vm._v(\"Idaho\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"IL\"}},[_vm._v(\"Illinois\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"IN\"}},[_vm._v(\"Indiana\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"IA\"}},[_vm._v(\"Iowa\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"KS\"}},[_vm._v(\"Kansas\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"KY\"}},[_vm._v(\"Kentucky\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"LA\"}},[_vm._v(\"Louisiana\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"ME\"}},[_vm._v(\"Maine\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MD\"}},[_vm._v(\"Maryland\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MA\"}},[_vm._v(\"Massachusetts\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MI\"}},[_vm._v(\"Michigan\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MN\"}},[_vm._v(\"Minnesota\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MS\"}},[_vm._v(\"Mississippi\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MO\"}},[_vm._v(\"Missouri\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"MT\"}},[_vm._v(\"Montana\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NE\"}},[_vm._v(\"Nebraska\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NV\"}},[_vm._v(\"Nevada\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NH\"}},[_vm._v(\"New Hampshire\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NJ\"}},[_vm._v(\"New Jersey\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NM\"}},[_vm._v(\"New Mexico\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NY\"}},[_vm._v(\"New York\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"NC\"}},[_vm._v(\"North Carolina\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"ND\"}},[_vm._v(\"North Dakota\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"OH\"}},[_vm._v(\"Ohio\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"OK\"}},[_vm._v(\"Oklahoma\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"OR\"}},[_vm._v(\"Oregon\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"PA\"}},[_vm._v(\"Pennsylvania\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"RI\"}},[_vm._v(\"Rhode Island\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"SC\"}},[_vm._v(\"South Carolina\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"SD\"}},[_vm._v(\"South Dakota\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"TN\"}},[_vm._v(\"Tennessee\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"TX\"}},[_vm._v(\"Texas\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"UT\"}},[_vm._v(\"Utah\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"VT\"}},[_vm._v(\"Vermont\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"VA\"}},[_vm._v(\"Virginia\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"WA\"}},[_vm._v(\"Washington\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"WV\"}},[_vm._v(\"West Virginia\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"WI\"}},[_vm._v(\"Wisconsin\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"WY\"}},[_vm._v(\"Wyoming\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./states_select.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./states_select.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_ebt_card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_ebt_card.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n {{errors.first(\"cardNumber\")}}\n
\n\n
\n \n \n {{errors.first(\"Address\")}}\n
\n
\n
\n \n \n {{errors.first(\"City\")}}\n
\n
\n \n \n
\n
\n \n \n {{errors.first(\"Zip\")}}\n
\n
\n\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./states_select.vue?vue&type=template&id=561fcd30&\"\nimport script from \"./states_select.vue?vue&type=script&lang=js&\"\nexport * from \"./states_select.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { render, staticRenderFns } from \"./add_ebt_card.vue?vue&type=template&id=d52ba7b4&\"\nimport script from \"./add_ebt_card.vue?vue&type=script&lang=js&\"\nexport * from \"./add_ebt_card.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('label',[_vm._v(\"EBT/SNAP Card number\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.cardNumber),expression:\"cardNumber\"}],attrs:{\"type\":\"text\",\"name\":\"cardNumber\"},domProps:{\"value\":(_vm.cardNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.cardNumber=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"cardNumber\")),expression:\"errors.first(\\\"cardNumber\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"cardNumber\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('label',[_vm._v(\"Address\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.address),expression:\"address\"}],attrs:{\"name\":\"Address\"},domProps:{\"value\":(_vm.address)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.address=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"Address\")),expression:\"errors.first(\\\"Address\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"Address\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col m4 s6\"},[_c('label',[_vm._v(\"City\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.city),expression:\"city\"}],attrs:{\"name\":\"City\"},domProps:{\"value\":(_vm.city)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.city=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"City\")),expression:\"errors.first(\\\"City\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"City\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"col m4 s6\"},[_c('label',[_vm._v(\"State\")]),_vm._v(\" \"),_c('state-select',{model:{value:(_vm.state),callback:function ($$v) {_vm.state=$$v},expression:\"state\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col m4 s6\"},[_c('label',[_vm._v(\"Zip\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.zip),expression:\"zip\"}],attrs:{\"name\":\"Zip\"},domProps:{\"value\":(_vm.zip)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.zip=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"Zip\")),expression:\"errors.first(\\\"Zip\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"Zip\")))])])]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.addCard}},[_vm._v(\"Add\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_credit_card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./add_credit_card.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
{{errorMessage}}
\n
ADD
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./add_credit_card.vue?vue&type=template&id=fba5b7f6&\"\nimport script from \"./add_credit_card.vue?vue&type=script&lang=js&\"\nexport * from \"./add_credit_card.vue?vue&type=script&lang=js&\"\nimport style0 from \"./add_credit_card.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('div',{staticClass:\"card-panel gift-card\"},[_c('div',{ref:\"card\",staticClass:\"card-input\"}),_vm._v(\" \"),_c('div',{staticClass:\"red-text mt-10\"},[_vm._v(_vm._s(_vm.errorMessage))]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAddBtn),expression:\"showAddBtn\"}],staticClass:\"btn mt-25 right\",attrs:{\"disabled\":_vm.addButtonDisable},on:{\"click\":_vm.addCard}},[_vm._v(\"ADD\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./ebt_balance.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./ebt_balance.vue?vue&type=script&lang=js&\"","\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./ebt_balance.vue?vue&type=template&id=3d5cac2c&\"\nimport script from \"./ebt_balance.vue?vue&type=script&lang=js&\"\nexport * from \"./ebt_balance.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('form',{ref:\"form\",attrs:{\"name\":\"myform\",\"action\":_vm.pinPadPath,\"method\":\"POST\"}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"AccuLanguage\",\"value\":\"“en-US”\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.AccuId),expression:\"AccuId\"}],attrs:{\"type\":\"hidden\",\"name\":\"AccuId\"},domProps:{\"value\":(_vm.AccuId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.AccuId=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tranId),expression:\"tranId\"}],attrs:{\"type\":\"hidden\",\"name\":\"tranId\"},domProps:{\"value\":(_vm.tranId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.tranId=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tempCardId),expression:\"tempCardId\"}],attrs:{\"type\":\"hidden\",\"name\":\"tempCardId\"},domProps:{\"value\":(_vm.tempCardId)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.tempCardId=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.returnUrl),expression:\"returnUrl\"}],attrs:{\"type\":\"hidden\",\"name\":\"AccuReturnURL\"},domProps:{\"value\":(_vm.returnUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.returnUrl=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.redirectUrl),expression:\"redirectUrl\"}],attrs:{\"type\":\"hidden\",\"name\":\"redirectUrl\"},domProps:{\"value\":(_vm.redirectUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.redirectUrl=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.autoSubmit),expression:\"!autoSubmit\"}],staticClass:\"btn-small mt-50\",attrs:{\"disabled\":_vm.submitDisabled},on:{\"click\":_vm.checkBalance}},[_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.submitDisabled),expression:\"submitDisabled\"}],staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.submitDisabled),expression:\"!submitDisabled\"}]},[_vm._v(\"Balance\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n \n Add a tip\n \n \n \n
No tip
\n
{{tip1}}%
\n
{{tip2}}%
\n
{{tip3}}%
\n
\n\n \n \n\n Must be 0.01 or more.\n
\n \n \n \n \n \n Please sign here:\n \n\n \n \n X __________________________
\n I authorize to debit my account an extra {{tipAmount | currency}} as a tip\n \n \n
\n\n \n {{errorMessage}}
\n
\n\n \n
Clear\n
Approve {{withTipAmount}}\n
Continue\n
\n
\n\n \n \n processing ...\n
\n \n
\n
\n I,
\n
\n \n \n The first name field is required\n
\n
\n \n \n The last name field is required\n
\n
\n
\n \n
\n
\n authorize one-time payment of {{tipAmount | currency}} on today's date {{$moment(new Date()).format('MM/DD/YY')}} and accept \n
ACH debit terms and conditions\n
\n
\n
\n - \n When you provide a check as payment you authorize us to\n either use information from your check to make a one-time\n electronic fund transfer from your account or to process the\n payment as a check transaction.
\n - \n When we use information from your check to make an\n electronic funds transfer, funds may be withdrawn from your\n account as soon as the same day you make your payment. \n
\n - \n A returned check fee of $25.00, or maximum allowable by law,\n will be electronically debited from your account in the event\n your electronic transfer is returned from your financial\n institution. \n
\n
\n
\n
\n \n \n
\n
\n
\n \n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_signature_pad.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./check_signature_pad.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./check_signature_pad.vue?vue&type=template&id=50c32c02&scoped=true&\"\nimport script from \"./check_signature_pad.vue?vue&type=script&lang=js&\"\nexport * from \"./check_signature_pad.vue?vue&type=script&lang=js&\"\nimport style0 from \"./check_signature_pad.vue?vue&type=style&index=0&id=50c32c02&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"50c32c02\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showApproveForm),expression:\"!showApproveForm\"}]},[_vm._t(\"default\"),_vm._v(\" \"),_c('center',[_c('center',{staticClass:\"grey-text\",staticStyle:{\"font-size\":\"1.5em\"}},[_vm._v(\"\\n Add a tip\\n \")]),_vm._v(\" \"),(_vm.showTips && !_vm.tipsLoading)?_c('section',{staticClass:\"mt-10 grey-text\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.presetTip),expression:\"presetTip\"}],staticClass:\"tips-row\"},[_c('div',{staticClass:\"tips-btn tips-col\",class:{'active': _vm.selectedTip == 0},on:{\"click\":function($event){return _vm.setTip(0)}}},[_vm._v(\"No tip\")]),_vm._v(\" \"),_c('div',{staticClass:\"tips-btn tips-col\",class:{'active': _vm.selectedTip == _vm.tip1},on:{\"click\":function($event){return _vm.setTip(_vm.tip1)}}},[_vm._v(_vm._s(_vm.tip1)+\"%\")]),_vm._v(\" \"),_c('div',{staticClass:\"tips-btn tips-col\",class:{'active': _vm.selectedTip == _vm.tip2},on:{\"click\":function($event){return _vm.setTip(_vm.tip2)}}},[_vm._v(_vm._s(_vm.tip2)+\"%\")]),_vm._v(\" \"),_c('div',{staticClass:\"tips-btn tips-col\",class:{'active': _vm.selectedTip == _vm.tip3},on:{\"click\":function($event){return _vm.setTip(_vm.tip3)}}},[_vm._v(_vm._s(_vm.tip3)+\"%\")])]),_vm._v(\" \"),(!_vm.presetTip)?_c('div',[_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.tipCustomAmount),expression:\"tipCustomAmount\"}],ref:\"customTipInput\",staticClass:\"inputText\",attrs:{\"name\":\"tipCustomAmount\",\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.tipCustomAmount)},on:{\"keyup\":_vm.updateAmounts,\"input\":function($event){if($event.target.composing){ return; }_vm.tipCustomAmount=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"tipCustomAmount\")),expression:\"errors.first(\\\"tipCustomAmount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"Must be 0.01 or more.\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"tips-row mt-5\"},[_c('div',{staticClass:\"btn tips-col\",on:{\"click\":_vm.enableCustomTip}},[_vm._v(_vm._s(_vm.tipSwitchLabel))])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-panel mt-10\"},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.errorMessage),expression:\"!errorMessage\"}]},[_c('center',{staticClass:\"grey-text\",staticStyle:{\"font-size\":\"1.8em\"}},[_vm._v(\"\\n Please sign here:\\n \")]),_vm._v(\" \"),_c('vue-signature-pad',{ref:\"signaturePad\",attrs:{\"width\":\"100%\",\"height\":\"27vh\",\"options\":{ onBegin: _vm.onBegin }}}),_vm._v(\" \"),_c('span',{staticClass:\"grey-text\"},[_vm._v(\"\\n X __________________________\"),_c('br'),_vm._v(\" \"),_c('small',[_vm._v(\"I authorize to debit my account an extra \"+_vm._s(_vm._f(\"currency\")(_vm.tipAmount))+\" as a tip\")])])],1)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errorMessage),expression:\"errorMessage\"}],staticClass:\"red-text center\"},[_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)),_c('br')]),_vm._v(\" \"),_c('div',{staticClass:\"mt-5\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.errorMessage),expression:\"!errorMessage\"}],staticClass:\"btn-flat mt-5\",on:{\"click\":_vm.undo}},[_vm._v(\"Clear\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSubmit && _vm.selectedTip == 0),expression:\"showSubmit && selectedTip == 0\"}],staticClass:\"btn mt-5\",attrs:{\"disabled\":_vm.disableSubmit},on:{\"click\":_vm.approve}},[_vm._v(\"Approve \"+_vm._s(_vm.withTipAmount))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSubmit && _vm.selectedTip != 0),expression:\"showSubmit && selectedTip != 0\"}],staticClass:\"btn mt-5\",attrs:{\"disabled\":_vm.disableSubmit},on:{\"click\":function($event){_vm.showApproveForm = true}}},[_vm._v(\"Continue\")]),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-5 grey-text\"},[_vm._v(\"\\n By clicking \\\"Approve\\\" you agree to \"),_c('a',{attrs:{\"href\":\"https://iwallet.com/terms-of-service\"}},[_vm._v(\"terms of service\")]),_vm._v(\" \\n as well as our partner Paya's \"),_c('a',{attrs:{\"href\":\"/paya_ach_terms\",\"ctarget\":\"_blank\"}},[_vm._v(\"ACH debit term and conditions\")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showSubmit),expression:\"!showSubmit\"}]},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" \\n processing ...\\n \")])],1)],2),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showApproveForm),expression:\"showApproveForm\"}],staticClass:\"mt-50\"},[_vm._v(\"\\n I, \"),_c('br'),_vm._v(\" \"),_c('div',[_c('label',[_vm._v(\"First name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.firstName),expression:\"firstName\"}],attrs:{\"name\":\"fname\"},domProps:{\"value\":(_vm.firstName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.firstName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"fname\")),expression:\"errors.first(\\\"fname\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The first name field is required\")])]),_vm._v(\" \"),_c('div',[_c('label',[_vm._v(\"Last name\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"},{name:\"model\",rawName:\"v-model\",value:(_vm.lastName),expression:\"lastName\"}],attrs:{\"name\":\"lname\"},domProps:{\"value\":(_vm.lastName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lastName=$event.target.value}}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"lname\")),expression:\"errors.first(\\\"lname\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(\"The last name field is required\")])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_vm._t(\"auth-details\")],2),_vm._v(\" \"),_c('div',{staticClass:\"mt-25 bold-font large-font\"},[_vm._v(\"\\n authorize one-time payment of \"+_vm._s(_vm._f(\"currency\")(_vm.tipAmount))+\" on today's date \"+_vm._s(_vm.$moment(new Date()).format('MM/DD/YY'))+\" and accept \\n \"),_c('a',{on:{\"click\":function($event){_vm.showTerms=true}}},[_vm._v(\"ACH debit terms and conditions\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showTerms),expression:\"showTerms\"}]},[_vm._m(0)]),_vm._v(\" \"),_c('div',{staticClass:\"mt-50\"},[_c('button',{staticClass:\"btn btn-large wide-btn\",on:{\"click\":_vm.approve}},[_vm._v(\"Accept\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn outlined-btn wide-btn mt-25\",on:{\"click\":function($event){_vm.showApproveForm=false}}},[_vm._v(\"Cancel\")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',[_c('li',{staticClass:\"mt-25\"},[_vm._v(\"\\n When you provide a check as payment you authorize us to\\n either use information from your check to make a one-time\\n electronic fund transfer from your account or to process the\\n payment as a check transaction.\")]),_vm._v(\" \"),_c('li',{staticClass:\"mt-25\"},[_vm._v(\"\\n When we use information from your check to make an\\n electronic funds transfer, funds may be withdrawn from your\\n account as soon as the same day you make your payment. \\n \")]),_vm._v(\" \"),_c('li',{staticClass:\"mt-25\"},[_vm._v(\"\\n A returned check fee of $25.00, or maximum allowable by law,\\n will be electronically debited from your account in the event\\n your electronic transfer is returned from your financial\\n institution. \\n \")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./manual_payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./manual_payment.vue?vue&type=script&lang=js&\"","
\n \n
\n \n
\n\n\n
\n No tip\n {{tip1}}%\n {{tip2}}%\n {{tip3}}%\n \n
\n
\n\n \n Tap here to enter amount
\n \n\n\n \n \n\n \n \n
\n \n\n \n Processing...\n \n \n
\n\n\n\n","import { render, staticRenderFns } from \"./manual_payment.vue?vue&type=template&id=131401bd&scoped=true&\"\nimport script from \"./manual_payment.vue?vue&type=script&lang=js&\"\nexport * from \"./manual_payment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./manual_payment.vue?vue&type=style&index=0&id=131401bd&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"131401bd\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"main-form\"},[_c('div',{staticClass:\"row\",on:{\"click\":_vm.openKeyboard}},[_c('div',{staticClass:\"input-field col s12 m6\"},[_c('i',{staticClass:\"fas fa-dollar-sign prefix grey-text\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"},{name:\"validate\",rawName:\"v-validate\",value:('min_value:0.01|required'),expression:\"'min_value:0.01|required'\"}],ref:\"inputAmount\",staticClass:\"inputText\",attrs:{\"name\":\"amount\",\"step\":\"0.01\",\"type\":\"text\",\"inputmode\":\"decimal\",\"lang\":\"en-001\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value},_vm.updateAmounts]}}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.first(\"amount\")),expression:\"errors.first(\\\"amount\\\")\"}],staticClass:\"red-text small-font\"},[_vm._v(_vm._s(_vm.errors.first(\"amount\")))]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showTapHere),expression:\"!showTapHere\"}],staticClass:\"grey-text mt-t center\"},[_vm._v(\"\\n Gross amount: \"),_c('b',[_vm._v(_vm._s(_vm.grossAmount))]),_vm._v(\" | \\n \"),_c('i',{staticClass:\"far fa-credit-card\"}),_vm._v(\" Non-cash adj: \"),_c('b',[_vm._v(_vm._s(_vm.feeAmount))])]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Enter amount here\")])]),_vm._v(\" \"),(_vm.showTips && !_vm.tipsLoading && !_vm.showTapHere)?_c('section',{staticClass:\"grey-text center mt-10 tips-row\"},[_c('span',{staticClass:\"tips-btn tips-col\",class:{'actives': _vm.selectedTip == 0},on:{\"click\":function($event){return _vm.setTip(0)}}},[_vm._v(\"No tip\")]),_vm._v(\" \"),_c('span',{staticClass:\"tips-btn tips-col\",class:{'actives': _vm.selectedTip == _vm.tip1},on:{\"click\":function($event){return _vm.setTip(_vm.tip1)}}},[_vm._v(_vm._s(_vm.tip1)+\"%\")]),_vm._v(\" \"),_c('span',{staticClass:\"tips-btn tips-col\",class:{'actives': _vm.selectedTip == _vm.tip2},on:{\"click\":function($event){return _vm.setTip(_vm.tip2)}}},[_vm._v(_vm._s(_vm.tip2)+\"%\")]),_vm._v(\" \"),_c('span',{staticClass:\"tips-btn tips-col\",class:{'actives': _vm.selectedTip == _vm.tip3},on:{\"click\":function($event){return _vm.setTip(_vm.tip3)}}},[_vm._v(_vm._s(_vm.tip3)+\"%\")])]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showManualForm),expression:\"showManualForm\"}],staticClass:\"input-field col s12 mt-50\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}],ref:\"card\"}),_vm._v(\" \"),_c('span',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errorMessage))])])]),_vm._v(\" \"),_c('center',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.amount && _vm.showTapHere),expression:\"!amount && showTapHere\"}],staticClass:\"btn-large mt-50\",on:{\"click\":_vm.openKeyboard}},[_vm._v(\"Tap here to enter amount\")])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPending && _vm.showManualForm),expression:\"!showPending && showManualForm\"}],staticClass:\"btn-large wide-btn mt-25\",attrs:{\"disabled\":_vm.disableSignupBtn},on:{\"click\":function($event){return _vm.charge(_vm.resultHandler)}}},[_vm._v(\"\\n Pay\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.amount),expression:\"amount\"}]},[_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(_vm.grossAmount)))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\",attrs:{\"id\":\"payment-request-button\"}})]),_vm._v(\" \"),(_vm.showPending)?_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"}),_vm._v(\" Processing...\\n \")]):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./devise_links_wrapper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./devise_links_wrapper.vue?vue&type=script&lang=js&\"","
\n \n \n
\n\n\n","import { render, staticRenderFns } from \"./devise_links_wrapper.vue?vue&type=template&id=01fda0ce&\"\nimport script from \"./devise_links_wrapper.vue?vue&type=script&lang=js&\"\nexport * from \"./devise_links_wrapper.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.show),expression:\"show\"}]},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n \n
\n \n Loading...\n
\n\n
\n\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./policy_url.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./policy_url.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./policy_url.vue?vue&type=template&id=025b0d9a&scoped=true&\"\nimport script from \"./policy_url.vue?vue&type=script&lang=js&\"\nexport * from \"./policy_url.vue?vue&type=script&lang=js&\"\nimport style0 from \"./policy_url.vue?vue&type=style&index=0&id=025b0d9a&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"025b0d9a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"row\"},[_c('div',{staticClass:\"mt-25 grey-text\"},[(_vm.$apollo.loading)?_c('div',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading...\\n \")]):_c('div',[_c('a',{attrs:{\"href\":_vm.settings.policyUrl,\"target\":\"_blank\"}},[_vm._v(\"Policy link\")]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.settings.policyUrl),expression:\"!settings.policyUrl\"}]},[_vm._v(\"(not set)\")]),_vm._v(\" \"),(!_vm.showForm)?_c('span',[_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.showForm = true}}},[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\\n \")])]):_vm._e()]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}],staticClass:\"col s12\"},[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n By url\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.isPolicyUrlLocal),expression:\"settings.isPolicyUrlLocal\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.isPolicyUrlLocal)?_vm._i(_vm.settings.isPolicyUrlLocal,null)>-1:(_vm.settings.isPolicyUrlLocal)},on:{\"change\":function($event){var $$a=_vm.settings.isPolicyUrlLocal,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"isPolicyUrlLocal\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"isPolicyUrlLocal\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"isPolicyUrlLocal\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n By text\\n \")])]),_vm._v(\" \"),(_vm.settings.isPolicyUrlLocal)?_c('section',{staticClass:\"mt-10\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.policyText),expression:\"settings.policyText\"}],attrs:{\"placeholder\":\"Policy text...\"},domProps:{\"value\":(_vm.settings.policyText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"policyText\", $event.target.value)}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.updateByText}},[_vm._v(\"Save\")]),_vm._v(\" \"),_c('button',{staticClass:\"right btn-flat\",on:{\"click\":_vm.deleteUrl}},[_vm._v(\"Delete\")])]):_c('section',{staticClass:\"mt-10\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.policyUrl),expression:\"settings.policyUrl\"}],attrs:{\"placeholder\":\"Policy url http://...\"},domProps:{\"value\":(_vm.settings.policyUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"policyUrl\", $event.target.value)}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.update}},[_vm._v(\"Save\")]),_vm._v(\" \"),_c('button',{staticClass:\"right btn-flat\",on:{\"click\":_vm.deleteUrl}},[_vm._v(\"Delete\")])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n \n
\n \n Loading...\n
\n\n
\n {{settings.sendBillNote}}\n \n
(not set)\n\n
\n \n Edit\n \n \n
\n\n
\n \n
\n
\n \n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_bill_note.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./send_bill_note.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./send_bill_note.vue?vue&type=template&id=7011e8d2&scoped=true&\"\nimport script from \"./send_bill_note.vue?vue&type=script&lang=js&\"\nexport * from \"./send_bill_note.vue?vue&type=script&lang=js&\"\nimport style0 from \"./send_bill_note.vue?vue&type=style&index=0&id=7011e8d2&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7011e8d2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"row\"},[_c('div',{staticClass:\"mt-25 grey-text\"},[(_vm.$apollo.loading)?_c('div',[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading...\\n \")]):_c('div',[_vm._v(\"\\n \"+_vm._s(_vm.settings.sendBillNote)+\"\\n \\n \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.settings.sendBillNote && !_vm.settings.showForm),expression:\"!settings.sendBillNote && !settings.showForm\"}]},[_vm._v(\"(not set)\")]),_vm._v(\" \"),(!_vm.showForm)?_c('span',[_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.showForm = true}}},[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\\n \")])]):_vm._e()]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}],staticClass:\"col s12\"},[_c('section',{staticClass:\"mt-10\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.sendBillNote),expression:\"settings.sendBillNote\"}],attrs:{\"placeholder\":\"Note\"},domProps:{\"value\":(_vm.settings.sendBillNote)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"sendBillNote\", $event.target.value)}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.updateText}},[_vm._v(\"Save\")]),_vm._v(\" \"),_c('button',{staticClass:\"right btn-flat\",on:{\"click\":_vm.close}},[_vm._v(\"Close\")])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n \n
\n Emails with transaction receipts, votes, feedbacks
\n \n
\n Tech\n
\n \n
\n
\n\n
\n Supervisors\n
\n \n
\n
\n\n
\n Accountants\n
\n \n
\n
\n\n
\n Owner\n
\n \n
\n
\n
\n \n\n
\n Batch emails
\n \n
\n Tech\n
\n \n
\n
\n\n
\n Supervisors\n
\n \n
\n
\n\n
\n Accountants\n
\n \n
\n
\n\n
\n Owner\n
\n \n
\n
\n
\n \n\n
\n Emails with recurring transactions, voids, refunds, and adjustments
\n \n
\n Tech\n
\n \n
\n
\n\n
\n Supervisors\n
\n \n
\n
\n\n
\n Accountants\n
\n \n
\n
\n\n
\n Owner\n
\n \n
\n
\n
\n \n\n
\n Critical emails with disputes, bad checks and recurring transaction failures
\n \n
\n Tech\n
\n \n
\n
\n\n
\n Supervisors\n
\n \n
\n
\n\n
\n Accountants\n
\n \n
\n
\n\n
\n Owner\n
\n \n
\n
\n
\n \n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./notifications.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./notifications.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./notifications.vue?vue&type=template&id=d10ea780&\"\nimport script from \"./notifications.vue?vue&type=script&lang=js&\"\nexport * from \"./notifications.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"bold-font grey-text\"},[_vm._v(\"Emails with transaction receipts, votes, feedbacks\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Tech\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.logOwner),expression:\"settings.logOwner\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.logOwner)?_vm._i(_vm.settings.logOwner,null)>-1:(_vm.settings.logOwner)},on:{\"change\":[function($event){var $$a=_vm.settings.logOwner,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"logOwner\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"logOwner\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"logOwner\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Supervisors\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.logSupervisor),expression:\"settings.logSupervisor\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.logSupervisor)?_vm._i(_vm.settings.logSupervisor,null)>-1:(_vm.settings.logSupervisor)},on:{\"change\":[function($event){var $$a=_vm.settings.logSupervisor,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"logSupervisor\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"logSupervisor\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"logSupervisor\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Accountants\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.logAccountant),expression:\"settings.logAccountant\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.logAccountant)?_vm._i(_vm.settings.logAccountant,null)>-1:(_vm.settings.logAccountant)},on:{\"change\":[function($event){var $$a=_vm.settings.logAccountant,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"logAccountant\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"logAccountant\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"logAccountant\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Owner\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.logMaster),expression:\"settings.logMaster\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.logMaster)?_vm._i(_vm.settings.logMaster,null)>-1:(_vm.settings.logMaster)},on:{\"change\":[function($event){var $$a=_vm.settings.logMaster,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"logMaster\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"logMaster\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"logMaster\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])]),_vm._v(\" \"),_c('section',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"bold-font grey-text\"},[_vm._v(\"Batch emails\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Tech\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.compactLogOwner),expression:\"settings.compactLogOwner\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.compactLogOwner)?_vm._i(_vm.settings.compactLogOwner,null)>-1:(_vm.settings.compactLogOwner)},on:{\"change\":[function($event){var $$a=_vm.settings.compactLogOwner,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"compactLogOwner\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"compactLogOwner\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"compactLogOwner\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Supervisors\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.compactLogSupervisor),expression:\"settings.compactLogSupervisor\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.compactLogSupervisor)?_vm._i(_vm.settings.compactLogSupervisor,null)>-1:(_vm.settings.compactLogSupervisor)},on:{\"change\":[function($event){var $$a=_vm.settings.compactLogSupervisor,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"compactLogSupervisor\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"compactLogSupervisor\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"compactLogSupervisor\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Accountants\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.compactLogAccountant),expression:\"settings.compactLogAccountant\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.compactLogAccountant)?_vm._i(_vm.settings.compactLogAccountant,null)>-1:(_vm.settings.compactLogAccountant)},on:{\"change\":[function($event){var $$a=_vm.settings.compactLogAccountant,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"compactLogAccountant\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"compactLogAccountant\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"compactLogAccountant\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Owner\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.compactLogMaster),expression:\"settings.compactLogMaster\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.compactLogMaster)?_vm._i(_vm.settings.compactLogMaster,null)>-1:(_vm.settings.compactLogMaster)},on:{\"change\":[function($event){var $$a=_vm.settings.compactLogMaster,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"compactLogMaster\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"compactLogMaster\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"compactLogMaster\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])]),_vm._v(\" \"),_c('section',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"bold-font grey-text\"},[_vm._v(\"Emails with recurring transactions, voids, refunds, and adjustments\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Tech\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.infoOwner),expression:\"settings.infoOwner\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.infoOwner)?_vm._i(_vm.settings.infoOwner,null)>-1:(_vm.settings.infoOwner)},on:{\"change\":[function($event){var $$a=_vm.settings.infoOwner,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"infoOwner\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"infoOwner\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"infoOwner\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Supervisors\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.infoSupervisor),expression:\"settings.infoSupervisor\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.infoSupervisor)?_vm._i(_vm.settings.infoSupervisor,null)>-1:(_vm.settings.infoSupervisor)},on:{\"change\":[function($event){var $$a=_vm.settings.infoSupervisor,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"infoSupervisor\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"infoSupervisor\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"infoSupervisor\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Accountants\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.infoAccountant),expression:\"settings.infoAccountant\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.infoAccountant)?_vm._i(_vm.settings.infoAccountant,null)>-1:(_vm.settings.infoAccountant)},on:{\"change\":[function($event){var $$a=_vm.settings.infoAccountant,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"infoAccountant\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"infoAccountant\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"infoAccountant\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center grey-text text-lighten-2\"},[_vm._v(\"\\n Owner\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',{staticClass:\"grey-text text-lighten-2\"},[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.infoMaster),expression:\"settings.infoMaster\"}],attrs:{\"disabled\":\"\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.infoMaster)?_vm._i(_vm.settings.infoMaster,null)>-1:(_vm.settings.infoMaster)},on:{\"change\":[function($event){var $$a=_vm.settings.infoMaster,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"infoMaster\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"infoMaster\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"infoMaster\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\",staticStyle:{\"background-color\":\"lightgrey\"}}),_vm._v(\"\\n On\\n \")])])])])]),_vm._v(\" \"),_c('section',{staticClass:\"card-panel\"},[_c('div',{staticClass:\"bold-font grey-text\"},[_vm._v(\"Critical emails with disputes, bad checks and recurring transaction failures\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-25\"},[_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Tech\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.criticalOwner),expression:\"settings.criticalOwner\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.criticalOwner)?_vm._i(_vm.settings.criticalOwner,null)>-1:(_vm.settings.criticalOwner)},on:{\"change\":[function($event){var $$a=_vm.settings.criticalOwner,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"criticalOwner\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"criticalOwner\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"criticalOwner\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Supervisors\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.criticalSupervisor),expression:\"settings.criticalSupervisor\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.criticalSupervisor)?_vm._i(_vm.settings.criticalSupervisor,null)>-1:(_vm.settings.criticalSupervisor)},on:{\"change\":[function($event){var $$a=_vm.settings.criticalSupervisor,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"criticalSupervisor\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"criticalSupervisor\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"criticalSupervisor\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center\"},[_vm._v(\"\\n Accountants\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.criticalAccountant),expression:\"settings.criticalAccountant\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.criticalAccountant)?_vm._i(_vm.settings.criticalAccountant,null)>-1:(_vm.settings.criticalAccountant)},on:{\"change\":[function($event){var $$a=_vm.settings.criticalAccountant,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"criticalAccountant\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"criticalAccountant\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"criticalAccountant\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s6 m3 center grey-text text-lighten-2\"},[_vm._v(\"\\n Owner\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',{staticClass:\"grey-text text-lighten-2\"},[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.criticalMaster),expression:\"settings.criticalMaster\"}],staticClass:\"red-text\",attrs:{\"disabled\":\"\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.criticalMaster)?_vm._i(_vm.settings.criticalMaster,null)>-1:(_vm.settings.criticalMaster)},on:{\"change\":[function($event){var $$a=_vm.settings.criticalMaster,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"criticalMaster\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"criticalMaster\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"criticalMaster\", $$c)}},_vm.updateSettings]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\",staticStyle:{\"background-color\":\"lightgrey\"}}),_vm._v(\"\\n On\\n \")])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n Enable Feedback Module:\n
\n \n Allows payers to vote / leave feedback post-transaction\n
\n
\n \n
\n
\n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./feedback_hub.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./feedback_hub.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./feedback_hub.vue?vue&type=template&id=0a4f6c90&\"\nimport script from \"./feedback_hub.vue?vue&type=script&lang=js&\"\nexport * from \"./feedback_hub.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.showFeedbackHub),expression:\"settings.showFeedbackHub\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.showFeedbackHub)?_vm._i(_vm.settings.showFeedbackHub,null)>-1:(_vm.settings.showFeedbackHub)},on:{\"change\":[function($event){var $$a=_vm.settings.showFeedbackHub,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"showFeedbackHub\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"showFeedbackHub\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"showFeedbackHub\", $$c)}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.settings.showFeedbackHub),expression:\"settings.showFeedbackHub\"}]},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.showVote),expression:\"settings.showVote\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.showVote)?_vm._i(_vm.settings.showVote,null)>-1:(_vm.settings.showVote)},on:{\"change\":[function($event){var $$a=_vm.settings.showVote,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"showVote\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"showVote\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"showVote\", $$c)}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.showReview),expression:\"settings.showReview\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.showReview)?_vm._i(_vm.settings.showReview,null)>-1:(_vm.settings.showReview)},on:{\"change\":[function($event){var $$a=_vm.settings.showReview,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"showReview\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"showReview\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"showReview\", $$c)}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_c('span',{staticClass:\"bold-font grey-text\"},[_vm._v(\"Enable Feedback Module:\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allows payers to vote / leave feedback post-transaction\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines mt-10\"},[_c('span',{staticClass:\"grey-text\"},[_vm._v(\"Enable Thumbs Up/Down Screen:\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Enables a thumbs up/down feature after signature screen\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines mt-10\"},[_c('span',{staticClass:\"grey-text\"},[_vm._v(\"Enable Online Reviews:\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allows payers to leave an online review using the URL(s) below\")])])}]\n\nexport { render, staticRenderFns }","
\n \n
\n Require secured checks:
\n \n Will require a credit card on file for checks over a set limit\n
\n \n
\n \n
\n
\n Threshold: {{settings.threshold | currency}} | \n
\n Edit\n \n
\n
\n \n \n
\n
\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_secured_check.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_secured_check.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./require_secured_check.vue?vue&type=template&id=fa694432&\"\nimport script from \"./require_secured_check.vue?vue&type=script&lang=js&\"\nexport * from \"./require_secured_check.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.active),expression:\"settings.active\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.active)?_vm._i(_vm.settings.active,null)>-1:(_vm.settings.active)},on:{\"change\":[function($event){var $$a=_vm.settings.active,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"active\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"active\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"active\", $$c)}},_vm.update]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"grey-text mt-10\"},[_vm._v(\"\\n Threshold: \"+_vm._s(_vm._f(\"currency\")(_vm.settings.threshold))+\" | \\n \"),_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.showForm=!_vm.showForm}}},[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\\n \")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.threshold),expression:\"settings.threshold\"}],attrs:{\"step\":\"0.01\",\"type\":\"number\",\"pattern\":\"\\\\d*\"},domProps:{\"value\":(_vm.settings.threshold)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"threshold\", $event.target.value)}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.update}},[_vm._v(\"Update\")])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Require secured checks:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Will require a credit card on file for checks over a set limit\")])])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n \n Transaction history limit for sub-accounts:
\n \n
\n\n \n {{settings.days}} day(s) |
Edit\n
\n\n \n \n \n
\n \n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./subacc_history_limit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./subacc_history_limit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./subacc_history_limit.vue?vue&type=template&id=0f3c3ba8&\"\nimport script from \"./subacc_history_limit.vue?vue&type=script&lang=js&\"\nexport * from \"./subacc_history_limit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"mt-25 grey-text\"},[_vm._v(\"\\n \"+_vm._s(_vm.settings.days)+\" day(s) | \"),_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.showForm = !_vm.showForm}}},[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}],staticClass:\"col s6 m2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.days),expression:\"settings.days\"}],attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.settings.days)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"days\", $event.target.value)}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.update}},[_vm._v(\"Update\")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Transaction history limit for sub-accounts:\"),_c('br')])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./auto_reload.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./auto_reload.vue?vue&type=script&lang=js&\"","
\n \n \n
\n
Auto reload\n
\n ${{actualAmount}} when balance is below ${{actualThreshold}} | Edit\n \n\n \n
\n \n
\n
\n
\n \n
\n
\n
Edit Auto reload\n\n
\n \n \n
\n\n
\n \n \n
\n\n
Save\n \n
\n \n Saving ...\n \n\n
\n
\n
\n
\n
\n\n \n \n Auto reload settings successfully saved!\n \n \n\n\n","import { render, staticRenderFns } from \"./auto_reload.vue?vue&type=template&id=50b5e2a0&\"\nimport script from \"./auto_reload.vue?vue&type=script&lang=js&\"\nexport * from \"./auto_reload.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('b',[_vm._v(\"Auto reload\")]),_c('br'),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualActive),expression:\"actualActive\"}],staticClass:\"grey-text\"},[_vm._v(\"\\n $\"+_vm._s(_vm.actualAmount)+\" when balance is below $\"+_vm._s(_vm.actualThreshold)+\" | \"),_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = true; _vm.isSuccess=false}}},[_vm._v(\"Edit\")])]),_vm._v(\" \"),_c('div',{staticClass:\"switch right\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualActive),expression:\"actualActive\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.actualActive)?_vm._i(_vm.actualActive,null)>-1:(_vm.actualActive)},on:{\"change\":[function($event){var $$a=_vm.actualActive,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.actualActive=$$a.concat([$$v]))}else{$$i>-1&&(_vm.actualActive=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.actualActive=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m6\"},[_c('div',{staticClass:\"card-panel\"},[_c('b',[_vm._v(\"Edit Auto reload\")]),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"input-field mt-25\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualAmount),expression:\"actualAmount\"}],attrs:{\"id\":\"amount-select\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.actualAmount=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"$5.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"$10.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"50\"}},[_vm._v(\"$50.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"100\"}},[_vm._v(\"$100.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"250\"}},[_vm._v(\"$250.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"500\"}},[_vm._v(\"$500.00\")])]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"amount-select\"}},[_vm._v(\"Amount\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-field mt-25\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualThreshold),expression:\"actualThreshold\"}],attrs:{\"id\":\"threshold-select\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.actualThreshold=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"$10.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"20\"}},[_vm._v(\"$20.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"30\"}},[_vm._v(\"$30.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"50\"}},[_vm._v(\"$50.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"100\"}},[_vm._v(\"$100.00\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"250\"}},[_vm._v(\"$250.00\")])]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"threshold-select\"}},[_vm._v(\"When balance is below\")])]),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isSaving),expression:\"!isSaving\"}],staticClass:\"btn\",on:{\"click\":_vm.saveSettings}},[_vm._v(\"Save\")]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isSaving),expression:\"isSaving\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Saving ...\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"right\"},[_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isSaving),expression:\"!isSaving\"}],staticClass:\"pointer\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = false}}},[_vm._v(\"\\n Close\\n \")])]),_vm._v(\" \"),_c('br')],1)])]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isSuccess),expression:\"isSuccess\"}],staticClass:\"green-text\"},[_c('i',{staticClass:\"fas fa-check\"}),_vm._v(\" \\n Auto reload settings successfully saved!\\n \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n\n
\n\n
\n \n Activate remote signature capture:
\n \n
\n Allows cardholders to sign on their own phone via SMS\n
\n
\n \n \n \n
\n \n
\n \n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_switch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_switch.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tip_switch.vue?vue&type=template&id=c5f078fe&\"\nimport script from \"./tip_switch.vue?vue&type=script&lang=js&\"\nexport * from \"./tip_switch.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showTipsSwitch)?_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.showTips),expression:\"settings.showTips\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.showTips)?_vm._i(_vm.settings.showTips,null)>-1:(_vm.settings.showTips)},on:{\"click\":_vm.switchTip,\"change\":function($event){var $$a=_vm.settings.showTips,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"showTips\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"showTips\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"showTips\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]):_vm._e(),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.$apollo.loading && _vm.settings.showTips && _vm.isMasterAccount),expression:\"!$apollo.loading && settings.showTips && isMasterAccount\"}],staticClass:\"mt-25\"},[_c('tip-values',{attrs:{\"gid\":_vm.gid}})],1),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.$apollo.loading),expression:\"!$apollo.loading\"}],staticClass:\"mt-25\"},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"switch mt-5\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowSmsSignaturePad),expression:\"settings.allowSmsSignaturePad\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.allowSmsSignaturePad)?_vm._i(_vm.settings.allowSmsSignaturePad,null)>-1:(_vm.settings.allowSmsSignaturePad)},on:{\"click\":_vm.switchSms,\"change\":function($event){var $$a=_vm.settings.allowSmsSignaturePad,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowSmsSignaturePad\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowSmsSignaturePad\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowSmsSignaturePad\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),(_vm.settings.allowSmsSignaturePad)?_vm._t(\"default\"):_vm._e()],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Activate tips:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow payers to add tips\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Activate remote signature capture:\"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-5\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allows cardholders to sign on their own phone via SMS\")])])])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_per_sub.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_per_sub.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tip_per_sub.vue?vue&type=template&id=15f75440&\"\nimport script from \"./tip_per_sub.vue?vue&type=script&lang=js&\"\nexport * from \"./tip_per_sub.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Group\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowTipsPerSubAccount),expression:\"settings.allowTipsPerSubAccount\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.allowTipsPerSubAccount)?_vm._i(_vm.settings.allowTipsPerSubAccount,null)>-1:(_vm.settings.allowTipsPerSubAccount)},on:{\"click\":_vm.switchTip,\"change\":function($event){var $$a=_vm.settings.allowTipsPerSubAccount,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowTipsPerSubAccount\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowTipsPerSubAccount\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowTipsPerSubAccount\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Individual\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Activate individual per sub-account tips settings:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allows individual level sub-account tips settings\")])])}]\n\nexport { render, staticRenderFns }","
\n \n
\n Tip values:\n
\n \n {{settings.tip1 | currency}}\n {{settings.tip2 | currency}}\n {{settings.tip3 | currency}}\n \n \n {{settings.tip1}}%\n {{settings.tip2}}%\n {{settings.tip3}}%\n \n \n |
Edit\n
\n
\n\n
\n \n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_values.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tip_values.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tip_values.vue?vue&type=template&id=4a97a2d0&scoped=true&\"\nimport script from \"./tip_values.vue?vue&type=script&lang=js&\"\nexport * from \"./tip_values.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tip_values.vue?vue&type=style&index=0&id=4a97a2d0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4a97a2d0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"grey-text\"},[_vm._v(\"\\n Tip values:\\n \"),_c('span',{staticClass:\"bold-font\"},[(_vm.settings.tipsByAmount)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.settings.tip1))+\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.settings.tip2))+\"\\n \"+_vm._s(_vm._f(\"currency\")(_vm.settings.tip3))+\"\\n \")]):_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.settings.tip1)+\"%\\n \"+_vm._s(_vm.settings.tip2)+\"%\\n \"+_vm._s(_vm.settings.tip3)+\"%\\n \")])]),_vm._v(\" \\n | \"),_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.editMode = !_vm.editMode}}},[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.editMode),expression:\"editMode\"}],staticClass:\"rows\"},[_c('div',{staticClass:\"col s12 mt-10\"},[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Percentage\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.tipsByAmount),expression:\"settings.tipsByAmount\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.tipsByAmount)?_vm._i(_vm.settings.tipsByAmount,null)>-1:(_vm.settings.tipsByAmount)},on:{\"change\":function($event){var $$a=_vm.settings.tipsByAmount,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"tipsByAmount\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"tipsByAmount\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"tipsByAmount\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Fixed amount\\n \")])])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-25\"},[_c('div',{staticClass:\"col s4\"},[_c('label',[_vm._v(\"Tip1\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.tip1),expression:\"settings.tip1\"}],attrs:{\"name\":\"tip1\",\"type\":\"number\",\"disabled\":!_vm.editMode},domProps:{\"value\":(_vm.settings.tip1)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"tip1\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s4\"},[_c('label',[_vm._v(\"Tip2\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.tip2),expression:\"settings.tip2\"}],attrs:{\"name\":\"tip2\",\"type\":\"number\",\"disabled\":!_vm.editMode},domProps:{\"value\":(_vm.settings.tip2)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"tip2\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col s4\"},[_c('label',[_vm._v(\"Tip3\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.tip3),expression:\"settings.tip3\"}],attrs:{\"name\":\"tip3\",\"type\":\"number\",\"disabled\":!_vm.editMode},domProps:{\"value\":(_vm.settings.tip3)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"tip3\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-10\"},[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.save}},[_vm._v(\"Save\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_manage_subaccounts.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_manage_subaccounts.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./allow_manage_subaccounts.vue?vue&type=template&id=318af393&\"\nimport script from \"./allow_manage_subaccounts.vue?vue&type=script&lang=js&\"\nexport * from \"./allow_manage_subaccounts.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.allowManageSubaccounts),expression:\"allowManageSubaccounts\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.allowManageSubaccounts)?_vm._i(_vm.allowManageSubaccounts,null)>-1:(_vm.allowManageSubaccounts)},on:{\"change\":[function($event){var $$a=_vm.allowManageSubaccounts,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.allowManageSubaccounts=$$a.concat([$$v]))}else{$$i>-1&&(_vm.allowManageSubaccounts=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.allowManageSubaccounts=$$c}},_vm.switchTip]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Allow manage sub-accounts:\"),_c('br')])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./generic_flow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./generic_flow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./generic_flow.vue?vue&type=template&id=26253aa4&\"\nimport script from \"./generic_flow.vue?vue&type=script&lang=js&\"\nexport * from \"./generic_flow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.genericFlow),expression:\"settings.genericFlow\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.genericFlow)?_vm._i(_vm.settings.genericFlow,null)>-1:(_vm.settings.genericFlow)},on:{\"click\":_vm.switchIt,\"change\":function($event){var $$a=_vm.settings.genericFlow,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"genericFlow\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"genericFlow\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"genericFlow\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Generic flow:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"\\n Enables custom tokenisation flow (required for Payrix)\\n \")])])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n \n \n \n \n \n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./gateway.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./gateway.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./gateway.vue?vue&type=template&id=5a2bab6c&\"\nimport script from \"./gateway.vue?vue&type=script&lang=js&\"\nexport * from \"./gateway.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_c('label',[_vm._v(\"Gateway:\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.gateway),expression:\"settings.gateway\"}],staticClass:\"browser-default\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.settings, \"gateway\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},_vm.switchIt]}},[_c('option'),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"stripe\"}},[_vm._v(\"Stripe\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"payrix\"}},[_vm._v(\"Payrix\")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n
\n \n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_invoice_field_switch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_invoice_field_switch.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./require_invoice_field_switch.vue?vue&type=template&id=625cd30c&\"\nimport script from \"./require_invoice_field_switch.vue?vue&type=script&lang=js&\"\nexport * from \"./require_invoice_field_switch.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.requireInvoiceField),expression:\"settings.requireInvoiceField\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.requireInvoiceField)?_vm._i(_vm.settings.requireInvoiceField,null)>-1:(_vm.settings.requireInvoiceField)},on:{\"click\":_vm.switchIt,\"change\":function($event){var $$a=_vm.settings.requireInvoiceField,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"requireInvoiceField\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"requireInvoiceField\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"requireInvoiceField\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Require invoice number on payment screen:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Makes invoice number required for card and check transactions\")])])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_invoice_confirmation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./require_invoice_confirmation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./require_invoice_confirmation.vue?vue&type=template&id=22f2a9be&\"\nimport script from \"./require_invoice_confirmation.vue?vue&type=script&lang=js&\"\nexport * from \"./require_invoice_confirmation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.requireInvoiceConfirmation),expression:\"settings.requireInvoiceConfirmation\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.requireInvoiceConfirmation)?_vm._i(_vm.settings.requireInvoiceConfirmation,null)>-1:(_vm.settings.requireInvoiceConfirmation)},on:{\"click\":_vm.switchIt,\"change\":function($event){var $$a=_vm.settings.requireInvoiceConfirmation,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"requireInvoiceConfirmation\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"requireInvoiceConfirmation\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"requireInvoiceConfirmation\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Require invoice confirmation:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"\\n Enables double entry for the invoice number\\n \")])])}]\n\nexport { render, staticRenderFns }","\n\n
\n \n
\n
\n Sub-accounts:
\n \n Allow refunds\n
\n
\n \n
\n\n
\n Allow voids\n
\n
\n \n
\n
\n\n
\n
\n Accountants & Supervisors:
\n \n Allow refunds\n
\n
\n \n
\n\n
\n Allow voids\n
\n
\n \n
\n
\n
\n * Test voids under $3.00 are allowed\n
\n
\n\n","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./refund_void_switch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./refund_void_switch.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./refund_void_switch.vue?vue&type=template&id=66084060&\"\nimport script from \"./refund_void_switch.vue?vue&type=script&lang=js&\"\nexport * from \"./refund_void_switch.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col sm-6\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowRefundsForSubAccounts),expression:\"settings.allowRefundsForSubAccounts\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.allowRefundsForSubAccounts)?_vm._i(_vm.settings.allowRefundsForSubAccounts,null)>-1:(_vm.settings.allowRefundsForSubAccounts)},on:{\"click\":function($event){return _vm.switchSettings({allowRefundsForSubAccounts: !_vm.settings.allowRefundsForSubAccounts})},\"change\":function($event){var $$a=_vm.settings.allowRefundsForSubAccounts,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowRefundsForSubAccounts\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowRefundsForSubAccounts\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowRefundsForSubAccounts\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowVoidsForSubAccounts),expression:\"settings.allowVoidsForSubAccounts\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.allowVoidsForSubAccounts)?_vm._i(_vm.settings.allowVoidsForSubAccounts,null)>-1:(_vm.settings.allowVoidsForSubAccounts)},on:{\"click\":function($event){return _vm.switchSettings({allowVoidsForSubAccounts: !_vm.settings.allowVoidsForSubAccounts})},\"change\":function($event){var $$a=_vm.settings.allowVoidsForSubAccounts,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowVoidsForSubAccounts\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowVoidsForSubAccounts\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowVoidsForSubAccounts\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col sm-6\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowRefundsForAccountants),expression:\"settings.allowRefundsForAccountants\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.allowRefundsForAccountants)?_vm._i(_vm.settings.allowRefundsForAccountants,null)>-1:(_vm.settings.allowRefundsForAccountants)},on:{\"click\":function($event){return _vm.switchSettings({allowRefundsForAccountants: !_vm.settings.allowRefundsForAccountants})},\"change\":function($event){var $$a=_vm.settings.allowRefundsForAccountants,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowRefundsForAccountants\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowRefundsForAccountants\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowRefundsForAccountants\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.allowVoidsForAccountants),expression:\"settings.allowVoidsForAccountants\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.$apollo.loading},domProps:{\"checked\":Array.isArray(_vm.settings.allowVoidsForAccountants)?_vm._i(_vm.settings.allowVoidsForAccountants,null)>-1:(_vm.settings.allowVoidsForAccountants)},on:{\"click\":function($event){return _vm.switchSettings({allowVoidsForAccountants: !_vm.settings.allowVoidsForAccountants})},\"change\":function($event){var $$a=_vm.settings.allowVoidsForAccountants,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"allowVoidsForAccountants\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"allowVoidsForAccountants\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"allowVoidsForAccountants\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])]),_vm._v(\" \"),_vm._m(4)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Sub-accounts:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow refunds\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines mt-5\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow voids\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Accountants & Supervisors:\"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow refunds\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines mt-5\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow voids\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col s12 mt-10\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"* Test voids under $3.00 are allowed\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_email_receipts.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_email_receipts.vue?vue&type=script&lang=js&\"","\n\n
\n \n
\n Allow receive emails for accountants group:
\n \n
\n In addition for supervisor group user will receive all emails for the accountants\n
\n
\n \n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./allow_email_receipts.vue?vue&type=template&id=cba8f79e&\"\nimport script from \"./allow_email_receipts.vue?vue&type=script&lang=js&\"\nexport * from \"./allow_email_receipts.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Deny\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Allow\\n \")])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines\"},[_vm._v(\"\\n Allow receive emails for accountants group:\"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"mt-5\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"In addition for supervisor group user will receive all emails for the accountants\")])])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_search_all_transactions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./allow_search_all_transactions.vue?vue&type=script&lang=js&\"","\n\n
\n \n
\n No day limit search\n\n
\n Allow sub-account to search its own transactions without day limit\n
\n
\n \n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./allow_search_all_transactions.vue?vue&type=template&id=76ef9902&\"\nimport script from \"./allow_search_all_transactions.vue?vue&type=script&lang=js&\"\nexport * from \"./allow_search_all_transactions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Deny\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Allow\\n \")])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n No day limit search\\n\\n \"),_c('div',{staticClass:\"mt-5\"},[_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Allow sub-account to search its own transactions without day limit\")])])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_signature_pad.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_signature_pad.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./show_signature_pad.vue?vue&type=template&id=e8673e5c&\"\nimport script from \"./show_signature_pad.vue?vue&type=script&lang=js&\"\nexport * from \"./show_signature_pad.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_by_bank_settings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pay_by_bank_settings.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./pay_by_bank_settings.vue?vue&type=template&id=8b671834&\"\nimport script from \"./pay_by_bank_settings.vue?vue&type=script&lang=js&\"\nexport * from \"./pay_by_bank_settings.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./terminal.vue?vue&type=template&id=e7818b4e&\"\nimport script from \"./terminal.vue?vue&type=script&lang=js&\"\nexport * from \"./terminal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n NFC\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Non-NFC\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal_enabled.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./terminal_enabled.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n\n
\n
\n NFC Terminal:
\n Creates reusable card (old flow)\n
\n
\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./terminal_enabled.vue?vue&type=template&id=c7fa8436&\"\nimport script from \"./terminal_enabled.vue?vue&type=script&lang=js&\"\nexport * from \"./terminal_enabled.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Disabled\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n Enabled\\n \")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.state),expression:\"state\"}]},[_vm._m(0),_vm._v(\" \"),_c('terminal-settings',{attrs:{\"user-id\":_vm.userId,\"active\":_vm.nfcActive}})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"very-close-lines mt-25\"},[_vm._v(\"\\n NFC Terminal: \"),_c('br'),_vm._v(\" \"),_c('small',{staticClass:\"grey-text\"},[_vm._v(\"Creates reusable card (old flow)\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_switch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw_switch.vue?vue&type=script&lang=js&\"","\n\n
\n \n Allow Daily Batch Withdraw balance:
\n \n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./withdraw_switch.vue?vue&type=template&id=fb3fa3dc&\"\nimport script from \"./withdraw_switch.vue?vue&type=script&lang=js&\"\nexport * from \"./withdraw_switch.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n Allow Daily Batch Withdraw balance:\"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./loyalty.vue?vue&type=script&lang=js&\"","
\n \n \n
\n
Loyalty\n\n \n
\n \n
\n\n
\n Total stamps: {{actualTotalStamps}}
reward discount percent: {{actualRewardPercent}}%
min amount: ${{minAmount}}
\n
Edit\n
\n\n \n
\n
\n
\n
\n \n \n
\n
\n
\n
\n \n\n \n
\n
\n
\n
\n \n\n \n
\n
\n
\n
{{ errors.first('percent') }}
\n
{{ errors.first('min-amount') }}
\n\n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./loyalty.vue?vue&type=template&id=35d31fec&\"\nimport script from \"./loyalty.vue?vue&type=script&lang=js&\"\nexport * from \"./loyalty.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('b',[_vm._v(\"Loyalty\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch right\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualActive),expression:\"actualActive\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.actualActive)?_vm._i(_vm.actualActive,null)>-1:(_vm.actualActive)},on:{\"change\":[function($event){var $$a=_vm.actualActive,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.actualActive=$$a.concat([$$v]))}else{$$i>-1&&(_vm.actualActive=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.actualActive=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualActive),expression:\"actualActive\"}],staticClass:\"grey-text mt-25\"},[_vm._v(\"\\n Total stamps: \"+_vm._s(_vm.actualTotalStamps)),_c('br'),_vm._v(\" reward discount percent: \"+_vm._s(_vm.actualRewardPercent)+\"%\"),_c('br'),_vm._v(\" min amount: $\"+_vm._s(_vm.minAmount)),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"right\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = true;}}},[_vm._v(\"Edit\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualActive && _vm.showForm),expression:\"actualActive && showForm\"}],staticClass:\"mt-25\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m4\"},[_c('div',{staticClass:\"input-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualTotalStamps),expression:\"actualTotalStamps\"}],attrs:{\"id\":\"stamps-select\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.actualTotalStamps=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"10\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"15\"}},[_vm._v(\"15\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"20\"}},[_vm._v(\"20\")])]),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"stamps-select\"}},[_vm._v(\"Total Stamps\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m4\"},[_c('div',{staticClass:\"input-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.minAmount),expression:\"minAmount\"},{name:\"validate\",rawName:\"v-validate\",value:('required|decimal|min_value:1'),expression:\"'required|decimal|min_value:1'\"}],attrs:{\"type\":\"number\",\"id\":\"min-amount\",\"name\":\"min-amount\"},domProps:{\"value\":(_vm.minAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.minAmount=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"min-amount\"}},[_vm._v(\"Min order amount\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col s12 m4\"},[_c('div',{staticClass:\"input-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualRewardPercent),expression:\"actualRewardPercent\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric|min_value:1|max_value:99'),expression:\"'required|numeric|min_value:1|max_value:99'\"}],attrs:{\"type\":\"number\",\"id\":\"percent-input\",\"name\":\"percent\"},domProps:{\"value\":(_vm.actualRewardPercent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.actualRewardPercent=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"percent-input\"}},[_vm._v(\"Reward percent, %\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('percent')))]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('min-amount')))]),_vm._v(\" \"),_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.errors.any()},on:{\"click\":_vm.saveSettings}},[_vm._v(\"Save\")])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tax.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./tax.vue?vue&type=script&lang=js&\"","
\n \n \n
\n
Tax\n\n \n
\n \n
\n\n
\n Percent: {{actualPercent}} |
Edit\n
\n\n \n
\n
\n
\n
\n \n\n \n
\n
\n
\n
{{ errors.first('percent') }}
\n
{{ errors.first('min-amount') }}
\n\n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./tax.vue?vue&type=template&id=38f49a44&\"\nimport script from \"./tax.vue?vue&type=script&lang=js&\"\nexport * from \"./tax.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12\"},[_c('b',[_vm._v(\"Tax\")]),_vm._v(\" \"),_c('div',{staticClass:\"switch right\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualActive),expression:\"actualActive\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.actualActive)?_vm._i(_vm.actualActive,null)>-1:(_vm.actualActive)},on:{\"change\":[function($event){var $$a=_vm.actualActive,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.actualActive=$$a.concat([$$v]))}else{$$i>-1&&(_vm.actualActive=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.actualActive=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualActive),expression:\"actualActive\"}],staticClass:\"grey-text mt-25\"},[_vm._v(\"\\n Percent: \"+_vm._s(_vm.actualPercent)+\" | \"),_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = true;}}},[_vm._v(\"Edit\")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualActive && _vm.showForm),expression:\"actualActive && showForm\"}],staticClass:\"mt-25\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col s12 m4\"},[_c('div',{staticClass:\"input-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.actualPercent),expression:\"actualPercent\"},{name:\"validate\",rawName:\"v-validate\",value:('required|numeric|min_value:1|max_value:99'),expression:\"'required|numeric|min_value:1|max_value:99'\"}],attrs:{\"type\":\"number\",\"id\":\"percent-input\",\"name\":\"percent\"},domProps:{\"value\":(_vm.actualPercent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.actualPercent=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"percent-input\"}},[_vm._v(\"Percent, %\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('percent')))]),_vm._v(\" \"),_c('div',{staticClass:\"red-text\"},[_vm._v(_vm._s(_vm.errors.first('min-amount')))]),_vm._v(\" \"),_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.errors.any()},on:{\"click\":_vm.saveSettings}},[_vm._v(\"Save\")])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_at_dash.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./show_at_dash.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./show_at_dash.vue?vue&type=template&id=cf8110ce&\"\nimport script from \"./show_at_dash.vue?vue&type=script&lang=js&\"\nexport * from \"./show_at_dash.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./radar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./radar.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./radar.vue?vue&type=template&id=52cb8d2a&\"\nimport script from \"./radar.vue?vue&type=script&lang=js&\"\nexport * from \"./radar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_fee.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./payment_fee.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n (\n Fee: {{settings.percent}}% + {{settings.fixedCents }}c + \n Tips fee: {{ settings.tipsFeeCents }}c + A/G Pay fee: {{ settings.appleGooglePayPercent }}%\n | Surcharge: {{settings.surcharge}}\n )\n \n \n Edit\n \n\n \n \n \n \n \n\n \n \n\n","import { render, staticRenderFns } from \"./payment_fee.vue?vue&type=template&id=29f8d151&\"\nimport script from \"./payment_fee.vue?vue&type=script&lang=js&\"\nexport * from \"./payment_fee.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('span',{staticClass:\"grey-text\"},[_vm._v(\"\\n (\\n Fee: \"+_vm._s(_vm.settings.percent)+\"% + \"+_vm._s(_vm.settings.fixedCents)+\"c + \\n Tips fee: \"+_vm._s(_vm.settings.tipsFeeCents)+\"c + A/G Pay fee: \"+_vm._s(_vm.settings.appleGooglePayPercent)+\"%\\n | Surcharge: \"+_vm._s(_vm.settings.surcharge)+\"\\n )\\n \"),_c('a',{staticClass:\"pointer\",on:{\"click\":function($event){_vm.showForm = !_vm.showForm}}},[(!_vm.showForm)?_c('span',[_c('i',{staticClass:\"far fa-edit\"}),_vm._v(\" Edit\\n \")]):_c('span',[_c('i',{staticClass:\"fas fa-times\"})])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}]},[_c('label',[_vm._v(\"Percent\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.percent),expression:\"settings.percent\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.settings.percent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"percent\", $event.target.value)}}}),_vm._v(\" \"),_c('label',[_vm._v(\"Fixed Cents\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.fixedCents),expression:\"settings.fixedCents\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.settings.fixedCents)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"fixedCents\", $event.target.value)}}}),_vm._v(\" \"),_c('label',[_vm._v(\"Tips fee Cents\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.tipsFeeCents),expression:\"settings.tipsFeeCents\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.settings.tipsFeeCents)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"tipsFeeCents\", $event.target.value)}}}),_vm._v(\" \"),_c('label',[_vm._v(\"A/G Pay fee\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.appleGooglePayPercent),expression:\"settings.appleGooglePayPercent\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.settings.appleGooglePayPercent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.settings, \"appleGooglePayPercent\", $event.target.value)}}}),_vm._v(\" \"),_vm._v(\"\\n Surcharge:\\n \"),_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.settings.surcharge),expression:\"settings.surcharge\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.settings.surcharge)?_vm._i(_vm.settings.surcharge,null)>-1:(_vm.settings.surcharge)},on:{\"change\":function($event){var $$a=_vm.settings.surcharge,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.settings, \"surcharge\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.settings, \"surcharge\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.settings, \"surcharge\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])]),_vm._v(\" \"),_c('button',{staticClass:\"btn mt-10\",on:{\"click\":_vm.update}},[_vm._v(\"Update\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./blind_transaction_settings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./blind_transaction_settings.vue?vue&type=script&lang=js&\"","\n\n
\n \n \n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./blind_transaction_settings.vue?vue&type=template&id=b1a0b4ac&\"\nimport script from \"./blind_transaction_settings.vue?vue&type=script&lang=js&\"\nexport * from \"./blind_transaction_settings.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"switch\"},[_c('label',[_vm._v(\"\\n Off\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.state),expression:\"state\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.state)?_vm._i(_vm.state,null)>-1:(_vm.state)},on:{\"change\":[function($event){var $$a=_vm.state,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.state=$$a.concat([$$v]))}else{$$i>-1&&(_vm.state=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.state=$$c}},_vm.switched]}}),_vm._v(\" \"),_c('span',{staticClass:\"lever\"}),_vm._v(\"\\n On\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./doing_business_as.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./doing_business_as.vue?vue&type=script&lang=js&\"","
\n \n Business name:
{{businessName}}\n
Doing business as: {{dba}} | \n
Edit\n
\n
\n \n
\n \n Saving ...\n \n\n\n
\n
\n\n\n","import { render, staticRenderFns } from \"./doing_business_as.vue?vue&type=template&id=04a5b5ee&\"\nimport script from \"./doing_business_as.vue?vue&type=script&lang=js&\"\nexport * from \"./doing_business_as.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n Business name: \"),_c('b',[_vm._v(_vm._s(_vm.businessName))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.dba),expression:\"dba\"}]},[_c('br'),_vm._v(\"Doing business as: \"),_c('b',[_vm._v(_vm._s(_vm.dba))])]),_vm._v(\" | \\n \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showForm),expression:\"!showForm\"}],attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = true}}},[_vm._v(\"Edit\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}]},[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isSaving),expression:\"!isSaving\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.dba),expression:\"dba\"}],domProps:{\"value\":(_vm.dba)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.dba=$event.target.value}}}),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isSaving),expression:\"!isSaving\"}],staticClass:\"btn\",on:{\"click\":_vm.save}},[_vm._v(\"Save\")]),_vm._v(\" \"),_c('a',{staticClass:\"right\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.showForm = false}}},[_vm._v(\"Close\")])]),_vm._v(\" \"),_c('center',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isSaving),expression:\"isSaving\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Saving ...\\n \")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./emoji.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./emoji.vue?vue&type=script&lang=js&\"","
\n \n\n\n\n","import { render, staticRenderFns } from \"./emoji.vue?vue&type=template&id=bfbffa94&\"\nimport script from \"./emoji.vue?vue&type=script&lang=js&\"\nexport * from \"./emoji.vue?vue&type=script&lang=js&\"\nimport style0 from \"./emoji.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{domProps:{\"innerHTML\":_vm._s(_vm.parsedText)}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress_bar_generic.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress_bar_generic.vue?vue&type=script&lang=js&\"","
\n \n
\n \n
\n \n
\n Step {{st.number}}
{{st.label}}\n
\n \n
\n
\n\n\n\n\n","import { render, staticRenderFns } from \"./progress_bar_generic.vue?vue&type=template&id=6d8b6e6a&scoped=true&\"\nimport script from \"./progress_bar_generic.vue?vue&type=script&lang=js&\"\nexport * from \"./progress_bar_generic.vue?vue&type=script&lang=js&\"\nimport style0 from \"./progress_bar_generic.vue?vue&type=style&index=0&id=6d8b6e6a&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6d8b6e6a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.step)?_c('div',[_c('div',{staticClass:\"progress-bar\"},[_c('div',{staticClass:\"progress-track\"}),_vm._v(\" \"),_vm._l((_vm.steps),function(st){return _c('div',{ref:'step'+st.number,refInFor:true,staticClass:\"progress-step\"},[_c('b',[_vm._v(\"Step \"+_vm._s(st.number))]),_c('br'),_vm._v(_vm._s(st.label)+\"\\n \")])})],2)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pinpad_proxy.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./pinpad_proxy.vue?vue&type=script&lang=js&\"","
\n \n
\n \n Loading Pin pad ...\n \n \n \n\n\n","import { render, staticRenderFns } from \"./pinpad_proxy.vue?vue&type=template&id=0c04ecf4&\"\nimport script from \"./pinpad_proxy.vue?vue&type=script&lang=js&\"\nexport * from \"./pinpad_proxy.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('center',{staticClass:\"grey-text mt-25\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Loading Pin pad ...\\n \")]),_vm._v(\" \"),_c('form',{ref:\"form\",attrs:{\"name\":\"myform\",\"action\":_vm.pinPadPath,\"method\":\"POST\"}},_vm._l((_vm.entries),function(entry){return _c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(entry[1]),expression:\"entry[1]\"}],attrs:{\"type\":\"hidden\",\"name\":entry[0]},domProps:{\"value\":(entry[1])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(entry, 1, $event.target.value)}}})}),0)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./funding_source_picker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./funding_source_picker.vue?vue&type=script&lang=js&\"","
\n \n
\n
\n \n
\n
\n\n\n","import { render, staticRenderFns } from \"./funding_source_picker.vue?vue&type=template&id=3bbeb1f1&\"\nimport script from \"./funding_source_picker.vue?vue&type=script&lang=js&\"\nexport * from \"./funding_source_picker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',[_vm._v(\"Select Funding Source\")]),_vm._v(\" \"),(_vm.fundingSources)?_c('div',{staticClass:\"input-field col s12\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selected),expression:\"selected\"}],staticClass:\"browser-default\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selected=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changed]}},_vm._l((_vm.fundingSources),function(fundingSource){return _c('option',{domProps:{\"value\":{type: fundingSource.type, id: fundingSource.id, subtype: fundingSource.subtype}}},[_vm._v(\"\\n \"+_vm._s(fundingSource.name)+\" \"),(fundingSource.fee)?_c('span',[_vm._v(\" (Fee \"+_vm._s(fundingSource.fee)+\")\")]):_vm._e()])}),0)]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cards.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./cards.vue?vue&type=script&lang=js&\"","
\n \n
\n \n\n \n \n Processing ...\n
\n
\n \n\n
\n
\n\n\n","import mod from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./base.vue?vue&type=script&lang=js&\"","
\n \n
Order total: ${{totalAmount}}
\n
\n
\n By Credit Card: \n
${{cardPayment}}
\n
\n\n \n
\n
\n By EBT/SNAP Card:\n
${{ebtPayment}}
\n\n \n\n \n \n\n \n
\n\n\n","import { render, staticRenderFns } from \"./cards.vue?vue&type=template&id=744388e8&\"\nimport script from \"./cards.vue?vue&type=script&lang=js&\"\nexport * from \"./cards.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showSuccess && !_vm.paid),expression:\"!showSuccess && !paid\"}]},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedCard),expression:\"selectedCard\"},{name:\"show\",rawName:\"v-show\",value:(!_vm.processing),expression:\"!processing\"}],staticClass:\"browser-default\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedCard=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.cards.data),function(card){return _c('option',{domProps:{\"value\":card.id}},[_vm._v(\"\\n \"+_vm._s(card.attributes.brand)+\" - \"+_vm._s(card.attributes.last4)+\"\\n \")])}),0),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processing),expression:\"processing\"}],staticClass:\"grey-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin grey-text\"}),_vm._v(\" \\n Processing ...\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn-large mt-25\",attrs:{\"disabled\":_vm.processing},on:{\"click\":_vm.pay}},[_vm._v(\"Pay\")]),_c('br')]),_vm._v(\" \"),_c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showSuccess || _vm.paid),expression:\"showSuccess || paid\"}],staticClass:\"emerald\"},[_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"emerald\"},[_c('i',{staticClass:\"far fa-check-circle\"}),_vm._v(\"\\n Paid\\n \")])}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./base.vue?vue&type=template&id=574f72f4&\"\nimport script from \"./base.vue?vue&type=script&lang=js&\"\nexport * from \"./base.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(\"Order total: $\"+_vm._s(_vm.totalAmount))]),_vm._v(\" \"),(_vm.processCard)?_c('div',{staticClass:\"card-panel\",class:[_vm.processCardActive ? \"z-depth-5\" : \"grey-text\"]},[_c('i',{staticClass:\"far fa-credit-card\"}),_vm._v(\" \\n By Credit Card: \\n \"),_c('h3',[_c('b',[_vm._v(\"$\"+_vm._s(_vm.cardPayment))])]),_vm._v(\" \"),_c('process-by-card',{attrs:{\"cards\":_vm.cards,\"note\":_vm.orderId,\"local_order_id\":_vm.localOrderId,\"card_flow_status\":_vm.card_flow_status,\"qid\":_vm.qid,\"amount\":_vm.cardPayment},on:{\"paid\":_vm.cardPaid}})],1):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.processEbt),expression:\"processEbt\"}],staticClass:\"card-panel mt-50\",class:[_vm.processEbtCardActive ? \"z-depth-5\" : \"grey-text\"]},[_vm._v(\"\\n By EBT/SNAP Card:\\n \"),_c('h3',[_c('b',[_vm._v(\"$\"+_vm._s(_vm.ebtPayment))])]),_c('br'),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.ebtCard),expression:\"ebtCard\"},{name:\"show\",rawName:\"v-show\",value:(_vm.processEbtCardActive || !_vm.processCard),expression:\"processEbtCardActive || !processCard\"}],staticClass:\"browser-default\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.ebtCard=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.ebtCards),function(card){return _c('option',{domProps:{\"value\":card}},[_vm._v(\" \"+_vm._s(card.subtype)+\" \"+_vm._s(card.last4))])}),0),_vm._v(\" \"),(_vm.processEbtCardActive && _vm.ebtCard || !_vm.processCard)?_c('ebt-transaction-poster',{staticClass:\"mt-25\",attrs:{\"pinPadPath\":_vm.pinPadPath,\"returnUrl\":_vm.returnUrl,\"merchantQid\":_vm.qid,\"clientQid\":_vm.clientQid,\"amount\":_vm.ebtPayment,\"note\":_vm.orderId,\"redirect\":_vm.redirectUrlWithId,\"subtype\":\"snap\",\"ebtCardTokenId\":_vm.ebtCard.id}}):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./merchants.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../shared/node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../shared/node_modules/vue-loader/lib/index.js??vue-loader-options!./merchants.vue?vue&type=script&lang=js&\"","
\n \n\n\n\n\n","import { render, staticRenderFns } from \"./merchants.vue?vue&type=template&id=564f68fa&scoped=true&\"\nimport script from \"./merchants.vue?vue&type=script&lang=js&\"\nexport * from \"./merchants.vue?vue&type=script&lang=js&\"\nimport style0 from \"./merchants.vue?vue&type=style&index=0&id=564f68fa&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../shared/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"564f68fa\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{staticClass:\"btn\",attrs:{\"disabled\":_vm.reloadDisabled},on:{\"click\":_vm.loadData}},[_c('i',{staticClass:\"fas fa-sync-alt\"}),_vm._v(\" \\n Reload\\n \")]),_vm._v(\" \"),_c('vue-good-table',{staticClass:\"mt-10\",attrs:{\"columns\":_vm.columns,\"rows\":_vm.rows,\"sort-options\":{\n enabled: true,\n initialSortBy: {field: 'created_at', type: 'desc'}\n },\"pagination-options\":{\n enabled: true,\n perPage: 30,\n perPageDropdown: false\n },\"search-options\":{enabled: true}},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field == 'business_name')?_c('span',[_c('a',{attrs:{\"href\":props.row.show_path}},[_vm._v(_vm._s(props.formattedRow[props.column.field]))])]):_c('span',[_vm._v(\"\\n \"+_vm._s(props.formattedRow[props.column.field])+\"\\n \")])]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// Vue section\nimport Vue from 'vue/dist/vue.esm';\nimport VueCompositionAPI from '@vue/composition-api'\nimport TurbolinksAdapter from 'vue-turbolinks'\nimport VueResource from 'vue-resource'\nimport jsQR from \"jsqr\";\nimport VueQRCodeComponent from 'vue-qrcode-component'\nimport ActionCable from 'actioncable'\nimport VeeValidate from 'vee-validate'\nimport vueAwesomeCountdown from 'vue-awesome-countdown'\nimport VueClipboard from 'vue-clipboard2'\nimport vuetwemoji from 'vue-twemoji'\nimport Vue2Filters from 'vue2-filters'\nimport VueBarcode from 'vue-barcode'\nimport ApolloClient from 'apollo-boost'\nimport VueApollo from 'vue-apollo'\nimport ImageUploader from 'vue-image-upload-resize'\nimport * as VueGoogleMaps from 'vue2-google-maps'\nimport { PiniaVuePlugin, createPinia } from 'pinia'\nimport VueMask from 'v-mask'\n// Custom components\nimport copyToClipboard from 'components/utils/copy_to_clipboard'\nimport date from 'components/utils/date'\nimport waiter from 'components/utils/waiter'\nimport selectAccount from 'components/select_account'\nimport VueQrcodeReader from \"vue-qrcode-reader\"\nimport clientQrScanner from 'components/client_qr_scanner'\nimport profileCablePlug from 'components/profile_cable_plug'\nimport balance from 'components/balance'\nimport balanceRewards from 'components/balance_rewards'\nimport dobPicker from 'components/dob_picker'\nimport autoPrinter from 'components/auto_print'\nimport progressBar from 'components/progress_bar'\nimport merchantProgressBar from 'components/merchant_progress_bar'\nimport unverifiedProgressBar from 'components/unverified_progress_bar'\nimport notifications from 'components/notifications'\nimport payFields from 'components/pay_fields'\nimport payByCard from 'components/pay_by_card'\nimport freePaysNew from 'components/free_pays/new'\nimport freePaysNewWithPhone from 'components/free_pays/new_with_phone'\nimport freePaysNewWithEmail from 'components/free_pays/new_with_email'\nimport unverifiedFromFreePay from 'components/free_pays/unverified_from_free_pay'\nimport freeScanner from 'components/free_pays/scanner'\nimport loyaltyProgress from 'components/loyalty_progress'\nimport loyaltyReward from 'components/loyalty_reward'\nimport skipThisStepWrapper from 'components/skip_this_step_wrapper'\nimport reports from 'components/reports'\nimport withdrawBalance from 'components/withdraw_balance'\nimport withdrawRewardBalance from 'components/withdraw_reward_balance'\nimport addMoney from 'components/add_money'\nimport kba from 'components/kba'\nimport chargeGenericCard from 'components/merchant/charge_generic_card'\nimport adyenTosViewer from 'components/merchant/adyen_tos_viewer'\nimport disputesBadge from 'components/merchant/badges/disputes'\nimport checkByPhoto from 'components/merchant/check_by_photo'\nimport checkByDoublePhoto from 'components/merchant/check_by_double_photo'\nimport newPaymentEvent from 'components/merchant/new_payment_event'\nimport subAccDownloadApp from 'components/merchant/sub_acc_download_app'\nimport chargeCardOnFile from 'components/merchant/charge_card_on_file'\nimport todayStat from 'components/merchant/today_stat'\nimport homeStat from 'components/merchant/home_stat'\nimport showCheckImages from 'components/merchant/show_check_images'\nimport showSignature from 'components/merchant/show_signature'\nimport showBadCheckImages from 'components/merchant/show_bad_check_images'\nimport manualCharge from 'components/merchant/manual_charge/manual_charge'\nimport directCharge from 'components/merchant/manual_charge/direct_charge'\nimport genericDirectCharge from 'components/merchant/generic_cards/direct_charge'\nimport genericRemoteCharge from 'components/merchant/generic_cards/remote_charge'\nimport terminalCharge from 'components/merchant/manual_charge/terminal_charge'\nimport requestChangeAmount from 'components/merchant/request_change_amount'\nimport resendSms from 'components/merchant/manual_charge/resend_sms'\nimport overrideButton from 'components/merchant/manual_charge/override_button'\nimport sendReceiptButton from 'components/merchant/manual_charge/send_receipt_button'\nimport cancelPendingTransaction from 'components/merchant/cancel_pending_transaction'\nimport reverseButton from 'components/merchant/reverse_button'\nimport voidCheckButton from 'components/merchant/void_check_button'\nimport sunAccountPicker from 'components/merchant/sub_account_picker'\nimport addItems from 'components/merchant/add_items'\nimport paypalOnboard from 'components/merchant/paypal/onboard'\nimport createCardOnFile from 'components/merchant/create_card_on_file'\nimport banner from 'components/client/banner'\nimport sendCheck from 'components/client/send_check'\nimport checkByImage from 'components/client/check_by_image'\nimport feedbackHub from 'components/client/feedback_hub'\nimport linkOrder from 'components/client/link_order/base'\nimport verifyPhone from 'components/client_unverified/verify_phone'\nimport verifyEmail from 'components/client_unverified/verify_email'\nimport setupUnverifiedProfile from 'components/client_unverified/setup_profile'\nimport setupUnverifiedProfileByButton from 'components/client_unverified/setup_profile_by_button'\nimport unverifiedProfileSwitchToIosApp from 'components/switch_to_ios_app'\nimport myQrs from 'components/client/my_qrs'\nimport adminMasterReportDownload from 'components/admin/master_report_download'\nimport adminRoutingInput from 'components/admin/routing_input'\nimport adminCheckImageUploader from 'components/admin/check_image_uploader'\nimport adminCheckImagePreview from 'components/admin/check_image_preview'\nimport reAssignQR from 'components/merchant/assign_qr/button'\nimport reAssignQrScanner from 'components/merchant/assign_qr/scanner'\nimport reAssignQrBase from 'components/merchant/assign_qr/base'\nimport sendPaymentLink from 'components/merchant/send_payment_link'\nimport merchantLinkOrder from 'components/merchant/link_order'\nimport merchantLinkCheckCreate from 'components/merchant/link_check/create'\nimport merchantLinkCheckChangeState from 'components/merchant/link_check/change_state'\n\nimport billSplitMain from 'components/client/bill_split/main'\nimport billSplitNew from 'components/client/bill_split/new'\nimport billSplitActive from 'components/client/bill_split/active'\nimport payBillSplit from 'components/client/bill_split/pay'\n\nimport giftCardPaymentNew from 'components/client/gift_card/new'\nimport addEbtCard from 'components/client/add_ebt_card'\nimport addCreditCard from 'components/client/add_credit_card'\nimport ebtBalance from 'components/client/ebt_balance'\nimport checkSignaturePad from 'components/client/check_signature_pad'\nimport manualPayment from 'components/client/manual_payment/manual_payment'\n\nimport deviseLinkWrapper from 'components/devise_links_wrapper'\n\nimport policyUrl from 'components/settings/policy_url'\nimport sendBillNote from 'components/settings/send_bill_note'\nimport notificationSettings from 'components/settings/notifications'\nimport feedbackHubSettings from 'components/settings/feedback_hub'\nimport requireSecuredCheck from 'components/settings/require_secured_check'\nimport subaccHistoryLimit from 'components/settings/subacc_history_limit'\nimport autoReload from 'components/settings/auto_reload'\nimport tipSwitch from 'components/settings/tip_switch'\nimport tipPerSub from 'components/settings/tip_per_sub'\nimport tipValues from 'components/settings/tip_values'\nimport allowManageSubaccounts from 'components/settings/allow_manage_subaccounts'\nimport updateGenericFlow from 'components/settings/generic_flow'\nimport updateGatewaySwitch from 'components/settings/gateway'\nimport updateRequireInvoiceField from 'components/settings/require_invoice_field_switch'\nimport updateRequireInvoiceConfirmation from 'components/settings/require_invoice_confirmation'\nimport refundVoidSwitch from 'components/settings/refund_void_switch'\nimport allowEmailReceipts from 'components/settings/allow_email_receipts'\nimport allowSearchThroughAllTransactions from 'components/settings/allow_search_all_transactions'\nimport showSignaturePadSwitch from 'components/settings/show_signature_pad'\nimport payByBankSetting from 'components/settings/pay_by_bank_settings'\nimport terminalPaySetting from 'components/settings/terminal'\nimport terminalEnabledSetting from 'components/settings/terminal_enabled'\nimport withdrawSwitch from 'components/settings/withdraw_switch'\nimport loyalty from 'components/settings/loyalty'\nimport tax from 'components/settings/tax'\nimport showAtDash from 'components/settings/show_at_dash'\nimport radar from 'components/settings/radar'\nimport paymentFeeSettings from 'components/settings/payment_fee'\nimport blindTransactionSettings from 'components/settings/blind_transaction_settings'\nimport doingBusinessAs from 'components/settings/doing_business_as'\nimport emojify from 'components/emoji'\nimport genericProgressBar from 'components/progress_bar_generic'\n\nimport pinpadProxy from 'components/pinpad_proxy'\nimport fundingSourcePicker from 'components/client/funding_source_picker'\n\nimport externalPayment from 'components/client/external_payment/base'\n\n// Manager stuff\nimport managerMerchants from 'components/manager/merchants'\n\n// 3d party components\nimport moment from 'moment'\nimport VueSignaturePad from 'vue-signature-pad';\nimport VueTelInput from 'vue-tel-input'\nimport VueGoodTablePlugin from 'vue-good-table';\nimport VueI18n from 'vue-i18n'\n\nimport 'vue-good-table/dist/vue-good-table.css'\n// We do not use TurbolinksAdapter for now because we block turbolinks caching \n// and all vue components re-renderering on each page load ny link click or by\n// brawser Back/Forward buttons. \n//\n// Vue.use(TurbolinksAdapter)\nVueClipboard.config.autoSetContainer = true\n\nVue.use(VueSignaturePad);\nVue.use(Vue2Filters)\nVue.use(vuetwemoji, [])\nVue.use(vueAwesomeCountdown, 'vac')\nVue.use(VueQrcodeReader)\nVue.use(VueBarcode)\nVue.use(VueResource)\nVue.use(VueClipboard)\nVue.use(VueTelInput, {defaultCountry: \"US\"})\nVue.use(VeeValidate,\n {\n classes: true,\n classNames: {\n valid: 'valid',\n invalid: 'invalid'\n }\n });\nVue.use(VueGoodTablePlugin);\nVue.use(VueApollo)\nVue.use(ImageUploader)\n\nVue.use(VueGoogleMaps, {\n load: {\n key: process.env.GOOGLE_MAPS_API_KEY\n },\n})\nVue.use(VueI18n)\nVue.use(VueCompositionAPI)\nVue.use(PiniaVuePlugin);\nVue.use(VueMask);\nconst pinia = createPinia();\n// Vue.use(pinia)\n\nVue.http.headers.common['X-CSRF-Token'] = document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n\nimport en from '../locales/en'\nimport es from '../locales/es'\n\nconst i18n = new VueI18n({\n locale: 'en',\n fallbackLocale: 'en',\n messages: {\n en: en,\n es: es\n }\n})\n\nconst apolloClient = new ApolloClient({\n uri: process.env.VUE_APP_GRAPHQL_URL\n})\n\nconst apolloProvider = new VueApollo({\n defaultClient: apolloClient,\n})\n\n\n// Congigure ActionCable connection\nconst cable = ActionCable.createConsumer()\nVue.prototype.$cable = cable\n// Configure Events bus\nconst bus = new Vue()\nVue.prototype.$bus = bus\n\nVue.prototype.$moment = moment\nVue.prototype.$webkit = window.webkit;\nVue.prototype.$android = window.Android;\nVue.prototype.$jsQR = jsQR\nVue.prototype.$apolloProvider = apolloProvider\nVue.mixin({\n data: function () {\n return {\n }\n },\n methods: {\n notifyError(message) {\n M.toast({html: message, classes: 'red darken-1'})\n },\n notifySuccess(message) {\n M.toast({html: message, classes: 'emerald-back'})\n },\n errorHandler(error) {\n if(error.status == 422) {\n this.notifyError(error.body.error_messages[0])\n } else if(error.status == 429) {\n this.notifyError('Too many requests. Please try again later')\n } else {\n this.notifyError('Something went wrong')\n }\n },\n gqlErrorHandler(error) {\n if(error.graphQLErrors.length) {\n this.notifyError(error.graphQLErrors[0].message)\n }\n if(error.networkError) {\n this.notifyError(error.networkError)\n }\n }\n }\n})\n\ndocument.addEventListener('turbolinks:load', () => {\n const app = new Vue({\n i18n,\n el: '[data-behavior=\"vue\"]',\n pinia\n })\n})\nVue.component('copy-to-clipboard', copyToClipboard)\nVue.component('local-date', date)\nVue.component('waiter', waiter)\nVue.component('qr-code', VueQRCodeComponent)\nVue.component('client-qr-scanner', clientQrScanner)\nVue.component('profile-cable-plug', profileCablePlug)\nVue.component('balance', balance)\nVue.component('balance-rewards', balanceRewards)\nVue.component('dob-picker', dobPicker)\nVue.component('auto-printer', autoPrinter)\nVue.component('progress-bar', progressBar)\nVue.component('notifications', notifications)\nVue.component('pay-fields', payFields)\nVue.component('pay-by-card', payByCard)\nVue.component('free-pay', freePaysNew)\nVue.component('free-pay-with-phone', freePaysNewWithPhone)\nVue.component('free-pay-with-email', freePaysNewWithEmail)\nVue.component('unverified-from-free-pay', unverifiedFromFreePay)\nVue.component('free-scanner', freeScanner)\nVue.component('tip-switch', tipSwitch)\nVue.component('tip-per-sub', tipPerSub)\nVue.component('tip-values', tipValues)\nVue.component('allow-manage-subaccounts', allowManageSubaccounts)\nVue.component('generic-flow-switch', updateGenericFlow)\nVue.component('gateway-switch', updateGatewaySwitch)\nVue.component('require-invoice-field-switch', updateRequireInvoiceField)\nVue.component('require-invoice-confirmation-switch', updateRequireInvoiceConfirmation)\nVue.component('refund-void-switch', refundVoidSwitch)\nVue.component('allow-emails', allowEmailReceipts)\nVue.component('allow-search-all-transactions', allowSearchThroughAllTransactions)\nVue.component('signature-pad-switch', showSignaturePadSwitch)\nVue.component('show-at-dash', showAtDash)\nVue.component('radar', radar)\nVue.component('payment-fee-settings', paymentFeeSettings)\nVue.component('blind-transaction-settings', blindTransactionSettings)\nVue.component('pay-by-bank-settings', payByBankSetting)\nVue.component('terminal-settings', terminalPaySetting)\nVue.component('terminal-enabled', terminalEnabledSetting)\nVue.component('withdraw-switch', withdrawSwitch)\nVue.component('auto-reload', autoReload)\nVue.component('required-secured-check', requireSecuredCheck)\nVue.component('feedback-hub-settings', feedbackHubSettings)\nVue.component('policy-url', policyUrl)\nVue.component('send-bill-note', sendBillNote)\nVue.component('notification-settings', notificationSettings)\nVue.component('subacc-history-limit', subaccHistoryLimit)\nVue.component('loyalty', loyalty)\nVue.component('loyalty-progress', loyaltyProgress)\nVue.component('loyalty-reward', loyaltyReward)\nVue.component('merchant-progress-bar', merchantProgressBar)\nVue.component('unverified-progress-bar', unverifiedProgressBar)\nVue.component('skip-this-step-wrapper', skipThisStepWrapper)\nVue.component('tax', tax)\nVue.component('reports', reports)\nVue.component('withdraw-balance', withdrawBalance)\nVue.component('withdraw-reward-balance', withdrawRewardBalance)\nVue.component('doing-business-as', doingBusinessAs)\nVue.component('add-money', addMoney)\nVue.component('kba', kba)\nVue.component('check-by-photo', checkByPhoto)\nVue.component('charge-generic-card', chargeGenericCard)\nVue.component('adyen-tos-viewer', adyenTosViewer)\nVue.component('disputes-badge', disputesBadge)\nVue.component('check-by-double-photo', checkByDoublePhoto)\nVue.component('new-payment-event', newPaymentEvent)\nVue.component('sub-acc-download-app', subAccDownloadApp)\nVue.component('charge-card-on-file', chargeCardOnFile)\nVue.component('today-stat', todayStat)\nVue.component('home-stat', homeStat)\nVue.component('show-check-images', showCheckImages)\nVue.component('show-signature', showSignature)\nVue.component('show-bad-check-images', showBadCheckImages)\nVue.component('bill-split', billSplitMain)\nVue.component('bill-split-new', billSplitNew)\nVue.component('bill-split-active', billSplitActive)\nVue.component('pay-bill-split', payBillSplit)\nVue.component('cancel-pending-button', cancelPendingTransaction)\nVue.component('devise-links-wrapper', deviseLinkWrapper)\nVue.component('gift-card-new-payment', giftCardPaymentNew)\nVue.component('emojify', emojify)\nVue.component('banner', banner)\nVue.component('send-check', sendCheck)\nVue.component('feedback-hub', feedbackHub)\nVue.component('verify-phone', verifyPhone)\nVue.component('verify-email', verifyEmail)\nVue.component('setup-unverified-profile', setupUnverifiedProfile)\nVue.component('setup-unverified-profile-by-button', setupUnverifiedProfileByButton)\nVue.component('vue-barcode', VueBarcode)\nVue.component('switch-to-ios-app', unverifiedProfileSwitchToIosApp)\nVue.component('my-qrs', myQrs)\nVue.component('master-report-download', adminMasterReportDownload)\nVue.component('routing-input', adminRoutingInput)\nVue.component('check-image-uploader', adminCheckImageUploader)\nVue.component('check-image-preview', adminCheckImagePreview)\nVue.component('add-ebt-card', addEbtCard)\nVue.component('ebt-balance', ebtBalance)\nVue.component('add-credit-card', addCreditCard)\nVue.component('pinpad-proxy', pinpadProxy)\nVue.component('funding-source-picker', fundingSourcePicker)\nVue.component('re-assign-qr', reAssignQR)\nVue.component('re-assign-qr-scanner', reAssignQrScanner)\nVue.component('re-assign-qr-base', reAssignQrBase)\nVue.component('manual-charge', manualCharge)\nVue.component('direct-charge', directCharge)\nVue.component('generic-direct-charge', genericDirectCharge)\nVue.component('generic-remote-charge', genericRemoteCharge)\nVue.component('terminal-charge', terminalCharge)\nVue.component('request-change-amount', requestChangeAmount)\nVue.component('resend-sms', resendSms)\nVue.component('override-button', overrideButton)\nVue.component('send-receipt-button', sendReceiptButton)\nVue.component('external-payment', externalPayment)\nVue.component('check-signature-pad', checkSignaturePad)\nVue.component('manual-payment', manualPayment)\nVue.component('reverse-button', reverseButton)\nVue.component('void-check-button', voidCheckButton)\nVue.component('sub-account-picker', sunAccountPicker)\nVue.component('add-items', addItems)\nVue.component('paypal-onboard', paypalOnboard)\nVue.component('card-on-file', createCardOnFile)\nVue.component('send-payment-link', sendPaymentLink)\nVue.component('merchants-table', managerMerchants)\nVue.component('generic-progress-bar', genericProgressBar)\nVue.component('link-order', linkOrder)\nVue.component('merchant-link-order', merchantLinkOrder)\nVue.component('link-check-create', merchantLinkCheckCreate)\nVue.component('link-check-change-state', merchantLinkCheckChangeState)\nVue.component('select-account', selectAccount)\nVue.component('check-by-image', checkByImage)\n\n// Stimulus section\nimport { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"stimulus/controllers\", true, /\\.js$/)\napplication.load(definitionsFromContext(context))\n\nVue.filter('truncate', function (text, length, suffix) {\n if (text.length > length) {\n return text.substring(0, length) + suffix;\n } else {\n return text;\n }\n});\n","export function definitionsFromContext(context) {\n return context.keys().map(function (key) {\n return definitionForModuleWithContextAndKey(context, key);\n }).filter(function (value) {\n return value;\n });\n}\n\nfunction definitionForModuleWithContextAndKey(context, key) {\n var identifier = identifierForContextKey(key);\n\n if (identifier) {\n return definitionForModuleAndIdentifier(context(key), identifier);\n }\n}\n\nfunction definitionForModuleAndIdentifier(module, identifier) {\n var controllerConstructor = module.default;\n\n if (typeof controllerConstructor == \"function\") {\n return {\n identifier: identifier,\n controllerConstructor: controllerConstructor\n };\n }\n}\n\nexport function identifierForContextKey(key) {\n var logicalName = (key.match(/^(?:\\.\\/)?(.+)(?:[_-]controller\\..+?)$/) || [])[1];\n\n if (logicalName) {\n return logicalName.replace(/_/g, \"-\").replace(/\\//g, \"--\");\n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{ref:\"flyaway\"},[_vm._t(\"default\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default (function (x) {\n return x.default || x;\n})(require('./infoWindowImpl.js'));","import mod from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./infoWindow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./infoWindow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./infoWindow.vue?vue&type=template&id=93a0ced4&\"\nimport script from \"./infoWindow.vue?vue&type=script&lang=js&\"\nexport * from \"./infoWindow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-map-container\"},[_c('div',{ref:\"vue-map\",staticClass:\"vue-map\"}),_vm._v(\" \"),_c('div',{staticClass:\"vue-map-hidden\"},[_vm._t(\"default\")],2),_vm._v(\" \"),_vm._t(\"visible\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default (function (x) {\n return x.default || x;\n})(require('./mapImpl.js'));","import mod from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./map.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./map.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./map.vue?vue&type=template&id=7a3562c2&\"\nimport script from \"./map.vue?vue&type=script&lang=js&\"\nexport * from \"./map.vue?vue&type=script&lang=js&\"\nimport style0 from \"./map.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-street-view-pano-container\"},[_c('div',{ref:\"vue-street-view-pano\",staticClass:\"vue-street-view-pano\"}),_vm._v(\" \"),_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\nexport default (function (x) {\n return x.default || x;\n})(require('./streetViewPanoramaImpl.js'));","import mod from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./streetViewPanorama.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./streetViewPanorama.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./streetViewPanorama.vue?vue&type=template&id=090f5fd3&\"\nimport script from \"./streetViewPanorama.vue?vue&type=script&lang=js&\"\nexport * from \"./streetViewPanorama.vue?vue&type=script&lang=js&\"\nimport style0 from \"./streetViewPanorama.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',_vm._g(_vm._b({ref:\"input\"},'input',_vm.$attrs,false),_vm.$listeners))}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\nexport default (function (x) {\n return x.default || x;\n})(require('./autocompleteImpl.js'));","import mod from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./autocomplete.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js??ref--7-0!../../../vue-loader/lib/index.js??vue-loader-options!./autocomplete.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./autocomplete.vue?vue&type=template&id=6d17d8c2&\"\nimport script from \"./autocomplete.vue?vue&type=script&lang=js&\"\nexport * from \"./autocomplete.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}