.', 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 + \"($event)\" : isFunctionExpression ? \"return (\" + handler.value + \")($event)\" : 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);\n var code = ast ? genElement(ast, state) : '_c(\"div\")';\n return {\n render: \"with(this){return \" + code + \"}\",\n staticRenderFns: state.staticRenderFns\n };\n}\n\nfunction genElement(el, state) {\n if (el.parent) {\n el.pre = el.pre || el.parent.pre;\n }\n\n if (el.staticRoot && !el.staticProcessed) {\n return genStatic(el, state);\n } else if (el.once && !el.onceProcessed) {\n return genOnce(el, state);\n } else if (el[\"for\"] && !el.forProcessed) {\n return genFor(el, state);\n } else if (el[\"if\"] && !el.ifProcessed) {\n return genIf(el, state);\n } else if (el.tag === 'template' && !el.slotTarget && !state.pre) {\n return genChildren(el, state) || 'void 0';\n } else if (el.tag === 'slot') {\n return genSlot(el, state);\n } else {\n // component or element\n var code;\n\n if (el.component) {\n code = genComponent(el.component, el, state);\n } else {\n var data;\n\n if (!el.plain || el.pre && state.maybeComponent(el)) {\n data = genData$2(el, state);\n }\n\n var children = el.inlineTemplate ? null : genChildren(el, state, true);\n code = \"_c('\" + el.tag + \"'\" + (data ? \",\" + data : '') + (children ? \",\" + children : '') + \")\";\n } // module transforms\n\n\n for (var i = 0; i < state.transforms.length; i++) {\n code = state.transforms[i](el, code);\n }\n\n return code;\n }\n} // hoist static sub-trees out\n\n\nfunction genStatic(el, state) {\n el.staticProcessed = true; // Some elements (templates) need to behave differently inside of a v-pre\n // node. All pre nodes are static roots, so we can use this as a location to\n // wrap a state change and reset it upon exiting the pre node.\n\n var originalPreState = state.pre;\n\n if (el.pre) {\n state.pre = el.pre;\n }\n\n state.staticRenderFns.push(\"with(this){return \" + genElement(el, state) + \"}\");\n state.pre = originalPreState;\n return \"_m(\" + (state.staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + \")\";\n} // v-once\n\n\nfunction genOnce(el, state) {\n el.onceProcessed = true;\n\n if (el[\"if\"] && !el.ifProcessed) {\n return genIf(el, state);\n } else if (el.staticInFor) {\n var key = '';\n var parent = el.parent;\n\n while (parent) {\n if (parent[\"for\"]) {\n key = parent.key;\n break;\n }\n\n parent = parent.parent;\n }\n\n if (!key) {\n process.env.NODE_ENV !== 'production' && state.warn(\"v-once can only be used inside v-for that is keyed. \", el.rawAttrsMap['v-once']);\n return genElement(el, state);\n }\n\n return \"_o(\" + genElement(el, state) + \",\" + state.onceId++ + \",\" + key + \")\";\n } else {\n return genStatic(el, state);\n }\n}\n\nfunction genIf(el, state, altGen, altEmpty) {\n el.ifProcessed = true; // avoid recursion\n\n return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty);\n}\n\nfunction genIfConditions(conditions, state, altGen, altEmpty) {\n if (!conditions.length) {\n return altEmpty || '_e()';\n }\n\n var condition = conditions.shift();\n\n if (condition.exp) {\n return \"(\" + condition.exp + \")?\" + genTernaryExp(condition.block) + \":\" + genIfConditions(conditions, state, altGen, altEmpty);\n } else {\n return \"\" + genTernaryExp(condition.block);\n } // v-if with v-once should generate code like (a)?_m(0):_m(1)\n\n\n function genTernaryExp(el) {\n return altGen ? altGen(el, state) : el.once ? genOnce(el, state) : genElement(el, state);\n }\n}\n\nfunction genFor(el, state, altGen, altHelper) {\n var exp = el[\"for\"];\n var alias = el.alias;\n var iterator1 = el.iterator1 ? \",\" + el.iterator1 : '';\n var iterator2 = el.iterator2 ? \",\" + el.iterator2 : '';\n\n if (process.env.NODE_ENV !== 'production' && state.maybeComponent(el) && el.tag !== 'slot' && el.tag !== 'template' && !el.key) {\n state.warn(\"<\" + el.tag + \" v-for=\\\"\" + alias + \" in \" + exp + \"\\\">: component lists rendered with \" + \"v-for should have explicit keys. \" + \"See https://vuejs.org/guide/list.html#key for more info.\", el.rawAttrsMap['v-for'], true\n /* tip */\n );\n }\n\n el.forProcessed = true; // avoid recursion\n\n return (altHelper || '_l') + \"((\" + exp + \"),\" + \"function(\" + alias + iterator1 + iterator2 + \"){\" + \"return \" + (altGen || genElement)(el, state) + '})';\n}\n\nfunction genData$2(el, state) {\n var data = '{'; // directives first.\n // directives may mutate the el's other properties before they are generated.\n\n var dirs = genDirectives(el, state);\n\n if (dirs) {\n data += dirs + ',';\n } // key\n\n\n if (el.key) {\n data += \"key:\" + el.key + \",\";\n } // ref\n\n\n if (el.ref) {\n data += \"ref:\" + el.ref + \",\";\n }\n\n if (el.refInFor) {\n data += \"refInFor:true,\";\n } // pre\n\n\n if (el.pre) {\n data += \"pre:true,\";\n } // record original tag name for components using \"is\" attribute\n\n\n if (el.component) {\n data += \"tag:\\\"\" + el.tag + \"\\\",\";\n } // module data generation functions\n\n\n for (var i = 0; i < state.dataGenFns.length; i++) {\n data += state.dataGenFns[i](el);\n } // attributes\n\n\n if (el.attrs) {\n data += \"attrs:\" + genProps(el.attrs) + \",\";\n } // DOM props\n\n\n if (el.props) {\n data += \"domProps:\" + genProps(el.props) + \",\";\n } // event handlers\n\n\n if (el.events) {\n data += genHandlers(el.events, false) + \",\";\n }\n\n if (el.nativeEvents) {\n data += genHandlers(el.nativeEvents, true) + \",\";\n } // slot target\n // only for non-scoped slots\n\n\n if (el.slotTarget && !el.slotScope) {\n data += \"slot:\" + el.slotTarget + \",\";\n } // scoped slots\n\n\n if (el.scopedSlots) {\n data += genScopedSlots(el, el.scopedSlots, state) + \",\";\n } // component v-model\n\n\n if (el.model) {\n data += \"model:{value:\" + el.model.value + \",callback:\" + el.model.callback + \",expression:\" + el.model.expression + \"},\";\n } // inline-template\n\n\n if (el.inlineTemplate) {\n var inlineTemplate = genInlineTemplate(el, state);\n\n if (inlineTemplate) {\n data += inlineTemplate + \",\";\n }\n }\n\n data = data.replace(/,$/, '') + '}'; // v-bind dynamic argument wrap\n // v-bind with dynamic arguments must be applied using the same v-bind object\n // merge helper so that class/style/mustUseProp attrs are handled correctly.\n\n if (el.dynamicAttrs) {\n data = \"_b(\" + data + \",\\\"\" + el.tag + \"\\\",\" + genProps(el.dynamicAttrs) + \")\";\n } // v-bind data wrap\n\n\n if (el.wrapData) {\n data = el.wrapData(data);\n } // v-on data wrap\n\n\n if (el.wrapListeners) {\n data = el.wrapListeners(data);\n }\n\n return data;\n}\n\nfunction genDirectives(el, state) {\n var dirs = el.directives;\n\n if (!dirs) {\n return;\n }\n\n var res = 'directives:[';\n var hasRuntime = false;\n var i, l, dir, needRuntime;\n\n for (i = 0, l = dirs.length; i < l; i++) {\n dir = dirs[i];\n needRuntime = true;\n var gen = state.directives[dir.name];\n\n if (gen) {\n // compile-time directive that manipulates AST.\n // returns true if it also needs a runtime counterpart.\n needRuntime = !!gen(el, dir, state.warn);\n }\n\n if (needRuntime) {\n hasRuntime = true;\n res += \"{name:\\\"\" + dir.name + \"\\\",rawName:\\\"\" + dir.rawName + \"\\\"\" + (dir.value ? \",value:(\" + dir.value + \"),expression:\" + JSON.stringify(dir.value) : '') + (dir.arg ? \",arg:\" + (dir.isDynamicArg ? dir.arg : \"\\\"\" + dir.arg + \"\\\"\") : '') + (dir.modifiers ? \",modifiers:\" + JSON.stringify(dir.modifiers) : '') + \"},\";\n }\n }\n\n if (hasRuntime) {\n return res.slice(0, -1) + ']';\n }\n}\n\nfunction genInlineTemplate(el, state) {\n var ast = el.children[0];\n\n if (process.env.NODE_ENV !== 'production' && (el.children.length !== 1 || ast.type !== 1)) {\n state.warn('Inline-template components must have exactly one child element.', {\n start: el.start\n });\n }\n\n if (ast && ast.type === 1) {\n var inlineRenderFns = generate(ast, state.options);\n return \"inlineTemplate:{render:function(){\" + inlineRenderFns.render + \"},staticRenderFns:[\" + inlineRenderFns.staticRenderFns.map(function (code) {\n return \"function(){\" + code + \"}\";\n }).join(',') + \"]}\";\n }\n}\n\nfunction genScopedSlots(el, slots, state) {\n // by default scoped slots are considered \"stable\", this allows child\n // components with only scoped slots to skip forced updates from parent.\n // but in some cases we have to bail-out of this optimization\n // for example if the slot contains dynamic names, has v-if or v-for on them...\n var needsForceUpdate = el[\"for\"] || Object.keys(slots).some(function (key) {\n var slot = slots[key];\n return slot.slotTargetDynamic || slot[\"if\"] || slot[\"for\"] || containsSlotChild(slot) // is passing down slot from parent which may be dynamic\n ;\n }); // #9534: if a component with scoped slots is inside a conditional branch,\n // it's possible for the same component to be reused but with different\n // compiled slot content. To avoid that, we generate a unique key based on\n // the generated code of all the slot contents.\n\n var needsKey = !!el[\"if\"]; // OR when it is inside another scoped slot or v-for (the reactivity may be\n // disconnected due to the intermediate scope variable)\n // #9438, #9506\n // TODO: this can be further optimized by properly analyzing in-scope bindings\n // and skip force updating ones that do not actually use scope variables.\n\n if (!needsForceUpdate) {\n var parent = el.parent;\n\n while (parent) {\n if (parent.slotScope && parent.slotScope !== emptySlotScopeToken || parent[\"for\"]) {\n needsForceUpdate = true;\n break;\n }\n\n if (parent[\"if\"]) {\n needsKey = true;\n }\n\n parent = parent.parent;\n }\n }\n\n var generatedSlots = Object.keys(slots).map(function (key) {\n return genScopedSlot(slots[key], state);\n }).join(',');\n return \"scopedSlots:_u([\" + generatedSlots + \"]\" + (needsForceUpdate ? \",null,true\" : \"\") + (!needsForceUpdate && needsKey ? \",null,false,\" + hash(generatedSlots) : \"\") + \")\";\n}\n\nfunction hash(str) {\n var hash = 5381;\n var i = str.length;\n\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n return hash >>> 0;\n}\n\nfunction containsSlotChild(el) {\n if (el.type === 1) {\n if (el.tag === 'slot') {\n return true;\n }\n\n return el.children.some(containsSlotChild);\n }\n\n return false;\n}\n\nfunction genScopedSlot(el, state) {\n var isLegacySyntax = el.attrsMap['slot-scope'];\n\n if (el[\"if\"] && !el.ifProcessed && !isLegacySyntax) {\n return genIf(el, state, genScopedSlot, \"null\");\n }\n\n if (el[\"for\"] && !el.forProcessed) {\n return genFor(el, state, genScopedSlot);\n }\n\n var slotScope = el.slotScope === emptySlotScopeToken ? \"\" : String(el.slotScope);\n var fn = \"function(\" + slotScope + \"){\" + \"return \" + (el.tag === 'template' ? el[\"if\"] && isLegacySyntax ? \"(\" + el[\"if\"] + \")?\" + (genChildren(el, state) || 'undefined') + \":undefined\" : genChildren(el, state) || 'undefined' : genElement(el, state)) + \"}\"; // reverse proxy v-slot without scope on this.$slots\n\n var reverseProxy = slotScope ? \"\" : \",proxy:true\";\n return \"{key:\" + (el.slotTarget || \"\\\"default\\\"\") + \",fn:\" + fn + reverseProxy + \"}\";\n}\n\nfunction genChildren(el, state, checkSkip, altGenElement, altGenNode) {\n var children = el.children;\n\n if (children.length) {\n var el$1 = children[0]; // optimize single v-for\n\n if (children.length === 1 && el$1[\"for\"] && el$1.tag !== 'template' && el$1.tag !== 'slot') {\n var normalizationType = checkSkip ? state.maybeComponent(el$1) ? \",1\" : \",0\" : \"\";\n return \"\" + (altGenElement || genElement)(el$1, state) + normalizationType;\n }\n\n var normalizationType$1 = checkSkip ? getNormalizationType(children, state.maybeComponent) : 0;\n var gen = altGenNode || genNode;\n return \"[\" + children.map(function (c) {\n return gen(c, state);\n }).join(',') + \"]\" + (normalizationType$1 ? \",\" + normalizationType$1 : '');\n }\n} // determine the normalization needed for the children array.\n// 0: no normalization needed\n// 1: simple normalization needed (possible 1-level deep nested array)\n// 2: full normalization needed\n\n\nfunction getNormalizationType(children, maybeComponent) {\n var res = 0;\n\n for (var i = 0; i < children.length; i++) {\n var el = children[i];\n\n if (el.type !== 1) {\n continue;\n }\n\n if (needsNormalization(el) || el.ifConditions && el.ifConditions.some(function (c) {\n return needsNormalization(c.block);\n })) {\n res = 2;\n break;\n }\n\n if (maybeComponent(el) || el.ifConditions && el.ifConditions.some(function (c) {\n return maybeComponent(c.block);\n })) {\n res = 1;\n }\n }\n\n return res;\n}\n\nfunction needsNormalization(el) {\n return el[\"for\"] !== undefined || el.tag === 'template' || el.tag === 'slot';\n}\n\nfunction genNode(node, state) {\n if (node.type === 1) {\n return genElement(node, state);\n } else if (node.type === 3 && node.isComment) {\n return genComment(node);\n } else {\n return genText(node);\n }\n}\n\nfunction genText(text) {\n return \"_v(\" + (text.type === 2 ? text.expression // no need for () because already wrapped in _s()\n : transformSpecialNewlines(JSON.stringify(text.text))) + \")\";\n}\n\nfunction genComment(comment) {\n return \"_e(\" + JSON.stringify(comment.text) + \")\";\n}\n\nfunction genSlot(el, state) {\n var slotName = el.slotName || '\"default\"';\n var children = genChildren(el, state);\n var res = \"_t(\" + slotName + (children ? \",\" + children : '');\n var attrs = el.attrs || el.dynamicAttrs ? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) {\n return {\n // slot props are camelized\n name: camelize(attr.name),\n value: attr.value,\n dynamic: attr.dynamic\n };\n })) : null;\n var bind$$1 = el.attrsMap['v-bind'];\n\n if ((attrs || bind$$1) && !children) {\n res += \",null\";\n }\n\n if (attrs) {\n res += \",\" + attrs;\n }\n\n if (bind$$1) {\n res += (attrs ? '' : ',null') + \",\" + bind$$1;\n }\n\n return res + ')';\n} // componentName is el.component, take it as argument to shun flow's pessimistic refinement\n\n\nfunction genComponent(componentName, el, state) {\n var children = el.inlineTemplate ? null : genChildren(el, state, true);\n return \"_c(\" + componentName + \",\" + genData$2(el, state) + (children ? \",\" + children : '') + \")\";\n}\n\nfunction genProps(props) {\n var staticProps = \"\";\n var dynamicProps = \"\";\n\n for (var i = 0; i < props.length; i++) {\n var prop = props[i];\n var value = transformSpecialNewlines(prop.value);\n\n if (prop.dynamic) {\n dynamicProps += prop.name + \",\" + value + \",\";\n } else {\n staticProps += \"\\\"\" + prop.name + \"\\\":\" + value + \",\";\n }\n }\n\n staticProps = \"{\" + staticProps.slice(0, -1) + \"}\";\n\n if (dynamicProps) {\n return \"_d(\" + staticProps + \",[\" + dynamicProps.slice(0, -1) + \"])\";\n } else {\n return staticProps;\n }\n} // #3895, #4268\n\n\nfunction transformSpecialNewlines(text) {\n return text.replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\");\n}\n/* */\n// these keywords should not appear inside expressions, but operators like\n// typeof, instanceof and in are allowed\n\n\nvar prohibitedKeywordRE = new RegExp('\\\\b' + ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' + 'super,throw,while,yield,delete,export,import,return,switch,default,' + 'extends,finally,continue,debugger,function,arguments').split(',').join('\\\\b|\\\\b') + '\\\\b'); // these unary operators should not be used as property/method names\n\nvar unaryOperatorsRE = new RegExp('\\\\b' + 'delete,typeof,void'.split(',').join('\\\\s*\\\\([^\\\\)]*\\\\)|\\\\b') + '\\\\s*\\\\([^\\\\)]*\\\\)'); // strip strings in expressions\n\nvar stripStringRE = /'(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|`(?:[^`\\\\]|\\\\.)*\\$\\{|\\}(?:[^`\\\\]|\\\\.)*`|`(?:[^`\\\\]|\\\\.)*`/g; // detect problematic expressions in a template\n\nfunction detectErrors(ast, warn) {\n if (ast) {\n checkNode(ast, warn);\n }\n}\n\nfunction checkNode(node, warn) {\n if (node.type === 1) {\n for (var name in node.attrsMap) {\n if (dirRE.test(name)) {\n var value = node.attrsMap[name];\n\n if (value) {\n var range = node.rawAttrsMap[name];\n\n if (name === 'v-for') {\n checkFor(node, \"v-for=\\\"\" + value + \"\\\"\", warn, range);\n } else if (name === 'v-slot' || name[0] === '#') {\n checkFunctionParameterExpression(value, name + \"=\\\"\" + value + \"\\\"\", warn, range);\n } else if (onRE.test(name)) {\n checkEvent(value, name + \"=\\\"\" + value + \"\\\"\", warn, range);\n } else {\n checkExpression(value, name + \"=\\\"\" + value + \"\\\"\", warn, range);\n }\n }\n }\n }\n\n if (node.children) {\n for (var i = 0; i < node.children.length; i++) {\n checkNode(node.children[i], warn);\n }\n }\n } else if (node.type === 2) {\n checkExpression(node.expression, node.text, warn, node);\n }\n}\n\nfunction checkEvent(exp, text, warn, range) {\n var stripped = exp.replace(stripStringRE, '');\n var keywordMatch = stripped.match(unaryOperatorsRE);\n\n if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {\n warn(\"avoid using JavaScript unary operator as property name: \" + \"\\\"\" + keywordMatch[0] + \"\\\" in expression \" + text.trim(), range);\n }\n\n checkExpression(exp, text, warn, range);\n}\n\nfunction checkFor(node, text, warn, range) {\n checkExpression(node[\"for\"] || '', text, warn, range);\n checkIdentifier(node.alias, 'v-for alias', text, warn, range);\n checkIdentifier(node.iterator1, 'v-for iterator', text, warn, range);\n checkIdentifier(node.iterator2, 'v-for iterator', text, warn, range);\n}\n\nfunction checkIdentifier(ident, type, text, warn, range) {\n if (typeof ident === 'string') {\n try {\n new Function(\"var \" + ident + \"=_\");\n } catch (e) {\n warn(\"invalid \" + type + \" \\\"\" + ident + \"\\\" in expression: \" + text.trim(), range);\n }\n }\n}\n\nfunction checkExpression(exp, text, warn, range) {\n try {\n new Function(\"return \" + exp);\n } catch (e) {\n var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);\n\n if (keywordMatch) {\n warn(\"avoid using JavaScript keyword as property name: \" + \"\\\"\" + keywordMatch[0] + \"\\\"\\n Raw expression: \" + text.trim(), range);\n } else {\n warn(\"invalid expression: \" + e.message + \" in\\n\\n\" + \" \" + exp + \"\\n\\n\" + \" Raw expression: \" + text.trim() + \"\\n\", range);\n }\n }\n}\n\nfunction checkFunctionParameterExpression(exp, text, warn, range) {\n try {\n new Function(exp, '');\n } catch (e) {\n warn(\"invalid function parameter expression: \" + e.message + \" in\\n\\n\" + \" \" + exp + \"\\n\\n\" + \" Raw expression: \" + text.trim() + \"\\n\", range);\n }\n}\n/* */\n\n\nvar range = 2;\n\nfunction generateCodeFrame(source, start, end) {\n if (start === void 0) start = 0;\n if (end === void 0) end = source.length;\n var lines = source.split(/\\r?\\n/);\n var count = 0;\n var res = [];\n\n for (var i = 0; i < lines.length; i++) {\n count += lines[i].length + 1;\n\n if (count >= start) {\n for (var j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length) {\n continue;\n }\n\n res.push(\"\" + (j + 1) + repeat$1(\" \", 3 - String(j + 1).length) + \"| \" + lines[j]);\n var lineLength = lines[j].length;\n\n if (j === i) {\n // push underline\n var pad = start - (count - lineLength) + 1;\n var length = end > count ? lineLength - pad : end - start;\n res.push(\" | \" + repeat$1(\" \", pad) + repeat$1(\"^\", length));\n } else if (j > i) {\n if (end > count) {\n var length$1 = Math.min(end - count, lineLength);\n res.push(\" | \" + repeat$1(\"^\", length$1));\n }\n\n count += lineLength + 1;\n }\n }\n\n break;\n }\n }\n\n return res.join('\\n');\n}\n\nfunction repeat$1(str, n) {\n var result = '';\n\n if (n > 0) {\n while (true) {\n // eslint-disable-line\n if (n & 1) {\n result += str;\n }\n\n n >>>= 1;\n\n if (n <= 0) {\n break;\n }\n\n str += str;\n }\n }\n\n return result;\n}\n/* */\n\n\nfunction createFunction(code, errors) {\n try {\n return new Function(code);\n } catch (err) {\n errors.push({\n err: err,\n code: code\n });\n return noop;\n }\n}\n\nfunction createCompileToFunctionFn(compile) {\n var cache = Object.create(null);\n return function compileToFunctions(template, options, vm) {\n options = extend({}, options);\n var warn$$1 = options.warn || warn;\n delete options.warn;\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production') {\n // detect possible CSP restriction\n try {\n new Function('return 1');\n } catch (e) {\n if (e.toString().match(/unsafe-eval|CSP/)) {\n warn$$1('It seems you are using the standalone build of Vue.js in an ' + 'environment with Content Security Policy that prohibits unsafe-eval. ' + 'The template compiler cannot work in this environment. Consider ' + 'relaxing the policy to allow unsafe-eval or pre-compiling your ' + 'templates into render functions.');\n }\n }\n } // check cache\n\n\n var key = options.delimiters ? String(options.delimiters) + template : template;\n\n if (cache[key]) {\n return cache[key];\n } // compile\n\n\n var compiled = compile(template, options); // check compilation errors/tips\n\n if (process.env.NODE_ENV !== 'production') {\n if (compiled.errors && compiled.errors.length) {\n if (options.outputSourceRange) {\n compiled.errors.forEach(function (e) {\n warn$$1(\"Error compiling template:\\n\\n\" + e.msg + \"\\n\\n\" + generateCodeFrame(template, e.start, e.end), vm);\n });\n } else {\n warn$$1(\"Error compiling template:\\n\\n\" + template + \"\\n\\n\" + compiled.errors.map(function (e) {\n return \"- \" + e;\n }).join('\\n') + '\\n', vm);\n }\n }\n\n if (compiled.tips && compiled.tips.length) {\n if (options.outputSourceRange) {\n compiled.tips.forEach(function (e) {\n return tip(e.msg, vm);\n });\n } else {\n compiled.tips.forEach(function (msg) {\n return tip(msg, vm);\n });\n }\n }\n } // turn code into functions\n\n\n var res = {};\n var fnGenErrors = [];\n res.render = createFunction(compiled.render, fnGenErrors);\n res.staticRenderFns = compiled.staticRenderFns.map(function (code) {\n return createFunction(code, fnGenErrors);\n }); // check function generation errors.\n // this should only happen if there is a bug in the compiler itself.\n // mostly for codegen development use\n\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production') {\n if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {\n warn$$1(\"Failed to generate render function:\\n\\n\" + fnGenErrors.map(function (ref) {\n var err = ref.err;\n var code = ref.code;\n return err.toString() + \" in\\n\\n\" + code + \"\\n\";\n }).join('\\n'), vm);\n }\n }\n\n return cache[key] = res;\n };\n}\n/* */\n\n\nfunction createCompilerCreator(baseCompile) {\n return function createCompiler(baseOptions) {\n function compile(template, options) {\n var finalOptions = Object.create(baseOptions);\n var errors = [];\n var tips = [];\n\n var warn = function warn(msg, range, tip) {\n (tip ? tips : errors).push(msg);\n };\n\n if (options) {\n if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {\n // $flow-disable-line\n var leadingSpaceLength = template.match(/^\\s*/)[0].length;\n\n warn = function warn(msg, range, tip) {\n var data = {\n msg: msg\n };\n\n if (range) {\n if (range.start != null) {\n data.start = range.start + leadingSpaceLength;\n }\n\n if (range.end != null) {\n data.end = range.end + leadingSpaceLength;\n }\n }\n\n (tip ? tips : errors).push(data);\n };\n } // merge custom modules\n\n\n if (options.modules) {\n finalOptions.modules = (baseOptions.modules || []).concat(options.modules);\n } // merge custom directives\n\n\n if (options.directives) {\n finalOptions.directives = extend(Object.create(baseOptions.directives || null), options.directives);\n } // copy other options\n\n\n for (var key in options) {\n if (key !== 'modules' && key !== 'directives') {\n finalOptions[key] = options[key];\n }\n }\n }\n\n finalOptions.warn = warn;\n var compiled = baseCompile(template.trim(), finalOptions);\n\n if (process.env.NODE_ENV !== 'production') {\n detectErrors(compiled.ast, warn);\n }\n\n compiled.errors = errors;\n compiled.tips = tips;\n return compiled;\n }\n\n return {\n compile: compile,\n compileToFunctions: createCompileToFunctionFn(compile)\n };\n };\n}\n/* */\n// `createCompilerCreator` allows creating compilers that use alternative\n// parser/optimizer/codegen, e.g the SSR optimizing compiler.\n// Here we just export a default compiler using the default parts.\n\n\nvar createCompiler = createCompilerCreator(function baseCompile(template, options) {\n var ast = parse(template.trim(), options);\n\n if (options.optimize !== false) {\n optimize(ast, options);\n }\n\n var code = generate(ast, options);\n return {\n ast: ast,\n render: code.render,\n staticRenderFns: code.staticRenderFns\n };\n});\n/* */\n\nvar ref$1 = createCompiler(baseOptions);\nvar compile = ref$1.compile;\nvar compileToFunctions = ref$1.compileToFunctions;\n/* */\n// check whether current browser encodes a char inside attribute values\n\nvar div;\n\nfunction getShouldDecode(href) {\n div = div || document.createElement('div');\n div.innerHTML = href ? \"
\" : \"\";\n return div.innerHTML.indexOf('
') > 0;\n} // #3663: IE encodes newlines inside attribute values while other browsers don't\n\n\nvar shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false; // #6828: chrome encodes content in a[href]\n\nvar shouldDecodeNewlinesForHref = inBrowser ? getShouldDecode(true) : false;\n/* */\n\nvar idToTemplate = cached(function (id) {\n var el = query(id);\n return el && el.innerHTML;\n});\nvar mount = Vue.prototype.$mount;\n\nVue.prototype.$mount = function (el, hydrating) {\n el = el && query(el);\n /* istanbul ignore if */\n\n if (el === document.body || el === document.documentElement) {\n process.env.NODE_ENV !== 'production' && warn(\"Do not mount Vue to or - mount to normal elements instead.\");\n return this;\n }\n\n var options = this.$options; // resolve template/el and convert to render function\n\n if (!options.render) {\n var template = options.template;\n\n if (template) {\n if (typeof template === 'string') {\n if (template.charAt(0) === '#') {\n template = idToTemplate(template);\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production' && !template) {\n warn(\"Template element not found or is empty: \" + options.template, this);\n }\n }\n } else if (template.nodeType) {\n template = template.innerHTML;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn('invalid template option:' + template, this);\n }\n\n return this;\n }\n } else if (el) {\n template = getOuterHTML(el);\n }\n\n if (template) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n mark('compile');\n }\n\n var ref = compileToFunctions(template, {\n outputSourceRange: process.env.NODE_ENV !== 'production',\n shouldDecodeNewlines: shouldDecodeNewlines,\n shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,\n delimiters: options.delimiters,\n comments: options.comments\n }, this);\n var render = ref.render;\n var staticRenderFns = ref.staticRenderFns;\n options.render = render;\n options.staticRenderFns = staticRenderFns;\n /* istanbul ignore if */\n\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n mark('compile end');\n measure(\"vue \" + this._name + \" compile\", 'compile', 'compile end');\n }\n }\n }\n\n return mount.call(this, el, hydrating);\n};\n/**\n * Get outerHTML of elements, taking care\n * of SVG elements in IE as well.\n */\n\n\nfunction getOuterHTML(el) {\n if (el.outerHTML) {\n return el.outerHTML;\n } else {\n var container = document.createElement('div');\n container.appendChild(el.cloneNode(true));\n return container.innerHTML;\n }\n}\n\nVue.compile = compileToFunctions;\nexport default Vue;","// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nrequire(\"@rails/ujs\").start();\n// require(\"turbolinks\").start()\nrequire(\"@rails/activestorage\").start();\n// require(\"channels\")\n\n// Uncomment to copy all static images under ../images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('../images', true)\n// const imagePath = (name) => images(name, true)\n\nimport \"./lib/servicemenu\";\nimport \"./lib/cocoon\";\nimport \"./lib/datetimepicker\";\nimport \"./lib/modal\";\n\n// vue loader\nimport Vue from \"vue/dist/vue.esm.js\";\n(function() {\n Vue.directive(\"init\", {\n bind: function(el, binding, vnode) {\n vnode.context[binding.arg] = binding.value;\n },\n });\n\n var vms = [];\n var options = {};\n var requireContext = require.context(\"./options\", false, /\\.js$/);\n requireContext.keys().forEach((key) => {\n let name = key\n .split(\"/\")\n .pop()\n .split(\".\")\n .shift();\n options[name] = requireContext(key).default;\n });\n\n // document.addEventListener('turbolinks:load', () => {\n // let templates = document.querySelectorAll('[data-vue]')\n // for (let el of templates) {\n // let vm = new Vue(\n // Object.assign(options[el.dataset.vue], { el })\n // )\n // vms.push(vm)\n // }\n // })\n\n // document.addEventListener('turbolinks:visit', () => {\n // for (let vm of vms) {\n // vm.$destroy()\n // }\n // vms = []\n // })\n\n $(function() {\n let templates = document.querySelectorAll(\"[data-vue]\");\n for (let el of templates) {\n console.log(Object.assign(options[el.dataset.vue], { el }));\n let vm = new Vue(Object.assign(options[el.dataset.vue], { el }));\n vms.push(vm);\n console.log(options);\n }\n });\n})();\n\n$(function() {\n $(\".js--toggle-active\").on(\"click\", function() {\n const $this = $(this);\n $this.hasClass(\"active\") ? $this.removeClass(\"active\") : $this.addClass(\"active\");\n console.log($this);\n });\n\n $(\".js--pagination-container\").paginathing({\n perPage: 9,\n firstLast: false,\n prevText: \"<\",\n nextText: \">\",\n activeClass: \"is-active\",\n ulClass: \"p-vbtimes-pagination\",\n liClass: \"p-vbtimes-pagination__item\",\n });\n\n // if (Swiper) {\n // new Swiper('.swiper-container', {\n // loop: true,\n // paginationClickable: true,\n // pagination: '.swiper-pagination',\n // nextButton: '.swiper-button-next',\n // prevButton: '.swiper-button-prev',\n // })\n // }\n});\n\nlet vh = window.innerHeight * 0.01;\ndocument.documentElement.style.setProperty(\"--vh\", `${vh}px`);\n// resizeイベントの取得\nwindow.addEventListener(\"resize\", () => {\n // あとは上記と同じスクリプトを実行\n let vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty(\"--vh\", `${vh}px`);\n});\n\n$(function() {\n $(\".js-headernav__menu-dropdown\").on(\"click\", function() {\n const $this = $(this);\n console.log($this);\n if ($this.hasClass(\"active\")) {\n $this.removeClass(\"active\");\n $this.next().slideUp();\n } else {\n $this.addClass(\"active\");\n $this.next().slideDown();\n }\n });\n\n $('input[name=\"company[employee_number]\"]').on(\"invalid\", function(e) {\n if (!this.validity.valid && this.validity.rangeUnderflow) {\n e.target.setCustomValidity(\"従業員数は1以上にしてください。\");\n } else {\n e.target.setCustomValidity(\"\");\n }\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;","(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